- Define AMDHSA's code object versions in ELF.h
- Introduce --amdhsa-code-object-version=<num> option, where <num> can be 2, 3
- Remove code-object-v3 subtarget feature
- Mark -m[no-]code-object-v3 options as deprecated and substitute deprecated options with new ones
Details
Diff Detail
Event Timeline
clang/docs/ClangCommandLineReference.rst | ||
---|---|---|
179 | There seem to be a lot of unrelated changes here; does the patch need to be rebased? Or are you just cleaning up the whole file? If the latter could these be in a separate diff? |
clang/docs/ClangCommandLineReference.rst | ||
---|---|---|
179 | Many changes in this file are the result of earlier changes in the options.td file not updating this file with the build result. So suggest submitting a review for updating this file without the code version changes first. Then the changes to this file in this review will just be code object version related. Otherwise I think all the changes in this review are related to cleaning up the handling of the existing V2 and V3 code object formats in preparation for submitting the V4 code object changes. | |
llvm/docs/AMDGPUUsage.rst | ||
901 | Were there also cleanup in the ELF section that describes the e_flags and defines the usage of the new --amdhsa-code-object-version option? |
clang/include/clang/Driver/Options.td | ||
---|---|---|
2464–2468 | Does this still need m_amdgpu_Features_Group? |
clang/include/clang/Driver/Options.td | ||
---|---|---|
2464–2469 | Would it be worth stating that the replacement option is "-mllvm --amdhsa-code-object-version=2" and "-mllvm --amdhsa-code-object-version=3" respectively? |
clang/include/clang/Driver/Options.td | ||
---|---|---|
2464–2468 | I changed it to m_Group on purpose. This way -target-feature +/-code-object-v3 is not added to cc1, which results in a warning: '+/-code-object-v3' is not a recognized feature for this target (ignoring feature) Since we removed this feature from our be. | |
2464–2469 | Replacement option is already stated in the deprecated warning, in case this option is used. Do we really want to put the same suggestion here? I quickly glanced through ClangCommandLineReference.rst and did not see similar cases. |
There seem to be a lot of unrelated changes here; does the patch need to be rebased? Or are you just cleaning up the whole file?
If the latter could these be in a separate diff?