================ @@ -1109,6 +1109,11 @@ class Triple { Env == llvm::Triple::EABIHF; } + /// Tests if the target represents a device which can be offloaded to. + bool isOffloadingTarget() const { + return isAMDGPU() || isNVPTX() || isSPIRV(); + } ---------------- sarnex wrote:
Sorry, was OOO. Will work to address this soon. https://github.com/llvm/llvm-project/pull/126956 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits