This will be used for AMDGPU_HSA_KERNEL symbol type in output ELF.
Also, in the future unused non-kernels may be optimized.
Paths
| Differential D19917
AMDGPU/SI: Add amdgpu_kernel calling convention. ClosedPublic Authored by nhaustov on May 4 2016, 6:51 AM.
Details Summary This will be used for AMDGPU_HSA_KERNEL symbol type in output ELF. Also, in the future unused non-kernels may be optimized.
Diff Detail Event Timelinenhaustov updated this object. nhaustov added a child revision: D19918: AMDGPU/SI: Use amdgpu_kernel calling convention for OpenCL kernels..May 4 2016, 6:54 AM
nhaustov edited edge metadata. Comment ActionsAlso recognize SPIR_KERNEL as kernel for now to make sure other frontent (HCC) works. Comment Actions I'll also probably split this change into two parts and submit AMDGPUMachineFunction.* changes after corresponding Clang change. This will ensure frontends work. Closed by commit rL274341: Resubmit r268719 - AMDGPU/SI: Add amdgpu_kernel calling convention. Part 2. (authored by nhaustov). · Explain WhyJul 1 2016, 3:08 AM This revision was automatically updated to reflect the committed changes. nhaustov marked an inline comment as done.
Revision Contents
Diff 56267 include/llvm/IR/CallingConv.h
lib/AsmParser/LLLexer.cpp
lib/AsmParser/LLParser.cpp
lib/AsmParser/LLToken.h
lib/IR/AsmWriter.cpp
lib/Target/AMDGPU/AMDGPUMachineFunction.h
lib/Target/AMDGPU/AMDGPUMachineFunction.cpptest/Bitcode/compatibility.ll
test/CodeGen/AMDGPU/hsa-func.ll
test/CodeGen/AMDGPU/hsa.ll
|
This is going to break all frontends which don't emit this calling convention. I think we will need to keep this hard-coded to true until we can update the frontends.