@@ -53,9 +53,6 @@ class MSInt32_64Template : Template<["msint32_t", "int64_t"],
5353class FloatDoubleTemplate : Template<[" float" , " double" ],
5454 [" f" , " " ]>;
5555
56- class HLSLFloatAndIntTemplate : Template<
57- [" unsigned int" , " int" , " float" ],
58- [" " , " si" , " f" ]>;
5956// FIXME: These assume that char -> i8, short -> i16, int -> i32,
6057// long long -> i64.
6158class SyncBuiltinsTemplate :
@@ -4754,12 +4751,6 @@ def HLSLRcp : LangBuiltin<"HLSL_LANG"> {
47544751 let Prototype = " void(...)" ;
47554752}
47564753
4757- def HLSLAsUint : LangBuiltin<" HLSL_LANG" >, HLSLFloatAndIntTemplate {
4758- let Spellings = [" __builtin_hlsl_elementwise_asuint" ];
4759- let Attributes = [NoThrow, Const];
4760- let Prototype = " unsigned int (T)" ;
4761- }
4762-
47634754def HLSLRSqrt : LangBuiltin<" HLSL_LANG" > {
47644755 let Spellings = [" __builtin_hlsl_elementwise_rsqrt" ];
47654756 let Attributes = [NoThrow, Const];
@@ -4772,6 +4763,12 @@ def HLSLSaturate : LangBuiltin<"HLSL_LANG"> {
47724763 let Prototype = " void(...)" ;
47734764}
47744765
4766+ def HLSLBitCast32 : LangBuiltin<" HLSL_LANG" > {
4767+ let Spellings = [" __builtin_hlsl_bit_cast_32" ];
4768+ let Attributes = [NoThrow, Const];
4769+ let Prototype = " void(...)" ;
4770+ }
4771+
47754772def HLSLSelect : LangBuiltin<" HLSL_LANG" > {
47764773 let Spellings = [" __builtin_hlsl_select" ];
47774774 let Attributes = [NoThrow, Const];
0 commit comments