|
LLVM 22.0.0git
|
#include "RISCV.h"#include "RISCVSubtarget.h"#include "llvm/ADT/DenseMap.h"#include "llvm/ADT/SmallVector.h"#include "llvm/ADT/Statistic.h"#include "llvm/CodeGen/TargetLowering.h"#include "llvm/CodeGen/TargetPassConfig.h"#include "llvm/IR/BasicBlock.h"#include "llvm/IR/Constant.h"#include "llvm/IR/Constants.h"#include "llvm/IR/Function.h"#include "llvm/IR/GlobalValue.h"#include "llvm/IR/GlobalVariable.h"#include "llvm/IR/IRBuilder.h"#include "llvm/IR/InstIterator.h"#include "llvm/IR/Instruction.h"#include "llvm/IR/Instructions.h"#include "llvm/IR/IntrinsicInst.h"#include "llvm/IR/Module.h"#include "llvm/IR/Type.h"#include "llvm/InitializePasses.h"#include "llvm/Pass.h"#include "llvm/Support/Casting.h"#include "llvm/Support/Debug.h"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 | |
| #define DEBUG_TYPE "riscv-promote-const" |
Definition at line 36 of file RISCVPromoteConstant.cpp.
| #define RISCV_PROMOTE_CONSTANT_NAME "RISC-V Promote Constants" |
Definition at line 37 of file RISCVPromoteConstant.cpp.
Referenced by INITIALIZE_PASS().
| INITIALIZE_PASS | ( | RISCVPromoteConstant | , |
| DEBUG_TYPE | , | ||
| RISCV_PROMOTE_CONSTANT_NAME | , | ||
| false | , | ||
| false | ) |
Definition at line 80 of file RISCVPromoteConstant.cpp.
References llvm::createRISCVPromoteConstantPass(), DEBUG_TYPE, and RISCV_PROMOTE_CONSTANT_NAME.
| STATISTIC | ( | NumPromoted | , |
| "Number of constant literals promoted to globals" | ) |
| STATISTIC | ( | NumPromotedUses | , |
| "Number of uses of promoted literal constants" | ) |