search for: args3

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

Did you mean: args
2011 Jul 26
4
[LLVMdev] How to get the return address on the stack on LLVM
..."Call Return Address", InsPt); CallInst will get the return address and it works. While, in the epilogue of the function, due to the canary has been inserted. I write the similar code: ConstantInt* ci2 = llvm::ConstantInt::get(Type::getInt32Ty(RI->getContext()), 1); Value* Args3[] = {ci2}; CallInst* callInst1 = CallInst::Create(Intrinsic::getDeclaration(M, Intrinsic::returnaddress), &Args3[0], array_endof(Args3), "Caaall Return Address", BB); But it does not work this time. I cannot get the return address. What is problem? How can...
2011 Jul 26
0
[LLVMdev] How to get the return address on the stack on LLVM
...t works. >>> >>> While, in the epilogue of the function, due to the canary has been >>> inserted. I write the similar code: >>> >>> ConstantInt* ci2 = >>> llvm::ConstantInt::get(Type::getInt32Ty(RI->getContext()), 1); >>> Value* Args3[] = {ci2}; >>> CallInst* callInst1 = >>> CallInst::Create(Intrinsic::getDeclaration(M, >>> Intrinsic::returnaddress), >>> &Args3[0], array_endof(Args3), "Caaall Return Address", BB); >> >> This code generates a call to llvm.returnad...
2013 Oct 07
1
[LLVMdev] Typecasting int32ty to int64ty
I have something like this on my code :- vector<Value*> args3; args3.push_back(instr->getOperand(0)); //where 'instr' is store instruction Now when I check the Type of instr->getOperand(0). It varies to i32 and i64, depending on the operand(0) of instruction. Due to which my vector<Value*> has different Type of Value*. How can I convert...