Displaying 2 results from an estimated 2 matches for "__block_descriptor".
2009 Sep 17
0
[LLVMdev] Forcing function inline not working
...__attribute__((always_inline)) void foo(void) {
a++;
}
[test.ll]
; ModuleID = 'test.c'
target datalayout =
"e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32"
target triple = "i386-pc-win32"
%struct.__block_descriptor = type { i32, i32 }
%struct.__block_literal_generic = type { i8*, i32, i32, i8*,
%struct.__block_descriptor* }
@a = common global i32 0, align 4 ; <i32*> [#uses=2]
define i32 @main(i32 %argc, i32* %argv) nounwind {
entry:
call void @foo()
ret i32 0
}
define void @foo() nounwind alwaysin...
2009 Sep 17
2
[LLVMdev] Forcing function inline not working
Thanks for your message. However, even with using version 2.5 of llvm the
function is not inlined. Can you try this with your llvm with the same opt
flags, which are as follows?
-O3 -debug-only=inline -mem2reg
If it does work for you, can you tell me the exact flags you used for clang
or llvm-gcc to produce the .bc file and the exact flags you specified when
you invoked opt?
Does the inlining