aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorYaxun (Sam) Liu <yaxun.liu@amd.com>2022-02-04 14:19:23 -0500
committerYaxun (Sam) Liu <yaxun.liu@amd.com>2022-02-08 21:58:40 -0500
commit1d97cb1f6e44a77cfc6911b916656e3c5de9bec8 (patch)
treec4c86ba381cd3708cc568accd03130f1125356f9 /flang/lib/Frontend/CompilerInvocation.cpp
parentcfe7f690367b9d2903f099162f0bcbbfd18c7610 (diff)
downloadllvm-1d97cb1f6e44a77cfc6911b916656e3c5de9bec8.zip
llvm-1d97cb1f6e44a77cfc6911b916656e3c5de9bec8.tar.gz
llvm-1d97cb1f6e44a77cfc6911b916656e3c5de9bec8.tar.bz2
[HIP] Emit amdgpu_code_object_version module flag
code object version determines ABI, therefore should not be mixed. This patch emits amdgpu_code_object_version module flag in LLVM IR based on code object version (default 4). The amdgpu_code_object_version value is code object version times 100. LLVM IR with different amdgpu_code_object_version module flag cannot be linked. The -cc1 option -mcode-object-version=none is for ROCm device library use only, which supports multiple ABI. Reviewed by: Artem Belevich Differential Revision: https://reviews.llvm.org/D119026
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions