search for: findblock

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

Did you mean: find_block
2010 Oct 15
1
[LLVMdev] how to get MachineBasicBlock of a BasicBlock
...umber of the MachineBasicBlock is not the > same as any BasicBlock values. So > MachineFunction::getMachineBasicBlock( BasicBlock::{get the number} ) > cannot work. I do not see much in the basic block which can identify > it. > > So you can search for it. > > typedef struct findBlock { > BasicBlock * block; > findBlock( BasicBlock * block ) : block(block) {} > bool operator( MachineBasicBlock * mbb ) { return > mbb->getBasicBlock() == block; } > } findBlock; > MachineBasicBlock = *std::find( machineFunction.begin(), > machineFunction.end(), > find...
2010 Oct 15
2
[LLVMdev] how to get MachineBasicBlock of a BasicBlock
Hello, we can get BasicBlock from MachineBasicBlock through MachineBasicBlock::getBasicBlock() function, but how can I get MachineBasicBlock of a BasicBlock? Thank you!
2010 Oct 15
0
[LLVMdev] how to get MachineBasicBlock of a BasicBlock
...inherited, so it cannot be cast. The number of the MachineBasicBlock is not the same as any BasicBlock values. So MachineFunction::getMachineBasicBlock( BasicBlock::{get the number} ) cannot work. I do not see much in the basic block which can identify it. So you can search for it. typedef struct findBlock { BasicBlock * block; findBlock( BasicBlock * block ) : block(block) {} bool operator( MachineBasicBlock * mbb ) { return mbb->getBasicBlock() == block; } } findBlock; MachineBasicBlock = *std::find( machineFunction.begin(), machineFunction.end(), findBlock( basicBlock ) ); -Thanks -Jef...