LLVM 22.0.0git
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.
GVNOptionssetMemorySSA (bool MemSSA)
 Enables or disables use of MemorySSA.

Public Attributes

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

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 76 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 98 of file GVN.h.

References AllowLoadInLoopPRE, and GVNOptions().

◆ setLoadPRE()

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

Enables or disables PRE of loads in GVN.

Definition at line 93 of file GVN.h.

References AllowLoadPRE, and GVNOptions().

◆ setLoadPRESplitBackedge()

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

Enables or disables PRE of loads in GVN.

Definition at line 104 of file GVN.h.

References AllowLoadPRESplitBackedge, and GVNOptions().

◆ setMemDep()

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

Enables or disables use of MemDepAnalysis.

Definition at line 110 of file GVN.h.

References AllowMemDep, and GVNOptions().

◆ setMemorySSA()

GVNOptions & llvm::GVNOptions::setMemorySSA ( bool MemSSA)
inline

Enables or disables use of MemorySSA.

Definition at line 116 of file GVN.h.

References AllowMemorySSA, and GVNOptions().

◆ setPRE()

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

Enables or disables PRE in GVN.

Definition at line 87 of file GVN.h.

References AllowPRE, and GVNOptions().

Member Data Documentation

◆ AllowLoadInLoopPRE

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

Definition at line 79 of file GVN.h.

Referenced by setLoadInLoopPRE().

◆ AllowLoadPRE

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

Definition at line 78 of file GVN.h.

Referenced by setLoadPRE().

◆ AllowLoadPRESplitBackedge

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

Definition at line 80 of file GVN.h.

Referenced by setLoadPRESplitBackedge().

◆ AllowMemDep

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

Definition at line 81 of file GVN.h.

Referenced by setMemDep().

◆ AllowMemorySSA

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

Definition at line 82 of file GVN.h.

Referenced by setMemorySSA().

◆ AllowPRE

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

Definition at line 77 of file GVN.h.

Referenced by setPRE().


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