LLVM: lib/Analysis/RegionInfo.cpp File Reference (original) (raw)

Go to the source code of this file.

Namespaces
namespace llvm
This is an optimization pass for GlobalISel generic memory operations.
Functions
STATISTIC (numRegions, "The # of regions")
STATISTIC (numSimpleRegions, "The # of simple regions")
INITIALIZE_PASS_BEGIN (RegionInfoPass, "regions", "Detect single entry single exit regions", true, true) INITIALIZE_PASS_END(RegionInfoPass
FunctionPass * llvm::createRegionInfoPass ()
Variables
static cl::opt< bool, true > VerifyRegionInfoX ("verify-region-info", cl::location(RegionInfoBase< RegionTraits< Function > >::VerifyRegionInfo), cl::desc("Verify region info (time consuming)"))
static cl::opt< Region::PrintStyle, true > printStyleX ("print-region-style", cl::location(RegionInfo::printStyle), cl::Hidden, cl::desc("style of printing regions"), cl::values(clEnumValN(Region::PrintNone, "none", "print no details"), clEnumValN(Region::PrintBB, "bb", "print regions in detail with block_iterator"), clEnumValN(Region::PrintRN, "rn", "print regions in detail with element_iterator")))
regions
Detect single entry single exit true

DEBUG_TYPE

#define DEBUG_TYPE "region"

INITIALIZE_PASS_BEGIN()

INITIALIZE_PASS_BEGIN ( RegionInfoPass ,
"regions" ,
"Detect single entry single exit regions" ,
true ,
true
)

STATISTIC() [1/2]

STATISTIC ( numRegions ,
"The # of regions"
)

STATISTIC() [2/2]

STATISTIC ( numSimpleRegions ,
"The # of simple regions"
)

printStyleX

cl::opt< Region::PrintStyle, true > printStyleX("print-region-style", cl::location(RegionInfo::printStyle), cl::Hidden, cl::desc("style of printing regions"), cl::values( clEnumValN(Region::PrintNone, "none", "print no details"), clEnumValN(Region::PrintBB, "bb", "print regions in detail with block_iterator"), clEnumValN(Region::PrintRN, "rn", "print regions in detail with element_iterator"))) ( "print-region-style" , cl::location(RegionInfo::printStyle) , cl::Hidden , cl::desc("style of printing regions") , cl::values( clEnumValN(Region::PrintNone, "none", "print no details"), clEnumValN(Region::PrintBB, "bb", "print regions in detail with block_iterator"), clEnumValN(Region::PrintRN, "rn", "print regions in detail with element_iterator")) ) static

regions

Detect single entry single exit regions

true

Detect single entry single exit true

VerifyRegionInfoX