[clang] [llvm] [mlir] [clang][NVPTX][MLIR][NVVM] Add overloaded fadd intrinsics (PR #217336)
Srinivasa Ravi via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 21 09:46:22 PDT 2026
================
@@ -4482,6 +4466,12 @@ static Constant *ConstantFoldFixedVectorCall(
return ConstantVector::get(Result);
}
+ case Intrinsic::nvvm_fadd:
+ case Intrinsic::nvvm_fadd_ftz:
+ // The rounding mode operand is a scalar, so the lane-wise folding below
+ // does not apply.
+ // TODO: Fold these by passing the rounding mode through to every lane.
----------------
Wolfram70 wrote:
Yes, none of the vector types have had support for constant folding. I plan to add it for the supported vector types (`v2f16`, `v2bf16`, and `v2f32`) in a follow-up patch.
https://github.com/llvm/llvm-project/pull/217336
More information about the cfe-commits
mailing list