[llvm] IRBuilder: Add FMFSource parameter to CreateMaxNum/CreateMinNum (PR #129173)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 28 07:22:31 PST 2025
================
@@ -1005,23 +1005,25 @@ class IRBuilderBase {
const Twine &Name = "");
/// Create call to the minnum intrinsic.
- Value *CreateMinNum(Value *LHS, Value *RHS, const Twine &Name = "") {
+ Value *CreateMinNum(Value *LHS, Value *RHS, const Twine &Name = "",
+ FMFSource FMFSource = {}) {
if (IsFPConstrained) {
return CreateConstrainedFPUnroundedBinOp(
- Intrinsic::experimental_constrained_minnum, LHS, RHS, nullptr, Name);
+ Intrinsic::experimental_constrained_minnum, LHS, RHS, FMFSource, Name);
}
- return CreateBinaryIntrinsic(Intrinsic::minnum, LHS, RHS, nullptr, Name);
+ return CreateBinaryIntrinsic(Intrinsic::minnum, LHS, RHS, FMFSource, Name);
}
/// Create call to the maxnum intrinsic.
- Value *CreateMaxNum(Value *LHS, Value *RHS, const Twine &Name = "") {
+ Value *CreateMaxNum(Value *LHS, Value *RHS, const Twine &Name = "",
+ FMFSource FMFSource = {}) {
----------------
arsenm wrote:
The other uses order FMFSource before Name
https://github.com/llvm/llvm-project/pull/129173
More information about the llvm-commits
mailing list