Displaying 1 result from an estimated 1 matches for "indirect_call_target".
Did you mean:
indirect_call_targets
2015 Apr 17
3
[LLVMdev] RFC: Indirect Call Promotion LLVM Pass
...l--------------------------------------------------
define void @foo(i32 %a) {
entry:
%a1 = add i32 %a, 1
ret void
}
define void @bar(i32 %a) {
entry:
%a2 = add i32 %a, 2
ret void
}
define void @main(void (i32)* %fun) {
entry:
call void %fun(i32 10), !prof !1
ret void
}
!1 = !{!"indirect_call_targets", i64 6000, !"foo", i64 5000, !"bar", i64 100}
----------------------------------------------------------------------------
> opt -ic-opt ico.ll -o ico-post.bc
--------------------ico-post.ll---------------------------------------------define
void @foo(i32 %a) {
entry...