search for: basicblock_8h_source

Displaying 3 results from an estimated 3 matches for "basicblock_8h_source".

2012 Dec 17
4
[LLVMdev] BasicBlock back()
...t<<"\n"; Instruction* prev = &BB.back(); errs() << "\n PENULTIMATE: "<<*prev<<"\n"; ... The terminal prints the SAME instruction. I don't know how back() works. (Definition at line 199<http://llvm.org/doxygen/BasicBlock_8h_source.html#l00199>of file BasicBlock.h <http://llvm.org/doxygen/BasicBlock_8h_source.html>.) 2. I also tried : bool patternDC::runOnBasicBlock(BasicBlock &BB) { ... BasicBlock::const_iterator I = BB.begin(); BasicBlock::const_iterator E = BB.end(); BasicBlock::const_iterator prev_iter,la...
2012 Dec 17
0
[LLVMdev] BasicBlock back()
...Instruction* prev = &BB.back(); > errs() << "\n PENULTIMATE: "<<*prev<<"\n"; > ... > > The terminal prints the SAME instruction. I don't know how back() > works. (Definition at line 199 > <http://llvm.org/doxygen/BasicBlock_8h_source.html#l00199> of file > BasicBlock.h <http://llvm.org/doxygen/BasicBlock_8h_source.html>.) I believe BasicBlock::back() returns an iterator to the last instruction in the BasicBlock which should be its terminator instruction (basic blocks are required to have a TerminatorInst as thei...
2012 Dec 18
1
[LLVMdev] BasicBlock back()
...; Instruction* prev = &BB.back(); > errs() << "\n PENULTIMATE: "<<*prev<<"\n"; > ... > > The terminal prints the SAME instruction. I don't know how back() works. > (Definition at line 199<http://llvm.org/doxygen/BasicBlock_8h_source.html#l00199>of file > BasicBlock.h <http://llvm.org/doxygen/BasicBlock_8h_source.html>.) > > > I believe BasicBlock::back() returns an iterator to the last instruction > in the BasicBlock which should be its terminator instruction (basic blocks > are required to have a Te...