Make RegisterOperand a subclass of DAGOperand so that RegisterOperands can be passed into multiclasses that take DAGOperands as multiclass parameters.

llvm-svn: 160540
This commit is contained in:
Owen Anderson 2012-07-20 03:38:19 +00:00
parent d9d5cf5413
commit 3a8bdb5677
1 changed files with 2 additions and 1 deletions

View File

@ -564,7 +564,8 @@ class Operand<ValueType ty> : DAGOperand {
AsmOperandClass ParserMatchClass = ImmAsmOperand; AsmOperandClass ParserMatchClass = ImmAsmOperand;
} }
class RegisterOperand<RegisterClass regclass, string pm = "printOperand"> { class RegisterOperand<RegisterClass regclass, string pm = "printOperand">
: DAGOperand {
// RegClass - The register class of the operand. // RegClass - The register class of the operand.
RegisterClass RegClass = regclass; RegisterClass RegClass = regclass;
// PrintMethod - The target method to call to print register operands of // PrintMethod - The target method to call to print register operands of