LLVM 22.0.0git
RISCVPromoteConstant.cpp File Reference

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "riscv-promote-const"
#define RISCV_PROMOTE_CONSTANT_NAME   "RISC-V Promote Constants"

Functions

 STATISTIC (NumPromoted, "Number of constant literals promoted to globals")
 STATISTIC (NumPromotedUses, "Number of uses of promoted literal constants")
 INITIALIZE_PASS (RISCVPromoteConstant, DEBUG_TYPE, RISCV_PROMOTE_CONSTANT_NAME, false, false) ModulePass *llvm

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "riscv-promote-const"

Definition at line 36 of file RISCVPromoteConstant.cpp.

◆ RISCV_PROMOTE_CONSTANT_NAME

#define RISCV_PROMOTE_CONSTANT_NAME   "RISC-V Promote Constants"

Definition at line 37 of file RISCVPromoteConstant.cpp.

Referenced by INITIALIZE_PASS().

Function Documentation

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( RISCVPromoteConstant ,
DEBUG_TYPE ,
RISCV_PROMOTE_CONSTANT_NAME ,
false ,
false  )

◆ STATISTIC() [1/2]

STATISTIC ( NumPromoted ,
"Number of constant literals promoted to globals"  )

◆ STATISTIC() [2/2]

STATISTIC ( NumPromotedUses ,
"Number of uses of promoted literal constants"  )