LLVM  14.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"

Collaboration diagram for llvm::GVNOptions:
Collaboration graph
[legend]

Public Member Functions

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

Public Attributes

Optional< bool > AllowPRE = None
 
Optional< bool > AllowLoadPRE = None
 
Optional< bool > AllowLoadInLoopPRE = None
 
Optional< bool > AllowLoadPRESplitBackedge = None
 
Optional< bool > AllowMemDep = None
 

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 75 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 96 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 91 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 102 of file GVN.h.

References AllowLoadPRESplitBackedge.

◆ setMemDep()

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

Enables or disables use of MemDepAnalysis.

Definition at line 108 of file GVN.h.

References AllowMemDep.

◆ setPRE()

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

Enables or disables PRE in GVN.

Definition at line 85 of file GVN.h.

References AllowPRE.

Member Data Documentation

◆ AllowLoadInLoopPRE

Optional<bool> llvm::GVNOptions::AllowLoadInLoopPRE = None

Definition at line 78 of file GVN.h.

Referenced by setLoadInLoopPRE().

◆ AllowLoadPRE

Optional<bool> llvm::GVNOptions::AllowLoadPRE = None

Definition at line 77 of file GVN.h.

Referenced by setLoadPRE().

◆ AllowLoadPRESplitBackedge

Optional<bool> llvm::GVNOptions::AllowLoadPRESplitBackedge = None

Definition at line 79 of file GVN.h.

Referenced by setLoadPRESplitBackedge().

◆ AllowMemDep

Optional<bool> llvm::GVNOptions::AllowMemDep = None

Definition at line 80 of file GVN.h.

Referenced by setMemDep().

◆ AllowPRE

Optional<bool> llvm::GVNOptions::AllowPRE = None

Definition at line 76 of file GVN.h.

Referenced by setPRE().


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