|
LLVM 24.0.0git
|
#include "RISCV.h"#include "RISCVTargetMachine.h"#include "llvm/ADT/SmallVector.h"#include "llvm/ADT/Statistic.h"#include "llvm/Analysis/AliasAnalysis.h"#include "llvm/CodeGen/MachineFunctionAnalysisManager.h"#include "llvm/CodeGen/MachinePassManager.h"#include "llvm/CodeGen/Passes.h"#include "llvm/IR/Analysis.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 (RISCVLoadStoreOptLegacy, DEBUG_TYPE, RISCV_LOAD_STORE_OPT_NAME, false, false) bool RISCVLoadStoreOptImpl | |
| static bool | isMemOpAligned (MachineInstr &MI, Align RequiredAlignment) |
| static bool | mayAlias (MachineInstr &MIa, SmallVectorImpl< MachineInstr * > &MemInsns, AliasAnalysis *AA) |
| #define DEBUG_TYPE "riscv-load-store-opt" |
Definition at line 42 of file RISCVLoadStoreOptimizer.cpp.
| #define RISCV_LOAD_STORE_OPT_NAME "RISC-V Load / Store Optimizer" |
Definition at line 43 of file RISCVLoadStoreOptimizer.cpp.
Referenced by INITIALIZE_PASS().
| INITIALIZE_PASS | ( | RISCVLoadStoreOptLegacy | , |
| DEBUG_TYPE | , | ||
| RISCV_LOAD_STORE_OPT_NAME | , | ||
| false | , | ||
| false | ) |
Definition at line 117 of file RISCVLoadStoreOptimizer.cpp.
References llvm::dbgs(), DEBUG_TYPE, E(), LLVM_DEBUG, MBB, MBBI, MRI, RISCV_LOAD_STORE_OPT_NAME, TII, and TRI.
|
static |
Definition at line 193 of file RISCVLoadStoreOptimizer.cpp.
References llvm::MachineMemOperand::getAlign(), and MI.
|
static |
Definition at line 561 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" | ) |