[llvm] [IR] Add llvm `clmul` intrinsic (PR #140301)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed May 21 15:14:58 PDT 2025
================
@@ -7188,6 +7188,16 @@ void SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I,
}
return;
}
+ case Intrinsic::clmul: {
+ SDValue Op1 = getValue(I.getArgOperand(0));
+ SDValue Op2 = getValue(I.getArgOperand(1));
+ EVT VT = Op1.getValueType();
+ assert(VT.isInteger() && "This operator does not apply to FP types!");
----------------
topperc wrote:
The asserts should be in getNode in SelectionDAG.cpp
https://github.com/llvm/llvm-project/pull/140301
More information about the llvm-commits
mailing list