|
LLVM 22.0.0git
|
#include "RISCV.h"#include "RISCVTargetMachine.h"#include "llvm/ADT/Statistic.h"#include "llvm/Analysis/AliasAnalysis.h"#include "llvm/CodeGen/Passes.h"#include "llvm/MC/TargetRegistry.h"#include "llvm/Support/Debug.h"#include "llvm/Target/TargetOptions.h"Go to the source code of this file.
Macros | |
| #define | DEBUG_TYPE "riscv-load-store-opt" |
| #define | RISCV_LOAD_STORE_OPT_NAME "RISC-V Load / Store Optimizer" |
Functions | |
| STATISTIC (NumLD2LW, "Number of LD instructions split back to LW") | |
| STATISTIC (NumSD2SW, "Number of SD instructions split back to SW") | |
| INITIALIZE_PASS (RISCVLoadStoreOpt, DEBUG_TYPE, RISCV_LOAD_STORE_OPT_NAME, false, false) bool RISCVLoadStoreOpt | |
| static bool | mayAlias (MachineInstr &MIa, SmallVectorImpl< MachineInstr * > &MemInsns, AliasAnalysis *AA) |
Variables | |
| static cl::opt< unsigned > | LdStLimit ("riscv-load-store-scan-limit", cl::init(128), cl::Hidden) |
| #define DEBUG_TYPE "riscv-load-store-opt" |
Definition at line 38 of file RISCVLoadStoreOptimizer.cpp.
| #define RISCV_LOAD_STORE_OPT_NAME "RISC-V Load / Store Optimizer" |
Definition at line 39 of file RISCVLoadStoreOptimizer.cpp.
Referenced by INITIALIZE_PASS().
| INITIALIZE_PASS | ( | RISCVLoadStoreOpt | , |
| DEBUG_TYPE | , | ||
| RISCV_LOAD_STORE_OPT_NAME | , | ||
| false | , | ||
| false | ) |
Definition at line 101 of file RISCVLoadStoreOptimizer.cpp.
References DEBUG_TYPE, if(), MRI, RISCV_LOAD_STORE_OPT_NAME, TII, and TRI.
|
static |
Definition at line 230 of file RISCVLoadStoreOptimizer.cpp.
References llvm::MachineInstr::mayAlias().
| STATISTIC | ( | NumLD2LW | , |
| "Number of LD instructions split back to LW" | ) |
| STATISTIC | ( | NumSD2SW | , |
| "Number of SD instructions split back to SW" | ) |