LLVM 20.0.0git
|
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) | |
BasicBlock * | getPreheaderBBFor (VPRecipeBase *R) |
Returns the BasicBlock* mapped to the pre-header of the loop region containing R . | |
Public Attributes | |
VPBasicBlock * | PrevVPBB = nullptr |
The previous VPBasicBlock visited. Initially set to null. | |
BasicBlock * | PrevBB = nullptr |
The previous IR BasicBlock created or used. | |
BasicBlock * | ExitBB = 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. | |
Hold state information used when constructing the CFG of the output IR, traversing the VPBasicBlocks and generating corresponding IR BasicBlocks.
|
inline |
BasicBlock * VPTransformState::CFGState::getPreheaderBBFor | ( | VPRecipeBase * | R | ) |
Returns the BasicBlock* mapped to the pre-header of the loop region containing R
.
Definition at line 352 of file VPlan.cpp.
References llvm::VPRegionBlock::getPreheaderVPBB(), and VPBB2IRBB.
Referenced by llvm::VPWidenIntOrFpInductionRecipe::execute(), llvm::VPWidenPointerInductionRecipe::execute(), llvm::VPScalarPHIRecipe::execute(), llvm::VPFirstOrderRecurrencePHIRecipe::execute(), llvm::VPReductionPHIRecipe::execute(), and llvm::VPActiveLaneMaskPHIRecipe::execute().
DomTreeUpdater llvm::VPTransformState::CFGState::DTU |
Updater for the DominatorTree.
Definition at line 354 of file VPlan.h.
Referenced by llvm::VPBasicBlock::connectToPredecessors(), and llvm::VPlan::execute().
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 347 of file VPlan.h.
Referenced by llvm::VPlan::execute().
BasicBlock* llvm::VPTransformState::CFGState::PrevBB = nullptr |
The previous IR BasicBlock created or used.
Initially set to the new header BasicBlock.
Definition at line 343 of file VPlan.h.
Referenced by llvm::VPWidenIntOrFpInductionRecipe::execute(), llvm::VPFirstOrderRecurrencePHIRecipe::execute(), llvm::VPReductionPHIRecipe::execute(), llvm::VPInterleaveRecipe::execute(), llvm::VPBranchOnMaskRecipe::execute(), llvm::VPExpandSCEVRecipe::execute(), llvm::VPWidenCanonicalIVRecipe::execute(), llvm::VPlan::execute(), llvm::VPBasicBlock::execute(), llvm::VPIRBasicBlock::execute(), llvm::LoopVectorizationPlanner::executePlan(), and llvm::VPlan::prepareToExecute().
VPBasicBlock* llvm::VPTransformState::CFGState::PrevVPBB = nullptr |
The previous VPBasicBlock visited. Initially set to null.
Definition at line 339 of file VPlan.h.
Referenced by llvm::VPlan::execute(), and llvm::VPBasicBlock::executeRecipes().
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 351 of file VPlan.h.
Referenced by llvm::VPBasicBlock::connectToPredecessors(), llvm::VPIRInstruction::execute(), llvm::VPExpandSCEVRecipe::execute(), llvm::VPlan::execute(), llvm::VPBasicBlock::execute(), llvm::VPIRBasicBlock::execute(), llvm::VPRegionBlock::execute(), llvm::LoopVectorizationPlanner::executePlan(), llvm::InnerLoopVectorizer::fixNonInductionPHIs(), llvm::InnerLoopVectorizer::fixVectorizedLoop(), llvm::VPTransformState::get(), and getPreheaderBBFor().