[clang] [llvm] [HLSL] Adding HLSL `clip` function. (PR #114588)

Farzon Lotfi via cfe-commits cfe-commits at lists.llvm.org
Sat Nov 9 10:08:52 PST 2024


================
@@ -164,6 +164,9 @@ class SPIRVInstructionSelector : public InstructionSelector {
                  unsigned comparisonOpcode, MachineInstr &I) const;
   bool selectCross(Register ResVReg, const SPIRVType *ResType,
                    MachineInstr &I) const;
+  bool selectClip(Register ResVReg, const SPIRVType *ResType,
----------------
farzonl wrote:

if we ened up renaming the intrinsic this should also rename to something like `selectDiscard`.

https://github.com/llvm/llvm-project/pull/114588


More information about the cfe-commits mailing list