search for: func_bblock_itr

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

2012 Jul 18
2
[LLVMdev] Phi translation
...use %phi1 = alloca i32, allign 4 ). Then, I want to go to the %entry block and say "store i32 1, i32* %phi1", and in the %for.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:...
2012 Jul 18
1
[LLVMdev] (no subject)
...use %phi1 = alloca i32, allign 4 ). Then, I want to go to the %entry block and say "store i32 1, i32* %phi1", and in the %for.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:...