Displaying 1 result from an estimated 1 matches for "1234567hi".
Did you mean:
12345678
2012 Nov 16
0
[LLVMdev] how to use lllvm interpreter api ?
...ot;,llvm::getGlobalContext());
EngineBuilder builder(mod);
builder.setEngineKind(EngineKind::Interpreter);
builder.setOptLevel(CodeGenOpt::Default);
EE = builder.create();*
then I make 2 functions, their ir look like :
@1 = private unnamed_addr constant [11 x i8] c"1234567hi\0A\00"
*define void @setValue(i32* %v) {
store i32 3, i32* %v, align 4
ret void
}
define i32 @getValue() {
%1 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([11 x i8]*
@1, i32 0, i32 0))
ret i32 3
}*
Assumed the first function is named f1, the second is f2
I call the f...