LLVM  13.0.0git
Public Member Functions | Public Attributes | List of all members
llvm::CriticalEdgeSplittingOptions Struct Reference

Option class for critical edge splitting. More...

#include "llvm/Transforms/Utils/BasicBlockUtils.h"

Collaboration diagram for llvm::CriticalEdgeSplittingOptions:
Collaboration graph
[legend]

Public Member Functions

 CriticalEdgeSplittingOptions (DominatorTree *DT=nullptr, LoopInfo *LI=nullptr, MemorySSAUpdater *MSSAU=nullptr, PostDominatorTree *PDT=nullptr)
 
CriticalEdgeSplittingOptionssetMergeIdenticalEdges ()
 
CriticalEdgeSplittingOptionssetKeepOneInputPHIs ()
 
CriticalEdgeSplittingOptionssetPreserveLCSSA ()
 
CriticalEdgeSplittingOptionssetIgnoreUnreachableDests ()
 
CriticalEdgeSplittingOptionsunsetPreserveLoopSimplify ()
 

Public Attributes

DominatorTreeDT
 
PostDominatorTreePDT
 
LoopInfoLI
 
MemorySSAUpdaterMSSAU
 
bool MergeIdenticalEdges = false
 
bool KeepOneInputPHIs = false
 
bool PreserveLCSSA = false
 
bool IgnoreUnreachableDests = false
 
bool PreserveLoopSimplify = true
 SplitCriticalEdge is guaranteed to preserve loop-simplify form if LI is provided. More...
 

Detailed Description

Option class for critical edge splitting.

This provides a builder interface for overriding the default options used during critical edge splitting.

Definition at line 136 of file BasicBlockUtils.h.

Constructor & Destructor Documentation

◆ CriticalEdgeSplittingOptions()

llvm::CriticalEdgeSplittingOptions::CriticalEdgeSplittingOptions ( DominatorTree DT = nullptr,
LoopInfo LI = nullptr,
MemorySSAUpdater MSSAU = nullptr,
PostDominatorTree PDT = nullptr 
)
inline

Definition at line 150 of file BasicBlockUtils.h.

Member Function Documentation

◆ setIgnoreUnreachableDests()

CriticalEdgeSplittingOptions& llvm::CriticalEdgeSplittingOptions::setIgnoreUnreachableDests ( )
inline

Definition at line 171 of file BasicBlockUtils.h.

References IgnoreUnreachableDests.

◆ setKeepOneInputPHIs()

CriticalEdgeSplittingOptions& llvm::CriticalEdgeSplittingOptions::setKeepOneInputPHIs ( )
inline

Definition at line 161 of file BasicBlockUtils.h.

References KeepOneInputPHIs.

◆ setMergeIdenticalEdges()

CriticalEdgeSplittingOptions& llvm::CriticalEdgeSplittingOptions::setMergeIdenticalEdges ( )
inline

Definition at line 156 of file BasicBlockUtils.h.

References MergeIdenticalEdges.

◆ setPreserveLCSSA()

CriticalEdgeSplittingOptions& llvm::CriticalEdgeSplittingOptions::setPreserveLCSSA ( )
inline

Definition at line 166 of file BasicBlockUtils.h.

References PreserveLCSSA.

Referenced by llvm::SplitEdge().

◆ unsetPreserveLoopSimplify()

CriticalEdgeSplittingOptions& llvm::CriticalEdgeSplittingOptions::unsetPreserveLoopSimplify ( )
inline

Definition at line 176 of file BasicBlockUtils.h.

References PreserveLoopSimplify.

Member Data Documentation

◆ DT

DominatorTree* llvm::CriticalEdgeSplittingOptions::DT

Definition at line 137 of file BasicBlockUtils.h.

Referenced by llvm::ehAwareSplitEdge(), and llvm::SplitKnownCriticalEdge().

◆ IgnoreUnreachableDests

bool llvm::CriticalEdgeSplittingOptions::IgnoreUnreachableDests = false

Definition at line 144 of file BasicBlockUtils.h.

Referenced by setIgnoreUnreachableDests(), and llvm::SplitKnownCriticalEdge().

◆ KeepOneInputPHIs

bool llvm::CriticalEdgeSplittingOptions::KeepOneInputPHIs = false

Definition at line 142 of file BasicBlockUtils.h.

Referenced by setKeepOneInputPHIs(), and llvm::SplitKnownCriticalEdge().

◆ LI

LoopInfo* llvm::CriticalEdgeSplittingOptions::LI

Definition at line 139 of file BasicBlockUtils.h.

Referenced by llvm::ehAwareSplitEdge(), and llvm::SplitKnownCriticalEdge().

◆ MergeIdenticalEdges

bool llvm::CriticalEdgeSplittingOptions::MergeIdenticalEdges = false

◆ MSSAU

MemorySSAUpdater* llvm::CriticalEdgeSplittingOptions::MSSAU

Definition at line 140 of file BasicBlockUtils.h.

Referenced by llvm::ehAwareSplitEdge(), and llvm::SplitKnownCriticalEdge().

◆ PDT

PostDominatorTree* llvm::CriticalEdgeSplittingOptions::PDT

Definition at line 138 of file BasicBlockUtils.h.

Referenced by llvm::SplitKnownCriticalEdge().

◆ PreserveLCSSA

bool llvm::CriticalEdgeSplittingOptions::PreserveLCSSA = false

◆ PreserveLoopSimplify

bool llvm::CriticalEdgeSplittingOptions::PreserveLoopSimplify = true

SplitCriticalEdge is guaranteed to preserve loop-simplify form if LI is provided.

If it cannot be preserved, no splitting will take place. If it is not set, preserve loop-simplify form if possible.

Definition at line 148 of file BasicBlockUtils.h.

Referenced by llvm::ehAwareSplitEdge(), llvm::SplitKnownCriticalEdge(), and unsetPreserveLoopSimplify().


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