mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
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
This commit is contained in:
parent
d009174ba9
commit
922f754559
@ -620,6 +620,7 @@ class Operand<ValueType ty> : DAGOperand {
|
||||
string EncoderMethod = "";
|
||||
string DecoderMethod = "";
|
||||
bit hasCompleteDecoder = 1;
|
||||
string OperandNamespace = "MCOI";
|
||||
string OperandType = "OPERAND_UNKNOWN";
|
||||
dag MIOperandInfo = (ops);
|
||||
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user