================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits