[llvm] [RISCV][GISEL] instruction-select vmclr (PR #110782)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 1 20:20:19 PDT 2024


================
@@ -50,6 +50,11 @@ def GIAddrRegImm :
   GIComplexOperandMatcher<s32, "selectAddrRegImm">,
   GIComplexPatternEquiv<AddrRegImm>;
 
+def GIVLOpS32 : GIComplexOperandMatcher<s32, "selectVLOp">,
+                GIComplexPatternEquiv<VLOp>;
+def GIVLOpS64 : GIComplexOperandMatcher<s64, "selectVLOp">,
----------------
topperc wrote:

I'm not sure how this works. The pattern refers to `VLOp`. How does tablegen know which of these GISel rules to pick?

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


More information about the llvm-commits mailing list