LLVM 24.0.0git
PPCLoopInstrFormPrep.cpp File Reference

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "ppc-loop-instr-form-prep"

Functions

 STATISTIC (PHINodeAlreadyExistsUpdate, "PHI node already in pre-increment form")
 STATISTIC (PHINodeAlreadyExistsDS, "PHI node already in DS form")
 STATISTIC (PHINodeAlreadyExistsDQ, "PHI node already in DQ form")
 STATISTIC (DSFormChainRewritten, "Num of DS form chain rewritten")
 STATISTIC (DQFormChainRewritten, "Num of DQ form chain rewritten")
 STATISTIC (UpdFormChainRewritten, "Num of update form chain rewritten")
 STATISTIC (ChainCommoningRewritten, "Num of commoning chains")
static bool IsPtrInBounds (Value *BasePtr)
static std::string getInstrName (const Value *I, StringRef Suffix)
static Value * getPointerOperandAndType (Value *MemI, Type **PtrElementType=nullptr)

Variables

static const char * name = "Prepare loop for ppc preferred instruction forms"
static constexpr StringRef PHINodeNameSuffix = ".phi"
static constexpr StringRef CastNodeNameSuffix = ".cast"
static constexpr StringRef GEPNodeIncNameSuffix = ".inc"
static constexpr StringRef GEPNodeOffNameSuffix = ".off"

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "ppc-loop-instr-form-prep"

Definition at line 111 of file PPCLoopInstrFormPrep.cpp.

Function Documentation

◆ getInstrName()

std::string getInstrName ( const Value * I,
StringRef Suffix )
static

Definition at line 298 of file PPCLoopInstrFormPrep.cpp.

References assert(), and I.

◆ getPointerOperandAndType()

Value * getPointerOperandAndType ( Value * MemI,
Type ** PtrElementType = nullptr )
static

◆ IsPtrInBounds()

bool IsPtrInBounds ( Value * BasePtr)
static

Definition at line 288 of file PPCLoopInstrFormPrep.cpp.

References llvm::dyn_cast(), and GEP.

◆ STATISTIC() [1/7]

STATISTIC ( ChainCommoningRewritten ,
"Num of commoning chains"  )

References I, and llvm::Offset.

◆ STATISTIC() [2/7]

STATISTIC ( DQFormChainRewritten ,
"Num of DQ form chain rewritten"  )

◆ STATISTIC() [3/7]

STATISTIC ( DSFormChainRewritten ,
"Num of DS form chain rewritten"  )

◆ STATISTIC() [4/7]

STATISTIC ( PHINodeAlreadyExistsDQ ,
"PHI node already in DQ form"  )

◆ STATISTIC() [5/7]

STATISTIC ( PHINodeAlreadyExistsDS ,
"PHI node already in DS form"  )

◆ STATISTIC() [6/7]

STATISTIC ( PHINodeAlreadyExistsUpdate ,
"PHI node already in pre-increment form"  )

◆ STATISTIC() [7/7]

STATISTIC ( UpdFormChainRewritten ,
"Num of update form chain rewritten"  )

Variable Documentation

◆ CastNodeNameSuffix

StringRef CastNodeNameSuffix = ".cast"
staticconstexpr

Definition at line 280 of file PPCLoopInstrFormPrep.cpp.

◆ GEPNodeIncNameSuffix

StringRef GEPNodeIncNameSuffix = ".inc"
staticconstexpr

Definition at line 281 of file PPCLoopInstrFormPrep.cpp.

◆ GEPNodeOffNameSuffix

StringRef GEPNodeOffNameSuffix = ".off"
staticconstexpr

Definition at line 282 of file PPCLoopInstrFormPrep.cpp.

◆ name

const char* name = "Prepare loop for ppc preferred instruction forms"
static

Definition at line 273 of file PPCLoopInstrFormPrep.cpp.

◆ PHINodeNameSuffix

StringRef PHINodeNameSuffix = ".phi"
staticconstexpr

Definition at line 279 of file PPCLoopInstrFormPrep.cpp.