Lines Matching defs:Block
39 BlockPtrTy Block;
52 /// Templated helper to dereference successor \p SuccIdx of \p Block. Used by
54 template <typename T1> static T1 deref(T1 Block, unsigned SuccIdx) {
55 if (auto *R = dyn_cast<VPRegionBlock>(Block)) {
61 return getBlockWithSuccs(Block)->getSuccessors()[SuccIdx];
68 VPAllSuccessorsIterator(BlockPtrTy Block, size_t Idx = 0)
69 : Block(Block), SuccessorIdx(Idx) {}
71 : Block(Other.Block), SuccessorIdx(Other.SuccessorIdx) {}
74 Block = R.Block;
79 static VPAllSuccessorsIterator end(BlockPtrTy Block) {
80 if (auto *R = dyn_cast<VPRegionBlock>(Block)) {
84 BlockPtrTy ParentWithSuccs = getBlockWithSuccs(Block);
87 return {Block, NumSuccessors};
91 return Block == R.Block && SuccessorIdx == R.SuccessorIdx;
94 const VPBlockBase *operator*() const { return deref(Block, SuccessorIdx); }
96 BlockPtrTy operator*() { return deref(Block, SuccessorIdx); }