Set the destination register field based on the target specific flags

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4442 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-10-30 01:15:31 +00:00
parent 9d17740295
commit b752e9a2ae
2 changed files with 9 additions and 2 deletions

View File

@ -12,8 +12,11 @@
// descriptors
//
static const MachineInstrDescriptor X86Insts[] = {
#define I(ENUM, NAME, FLAGS, TSFLAGS) \
{ NAME, -1, -1, 0, false, 0, 0, TSFLAGS, FLAGS },
#define I(ENUM, NAME, FLAGS, TSFLAGS) \
{ NAME, \
-1, /* Always vararg */ \
((TSFLAGS) & X86II::Void) ? -1 : 0, /* Result is in 0 */ \
0, false, 0, 0, TSFLAGS, FLAGS, TSFLAGS },
#include "X86InstrInfo.def"
};

View File

@ -5,6 +5,10 @@
// specified below, and is used to make all of the information relevant to an
// instruction be in one place.
//
// Note that X86 Instructions always have the destination register listed as
// operand 0, unless it does not produce a value (in which case the TSFlags will
// include X86II::Void).
//
//===----------------------------------------------------------------------===//
// NOTE: No include guards desired