[llvm-branch-commits] [llvm] [RISCV] Support llvm.readsteadycounter intrinsic (PR #82322)

Craig Topper via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Feb 20 21:34:14 PST 2024


================
@@ -363,7 +365,7 @@ def CSRSystemRegister : AsmOperandClass {
   let DiagnosticType = "InvalidCSRSystemRegister";
 }
 
-def csr_sysreg : RISCVOp {
+def csr_sysreg : RISCVOp, ImmLeaf<XLenVT, "return isUInt<12>(Imm);"> {
----------------
topperc wrote:

TImmLeaf

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


More information about the llvm-branch-commits mailing list