diff options
author | Dan Gohman <dan433584@gmail.com> | 2015-12-22 23:37:37 +0000 |
---|---|---|
committer | Dan Gohman <dan433584@gmail.com> | 2015-12-22 23:37:37 +0000 |
commit | db70d015ada8087c390b56ffd091c4c1ed5a6190 (patch) | |
tree | 1b3dde75be516fd728684fedc312ca45d5e69135 /llvm/utils/TableGen/CodeGenInstruction.cpp | |
parent | 58fa3bb63a46fe99d5917ead7488d00958833882 (diff) | |
download | bcm5719-llvm-db70d015ada8087c390b56ffd091c4c1ed5a6190.tar.gz bcm5719-llvm-db70d015ada8087c390b56ffd091c4c1ed5a6190.zip |
Add an OperandNamespace field to Target.td's Operand.
For targets to add their own operand types as needed, as advertised in
Operand's comment, they need to be able to specify an alternate namespace
for OperandType names too. This matches the RegisterOperand class.
llvm-svn: 256299
Diffstat (limited to 'llvm/utils/TableGen/CodeGenInstruction.cpp')
-rw-r--r-- | llvm/utils/TableGen/CodeGenInstruction.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/CodeGenInstruction.cpp b/llvm/utils/TableGen/CodeGenInstruction.cpp index e83d5033b18..366e8ec7fac 100644 --- a/llvm/utils/TableGen/CodeGenInstruction.cpp +++ b/llvm/utils/TableGen/CodeGenInstruction.cpp @@ -78,6 +78,7 @@ CGIOperandList::CGIOperandList(Record *R) : TheDef(R) { } else if (Rec->isSubClassOf("Operand")) { PrintMethod = Rec->getValueAsString("PrintMethod"); OperandType = Rec->getValueAsString("OperandType"); + OperandNamespace = Rec->getValueAsString("OperandNamespace"); // If there is an explicit encoder method, use it. EncoderMethod = Rec->getValueAsString("EncoderMethod"); MIOpInfo = Rec->getValueAsDag("MIOperandInfo"); |