LLVM  8.0.0svn
Public Member Functions | Public Attributes | List of all members
llvm::VPTransformState::CFGState Struct Reference

Hold state information used when constructing the CFG of the output IR, traversing the VPBasicBlocks and generating corresponding IR BasicBlocks. More...

#include "Transforms/Vectorize/VPlan.h"

Collaboration diagram for llvm::VPTransformState::CFGState:
Collaboration graph
[legend]

Public Member Functions

 CFGState ()=default
 

Public Attributes

VPBasicBlockPrevVPBB = nullptr
 The previous VPBasicBlock visited. Initially set to null. More...
 
BasicBlockPrevBB = nullptr
 The previous IR BasicBlock created or used. More...
 
BasicBlockLastBB = nullptr
 The last IR BasicBlock in the output IR. More...
 
SmallDenseMap< VPBasicBlock *, BasicBlock * > VPBB2IRBB
 A mapping of each VPBasicBlock to the corresponding BasicBlock. More...
 
SmallVector< VPBasicBlock *, 8 > VPBBsToFix
 Vector of VPBasicBlocks whose terminator instruction needs to be fixed up at the end of vector code generation. More...
 

Detailed Description

Hold state information used when constructing the CFG of the output IR, traversing the VPBasicBlocks and generating corresponding IR BasicBlocks.

Definition at line 282 of file VPlan.h.

Constructor & Destructor Documentation

◆ CFGState()

llvm::VPTransformState::CFGState::CFGState ( )
default

Member Data Documentation

◆ LastBB

BasicBlock* llvm::VPTransformState::CFGState::LastBB = nullptr

The last IR BasicBlock in the output IR.

Set to the new latch BasicBlock, used for placing the newly created BasicBlocks.

Definition at line 292 of file VPlan.h.

Referenced by llvm::VPBlockBase::deleteCFG(), llvm::VPBasicBlock::execute(), and llvm::VPlan::execute().

◆ PrevBB

BasicBlock* llvm::VPTransformState::CFGState::PrevBB = nullptr

The previous IR BasicBlock created or used.

Initially set to the new header BasicBlock.

Definition at line 288 of file VPlan.h.

Referenced by llvm::VPBlockBase::deleteCFG(), llvm::VPBranchOnMaskRecipe::execute(), llvm::VPBasicBlock::execute(), and llvm::VPlan::execute().

◆ PrevVPBB

VPBasicBlock* llvm::VPTransformState::CFGState::PrevVPBB = nullptr

The previous VPBasicBlock visited. Initially set to null.

Definition at line 284 of file VPlan.h.

Referenced by llvm::VPBasicBlock::execute(), and llvm::VPlan::execute().

◆ VPBB2IRBB

SmallDenseMap<VPBasicBlock *, BasicBlock *> llvm::VPTransformState::CFGState::VPBB2IRBB

A mapping of each VPBasicBlock to the corresponding BasicBlock.

In case of replication, maps the BasicBlock of the last replica created.

Definition at line 296 of file VPlan.h.

Referenced by llvm::VPBlockBase::deleteCFG(), llvm::VPBasicBlock::execute(), and llvm::VPlan::execute().

◆ VPBBsToFix

SmallVector<VPBasicBlock *, 8> llvm::VPTransformState::CFGState::VPBBsToFix

Vector of VPBasicBlocks whose terminator instruction needs to be fixed up at the end of vector code generation.

Definition at line 300 of file VPlan.h.

Referenced by llvm::VPBlockBase::deleteCFG(), and llvm::VPlan::execute().


The documentation for this struct was generated from the following file: