mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-14 15:28:20 +00:00
Make RegisterOperand a subclass of DAGOperand so that RegisterOperands can be passed into multiclasses that take DAGOperands as multiclass parameters.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160540 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user