[clang] [llvm] [RISCV] Add Andes XAndesperf (Andes Performance) extension. (PR #135110)
Sam Elliott via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 9 18:19:35 PDT 2025
================
@@ -940,6 +947,14 @@ struct RISCVOperand final : public MCParsedAsmOperand {
[](int64_t Imm) { return Imm != INT64_MIN && isInt<5>(Imm - 1); });
}
+ bool isSImm18() const { return isBareSimmNLsbK<18, 0>(); }
+
+ bool isSImm18Lsb0() const { return isBareSimmNLsb0<18>(); }
+
+ bool isSImm19Lsb00() const { return isBareSimmNLsbK<19, 2>(); }
+
+ bool isSImm20Lsb000() const { return isBareSimmNLsbK<20, 3>(); }
----------------
lenary wrote:
if these accept bare symbols, please call them `isBareSimm...`, and if they don't, they shouldn't be using `isBareSimmN` internally.
https://github.com/llvm/llvm-project/pull/135110
More information about the cfe-commits
mailing list