class GISelCSEAnalysisWrapper
Declaration
class GISelCSEAnalysisWrapper { /* full declaration omitted */ };
Description
Simple wrapper that does the following. 1) Lazily evaluate the MachineFunction to compute CSEable instructions. 2) Allows configuration of which instructions are CSEd through CSEConfig object. Provides a method called get which takes a CSEConfig object.
Declared at: llvm/include/llvm/CodeGen/GlobalISel/CSEInfo.h:202
Member Variables
- private llvm::GISelCSEInfo Info
- private llvm::MachineFunction* MF = nullptr
- private bool AlreadyComputed = false
Method Overview
- public llvm::GISelCSEInfo & get(std::unique_ptr<CSEConfigBase> CSEOpt, bool ReCompute = false)
- public void releaseMemory()
- public void setComputed(bool Computed)
- public void setMF(llvm::MachineFunction & MFunc)
Methods
¶llvm::GISelCSEInfo& get(
std::unique_ptr<CSEConfigBase> CSEOpt,
bool ReCompute = false)
llvm::GISelCSEInfo& get(
std::unique_ptr<CSEConfigBase> CSEOpt,
bool ReCompute = false)
Description
Takes a CSEConfigBase object that defines what opcodes get CSEd. If CSEConfig is already set, and the CSE Analysis has been preserved, it will not use the new CSEOpt(use Recompute to force using the new CSEOpt).
Declared at: llvm/include/llvm/CodeGen/GlobalISel/CSEInfo.h:212
Parameters
- std::unique_ptr<CSEConfigBase> CSEOpt
- bool ReCompute = false
¶void releaseMemory()
void releaseMemory()
Declared at: llvm/include/llvm/CodeGen/GlobalISel/CSEInfo.h:216
¶void setComputed(bool Computed)
void setComputed(bool Computed)
Declared at: llvm/include/llvm/CodeGen/GlobalISel/CSEInfo.h:215
Parameters
- bool Computed
¶void setMF(llvm::MachineFunction& MFunc)
void setMF(llvm::MachineFunction& MFunc)
Declared at: llvm/include/llvm/CodeGen/GlobalISel/CSEInfo.h:214
Parameters
- llvm::MachineFunction& MFunc