LLVM 20.0.0git
Macros | Functions
Reg2Mem.cpp File Reference
#include "llvm/Transforms/Scalar/Reg2Mem.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/Analysis/LoopInfo.h"
#include "llvm/IR/BasicBlock.h"
#include "llvm/IR/CFG.h"
#include "llvm/IR/Dominators.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/InstIterator.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/PassManager.h"
#include "llvm/Transforms/Scalar.h"
#include "llvm/Transforms/Utils.h"
#include "llvm/Transforms/Utils/BasicBlockUtils.h"
#include "llvm/Transforms/Utils/Local.h"
#include <list>

Go to the source code of this file.

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)
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "reg2mem"

Definition at line 35 of file Reg2Mem.cpp.

Function Documentation

◆ runPass()

static bool runPass ( Function F)
static

◆ STATISTIC() [1/2]

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

◆ STATISTIC() [2/2]

STATISTIC ( NumRegsDemoted  ,
"Number of registers demoted"   
)

◆ valueEscapes()

static bool valueEscapes ( const Instruction Inst)
static