struct VPTransformState::CFGState

Declaration

struct VPTransformState::CFGState { /* full declaration omitted */ };

Description

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

Declared at: llvm/lib/Transforms/Vectorize/VPlan.h:292

Member Variables

public llvm::VPBasicBlock* PrevVPBB = nullptr
The previous VPBasicBlock visited. Initially set to null.
public llvm::BasicBlock* PrevBB = nullptr
The previous IR BasicBlock created or used. Initially set to the new header BasicBlock.
public llvm::BasicBlock* LastBB = nullptr
The last IR BasicBlock in the output IR. Set to the new latch BasicBlock, used for placing the newly created BasicBlocks.
public SmallDenseMap<llvm::VPBasicBlock*, llvm::BasicBlock*> VPBB2IRBB
A mapping of each VPBasicBlock to the corresponding BasicBlock. In case of replication, maps the BasicBlock of the last replica created.
public SmallVector<llvm::VPBasicBlock*, 8> VPBBsToFix
Vector of VPBasicBlocks whose terminator instruction needs to be fixed up at the end of vector code generation.

Method Overview

Methods

ΒΆCFGState()

Declared at: llvm/lib/Transforms/Vectorize/VPlan.h:312