[clang] [llvm] [HLSL][SPRIV] Handle signed RWBuffer correctly (PR #144774)
Steven Perron via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 19 08:48:05 PDT 2025
================
@@ -341,6 +341,13 @@ class SPIRVInstructionSelector : public InstructionSelector {
GIntrinsic &HandleDef, MachineInstr &Pos) const;
};
+bool sampledTypeIsSignedInteger(const llvm::Type *HandleType) {
+ const TargetExtType *TET = cast<TargetExtType>(HandleType);
+ if (TET->getTargetExtName() == "spirv.Image") {
+ return false;
+ }
+ return TET->getTypeParameter(0)->isIntegerTy();
----------------
s-perron wrote:
Done
https://github.com/llvm/llvm-project/pull/144774
More information about the llvm-commits
mailing list