Chris Lattner | 5da8e80 | 2003-08-03 15:47:49 +0000 | [diff] [blame] | 1 | //===- X86.td - Target definition file for the Intel X86 arch ---*- C++ -*-===// |
| 2 | // |
| 3 | // This is a target description file for the Intel i386 architecture, refered to |
| 4 | // here as the "X86" architecture. |
| 5 | // |
| 6 | //===----------------------------------------------------------------------===// |
| 7 | |
| 8 | // Get the target independent interfaces which we are implementing... |
| 9 | // |
| 10 | include "../Target.td" |
| 11 | |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | // Register File Description |
| 14 | //===----------------------------------------------------------------------===// |
| 15 | |
| 16 | include "X86RegisterInfo.td" |
| 17 | |
Chris Lattner | a8c3cff | 2003-08-03 18:19:37 +0000 | [diff] [blame^] | 18 | //===----------------------------------------------------------------------===// |
| 19 | // Instruction Descriptions |
| 20 | //===----------------------------------------------------------------------===// |
| 21 | |
| 22 | def X86InstrInfo : InstrInfo { |
| 23 | } |
| 24 | |
| 25 | def X86 : Target { |
| 26 | // Specify the callee saved registers. |
| 27 | set CalleeSavedRegisters = [ESI, EDI, EBX, EBP]; |
| 28 | |
| 29 | // Yes, pointers are 32-bits in size. |
| 30 | set PointerType = i32; |
| 31 | |
| 32 | // Information about the instructions... |
| 33 | set InstructionSet = X86InstrInfo; |
| 34 | } |