[clang] [llvm] [HLSL] Implement support for HLSL intrinsic - saturate (PR #104619)
S. Bharadwaj Yadavalli via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 19 12:47:27 PDT 2024
================
@@ -362,6 +364,34 @@ static bool expandClampIntrinsic(CallInst *Orig, Intrinsic::ID ClampIntrinsic) {
return true;
}
+static bool expandSaturateIntrinsic(CallInst *SaturateCall) {
+ FunctionType *FT = SaturateCall->getFunctionType();
+ Type *FTRetTy = FT->getReturnType();
+ assert(FTRetTy == FT->getParamType(0) &&
----------------
bharadwajy wrote:
> I think we should drop this for now. We likely won't be preserving any intrinsic specific behaviors.
Pushed a change dropping scalarization functionality and associated tests.
https://github.com/llvm/llvm-project/pull/104619
More information about the cfe-commits
mailing list