From db70d015ada8087c390b56ffd091c4c1ed5a6190 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 22 Dec 2015 23:37:37 +0000 Subject: 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 --- llvm/utils/TableGen/CodeGenInstruction.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/utils/TableGen/CodeGenInstruction.cpp') 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"); -- cgit v1.2.3