summaryrefslogtreecommitdiff
path: root/utils/TableGen/InstrInfoEmitter.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-11-04 09:40:23 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-11-04 09:40:23 +0000
commitc51737f46ff3bd4379b576630c1b83ce163738c5 (patch)
tree9266095d9a4a8c7e053ca8bd56f5cf9dbbc630eb /utils/TableGen/InstrInfoEmitter.cpp
parent6fc40079f374cfeeb63808fd96ea670ae036f809 (diff)
downloadllvm-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.cpp3
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;
}