Vikram S. Adve | a21cf20 | 2001-07-21 12:42:19 +0000 | [diff] [blame^] | 1 | // $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 | // |
| 26 | const MachineInstrInfo* TargetMachineInstrInfo = SparcMachineInstrInfo; |
| 27 | |
| 28 | |
| 29 | //************************ Class Implementations **************************/ |
| 30 | |
| 31 | |
| 32 | //--------------------------------------------------------------------------- |
| 33 | // class UltraSparcMachine |
| 34 | // |
| 35 | // Purpose: |
| 36 | // Machine description. |
| 37 | // |
| 38 | //--------------------------------------------------------------------------- |
| 39 | |
| 40 | UltraSparc::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 | //**************************************************************************/ |