[llvm] [IR] Add llvm `cmul` intrinsic (PR #140301)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Fri May 16 14:41:03 PDT 2025


================
@@ -4,7 +4,7 @@
 ; RUN: llc -mtriple=riscv64 -mattr=+zbkc -verify-machineinstrs < %s \
 ; RUN:   | FileCheck %s -check-prefix=RV64ZBC-ZBKC
 
-declare i64 @llvm.riscv.clmul.i64(i64 %a, i64 %b)
----------------
topperc wrote:

We can remove llvm.riscv.clmul, but we need to update clang to not use it, and we need to recognize it in lib/IR/AutoUpgrade.cpp and remap it to the new intrinsic.

None of that should be in the patch that introduces the new intrinsic though.

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


More information about the llvm-commits mailing list