LLVM 20.0.0git
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"

Public Member Functions

 CFGState (DominatorTree *DT)
 
BasicBlockgetPreheaderBBFor (VPRecipeBase *R)
 Returns the BasicBlock* mapped to the pre-header of the loop region containing R.
 

Public Attributes

VPBasicBlockPrevVPBB = nullptr
 The previous VPBasicBlock visited. Initially set to null.
 
BasicBlockPrevBB = nullptr
 The previous IR BasicBlock created or used.
 
BasicBlockExitBB = nullptr
 The last IR BasicBlock in the output IR.
 
SmallDenseMap< VPBasicBlock *, BasicBlock * > VPBB2IRBB
 A mapping of each VPBasicBlock to the corresponding BasicBlock.
 
DomTreeUpdater DTU
 Updater for the DominatorTree.
 

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 378 of file VPlan.h.

Constructor & Destructor Documentation

◆ CFGState()

llvm::VPTransformState::CFGState::CFGState ( DominatorTree DT)
inline

Definition at line 397 of file VPlan.h.

Member Function Documentation

◆ getPreheaderBBFor()

BasicBlock * VPTransformState::CFGState::getPreheaderBBFor ( VPRecipeBase R)

Member Data Documentation

◆ DTU

DomTreeUpdater llvm::VPTransformState::CFGState::DTU

Updater for the DominatorTree.

Definition at line 395 of file VPlan.h.

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

◆ ExitBB

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

The last IR BasicBlock in the output IR.

Set to the exit block of the vector loop.

Definition at line 388 of file VPlan.h.

Referenced by llvm::VPlan::execute().

◆ PrevBB

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

◆ PrevVPBB

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

The previous VPBasicBlock visited. Initially set to null.

Definition at line 380 of file VPlan.h.

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

◆ VPBB2IRBB

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

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