This is part of the leftover work for https://reviews.llvm.org/D143138.
In this work, we pass code object version as an argument to initialize target ID.
| Paths 
 |  Differential  D143293  
AMDGPU: Use module flag to get code object version at IR level folow-up ClosedPublic Authored by cfang on Feb 3 2023, 1:54 PM. 
Details Summary This is part of the leftover work for https://reviews.llvm.org/D143138. In this work, we pass code object version as an argument to initialize target ID. 
Diff Detail Event Timeline
 
 Comment Actions Do we still need getHsaAbiVersion() and the ELFABIVERSION_AMDGPU_HSA_* constants? 
 Comment Actions 
 In term of code object version itself, I don't think these are still needed. However, ABIVersion is used in the assembler/disassembler, 
 Comment Actions Looks good to me, but I don't know enough about this code to approve. 
 
 
 This revision is now accepted and ready to land.Feb 9 2023, 4:50 PM 
Revision Contents 
 
Diff 495211 llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
 llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
 llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUTargetStreamer.h
 llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h
 llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
 llvm/test/CodeGen/AMDGPU/directive-amdgcn-target-v3.ll
 
 llvm/test/CodeGen/AMDGPU/directive-amdgcn-target.ll
 llvm/test/CodeGen/AMDGPU/elf-notes.ll
 llvm/test/CodeGen/AMDGPU/tid-code-object-v2-backwards-compatibility.ll
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
COV looks a bit cryptic here. What if CodeObjectVersion?