[llvm] [IRBuilder] Add FMFSource overloads for CreateCall (PR #208171)
Kito Cheng via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 8 02:53:42 PDT 2026
================
@@ -2551,6 +2551,17 @@ class IRBuilderBase {
return Insert(CI, Name);
}
+ CallInst *CreateCall(FunctionType *FTy, Value *Callee, ArrayRef<Value *> Args,
+ FMFSource FMFSource, const Twine &Name = "",
+ MDNode *FPMathTag = nullptr) {
+ CallInst *CI = CallInst::Create(FTy, Callee, Args, DefaultOperandBundles);
+ if (IsFPConstrained)
+ setConstrainedFPCallAttr(CI);
+ if (isa<FPMathOperator>(CI))
+ setFPAttrs(CI, FPMathTag, FMFSource.get(FMF));
+ return Insert(CI, Name);
----------------
kito-cheng wrote:
Addressed via https://github.com/llvm/llvm-project/pull/208171/commits/299799deb258e5945f915f118f04780a957f5c81 :)
https://github.com/llvm/llvm-project/pull/208171
More information about the llvm-commits
mailing list