Scope of changes:
- Extract common code between Clang and Flang for parsing AMDGPU features
- Add function which adds implicit target features for AMDGPU as Clang does
- Add AMDGPU target as one of valid targets for Flang
Differential D145579
[Clang][Flang][AMDGPU] Add support for AMDGPU to Flang driver domada on Mar 8 2023, 4:57 AM. Authored by
Details Scope of changes:
Diff Detail
Event TimelineComment Actions Really nice to see some shared code being elevated out of Clang into LLVM, thanks! I've only reviewed on the Flang driver changes. I will let the OpenMP experts to review the remaining bits. All in all looks good, I've only made some small suggestions. Thanks for working on this!
Comment Actions A few more comments, but mostly nits. Btw, is this patch sufficient to generate code for AMDGPU? Or, put differently, what's the level of support atm?
Comment Actions Do you want to move the AMDGPU changes into AMDGPU.cpp next to AMD.cpp? From the conversation, there seems to be more target specific behaviours. Comment Actions I prefer to defer further refactoring to the future, so that downstream branches have time to digest this change first. Comment Actions Thanks for the updates, mostly looks good. Just a couple of extra questions about the test coverage.
Comment Actions @tschuett No. I don't plan to further refactor AMDGPU::TargeTInfo Clang class. My current goal is to add function attributes to the LLVM IR for Fortran OpenMP code and I don't need to make more changes in Clang to finish my goal. Comment Actions I wanted to ask whether you want to put an AMDGPU.cpp and AMD.cpp file in the flang/lib/Frontend directory. Comment Actions Patch rebased and added new test for checking incorrect wavefront sizes AMDGPU target features.
|
Should there be a test for this triple as well?