|
LLVM 24.0.0git
|
#include "RISCV.h"#include "RISCVSubtarget.h"#include "llvm/ADT/Statistic.h"#include "llvm/CodeGen/LiveDebugVariables.h"#include "llvm/CodeGen/LiveIntervals.h"#include "llvm/CodeGen/LiveStacks.h"#include "llvm/CodeGen/MachineFunctionAnalysisManager.h"#include "llvm/CodeGen/MachineFunctionPass.h"#include "llvm/CodeGen/MachinePassManager.h"#include "llvm/CodeGen/SlotIndexes.h"#include "llvm/IR/Analysis.h"Go to the source code of this file.
Macros | |
| #define | DEBUG_TYPE "riscv-dead-defs" |
| #define | RISCV_DEAD_REG_DEF_NAME "RISC-V Dead register definitions" |
Functions | |
| STATISTIC (NumDeadDefsReplaced, "Number of dead definitions replaced") | |
| INITIALIZE_PASS (RISCVDeadRegisterDefinitionsLegacy, DEBUG_TYPE, RISCV_DEAD_REG_DEF_NAME, false, false) FunctionPass *llvm | |
| static bool | runDeadRegisterDefinitions (MachineFunction &MF, function_ref< LiveIntervals &()> GetLIS) |
| #define DEBUG_TYPE "riscv-dead-defs" |
Definition at line 26 of file RISCVDeadRegisterDefinitions.cpp.
| #define RISCV_DEAD_REG_DEF_NAME "RISC-V Dead register definitions" |
Definition at line 27 of file RISCVDeadRegisterDefinitions.cpp.
Referenced by INITIALIZE_PASS().
| INITIALIZE_PASS | ( | RISCVDeadRegisterDefinitionsLegacy | , |
| DEBUG_TYPE | , | ||
| RISCV_DEAD_REG_DEF_NAME | , | ||
| false | , | ||
| false | ) |
Definition at line 53 of file RISCVDeadRegisterDefinitions.cpp.
References llvm::createRISCVDeadRegisterDefinitionsLegacyPass(), DEBUG_TYPE, and RISCV_DEAD_REG_DEF_NAME.
|
static |
Definition at line 60 of file RISCVDeadRegisterDefinitions.cpp.
References assert(), llvm::MCRegisterClass::contains(), llvm::dbgs(), E(), llvm::TargetSubtargetInfo::getInstrInfo(), llvm::MachineOperand::getReg(), llvm::MachineFunction::getSubtarget(), llvm::LiveIntervals::hasInterval(), I, llvm::MachineOperand::isDead(), llvm::MachineOperand::isDef(), llvm::MachineOperand::isEarlyClobber(), llvm::MachineOperand::isReg(), LLVM_DEBUG, MBB, MI, Reg, llvm::LiveIntervals::removeInterval(), llvm::MachineOperand::setReg(), and TII.
Referenced by llvm::RISCVDeadRegisterDefinitionsPass::run().
| STATISTIC | ( | NumDeadDefsReplaced | , |
| "Number of dead definitions replaced" | ) |