blob: 68270fae60198fc104e473d6815d9c8767b9d778 [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
Chris Lattner7e583cf2001-07-21 20:58:30 +000012#include "llvm/CodeGen/Sparc.h"
Vikram S. Advea21cf202001-07-21 12:42:19 +000013
Vikram S. Advea21cf202001-07-21 12:42:19 +000014//************************ Exported Constants ******************************/
15
16
17// Set external object describing the machine instructions
18//
19const MachineInstrInfo* TargetMachineInstrInfo = SparcMachineInstrInfo;
20
21
22//************************ Class Implementations **************************/
23
24
25//---------------------------------------------------------------------------
26// class UltraSparcMachine
27//
28// Purpose:
29// Machine description.
30//
31//---------------------------------------------------------------------------
32
33UltraSparc::UltraSparc()
34 : TargetMachine()
35{
36 optSizeForSubWordData = 4;
37 intSize = 4;
38 floatSize = 4;
39 longSize = 8;
40 doubleSize = 8;
41 longDoubleSize = 16;
42 pointerSize = 8;
43 minMemOpWordSize = 8;
44 maxAtomicMemOpWordSize = 8;
45 machineInstrInfo = SparcMachineInstrInfo;
46 zeroRegNum = 0; // %g0 always gives 0 on Sparc
47}
48
49//**************************************************************************/