|
LLVM 24.0.0git
|
#include "Target/RISCV/RISCVExpandPseudoBase.h"
Public Member Functions | |
| bool | run (MachineFunction &MF) |
| Expand a subset of pseudos in the current function. | |
| virtual | ~RISCVExpandPseudoImplBase ()=default |
Protected Member Functions | |
| virtual bool | expandMI (MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, MachineBasicBlock::iterator &NextMBBI) const |
| This method should be implemented to expand the instruction at *MBBI. | |
Protected Attributes | |
| const RISCVSubtarget * | STI |
| The Subtarget for the current function. | |
| const RISCVInstrInfo * | TII |
| The derived TargetInstrInfo for the current function. | |
Definition at line 26 of file RISCVExpandPseudoBase.h.
|
virtualdefault |
|
inlineprotectedvirtual |
This method should be implemented to expand the instruction at *MBBI.
The iteration over the current basic block will continue at NextMBBI. This method should return true if it replaced the instruction at *MBBI.
Definition at line 48 of file RISCVExpandPseudoBase.h.
References MBB, MBBI, and llvm::reportFatalInternalError().
| bool RISCVExpandPseudoImplBase::run | ( | MachineFunction & | MF | ) |
Expand a subset of pseudos in the current function.
Returns whether the function was modified.
This will assert if expansion increased the estimated size of the function.
Definition at line 28 of file RISCVExpandPseudoBase.cpp.
References assert(), getFuncSizeFromInsts(), llvm::MachineFunction::getSubtarget(), MBB, Modified, STI, and TII.
|
protected |
The Subtarget for the current function.
Definition at line 39 of file RISCVExpandPseudoBase.h.
Referenced by run().
|
protected |
The derived TargetInstrInfo for the current function.
Definition at line 42 of file RISCVExpandPseudoBase.h.
Referenced by run().