summaryrefslogtreecommitdiff
path: root/lib/Target/X86/X86.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-08-03 15:48:55 +0000
committerChris Lattner <sabre@nondot.org>2003-08-03 15:48:55 +0000
commit832003578edcf93c9ad6869ee40c70c3ce89f415 (patch)
tree1e4f3fceebb441038137de83250951b989f87eb9 /lib/Target/X86/X86.h
parent7ad3e063f508218a2823bd5cf092ef622ed7ba6c (diff)
downloadllvm-832003578edcf93c9ad6869ee40c70c3ce89f415.tar.gz
llvm-832003578edcf93c9ad6869ee40c70c3ce89f415.tar.bz2
llvm-832003578edcf93c9ad6869ee40c70c3ce89f415.tar.xz
Switch over to tablegen generated header files
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7512 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86.h')
-rw-r--r--lib/Target/X86/X86.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/lib/Target/X86/X86.h b/lib/Target/X86/X86.h
index 3decdfd209..9cb15c383c 100644
--- a/lib/Target/X86/X86.h
+++ b/lib/Target/X86/X86.h
@@ -13,7 +13,7 @@ class TargetMachine;
class Pass;
/// createX86SimpleInstructionSelector - This pass converts an LLVM function
-/// into a machine code representation is a very simple peep-hole fashion. The
+/// into a machine code representation in a very simple peep-hole fashion. The
/// generated code sucks but the implementation is nice and simple.
///
Pass *createX86SimpleInstructionSelector(TargetMachine &TM);
@@ -42,18 +42,15 @@ Pass *createX86CodePrinterPass(std::ostream &o, TargetMachine &tm);
///
Pass *createEmitX86CodeToMemory();
+// Defines symbolic names for X86 registers. This defines a mapping from
+// register name to register number.
+//
+#include "X86GenRegisterNames.inc"
+
/// X86 namespace - This namespace contains all of the register and opcode enums
/// used by the X86 backend.
///
namespace X86 {
- // Defines a large number of symbolic names for X86 registers. This defines a
- // mapping from register name to register number.
- //
- enum Register {
-#define R(ENUM, NAME, FLAGS, TSFLAGS, ALIAS_SET) ENUM,
-#include "X86RegisterInfo.def"
- };
-
// This defines a large number of symbolic names for X86 instruction opcodes.
enum Opcode {
#define I(ENUM, NAME, BASEOPCODE, FLAGS, TSFLAGS, IMPDEFS, IMPUSES) ENUM,