[clang] [llvm] [hlsl][dxil][spirv] Add `fma` function (PR #185304)
Farzon Lotfi via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 9 22:05:54 PDT 2026
================
@@ -5330,14 +5312,14 @@ def HLSLMad : LangBuiltin<"HLSL_LANG"> {
let Prototype = "void(...)";
}
-def HLSLMul : LangBuiltin<"HLSL_LANG"> {
- let Spellings = ["__builtin_hlsl_mul"];
+def HLSLNormalize : LangBuiltin<"HLSL_LANG"> {
+ let Spellings = ["__builtin_hlsl_normalize"];
let Attributes = [NoThrow, Const, CustomTypeChecking];
let Prototype = "void(...)";
}
-def HLSLNormalize : LangBuiltin<"HLSL_LANG"> {
- let Spellings = ["__builtin_hlsl_normalize"];
+def HLSLFma : LangBuiltin<"HLSL_LANG"> {
+ let Spellings = ["__builtin_hlsl_elementwise_fma"];
let Attributes = [NoThrow, Const, CustomTypeChecking];
let Prototype = "void(...)";
}
----------------
farzonl wrote:
delete this
https://github.com/llvm/llvm-project/pull/185304
More information about the cfe-commits
mailing list