Add Target class for X86 target
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7523 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/X86/X86.td b/lib/Target/X86/X86.td
index e4c1c8e..de2d619 100644
--- a/lib/Target/X86/X86.td
+++ b/lib/Target/X86/X86.td
@@ -15,3 +15,20 @@
include "X86RegisterInfo.td"
+//===----------------------------------------------------------------------===//
+// Instruction Descriptions
+//===----------------------------------------------------------------------===//
+
+def X86InstrInfo : InstrInfo {
+}
+
+def X86 : Target {
+ // Specify the callee saved registers.
+ set CalleeSavedRegisters = [ESI, EDI, EBX, EBP];
+
+ // Yes, pointers are 32-bits in size.
+ set PointerType = i32;
+
+ // Information about the instructions...
+ set InstructionSet = X86InstrInfo;
+}