Files
clang-p2996/llvm/test/Transforms/FunctionImport/Inputs/noinline.ll
Yaxun (Sam) Liu bf6124580d [HIP] support ThinLTO
Add options -[no-]offload-lto and -foffload-lto=[thin,full] for controlling
LTO for offload compilation. Allow LTO for AMDGPU target.

AMDGPU target does not support codegen of object files containing
call of external functions, therefore the LLVM module passed to
AMDGPU backend needs to contain definitions of all the callees.
An LLVM option is added to allow function importer to import
functions with noinline attribute.

HIP toolchain passes proper LLVM options to lld to make sure
function importer imports definitions of all the callees.

Reviewed by: Teresa Johnson, Artem Belevich

Differential Revision: https://reviews.llvm.org/D99683
2021-05-22 10:48:34 -04:00

8 lines
153 B
LLVM

define void @foo(i64* %v) #0 {
entry:
%v.addr = alloca i64*, align 8
store i64* %v, i64** %v.addr, align 8
ret void
}
attributes #0 = { noinline }