diff options
author | Pierre van Houtryve <pierre.vanhoutryve@amd.com> | 2023-09-21 12:00:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-21 12:00:45 +0200 |
commit | fe2f67e4ba62ce9f0c3a9adcff592a77606e5228 (patch) | |
tree | 5d7e232fd60d35972b6b80d3e2854258e245b71e /llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h | |
parent | 315ddc51200b352ea586454ec745d645074d088d (diff) | |
download | llvm-fe2f67e4ba62ce9f0c3a9adcff592a77606e5228.zip llvm-fe2f67e4ba62ce9f0c3a9adcff592a77606e5228.tar.gz llvm-fe2f67e4ba62ce9f0c3a9adcff592a77606e5228.tar.bz2 |
[AMDGPU] Remove Code Object V2 (#65715)
Code Object V2 has been deprecated for more than a year now. We can
safely remove it from LLVM.
- [clang] Remove support for the `-mcode-object-version=2` option.
- [lld] Remove/refactor tests that were still using COV2
- [llvm] Update AMDGPUUsage.rst
- Code Object V2 docs are left for informational purposes because those
code objects may still be supported by the runtime/loaders for a while.
- [AMDGPU] Remove COV2 emission capabilities.
- [AMDGPU] Remove `MetadataStreamerYamlV2` which was only used by COV2
- [AMDGPU] Update all tests that were still using COV2 - They are either
deleted or ported directly to code object v4 (as v3 is also planned to
be removed soon).
Diffstat (limited to 'llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h')
-rw-r--r-- | llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h b/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h index 5b0a72b..f9e4e82 100644 --- a/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h +++ b/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h @@ -43,17 +43,15 @@ namespace AMDGPU { struct IsaVersion; enum { - AMDHSA_COV2 = 2, AMDHSA_COV3 = 3, AMDHSA_COV4 = 4, AMDHSA_COV5 = 5 }; +/// \returns True if \p STI is AMDHSA. +bool isHsaAbi(const MCSubtargetInfo &STI); /// \returns HSA OS ABI Version identification. std::optional<uint8_t> getHsaAbiVersion(const MCSubtargetInfo *STI); -/// \returns True if HSA OS ABI Version identification is 2, -/// false otherwise. -bool isHsaAbiVersion2(const MCSubtargetInfo *STI); /// \returns True if HSA OS ABI Version identification is 3, /// false otherwise. bool isHsaAbiVersion3(const MCSubtargetInfo *STI); @@ -63,9 +61,6 @@ bool isHsaAbiVersion4(const MCSubtargetInfo *STI); /// \returns True if HSA OS ABI Version identification is 5, /// false otherwise. bool isHsaAbiVersion5(const MCSubtargetInfo *STI); -/// \returns True if HSA OS ABI Version identification is 3 and above, -/// false otherwise. -bool isHsaAbiVersion3AndAbove(const MCSubtargetInfo *STI); /// \returns The offset of the multigrid_sync_arg argument from implicitarg_ptr unsigned getMultigridSyncArgImplicitArgPosition(unsigned COV); |