LLVM 20.0.0git
Public Member Functions | Public Attributes | List of all members
llvm::GVNOptions Struct Reference

A set of parameters to control various transforms performed by GVN pass. More...

#include "llvm/Transforms/Scalar/GVN.h"

Public Member Functions

 GVNOptions ()=default
 
GVNOptionssetPRE (bool PRE)
 Enables or disables PRE in GVN.
 
GVNOptionssetLoadPRE (bool LoadPRE)
 Enables or disables PRE of loads in GVN.
 
GVNOptionssetLoadInLoopPRE (bool LoadInLoopPRE)
 
GVNOptionssetLoadPRESplitBackedge (bool LoadPRESplitBackedge)
 Enables or disables PRE of loads in GVN.
 
GVNOptionssetMemDep (bool MemDep)
 Enables or disables use of MemDepAnalysis.
 

Public Attributes

std::optional< boolAllowPRE
 
std::optional< boolAllowLoadPRE
 
std::optional< boolAllowLoadInLoopPRE
 
std::optional< boolAllowLoadPRESplitBackedge
 
std::optional< boolAllowMemDep
 

Detailed Description

A set of parameters to control various transforms performed by GVN pass.

true - enabling the transformation. false - disabling the transformation. None - relying on a global default. Intended use is to create a default object, modify parameters with additional setters and then pass it to GVN.

Definition at line 74 of file GVN.h.

Constructor & Destructor Documentation

◆ GVNOptions()

llvm::GVNOptions::GVNOptions ( )
default

Member Function Documentation

◆ setLoadInLoopPRE()

GVNOptions & llvm::GVNOptions::setLoadInLoopPRE ( bool  LoadInLoopPRE)
inline

Definition at line 95 of file GVN.h.

References AllowLoadInLoopPRE.

◆ setLoadPRE()

GVNOptions & llvm::GVNOptions::setLoadPRE ( bool  LoadPRE)
inline

Enables or disables PRE of loads in GVN.

Definition at line 90 of file GVN.h.

References AllowLoadPRE.

◆ setLoadPRESplitBackedge()

GVNOptions & llvm::GVNOptions::setLoadPRESplitBackedge ( bool  LoadPRESplitBackedge)
inline

Enables or disables PRE of loads in GVN.

Definition at line 101 of file GVN.h.

References AllowLoadPRESplitBackedge.

◆ setMemDep()

GVNOptions & llvm::GVNOptions::setMemDep ( bool  MemDep)
inline

Enables or disables use of MemDepAnalysis.

Definition at line 107 of file GVN.h.

References AllowMemDep.

◆ setPRE()

GVNOptions & llvm::GVNOptions::setPRE ( bool  PRE)
inline

Enables or disables PRE in GVN.

Definition at line 84 of file GVN.h.

References AllowPRE.

Member Data Documentation

◆ AllowLoadInLoopPRE

std::optional<bool> llvm::GVNOptions::AllowLoadInLoopPRE

Definition at line 77 of file GVN.h.

Referenced by llvm::GVNPass::isLoadInLoopPREEnabled(), and setLoadInLoopPRE().

◆ AllowLoadPRE

std::optional<bool> llvm::GVNOptions::AllowLoadPRE

Definition at line 76 of file GVN.h.

Referenced by llvm::GVNPass::isLoadPREEnabled(), llvm::GVNPass::printPipeline(), and setLoadPRE().

◆ AllowLoadPRESplitBackedge

std::optional<bool> llvm::GVNOptions::AllowLoadPRESplitBackedge

◆ AllowMemDep

std::optional<bool> llvm::GVNOptions::AllowMemDep

Definition at line 79 of file GVN.h.

Referenced by llvm::GVNPass::isMemDepEnabled(), llvm::GVNPass::printPipeline(), and setMemDep().

◆ AllowPRE

std::optional<bool> llvm::GVNOptions::AllowPRE

Definition at line 75 of file GVN.h.

Referenced by llvm::GVNPass::isPREEnabled(), llvm::GVNPass::printPipeline(), and setPRE().


The documentation for this struct was generated from the following file: