Displaying 1 result from an estimated 1 matches for "int32_65".
2015 Mar 05
4
[LLVMdev] global variable
Hi all,
I am newbie for llvm. I just create a global variable, there are some statements in my pass like:
LoadInst* int64_64 = new LoadInst(pthreadPID, "", false, OptAplusOne);
int64_64->setAlignment(8);
int64_64->dump();
LoadInst* int32_65 = new LoadInst(gvar_int32_myFlag, "", false, OptAplusOne);
int32_65->setAlignment(4);
int32_65->dump();
But when I run my pass, it generates an error, I don't know why.
@myFlag = global i32 0, align 4
@myPid = common global [20 x i64] zeroinitializer, align 16 //thi...