LLVM 22.0.0git
Reg2Mem.cpp File Reference

Go to the source code of this file.

Classes

class  llvm::RegToMemWrapperPass

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.

Macros

#define DEBUG_TYPE   "reg2mem"

Functions

 STATISTIC (NumRegsDemoted, "Number of registers demoted")
 STATISTIC (NumPhisDemoted, "Number of phi-nodes demoted")
static bool valueEscapes (const Instruction &Inst)
static bool runPass (Function &F)
LLVM_ABI void llvm::initializeRegToMemWrapperPassPass (PassRegistry &)
 INITIALIZE_PASS_DEPENDENCY (DominatorTreeWrapperPass)
 INITIALIZE_PASS_DEPENDENCY (LoopInfoWrapperPass)

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "reg2mem"

Definition at line 36 of file Reg2Mem.cpp.

Function Documentation

◆ INITIALIZE_PASS_DEPENDENCY() [1/2]

INITIALIZE_PASS_DEPENDENCY ( DominatorTreeWrapperPass )

◆ INITIALIZE_PASS_DEPENDENCY() [2/2]

INITIALIZE_PASS_DEPENDENCY ( LoopInfoWrapperPass )

◆ runPass()

◆ STATISTIC() [1/2]

STATISTIC ( NumPhisDemoted ,
"Number of phi-nodes demoted"  )

◆ STATISTIC() [2/2]

STATISTIC ( NumRegsDemoted ,
"Number of registers demoted"  )

◆ valueEscapes()