LLVM: lib/Target/ARC/ARCOptAddrMode.cpp File Reference (original) (raw)
This pass folds LD/ST + ADD pairs into Pre/Post-increment form of load/store instructions. More...
Go to the source code of this file.
| Namespaces | |
|---|---|
| namespace | llvm |
| This is an optimization pass for GlobalISel generic memory operations. |
| Macros | |
|---|---|
| #define | GET_INSTRMAP_INFO |
| #define | OPTADDRMODE_DESC "ARC load/store address mode" |
| #define | OPTADDRMODE_NAME "arc-addr-mode" |
| #define | DEBUG_TYPE "arc-addr-mode" |
| #define | DUMP_BEFORE() |
| #define | DUMP_AFTER() |
| #define | VIEW_BEFORE() |
| #define | VIEW_AFTER() |
| #define | KILL_PASS() |
| Functions | |
|---|---|
| FunctionPass * | llvm::createARCOptAddrMode () |
| void | llvm::initializeARCOptAddrModePass (PassRegistry &) |
| INITIALIZE_PASS_BEGIN (ARCOptAddrMode, OPTADDRMODE_NAME, OPTADDRMODE_DESC, false, false) INITIALIZE_PASS_END(ARCOptAddrMode | |
| static false bool | isValidLoadStoreOffset (int64_t Off) |
| static bool | isValidIncrementOffset (int64_t Off) |
| static bool | isAddConstantOp (const MachineInstr &MI, int64_t &Amount) |
| static bool | dominatesAllUsesOf (const MachineInstr *MI, unsigned VReg, MachineDominatorTree *MDT, MachineRegisterInfo *MRI) |
| static bool | isLoadStoreThatCanHandleDisplacement (const TargetInstrInfo *TII, const MachineInstr &MI, int64_t Disp) |
This pass folds LD/ST + ADD pairs into Pre/Post-increment form of load/store instructions.
Definition in file ARCOptAddrMode.cpp.
◆ DEBUG_TYPE
#define DEBUG_TYPE "arc-addr-mode"
◆ DUMP_AFTER
Value:
static cl::opt< unsigned > ArcKillAddrMode("arc-kill-addr-mode", cl::init(0), cl::ReallyHidden)
Definition at line 42 of file ARCOptAddrMode.cpp.
◆ DUMP_BEFORE
◆ GET_INSTRMAP_INFO
#define GET_INSTRMAP_INFO
◆ KILL_PASS
◆ OPTADDRMODE_DESC
#define OPTADDRMODE_DESC "ARC load/store address mode"
◆ OPTADDRMODE_NAME
#define OPTADDRMODE_NAME "arc-addr-mode"
◆ VIEW_AFTER
◆ VIEW_BEFORE
◆ dominatesAllUsesOf()
◆ INITIALIZE_PASS_BEGIN()
| INITIALIZE_PASS_BEGIN | ( | ARCOptAddrMode | , |
|---|---|---|---|
| OPTADDRMODE_NAME | , | ||
| OPTADDRMODE_DESC | , | ||
| false | , | ||
| false | ) |
◆ isAddConstantOp()
◆ isLoadStoreThatCanHandleDisplacement()
◆ isValidIncrementOffset()
| bool isValidIncrementOffset ( int64_t Off) | static |
|---|
◆ isValidLoadStoreOffset()
| false bool isValidLoadStoreOffset ( int64_t Off) | static |
|---|