search for: arg_it

Displaying 5 results from an estimated 5 matches for "arg_it".

Did you mean: argit
2011 Oct 06
2
[LLVMdev] How to create arguments CallInst
virtual std::vector<Value *> getESetArgumentosFunc(Function *F){ std::vector<Value *> varg_list; varg_list.clear(); for(Function::arg_iterator arg_iti = F->getArgumentList().begin(), arg_ite = F->getArgumentList().end(); arg_iti != arg_ite; ++arg_iti){ Value *para = ConstantInt::get(IntegerType::get(getGlobalContext(),32), 0); *Value *val2 = cast<* arg_iti->getType()*>(para); <----------------...
2011 Oct 06
0
[LLVMdev] How to create arguments CallInst
On 10/6/11 12:40 PM, Rafael Baldiati Parizi wrote: > virtual std::vector<Value *> getESetArgumentosFunc(Function *F){ > std::vector<Value *> varg_list; > varg_list.clear(); > for(Function::arg_iterator arg_iti = F->getArgumentList().begin(), > arg_ite = F->getArgumentList().end(); arg_iti != arg_ite; ++arg_iti){ > Value *para = > ConstantInt::get(IntegerType::get(getGlobalContext(),32), 0); > *Value *val2 = cast<* arg_iti->getType()*>(para); > <----------...
2011 Oct 06
0
[LLVMdev] How to create arguments CallInst
On 10/6/11 11:48 AM, Rafael Baldiati Parizi wrote: > Hello, > I need create a CallInst to this function > > define i32 @function(i32 %n, i8 %m){ ... } > > I now how get argument's type but I do not know how to create > arguments that meet these types. > For example, if the argument is long, accurate pass CallInst an > integer argument, however, if a Char, Char must
2011 Oct 06
2
[LLVMdev] How to create arguments CallInst
Hello, I need create a CallInst to this function define i32 @function(i32 %n, i8 %m){ ... } I now how get argument's type but I do not know how to create arguments that meet these types. For example, if the argument is long, accurate pass CallInst an integer argument, however, if a Char, Char must pass an argument. How to get the type of the argument of the function definition and create the
2013 Nov 01
4
[LLVMdev] [Proposal] Adding callback mechanism to Execution Engines
...allbackName); + void* (*F)() = NULL; + FunctionIndexMapTy::iterator Fun_iter = GetFunctionIndexMap().find(CbName); + if(Fun_iter != GetFunctionIndexMap().end()) { + F = Fun_iter->second; + } + assert(F != 0); + if(F){ + void *LLVM_args = NULL; + + ArgumentsIndexMapTy::iterator Arg_iter = GetArgumentsIndexMap().find(CbName); + if (Arg_iter != GetArgumentsIndexMap().end()) { + LLVM_args = Arg_iter->second; + } + + void (*PF)(void *, void *) = (void (*)(void *, void *))(intptr_t)F; + PF(Args, LLVM_args); + } + return NULL; +} + /// createJIT - This is th...