[llvm] [RISCV] Use TableGen-based macro fusion (PR #72224)

Mikhail Gudim via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 14 05:38:31 PST 2023


================
@@ -95,6 +95,12 @@ class MCOperandPredicate<int Index> : MCInstPredicate {
 // Return true if machine operand at position `Index` is a register operand.
 class CheckIsRegOperand<int Index> : MCOperandPredicate<Index>;
 
+// Return true if machine operand at position `Index` is a virtual register operand.
+class CheckIsVRegOperand<int Index> : MCOperandPredicate<Index>;
+
+// Return true if machine operand at position `Index` is not a virtual register operand.
----------------
mgudim wrote:

why do we need this if we could just use the negation of the previous?

https://github.com/llvm/llvm-project/pull/72224


More information about the llvm-commits mailing list