[clang] [llvm] [clang][Driver] Add HIPAMD Driver support for AMDGCN flavoured SPIR-V (PR #95061)
Joseph Huber via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 18 09:43:46 PDT 2024
================
@@ -907,7 +907,8 @@ void CodeGenModule::Release() {
if (Context.getTargetInfo().getTriple().isWasm())
EmitMainVoidAlias();
- if (getTriple().isAMDGPU()) {
+ if (getTriple().isAMDGPU() ||
+ (getTriple().isSPIRV() && getTriple().getVendor() == llvm::Triple::AMD)) {
----------------
jhuber6 wrote:
I'm wondering if we should add `isAMD` to `llvm::Triple` or something.
https://github.com/llvm/llvm-project/pull/95061
More information about the cfe-commits
mailing list