[llvm] [RISCV][ISel] Add ISel support for experimental Zimop extension (PR #77089)
Wang Pengcheng via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 18 19:36:14 PST 2024
================
@@ -108,6 +108,23 @@ let TargetPrefix = "riscv" in {
def int_riscv_xperm8 : BitManipGPRGPRIntrinsics;
} // TargetPrefix = "riscv"
+//===----------------------------------------------------------------------===//
+// May-Be-Operations
+
+let TargetPrefix = "riscv" in {
+
+ // Zimop
+ def int_riscv_mopr
+ : DefaultAttrsIntrinsic<[llvm_any_ty],
+ [LLVMMatchType<0>, LLVMMatchType<0>],
+ [IntrNoMem, IntrSpeculatable, ImmArg<ArgIndex<1>>]>;
+ def int_riscv_moprr
+ : DefaultAttrsIntrinsic<[llvm_any_ty],
+ [LLVMMatchType<0>, LLVMMatchType<0>, LLVMMatchType<0>],
+ [IntrNoMem, IntrSpeculatable, ImmArg<ArgIndex<2>>]>;
+
----------------
wangpc-pp wrote:
Maybe remove this empty line?
https://github.com/llvm/llvm-project/pull/77089
More information about the llvm-commits
mailing list