| /llvm-project-15.0.7/clang/test/CodeGen/ |
| H A D | attr-ifunc.c | 7 void bar(void) __attribute__((ifunc("foo"))); 13 void f1(void) __attribute__((ifunc("f1_ifunc"))); 17 void *f2_b(void) __attribute__((ifunc("f2_a"))); 20 void *f3_a(void) __attribute__((ifunc("f3_b"))); 26 void f4(void) __attribute__((ifunc("f4_ifunc"))); 30 void f5(void) __attribute__((ifunc("f5_resolver_gvar"))); 34 void *f6_resolver(void) __attribute__((ifunc("f6_resolver_resolver"))); 35 void f6(void) __attribute__((ifunc("f6_resolver"))); 42 void f1(void) __attribute__((ifunc("f1_ifunc"))); 47 void __attribute__((ifunc("f6_ifunc"))) f6(void) {} in f6()
|
| H A D | semantic-interposition.c | 29 int ifunc(void) __attribute__((ifunc("ifunc_resolver"))); 37 return var + ext_var + ifunc() + func() + ext(); in foo()
|
| H A D | ifunc.c | 4 int foo(int) __attribute__ ((ifunc("foo_ifunc"))); 32 extern void goo(void) __attribute__ ((ifunc("goo_ifunc")));
|
| /llvm-project-15.0.7/llvm/test/Instrumentation/AddressSanitizer/ |
| H A D | with-ifunc.ll | 1 ; Test -asan-with-ifunc flag. 3 ; RUN: opt -passes='asan-pipeline' -S -asan-with-ifunc=0 < %s | \ 5 ; RUN: opt -passes='asan-pipeline' -S -asan-with-ifunc=1 -asan-with-ifunc-suppress-remat=0 < %s | \ 7 ; RUN: opt -passes='asan-pipeline' -S -asan-with-ifunc=1 -asan-with-ifunc-suppress-remat=1 < %s | \ 10 ; Pre-Lollipop Android does not support ifunc. 11 ; RUN: opt -passes='asan-pipeline' -S -asan-with-ifunc=1 -asan-with-ifunc-suppress-remat=0 -mtriple… 13 ; RUN: opt -passes='asan-pipeline' -S -asan-with-ifunc=1 -asan-with-ifunc-suppress-remat=0 -mtriple… 15 ; RUN: opt -passes='asan-pipeline' -S -asan-with-ifunc=1 -asan-with-ifunc-suppress-remat=0 -mtriple…
|
| /llvm-project-15.0.7/lld/test/ELF/ |
| H A D | gnu-ifunc-canon.s | 75 lea ifunc@gotpcrel(%rip), %rbx 77 .type ifunc STT_GNU_IFUNC 78 .globl ifunc 79 ifunc: label 83 .8byte ifunc
|
| H A D | x86-64-gotpc-relax.s | 37 # DISASM: <ifunc>: 87 .type ifunc STT_GNU_IFUNC 88 .globl ifunc 89 .type ifunc, @function 90 ifunc: label 100 movq ifunc@GOTPCREL(%rip), %rax 101 movq ifunc@GOTPCREL(%rip), %rax 113 call *ifunc@GOTPCREL(%rip) 114 call *ifunc@GOTPCREL(%rip) 119 jmp *ifunc@GOTPCREL(%rip) [all …]
|
| H A D | aarch64-gnu-ifunc-nonpreemptable2.s | 8 ## ifunc is a non-preemptable STT_GNU_IFUNC. Check we create a canonical PLT 13 # SEC: 0000000000210180 0 FUNC GLOBAL DEFAULT 4 ifunc 25 .globl ifunc 26 .type ifunc,@gnu_indirect_function 27 ifunc: label 32 .xword ifunc 36 .xword ifunc
|
| H A D | riscv-relax-call2.s | 12 # RUN: ld.lld -T lds -pie -z notext -z ifunc-noplt a.o -o a.ifunc-noplt 13 # RUN: llvm-objdump -d --no-show-raw-insn -M no-aliases a.ifunc-noplt | FileCheck %s --check-prefix… 36 .global _start, ifunc 45 tail ifunc@plt # not relaxed 46 tail ifunc@plt 48 .type ifunc, @gnu_indirect_function 49 ifunc: label
|
| H A D | ppc32-canonical-plt.s | 19 # REL-NEXT: 0x10030320 R_PPC_JMP_SLOT ifunc 0x0 29 # SYM: 1001024c 0 FUNC GLOBAL DEFAULT UND ifunc 33 # SYM: 1001024c 0 FUNC GLOBAL DEFAULT UND ifunc 52 ## Canonical PLT entry of ifunc. 84 lis 4, ifunc@ha 85 la 4, ifunc@l(4)
|
| H A D | canonical-plt-pcrel.s | 20 # CHECK-NEXT: R_X86_64_JUMP_SLOT ifunc 0x0 26 # DISASM-NEXT: callq {{.*}} <ifunc@plt> 33 .long ifunc - . -4 # STT_GNU_IFUNC
|
| H A D | ppc64-toc-relax-ifunc.s | 11 ## ifunc is a non-preemptable STT_GNU_IFUNC. The R_PPC64_ADDR64 in .toc 18 # SEC: 00000000100101e8 0 FUNC GLOBAL DEFAULT 3 ifunc 34 .quad ifunc
|
| /llvm-project-15.0.7/clang/test/CodeGenCXX/ |
| H A D | externc-ifunc-resolver.cpp | 5 __attribute__((ifunc("resolve_foo"))) char *foo(); 6 __attribute__((ifunc("resolve_foo"))) void foo2(int); 7 __attribute__((ifunc("resolve_foo"))) char foo3(float); 8 __attribute__((ifunc("resolve_foo"))) char foo4(float);
|
| H A D | symbol-partition.cpp | 21 void ifunc() __attribute__((ifunc("f")));
|
| /llvm-project-15.0.7/llvm/test/Assembler/ |
| H A D | ifunc-use-list-order.ll | 3 ; Global referencing ifunc. 6 ; Alias for ifunc. 9 @foo_ifunc = ifunc void (), void ()* ()* @foo_resolver 16 ; Function referencing ifunc. 29 @bar_ifunc = ifunc void (), void ()* ()* @bar_resolver
|
| H A D | ifunc-asm.ll | 5 @foo = ifunc i32 (i32), i32 (i32)* ()* @foo_ifunc 6 ; CHECK: @foo = ifunc i32 (i32), i32 (i32)* ()* @foo_ifunc 8 @strlen = ifunc i64 (i8*), bitcast (i64 (i32*)* ()* @mistyped_strlen_resolver to i64 (i8*)* ()*) 9 ; CHECK: strlen = ifunc i64 (i8*), bitcast (i64 (i32*)* ()* @mistyped_strlen_resolver to i64 (i8*)*…
|
| H A D | ifunc-dsolocal.ll | 3 @foo = dso_local ifunc i32 (i32), i32 (i32)* ()* @foo_ifunc 4 ; CHECK: @foo = dso_local ifunc i32 (i32), i32 (i32)* ()* @foo_ifunc
|
| /llvm-project-15.0.7/llvm/test/Verifier/ |
| H A D | ifunc.ll | 7 @inval_linkage = extern_weak ifunc void (), void ()* ()* @resolver 12 @inval_objtype = ifunc void (), bitcast(i32* @g to void ()* ()*) 16 @inval_resolver_decl = ifunc void (), void ()* ()* @resolver_decl 23 @inval_resolver_decl2 = ifunc void (), void ()* ()* @resolver_linker_decl 27 @inval_resolver_type = ifunc i32 (), void ()* ()* @resolver
|
| /llvm-project-15.0.7/lld/test/ELF/linkerscript/ |
| H A D | discard-plt.s | 23 call ifunc 25 .type ifunc, @gnu_indirect_function 26 .hidden ifunc 27 ifunc: label 31 .quad ifunc
|
| /llvm-project-15.0.7/llvm/test/Linker/ |
| H A D | ifunc.ll | 6 ; CHECK-DAG: @foo = ifunc void (), ptr @foo_resolve 9 ; CHECK-DAG: @bar = ifunc void (), ptr @bar_resolve 16 @foo = ifunc void (), ptr @foo_resolve 17 @bar = ifunc void (), ptr @bar_resolve
|
| /llvm-project-15.0.7/lld/test/ELF/Inputs/ |
| H A D | canonical-plt-pcrel.s | 1 .globl func, func2, ifunc 4 .type ifunc, @gnu_indirect_function 7 ifunc: label
|
| /llvm-project-15.0.7/llvm/test/Transforms/GlobalDCE/ |
| H A D | comdats.ll | 27 ; the resolver of an ifunc doesn't preserve that ifunc. ifunc symbols don't 33 ; Sixth test checks that calling an ifunc whose resolver is in a comdat group 34 ; preserves the resolver. This is the trivial case as the ifunc uses the 54 ; thus the entire ifunc can safely be eliminated. 85 @test5_if = linkonce_odr ifunc void (), void ()* ()* @test5_f 88 @test6_if = linkonce_odr ifunc void (), void ()* ()* @test6_f 89 ; CHECK: @test6_if = linkonce_odr ifunc 104 ; Now test that a function, global variable, alias, and ifunc in the same
|
| /llvm-project-15.0.7/llvm/test/MC/ELF/ |
| H A D | target-in-same-section.s | 12 # RELOC-NEXT: 0x23 R_X86_64_PLT32 ifunc 0xFFFFFFFFFFFFFFFC 28 .type ifunc,@gnu_indirect_function 33 ifunc: label 44 call ifunc
|
| /llvm-project-15.0.7/flang/test/Semantics/ |
| H A D | dosemantics03.f90 | 41 FUNCTION ifunc() 42 END FUNCTION ifunc 44 PROCEDURE(ifunc), POINTER :: pifunc => NULL() 123 DO ifunc = 1, 10, 3
|
| H A D | data05.f90 | 4 integer function ifunc(n) 22 procedure(ifunc), pointer, nopass :: ifptr 28 …procedure(ifunc), pointer :: ifptr ! CHECK: ifptr, EXTERNAL, POINTER (Function, InDataStmt) size=2… 29 data ifptr/ifunc/
|
| /llvm-project-15.0.7/bolt/test/runtime/ |
| H A D | iplt.c | 17 __attribute__((ifunc("resolver_foo"))) void ifoo(); 21 __attribute__((ifunc("resolver_memcpy"))) void *
|