|
LLVM 24.0.0git
|
#include "RISCV.h"#include "RISCVInstrInfo.h"#include "RISCVMachineFunctionInfo.h"#include "llvm/CodeGen/MachineFunctionAnalysisManager.h"#include "llvm/CodeGen/MachineFunctionPass.h"#include "llvm/CodeGen/MachineInstr.h"#include "llvm/CodeGen/MachinePassManager.h"#include "llvm/IR/Analysis.h"#include "llvm/Pass.h"Go to the source code of this file.
Macros | |
| #define | RISCV_PUSH_POP_OPT_NAME "RISC-V Zcmp Push/Pop optimization pass" |
Functions | |
| INITIALIZE_PASS (RISCVPushPopOptLegacy, "riscv-push-pop-opt", RISCV_PUSH_POP_OPT_NAME, false, false) static bool isPop(unsigned Opcode) | |
| static unsigned | getPopRetOpcode (unsigned PopOpcode, bool IsReturnZero) |
| #define RISCV_PUSH_POP_OPT_NAME "RISC-V Zcmp Push/Pop optimization pass" |
Definition at line 26 of file RISCVPushPopOptimizer.cpp.
Referenced by INITIALIZE_PASS().
Definition at line 76 of file RISCVPushPopOptimizer.cpp.
References assert(), isPop(), and llvm_unreachable.
| INITIALIZE_PASS | ( | RISCVPushPopOptLegacy | , |
| "riscv-push-pop-opt" | , | ||
| RISCV_PUSH_POP_OPT_NAME | , | ||
| false | , | ||
| false | ) |
Definition at line 63 of file RISCVPushPopOptimizer.cpp.
References isPop(), and RISCV_PUSH_POP_OPT_NAME.