search for: jllvmannotation

Displaying 3 results from an estimated 3 matches for "jllvmannotation".

2009 Mar 13
2
[LLVMdev] store the LLVM-bitcode from a pass
...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-linux-gnu" @.str = internal constant [12 x i8] c"hello world\00" ; <[12 x i8]*> [#uses=1] define i32 @main() { entry: call void (...)* @jLLVMAnnotation(i32 2) call void (...)* @jLLVMAnnotation(i32 3, i32 4) %0 = tail call i32 @puts(i8* getelementptr ([12 x i8]* @.str, i32 0, i32 0)) ; <i32> [#uses=0] ret i32 0 } declare i32 @puts(i8*) define void @jLLVMAnnotation(...) { fncEntry: ret void } BCÀÞ! #AÈI29%bEBB...
2009 Mar 13
0
[LLVMdev] store the LLVM-bitcode from a pass
Hi, take a look inside the file new_prog.bc. How does it start? Ciao, Duncan.
2009 Mar 13
2
[LLVMdev] store the LLVM-bitcode from a pass
Hi Duncan, thanks for the answer. But "opt -load ..../Decorator.so -dec <prog.bc> new_prog.bc" creates an invalid file. When i use "lli", i get "lli: error loading program 'new_prog.bc': Invalid bitcode signature" I have done the followings: 1) used "opt -p -load ..../Decorator.so -dec <prog.bc> new_prog.bc" 2) copied the output