LLVM 20.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. | |
Public Attributes | |
std::optional< bool > | AllowPRE |
std::optional< bool > | AllowLoadPRE |
std::optional< bool > | AllowLoadInLoopPRE |
std::optional< bool > | AllowLoadPRESplitBackedge |
std::optional< bool > | AllowMemDep |
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 |
|
inline |
Definition at line 95 of file GVN.h.
References AllowLoadInLoopPRE.
|
inline |
Enables or disables PRE of loads in GVN.
Definition at line 90 of file GVN.h.
References AllowLoadPRE.
|
inline |
Enables or disables PRE of loads in GVN.
Definition at line 101 of file GVN.h.
References AllowLoadPRESplitBackedge.
|
inline |
Enables or disables use of MemDepAnalysis.
Definition at line 107 of file GVN.h.
References AllowMemDep.
|
inline |
std::optional<bool> llvm::GVNOptions::AllowLoadInLoopPRE |
Definition at line 77 of file GVN.h.
Referenced by llvm::GVNPass::isLoadInLoopPREEnabled(), and setLoadInLoopPRE().
std::optional<bool> llvm::GVNOptions::AllowLoadPRE |
Definition at line 76 of file GVN.h.
Referenced by llvm::GVNPass::isLoadPREEnabled(), llvm::GVNPass::printPipeline(), and setLoadPRE().
std::optional<bool> llvm::GVNOptions::AllowLoadPRESplitBackedge |
Definition at line 78 of file GVN.h.
Referenced by llvm::GVNPass::isLoadPRESplitBackedgeEnabled(), llvm::GVNPass::printPipeline(), and setLoadPRESplitBackedge().
std::optional<bool> llvm::GVNOptions::AllowMemDep |
Definition at line 79 of file GVN.h.
Referenced by llvm::GVNPass::isMemDepEnabled(), llvm::GVNPass::printPipeline(), and setMemDep().
std::optional<bool> llvm::GVNOptions::AllowPRE |
Definition at line 75 of file GVN.h.
Referenced by llvm::GVNPass::isPREEnabled(), llvm::GVNPass::printPipeline(), and setPRE().