search for: bblock_inst_itr

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

2012 Jul 18
2
[LLVMdev] Phi translation
...or.body I want to add "store i32 1, i32* %phi1". So first, I'm iterating through my function and basicblock: int phi = 0; Function::iterator func_bblock_itr = func->begin(); for(; func_bblock_itr != func->end(); ++func_bblock_itr) { BasicBlock::iterator bblock_inst_itr = func_bblock_itr->begin(); for(; bblock_inst_itr != func_bblock_itr->end(); ++bblock_inst_itr) { Then, I look for PHI instructions: if(bblock_inst_itr->getOpcode() == Instruction::PHI) { If I find one, I allocate space: string name = "phi&q...
2012 Jul 18
1
[LLVMdev] (no subject)
...or.body I want to add "store i32 1, i32* %phi1". So first, I'm iterating through my function and basicblock: int phi = 0; Function::iterator func_bblock_itr = func->begin(); for(; func_bblock_itr != func->end(); ++func_bblock_itr) { BasicBlock::iterator bblock_inst_itr = func_bblock_itr->begin(); for(; bblock_inst_itr != func_bblock_itr->end(); ++bblock_inst_itr) { Then, I look for PHI instructions: if(bblock_inst_itr->getOpcode() == Instruction::PHI) { If I find one, I allocate space: string name = "phi&q...