[clang] [Clang][bytecode] Add interp__builtin_elementwise_triop_fp to handle general 3-operand floating point intrinsics (PR #157106)
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 5 07:12:16 PDT 2025
================
@@ -2736,12 +2736,14 @@ static bool interp__builtin_ia32_pmul(InterpState &S, CodePtr OpPC,
return true;
}
-static bool interp__builtin_elementwise_fma(InterpState &S, CodePtr OpPC,
- const CallExpr *Call) {
+static bool interp__builtin_elementwise_triop_fp(
+ InterpState &S, CodePtr OpPC, const CallExpr *Call,
+ llvm::function_ref<APFloat(const APFloat &, const APFloat &,
+ const APFloat &, const FPOptions &)>
----------------
RKSimon wrote:
Happy with either - changing the signature in the future wouldn't be a big problem as this is purely internal to InterpBuiltin.cpp
https://github.com/llvm/llvm-project/pull/157106
More information about the cfe-commits
mailing list