Skip to content

Commit

Permalink
[AMDGPU] Accept/Ignore any -mcmodel arguments. (#70760)
Browse files Browse the repository at this point in the history
Authored-by: Pravin Jagtap <Pravin.Jagtap@amd.com>
  • Loading branch information
pravinjagtap committed Oct 31, 2023
1 parent c280bed commit ab1c97b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions clang/lib/Driver/ToolChains/Clang.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5743,9 +5743,9 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
} else if (Triple.getArch() == llvm::Triple::x86_64) {
Ok = llvm::is_contained({"small", "kernel", "medium", "large", "tiny"},
CM);
} else if (Triple.isNVPTX()) {
// NVPTX does not care about the code model and will accept whatever works
// for the host.
} else if (Triple.isNVPTX() || Triple.isAMDGPU()) {
// NVPTX/AMDGPU does not care about the code model and will accept
// whatever works for the host.
Ok = true;
}
if (Ok) {
Expand Down

0 comments on commit ab1c97b

Please sign in to comment.