[llvm] Add IRBuilder::CreateFMA (PR #131112)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 13 03:52:13 PDT 2025
================
@@ -1065,6 +1065,13 @@ class IRBuilderBase {
{Src, Exp}, FMFSource, Name);
}
+ /// Create call to the fma intrinsic.
+ Value *CreateFMA(Value *Factor1, Value *Factor2, Value *Summand,
+ FMFSource FMFSource = {}, const Twine &Name = "") {
+ return CreateIntrinsic(Intrinsic::fma, {Factor1->getType()},
----------------
arsenm wrote:
Handling constrained FMA is easy because constrained_fma already exists. The problem for ldexp is the constraint intrinsic does not yet exist
https://github.com/llvm/llvm-project/pull/131112
More information about the llvm-commits
mailing list