LLVM 24.0.0git
llvm::GVNPass Class Reference

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

Inheritance diagram for llvm::GVNPass:
[legend]

Public Member Functions

LLVM_ABI GVNPass (GVNOptions Options={})
LLVM_ABI ~GVNPass ()
LLVM_ABI GVNPass (GVNPass &&) noexcept
LLVM_ABI GVNPass & operator= (GVNPass &&) noexcept
 GVNPass (const GVNPass &)=delete
GVNPass & operator= (const GVNPass &)=delete
LLVM_ABI PreservedAnalyses run (Function &F, FunctionAnalysisManager &AM)
 Run the pass over the function.
LLVM_ABI void printPipeline (raw_ostream &OS, function_ref< StringRef(StringRef)> MapClassName2PassName)
Public Member Functions inherited from llvm::detail::PassInfoMixin< GVNPass >
void printPipeline (raw_ostream &OS, function_ref< StringRef(StringRef)> MapClassName2PassName)

Additional Inherited Members

Static Public Member Functions inherited from llvm::OptionalPassInfoMixin< GVNPass >
static bool isRequired ()
Static Public Member Functions inherited from llvm::detail::InfoMixin< GVNPass >
static StringRef name ()
 Gets the name of the pass we are mixed into.

Detailed Description

Definition at line 80 of file GVN.h.

Constructor & Destructor Documentation

◆ GVNPass() [1/3]

GVNPass::GVNPass ( GVNOptions Options = {})

Definition at line 1159 of file GVN.cpp.

References Options.

Referenced by GVNPass(), GVNPass(), operator=(), operator=(), and run().

◆ ~GVNPass()

GVNPass::~GVNPass ( )
default

References LLVM_ABI.

◆ GVNPass() [2/3]

GVNPass::GVNPass ( GVNPass && )
defaultnoexcept

References GVNPass(), and LLVM_ABI.

◆ GVNPass() [3/3]

llvm::GVNPass::GVNPass ( const GVNPass & )
delete

References const, and GVNPass().

Member Function Documentation

◆ operator=() [1/2]

GVNPass & llvm::GVNPass::operator= ( const GVNPass & )
delete

◆ operator=() [2/2]

GVNPass & GVNPass::operator= ( GVNPass && )
defaultnoexcept

References GVNPass(), and LLVM_ABI.

◆ printPipeline()

void GVNPass::printPipeline ( raw_ostream & OS,
function_ref< StringRef(StringRef)> MapClassName2PassName )

Definition at line 1207 of file GVN.cpp.

References Options, and printPipeline().

Referenced by operator=(), and printPipeline().

◆ run()

PreservedAnalyses GVNPass::run ( Function & F,
FunctionAnalysisManager & AM )

Run the pass over the function.

Definition at line 1168 of file GVN.cpp.

References llvm::PreservedAnalyses::all(), Changed, F, GVNPass(), if(), llvm::PreservedAnalyses::preserve(), and run().

Referenced by operator=(), and run().


The documentation for this class was generated from the following files: