search for: argv_it

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

Did you mean: argc_it
2007 Mar 06
6
[LLVMdev] alloca & store generation
...**>: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(), "", insertNewInstsBefore); AllocaInst* argv_alloca = new Al...
2007 Mar 06
0
[LLVMdev] alloca & store generation
...; 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(), "", > insertNewInstsBefore); >...