summaryrefslogtreecommitdiff
path: root/lib/CodeGen/TargetMachine/Sparc/Sparc.cpp
blob: 08e12ff99a3b05b246985729cf254fc03d0ec6ce (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
50
51
52
53
54
55
56
// $Id$
//***************************************************************************
// File:
//	Sparc.cpp
// 
// Purpose:
//	
// History:
//	7/15/01	 -  Vikram Adve  -  Created
//**************************************************************************/


//************************** System Include Files **************************/

//*************************** User Include Files ***************************/

#include "llvm/DerivedTypes.h"
#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
}

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