[llvm] [SPIR-V] Implement sample and sample_clamp intrinsics for HLSL resources (PR #177234)

Nathan Gauër via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 22 05:33:50 PST 2026


================
@@ -3019,6 +3023,45 @@ Register SPIRVInstructionSelector::buildZerosVal(const SPIRVType *ResType,
   return GR.getOrCreateConstInt(0, I, ResType, TII, ZeroAsNull);
 }
 
+bool SPIRVInstructionSelector::isConstantZero(Register Reg) const {
+  auto IsZero = [this](Register Reg) {
+    Register R = Reg;
----------------
Keenuts wrote:

Why this locale?

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


More information about the llvm-commits mailing list