hi all,<br><br>i have some thing not so sure about "scope" of llvm passes:<br><br>suppose i have a function pass PassF and a BasicBlock analysis pass PassB. if i want to use the analysis result of PassB for a BasicBlock in PassF, i think i can create PassB in runOnFunction of PassF, and call runOnBasicBlock manually to get the result:<br>
<br>PassB pb; //create a PassB<br>//we also need consider the analysis usage of PassB<br>pb.runOnBasicBlock(bb); // run PassB on bb manually<br>.... use the result of pb ......<br><br>is there any other better way?<br><br>
thanks very much<br>--ether<br><br><br><br><br><br>