Displaying 3 results from an estimated 3 matches for "lable_of_b".
2005 Jan 13
2
[LLVMdev] the pred_begin and pred_end of BasicBlock
Sorry, still a bit confused. Say we have two basic blocks: A and B. B
has a label. There is no branch/control flow instructions explicit uses
B. like this:
A: code sequence does not contain br/other control flow instruction
B:
lable_of_b:
code sequence
Is A still a predecessor of B?
Thanks.
Chris Lattner wrote:
> On Thu, 13 Jan 2005, Zhou Feng wrote:
>
>> hi,
>> I'm a bit confused by the pred_begin/end of BasicBlock in CFG.h. I
>> cann't understand what is a **use** of a BasicBlock. Also, I ha...
2005 Jan 13
2
[LLVMdev] the pred_begin and pred_end of BasicBlock
hi,
I'm a bit confused by the pred_begin/end of BasicBlock in CFG.h. I
cann't understand what is a **use** of a BasicBlock. Also, I have no
idea of when CFG would be constructed in LLVM.
Thanks.
Zhou Feng
2005 Jan 13
0
[LLVMdev] the pred_begin and pred_end of BasicBlock
On Thu, 13 Jan 2005, Zhou Feng wrote:
> hi,
> I'm a bit confused by the pred_begin/end of BasicBlock in CFG.h. I cann't
> understand what is a **use** of a BasicBlock. Also, I have no idea of when
> CFG would be constructed in LLVM.
The CFG is always implicit in LLVM. The two things that "use" BasicBlocks
are branch/control flow instructions and PHI nodes.