search for: i_bb

Displaying 5 results from an estimated 5 matches for "i_bb".

2009 May 30
0
[LLVMdev] Value liveout (uses)
...ut iterating through all the basic block ? If the value is created within the basic block in question, and the block doesn't loop to itself, then you can just iterate through the uses and note if the use is an instruction in a different block: bool isLiveOut(Instruction* I) { BasicBlock* I_BB = I->getParent(): for (Value::use_iterator ui = I->use_begin(), ue = I->use_end(); ui ! = ue; ++ui) if (cast<Instruction>(ui)->getParent() != I_BB) return true; } } If the value is created within the block but the block loops to itself, you can get away with a very slig...
2009 May 30
4
[LLVMdev] Value liveout (uses)
Hi, How can i know, if a value have uses outside of the current basic block (liveout), without iterating through all the basic block ? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090530/71681bc2/attachment.html>
2009 May 30
4
[LLVMdev] Value liveout (uses)
...block ? > > If the value is created within the basic block in question, and the > block doesn't loop to itself, then you can just iterate through the > uses and note if the use is an instruction in a different block: > > bool isLiveOut(Instruction* I) { > BasicBlock* I_BB = I->getParent(): > for (Value::use_iterator ui = I->use_begin(), ue = I->use_end(); ui > ! > = ue; ++ui) > if (cast<Instruction>(ui)->getParent() != I_BB) > return true; > } > } > > If the value is cre...
2009 May 30
0
[LLVMdev] Value liveout (uses)
...block ? > > If the value is created within the basic block in question, and the > block doesn't loop to itself, then you can just iterate through the > uses and note if the use is an instruction in a different block: > > bool isLiveOut(Instruction* I) { > BasicBlock* I_BB = I->getParent(): > for (Value::use_iterator ui = I->use_begin(), ue = I->use_end > (); ui ! > = ue; ++ui) > if (cast<Instruction>(ui)->getParent() != I_BB) > return true; > } > } > > If the value is c...
2009 May 31
1
[LLVMdev] Value liveout (uses)
...the value is created within the basic block in question, and the >> block doesn't loop to itself, then you can just iterate through the >> uses and note if the use is an instruction in a different block: >> >> bool isLiveOut(Instruction* I) { >> BasicBlock* I_BB = I->getParent(): >> for (Value::use_iterator ui = I->use_begin(), ue = I- >> >use_end(); ui ! >> = ue; ++ui) >> if (cast<Instruction>(ui)->getParent() != I_BB) >> return true; >> } >> }...