[PATCH] D157510: [RISCV] Implement intrinsics for XCVbitmanip extension in CV32E40P
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 14 21:05:09 PDT 2023
craig.topper added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVInstrInfoXCV.td:509
+
+def cv_tuimm2: Operand<XLenVT>, TImmLeaf<XLenVT, [{return isUInt<2>(Imm);}]>;
+def cv_tuimm5: Operand<XLenVT>, TImmLeaf<XLenVT, [{return isUInt<5>(Imm);}]>;
----------------
I think you can drop `Operand` from these.
================
Comment at: llvm/lib/Target/RISCV/RISCVInstrInfoXCV.td:510
+def cv_tuimm2: Operand<XLenVT>, TImmLeaf<XLenVT, [{return isUInt<2>(Imm);}]>;
+def cv_tuimm5: Operand<XLenVT>, TImmLeaf<XLenVT, [{return isUInt<5>(Imm);}]>;
+def cv_uimm10: Operand<XLenVT>, ImmLeaf<XLenVT, [{return isUInt<10>(Imm);}]>;
----------------
Space before `:`
================
Comment at: llvm/lib/Target/RISCV/RISCVInstrInfoXCV.td:523
+
+multiclass PatCoreVBitManip <Intrinsic intr> {
+ def : PatGprGpr<intr, !cast<RVInst>("CV_" # NAME # "R")>;
----------------
Drop the space before `<`
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D157510/new/
https://reviews.llvm.org/D157510
More information about the llvm-commits
mailing list