search for: argc_it

Displaying 2 results from an estimated 2 matches for "argc_it".

Did you mean: archit
2007 Mar 06
6
[LLVMdev] alloca & store generation
...;int*>:0 [#uses=1] alloca sbyte** ; <sbyte***>:0 [#uses=1] store int %argc, int* %0 store sbyte** %argv, sbyte*** %0 ... ----- I used the following code in my transformation: ----- BasicBlock* eb = M.getMainFunction()->getEntryBlock(); Function::arg_iterator argc_it = mainfun->arg_begin(); Function::arg_iterator argv_it = argc_it; ++argv_it; Argument* argc = &*argc_it; Argument* argv = &*argv_it; Instruction* insertNewInstsBefore = &eb->front(); AllocaInst* argc_alloca = new AllocaInst(argc->getType(), "",...
2007 Mar 06
0
[LLVMdev] alloca & store generation
...<sbyte***>:0 [#uses=1] > store int %argc, int* %0 > store sbyte** %argv, sbyte*** %0 > ... > ----- > > I used the following code in my transformation: > > ----- > BasicBlock* eb = M.getMainFunction()->getEntryBlock(); > Function::arg_iterator argc_it = mainfun->arg_begin(); > Function::arg_iterator argv_it = argc_it; > ++argv_it; > Argument* argc = &*argc_it; > Argument* argv = &*argv_it; > Instruction* insertNewInstsBefore = &eb->front(); > AllocaInst* argc_alloca = new AllocaInst(argc->...