-
Notifications
You must be signed in to change notification settings - Fork 13.5k
[AMDGPU] Accept/Ignore any -mcmodel arguments. #70760
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ With the latest revision this PR passed the C/C++ code formatter. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs test
// 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) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
neither nvptx or amdgpu backend accepts -mcmodel=tiny and kernel. the backends will fail with error:
fatal error: error in backend: Target does not support the tiny CodeModel
for tiny and kernel, we should not pass them to clang -cc1 and emit a warning that they are ignored.
No description provided.