repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[LV] Add test showing debug output for loops with uncountable BTCs.
[llvm-project.git]
/
bolt
/
test
/
Inputs
/
ifunc.c
blob
3fa62bef3093073ef923d1fc9b4ffcb24016d024
1
// This test checks that IFUNC trampoline is properly recognised by BOLT
2
3
static void
foo
() {}
4
static void
bar
() {}
5
6
extern
int
use_foo
;
7
8
static void
*
resolver_foo
(
void
) {
return
use_foo
?
foo
:
bar
; }
9
10
__attribute__
((
ifunc
(
"resolver_foo"
)))
void
ifoo
();
11
12
void
_start
() {
ifoo
(); }