diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-11-04 09:40:23 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-11-04 09:40:23 +0000 |
commit | c51737f46ff3bd4379b576630c1b83ce163738c5 (patch) | |
tree | 9266095d9a4a8c7e053ca8bd56f5cf9dbbc630eb /utils/TableGen/InstrInfoEmitter.cpp | |
parent | 6fc40079f374cfeeb63808fd96ea670ae036f809 (diff) | |
download | llvm-c51737f46ff3bd4379b576630c1b83ce163738c5.tar.gz llvm-c51737f46ff3bd4379b576630c1b83ce163738c5.tar.bz2 llvm-c51737f46ff3bd4379b576630c1b83ce163738c5.tar.xz |
Clean up some code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31451 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/InstrInfoEmitter.cpp')
-rw-r--r-- | utils/TableGen/InstrInfoEmitter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/TableGen/InstrInfoEmitter.cpp b/utils/TableGen/InstrInfoEmitter.cpp index ed932db18b..bf69d08523 100644 --- a/utils/TableGen/InstrInfoEmitter.cpp +++ b/utils/TableGen/InstrInfoEmitter.cpp @@ -14,6 +14,7 @@ #include "InstrInfoEmitter.h" #include "CodeGenTarget.h" +#include "llvm/Target/TargetInstrInfo.h" #include "Record.h" #include <algorithm> using namespace llvm; @@ -89,7 +90,7 @@ GetOperandInfo(const CodeGenInstruction &Inst) { // For backward compatibility: isTwoAddress means operand 1 is tied to // operand 0. if (Inst.isTwoAddress) - Result[1].second |= 1; + Result[1].second |= (0 << 16) | (1 << (unsigned)TargetInstrInfo::TIED_TO); return Result; } |