|
LLVM 24.0.0git
|
#include "RISCV.h"#include "RISCVSubtarget.h"#include "llvm/CodeGen/GlobalISel/CSEInfo.h"#include "llvm/CodeGen/GlobalISel/Combiner.h"#include "llvm/CodeGen/GlobalISel/CombinerHelper.h"#include "llvm/CodeGen/GlobalISel/CombinerInfo.h"#include "llvm/CodeGen/GlobalISel/GIMatchTableExecutorImpl.h"#include "llvm/CodeGen/GlobalISel/GISelValueTracking.h"#include "llvm/CodeGen/GlobalISel/MachineIRBuilder.h"#include "llvm/CodeGen/MachineDominators.h"#include "llvm/CodeGen/MachineFunction.h"#include "llvm/CodeGen/MachineFunctionAnalysisManager.h"#include "llvm/CodeGen/MachineFunctionPass.h"#include "llvm/CodeGen/MachinePassManager.h"#include "llvm/CodeGen/TargetPassConfig.h"#include "llvm/IR/Analysis.h"#include "llvm/Support/ErrorHandling.h"#include "RISCVGenPreLegalizeGICombiner.inc"Go to the source code of this file.
Macros | |
| #define | GET_GICOMBINER_DEPS |
| #define | DEBUG_TYPE "riscv-prelegalizer-combiner" |
| #define | GET_GICOMBINER_TYPES |
| #define | GET_GICOMBINER_CLASS_MEMBERS |
| #define | GET_GICOMBINER_IMPL |
| #define | GET_GICOMBINER_CONSTRUCTOR_INITS |
Functions | |
| static bool | runVPreLegalizerCombiner (MachineFunction &MF, function_ref< bool()> ShouldSkip, function_ref< GISelCSEInfo *()> GetCSEInfo, function_ref< GISelValueTracking *()> GetVT, function_ref< MachineDominatorTree *()> GetMDT) |
| INITIALIZE_PASS_BEGIN (RISCVPreLegalizerCombinerLegacy, DEBUG_TYPE, "Combine RISC-V machine instrs before legalization", false, false) INITIALIZE_PASS_END(RISCVPreLegalizerCombinerLegacy | |
Variables | |
| DEBUG_TYPE | |
| Combine RISC V machine instrs before | legalization |
| Combine RISC V machine instrs before | false |
| #define DEBUG_TYPE "riscv-prelegalizer-combiner" |
Definition at line 36 of file RISCVPreLegalizerCombiner.cpp.
| #define GET_GICOMBINER_CLASS_MEMBERS |
Definition at line 65 of file RISCVPreLegalizerCombiner.cpp.
| #define GET_GICOMBINER_CONSTRUCTOR_INITS |
| #define GET_GICOMBINER_DEPS |
Definition at line 32 of file RISCVPreLegalizerCombiner.cpp.
| #define GET_GICOMBINER_IMPL |
Definition at line 70 of file RISCVPreLegalizerCombiner.cpp.
| #define GET_GICOMBINER_TYPES |
Definition at line 42 of file RISCVPreLegalizerCombiner.cpp.
| INITIALIZE_PASS_BEGIN | ( | RISCVPreLegalizerCombinerLegacy | , |
| DEBUG_TYPE | , | ||
| "Combine RISC-V machine instrs before legalization" | , | ||
| false | , | ||
| false | ) |
References DEBUG_TYPE, and INITIALIZE_PASS_DEPENDENCY.
|
static |
Definition at line 123 of file RISCVPreLegalizerCombiner.cpp.
References llvm::CombinerInfo::EnableFullDCE, F, llvm::MachineFunction::getFunction(), llvm::TargetMachine::getOptLevel(), llvm::MachineFunction::getProperties(), llvm::MachineFunction::getSubtarget(), llvm::MachineFunction::getTarget(), llvm::CombinerInfo::MaxIterations, llvm::None, llvm::CombinerInfo::ObserverLvl, llvm::reportFatalUsageError(), and llvm::CombinerInfo::SinglePass.
Referenced by llvm::RISCVPreLegalizerCombinerPass::run().
| DEBUG_TYPE |
Definition at line 164 of file RISCVPreLegalizerCombiner.cpp.
| Combine RISC V machine instrs before false |
Definition at line 165 of file RISCVPreLegalizerCombiner.cpp.
| Combine RISC V machine instrs before legalization |
Definition at line 165 of file RISCVPreLegalizerCombiner.cpp.