================
@@ -1390,18 +1390,23 @@ SanitizerMask AMDGPUToolChain::getSupportedSanitizers(
ToolChain::getSupportedSanitizers(BA, DeviceOffloadKind);
// Address sanitizer is potentially supported, but depends on the exact
target
- // arch xnack support.
- if (!BA || isXnackAvailable(getTriple(), BA.ArchName))
+ // arch XNACK support; for SPIR-V, the availability of XNACK is known at
+ // finalisation time.
+ if (!BA ||
+ (isXnackAvailable(getTriple(), BA.ArchName) || getTriple().isSPIRV()))
SupportedMask |= SanitizerKind::Address;
// Watchpoint probes do not require xnack, but the runtime requires HSA.
- if (getTriple().isAMDGCN() && getTriple().getOS() == llvm::Triple::AMDHSA)
+ if ((getTriple().isAMDGCN() || getTriple().isSPIRV()) &&
----------------
AlexVlx wrote:
Done.
https://github.com/llvm/llvm-project/pull/241411
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits