Skip to content

Commit 53724d7

Browse files
committed
[CIR][CUDA] Treat nvptx triple as alias for nvptx64
1 parent f9c0515 commit 53724d7

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

clang/lib/CIR/CodeGen/TargetInfo.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -747,6 +747,7 @@ const TargetCIRGenInfo &CIRGenModule::getTargetCIRGenInfo() {
747747
return SetCIRGenInfo(new SPIRVTargetCIRGenInfo(genTypes));
748748
}
749749

750+
case llvm::Triple::nvptx:
750751
case llvm::Triple::nvptx64: {
751752
return SetCIRGenInfo(new NVPTXTargetCIRGenInfo(genTypes));
752753
}

clang/lib/CIR/Dialect/Transforms/TargetLowering/LowerModule.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,11 @@ createTargetLoweringInfo(LowerModule &LM) {
8181
}
8282
case llvm::Triple::spirv64:
8383
return createSPIRVTargetLoweringInfo(LM);
84+
85+
case llvm::Triple::nvptx:
8486
case llvm::Triple::nvptx64:
8587
return createNVPTXTargetLoweringInfo(LM);
88+
8689
default:
8790
cir_cconv_unreachable("ABI NYI");
8891
}

0 commit comments

Comments
 (0)