LLVM 22.0.0git
|
A set of parameters to control various transforms performed by GVN pass. More...
#include "llvm/Transforms/Scalar/GVN.h"
Public Member Functions | |
GVNOptions ()=default | |
GVNOptions & | setPRE (bool PRE) |
Enables or disables PRE in GVN. | |
GVNOptions & | setLoadPRE (bool LoadPRE) |
Enables or disables PRE of loads in GVN. | |
GVNOptions & | setLoadInLoopPRE (bool LoadInLoopPRE) |
GVNOptions & | setLoadPRESplitBackedge (bool LoadPRESplitBackedge) |
Enables or disables PRE of loads in GVN. | |
GVNOptions & | setMemDep (bool MemDep) |
Enables or disables use of MemDepAnalysis. | |
GVNOptions & | setMemorySSA (bool MemSSA) |
Enables or disables use of MemorySSA. |
Public Attributes | |
std::optional< bool > | AllowPRE |
std::optional< bool > | AllowLoadPRE |
std::optional< bool > | AllowLoadInLoopPRE |
std::optional< bool > | AllowLoadPRESplitBackedge |
std::optional< bool > | AllowMemDep |
std::optional< bool > | AllowMemorySSA |
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.
|
default |
Referenced by setLoadInLoopPRE(), setLoadPRE(), setLoadPRESplitBackedge(), setMemDep(), setMemorySSA(), and setPRE().
|
inline |
Definition at line 98 of file GVN.h.
References AllowLoadInLoopPRE, and GVNOptions().
|
inline |
Enables or disables PRE of loads in GVN.
Definition at line 93 of file GVN.h.
References AllowLoadPRE, and GVNOptions().
|
inline |
Enables or disables PRE of loads in GVN.
Definition at line 104 of file GVN.h.
References AllowLoadPRESplitBackedge, and GVNOptions().
|
inline |
Enables or disables use of MemDepAnalysis.
Definition at line 110 of file GVN.h.
References AllowMemDep, and GVNOptions().
|
inline |
Enables or disables use of MemorySSA.
Definition at line 116 of file GVN.h.
References AllowMemorySSA, and GVNOptions().
|
inline |
Enables or disables PRE in GVN.
Definition at line 87 of file GVN.h.
References AllowPRE, and GVNOptions().
std::optional<bool> llvm::GVNOptions::AllowLoadInLoopPRE |
Definition at line 79 of file GVN.h.
Referenced by setLoadInLoopPRE().
std::optional<bool> llvm::GVNOptions::AllowLoadPRE |
Definition at line 78 of file GVN.h.
Referenced by setLoadPRE().
std::optional<bool> llvm::GVNOptions::AllowLoadPRESplitBackedge |
Definition at line 80 of file GVN.h.
Referenced by setLoadPRESplitBackedge().
std::optional<bool> llvm::GVNOptions::AllowMemDep |
Definition at line 81 of file GVN.h.
Referenced by setMemDep().
std::optional<bool> llvm::GVNOptions::AllowMemorySSA |
Definition at line 82 of file GVN.h.
Referenced by setMemorySSA().
std::optional<bool> llvm::GVNOptions::AllowPRE |