LLVM: lib/Target/RISCV/RISCVPushPopOptimizer.cpp File Reference (original) (raw)
#include "[RISCVInstrInfo.h](RISCVInstrInfo%5F8h%5Fsource.html)"#include "[RISCVMachineFunctionInfo.h](RISCVMachineFunctionInfo%5F8h%5Fsource.html)"#include "[llvm/CodeGen/MachineInstr.h](MachineInstr%5F8h%5Fsource.html)"
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 (RISCVPushPopOpt, "riscv-push-pop-opt", RISCV_PUSH_POP_OPT_NAME, false, false) static bool isPop(unsigned Opcode) | |
| static unsigned | getPopRetOpcode (unsigned PopOpcode, bool IsReturnZero) |
Macro Definition Documentation
◆ RISCV_PUSH_POP_OPT_NAME
#define RISCV_PUSH_POP_OPT_NAME "RISC-V Zcmp Push/Pop optimization pass"
Definition at line 20 of file RISCVPushPopOptimizer.cpp.
Referenced by INITIALIZE_PASS().
Function Documentation
◆ getPopRetOpcode()
| unsigned getPopRetOpcode ( unsigned PopOpcode, bool IsReturnZero ) | static |
|---|
Definition at line 59 of file RISCVPushPopOptimizer.cpp.
References assert(), isPop(), and llvm_unreachable.
◆ INITIALIZE_PASS()
| INITIALIZE_PASS | ( | RISCVPushPopOpt | , |
|---|---|---|---|
| "riscv-push-pop-opt" | , | ||
| RISCV_PUSH_POP_OPT_NAME | , | ||
| false | , | ||
| false | ) |
Definition at line 46 of file RISCVPushPopOptimizer.cpp.
References isPop(), and RISCV_PUSH_POP_OPT_NAME.