LLVM 22.0.0git
PPCPreEmitPeephole.cpp File Reference

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "ppc-pre-emit-peephole"

Functions

 STATISTIC (NumRRConvertedInPreEmit, "Number of r+r instructions converted to r+i in pre-emit peephole")
 STATISTIC (NumRemovedInPreEmit, "Number of instructions deleted in pre-emit peephole")
 STATISTIC (NumberOfSelfCopies, "Number of self copy instructions eliminated")
 STATISTIC (NumFrameOffFoldInPreEmit, "Number of folding frame offset by using r+r in pre-emit peephole")
 STATISTIC (NumCmpsInPreEmit, "Number of compares eliminated in pre-emit peephole")

Variables

static cl::opt< boolEnablePCRelLinkerOpt ("ppc-pcrel-linker-opt", cl::Hidden, cl::init(true), cl::desc("enable PC Relative linker optimization"))
static cl::opt< boolRunPreEmitPeephole ("ppc-late-peephole", cl::Hidden, cl::init(true), cl::desc("Run pre-emit peephole optimizations."))
static cl::opt< uint64_tDSCRValue ("ppc-set-dscr", cl::Hidden, cl::desc("Set the Data Stream Control Register."))

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "ppc-pre-emit-peephole"

Definition at line 29 of file PPCPreEmitPeephole.cpp.

Function Documentation

◆ STATISTIC() [1/5]

STATISTIC ( NumberOfSelfCopies ,
"Number of self copy instructions eliminated"  )

◆ STATISTIC() [2/5]

STATISTIC ( NumCmpsInPreEmit ,
"Number of compares eliminated in pre-emit peephole"  )

◆ STATISTIC() [3/5]

STATISTIC ( NumFrameOffFoldInPreEmit ,
"Number of folding frame offset by using r+r in pre-emit peephole"  )

◆ STATISTIC() [4/5]

STATISTIC ( NumRemovedInPreEmit ,
"Number of instructions deleted in pre-emit peephole"  )

◆ STATISTIC() [5/5]

STATISTIC ( NumRRConvertedInPreEmit ,
"Number of r+r instructions converted to r+i in pre-emit peephole"  )

Variable Documentation

◆ DSCRValue

cl::opt< uint64_t > DSCRValue("ppc-set-dscr", cl::Hidden, cl::desc("Set the Data Stream Control Register.")) ( "ppc-set-dscr" ,
cl::Hidden ,
cl::desc("Set the Data Stream Control Register.")  )
static

◆ EnablePCRelLinkerOpt

cl::opt< bool > EnablePCRelLinkerOpt("ppc-pcrel-linker-opt", cl::Hidden, cl::init(true), cl::desc("enable PC Relative linker optimization")) ( "ppc-pcrel-linker-opt" ,
cl::Hidden ,
cl::init(true) ,
cl::desc("enable PC Relative linker optimization")  )
static

◆ RunPreEmitPeephole

cl::opt< bool > RunPreEmitPeephole("ppc-late-peephole", cl::Hidden, cl::init(true), cl::desc("Run pre-emit peephole optimizations.")) ( "ppc-late-peephole" ,
cl::Hidden ,
cl::init(true) ,
cl::desc("Run pre-emit peephole optimizations.")  )
static