diff options
author | Chris Lattner <sabre@nondot.org> | 2002-12-03 05:42:53 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-12-03 05:42:53 +0000 |
commit | 0d80874f6c9e061ba0b77da743b764fa5cb09294 (patch) | |
tree | 976b4af9ca314c4fa89213d8271adc9b1914030b /llvm/lib/Target/X86/X86InstrInfo.cpp | |
parent | c6d6d62c8e2ae4ab4165b44a96124b2cbe4cd271 (diff) | |
download | bcm5719-llvm-0d80874f6c9e061ba0b77da743b764fa5cb09294.tar.gz bcm5719-llvm-0d80874f6c9e061ba0b77da743b764fa5cb09294.zip |
* Move information about Implicit Defs/Uses into X86InstrInfo.def.
* Expose information about implicit defs/uses of register through the
MachineInstrInfo.h file.
llvm-svn: 4877
Diffstat (limited to 'llvm/lib/Target/X86/X86InstrInfo.cpp')
-rw-r--r-- | llvm/lib/Target/X86/X86InstrInfo.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/llvm/lib/Target/X86/X86InstrInfo.cpp b/llvm/lib/Target/X86/X86InstrInfo.cpp index 67a6537999e..219619ec31d 100644 --- a/llvm/lib/Target/X86/X86InstrInfo.cpp +++ b/llvm/lib/Target/X86/X86InstrInfo.cpp @@ -5,18 +5,24 @@ //===----------------------------------------------------------------------===// #include "X86InstrInfo.h" +#include "X86.h" #include "llvm/CodeGen/MachineInstr.h" -#include <iostream> + +#define I(ENUM, NAME, BASEOPCODE, FLAGS, TSFLAGS, IMPDEFS, IMPUSES) +#define IMPREGSLIST(NAME, ...) \ + static const unsigned NAME[] = { __VA_ARGS__ }; +#include "X86InstrInfo.def" + // X86Insts - Turn the InstrInfo.def file into a bunch of instruction // descriptors // static const MachineInstrDescriptor X86Insts[] = { -#define I(ENUM, NAME, BASEOPCODE, FLAGS, TSFLAGS) \ +#define I(ENUM, NAME, BASEOPCODE, FLAGS, TSFLAGS, IMPDEFS, IMPUSES) \ { NAME, \ -1, /* Always vararg */ \ ((TSFLAGS) & X86II::Void) ? -1 : 0, /* Result is in 0 */ \ - 0, false, 0, 0, TSFLAGS, FLAGS, TSFLAGS }, + 0, false, 0, 0, TSFLAGS, FLAGS, TSFLAGS, IMPDEFS, IMPUSES }, #include "X86InstrInfo.def" }; @@ -26,7 +32,7 @@ X86InstrInfo::X86InstrInfo() static unsigned char BaseOpcodes[] = { -#define I(ENUM, NAME, BASEOPCODE, FLAGS, TSFLAGS) BASEOPCODE, +#define I(ENUM, NAME, BASEOPCODE, FLAGS, TSFLAGS, IMPDEFS, IMPUSES) BASEOPCODE, #include "X86InstrInfo.def" }; |