aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/TargetMachine/Sparc/Sparc.cpp
blob: 68270fae60198fc104e473d6815d9c8767b9d778 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// $Id$
//***************************************************************************
// File:
//	Sparc.cpp
// 
// Purpose:
//	
// History:
//	7/15/01	 -  Vikram Adve  -  Created
//**************************************************************************/

#include "llvm/CodeGen/Sparc.h"

//************************ Exported Constants ******************************/


// Set external object describing the machine instructions
// 
const MachineInstrInfo* TargetMachineInstrInfo = SparcMachineInstrInfo; 


//************************ Class Implementations **************************/


//---------------------------------------------------------------------------
// class UltraSparcMachine 
// 
// Purpose:
//   Machine description.
// 
//---------------------------------------------------------------------------

UltraSparc::UltraSparc()
  : TargetMachine()
{
  optSizeForSubWordData = 4;
  intSize = 4; 
  floatSize = 4; 
  longSize = 8; 
  doubleSize = 8; 
  longDoubleSize = 16; 
  pointerSize = 8;
  minMemOpWordSize = 8; 
  maxAtomicMemOpWordSize = 8;
  machineInstrInfo = SparcMachineInstrInfo;
  zeroRegNum = 0;			// %g0 always gives 0 on Sparc
}

//**************************************************************************/