projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add a new field to MCOperandInfo that contains information about the type of the...
[oota-llvm.git]
/
utils
/
TableGen
/
InstrInfoEmitter.cpp
diff --git
a/utils/TableGen/InstrInfoEmitter.cpp
b/utils/TableGen/InstrInfoEmitter.cpp
index b27e49787c117e51ff89ee36ce00c9464af06ef1..d3c2d6370a944e4549635cee4b7bf8d3a35cfa6b 100644
(file)
--- a/
utils/TableGen/InstrInfoEmitter.cpp
+++ b/
utils/TableGen/InstrInfoEmitter.cpp
@@
-121,6
+121,11
@@
InstrInfoEmitter::GetOperandInfo(const CodeGenInstruction &Inst) {
" << 16) | (1 << MCOI::TIED_TO))";
}
+ // Fill in operand type.
+ Res += ", MCOI::";
+ assert(!Inst.Operands[i].OperandType.empty() && "Invalid operand type.");
+ Res += Inst.Operands[i].OperandType;
+
Result.push_back(Res);
}
}