[clang] [HLSL] Implement support for HLSL intrinsic - select (PR #107129)
S. Bharadwaj Yadavalli via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 3 14:25:27 PDT 2024
================
@@ -1545,6 +1605,30 @@ bool SemaHLSL::CheckBuiltinFunctionCall(unsigned BuiltinID, CallExpr *TheCall) {
break;
}
case Builtin::BI__builtin_hlsl_elementwise_saturate:
+ case Builtin::BI__builtin_hlsl_select: {
----------------
bharadwajy wrote:
This addition splits the existing common case code for `BI__builtin_hlsl_elemetwise_saturate` and `BI__builtin_hlsl_elemetwise_rcp` - and would result in incorrect behavior for `BI__builtin_hlsl_elemetwise_saturate`.
https://github.com/llvm/llvm-project/pull/107129
More information about the cfe-commits
mailing list