LLVM 22.0.0git
FlattenCFGPass.cpp File Reference

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "flatten-cfg"

Functions

static bool iterativelyFlattenCFG (Function &F, AliasAnalysis *AA)
 iterativelyFlattenCFG - Call FlattenCFG on all the blocks in the function, iterating until no more changes are made.
 INITIALIZE_PASS_BEGIN (FlattenCFGLegacyPass, "flattencfg", "Flatten the CFG", false, false) INITIALIZE_PASS_END(FlattenCFGLegacyPass

Variables

 flattencfg
Flatten the CFG
Flatten the false

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "flatten-cfg"

Definition at line 24 of file FlattenCFGPass.cpp.

Function Documentation

◆ INITIALIZE_PASS_BEGIN()

INITIALIZE_PASS_BEGIN ( FlattenCFGLegacyPass ,
"flattencfg" ,
"Flatten the CFG" ,
false ,
false  )

◆ iterativelyFlattenCFG()

bool iterativelyFlattenCFG ( Function & F,
AliasAnalysis * AA )
static

iterativelyFlattenCFG - Call FlattenCFG on all the blocks in the function, iterating until no more changes are made.

Definition at line 46 of file FlattenCFGPass.cpp.

References llvm::cast_or_null(), Changed, F, and llvm::FlattenCFG().

Referenced by llvm::FlattenCFGPass::run().

Variable Documentation

◆ CFG

Flatten the CFG

Definition at line 77 of file FlattenCFGPass.cpp.

Referenced by llvm::VPBasicBlock::connectToPredecessors().

◆ false

Flatten the false

Definition at line 78 of file FlattenCFGPass.cpp.

◆ flattencfg

flattencfg

Definition at line 77 of file FlattenCFGPass.cpp.