[clang] [llvm] [HLSL] Implement support for HLSL intrinsic - saturate (PR #104619)
Farzon Lotfi via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 16 11:54:06 PDT 2024
================
@@ -362,6 +364,34 @@ static bool expandClampIntrinsic(CallInst *Orig, Intrinsic::ID ClampIntrinsic) {
return true;
}
+static bool expandSaturateIntrinsic(CallInst *SaturateCall) {
----------------
farzonl wrote:
wait for @pow2clk change merges then change this to return `Result` and remove the `replaceAllUsesWith` and `eraseFromParent` calls
https://github.com/llvm/llvm-project/pull/104619
More information about the cfe-commits
mailing list