blob: 08e12ff99a3b05b246985729cf254fc03d0ec6ce [file] [log] [blame]
Vikram S. Advea21cf202001-07-21 12:42:19 +00001// $Id$
2//***************************************************************************
3// File:
4// Sparc.cpp
5//
6// Purpose:
7//
8// History:
9// 7/15/01 - Vikram Adve - Created
10//**************************************************************************/
11
12
13//************************** System Include Files **************************/
14
15//*************************** User Include Files ***************************/
16
17#include "llvm/DerivedTypes.h"
18#include "llvm/Codegen/Sparc.h"
19
20
21//************************ Exported Constants ******************************/
22
23
24// Set external object describing the machine instructions
25//
26const MachineInstrInfo* TargetMachineInstrInfo = SparcMachineInstrInfo;
27
28
29//************************ Class Implementations **************************/
30
31
32//---------------------------------------------------------------------------
33// class UltraSparcMachine
34//
35// Purpose:
36// Machine description.
37//
38//---------------------------------------------------------------------------
39
40UltraSparc::UltraSparc()
41 : TargetMachine()
42{
43 optSizeForSubWordData = 4;
44 intSize = 4;
45 floatSize = 4;
46 longSize = 8;
47 doubleSize = 8;
48 longDoubleSize = 16;
49 pointerSize = 8;
50 minMemOpWordSize = 8;
51 maxAtomicMemOpWordSize = 8;
52 machineInstrInfo = SparcMachineInstrInfo;
53 zeroRegNum = 0; // %g0 always gives 0 on Sparc
54}
55
56//**************************************************************************/