[clang] [llvm] [HLSL] Implementation of dot intrinsic (PR #81190)
Chris B via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 13 07:41:24 PST 2024
================
@@ -4518,6 +4518,12 @@ def HLSLCreateHandle : LangBuiltin<"HLSL_LANG"> {
let Prototype = "void*(unsigned char)";
}
+def HLSLDotProduct : LangBuiltin<"HLSL_LANG"> {
+ let Spellings = ["__builtin_hlsl_dot"];
+ let Attributes = [NoThrow, Const, CustomTypeChecking];
----------------
llvm-beanz wrote:
The overload resolution issues you're hitting are currently expected. PR #71098, implements handling for the vector element conversions, although there are still some issues lingering around HLSL's rules for promotions and conversions (https://github.com/llvm/llvm-project/issues/81047 & https://github.com/llvm/llvm-project/issues/81049).
https://github.com/llvm/llvm-project/pull/81190
More information about the cfe-commits
mailing list