class GVN

Declaration

class GVN : public PassInfoMixin { /* full declaration omitted */ };

Description

The core GVN pass object. FIXME: We should have a good summary of the GVN algorithm implemented by this particular pass here.

Declared at: llvm/include/llvm/Transforms/Scalar/GVN.h:68

Inherits from: PassInfoMixin

Method Overview

Methods

llvm::AliasAnalysis* getAliasAnalysis() const

Declared at: llvm/include/llvm/Transforms/Scalar/GVN.h:83

llvm::DominatorTree& getDominatorTree() const

Declared at: llvm/include/llvm/Transforms/Scalar/GVN.h:82

llvm::MemoryDependenceResults& getMemDep() const

Declared at: llvm/include/llvm/Transforms/Scalar/GVN.h:84

void markInstructionForDeletion(
    llvm::Instruction* I)

Description

This removes the specified instruction from our various maps and marks it for deletion.

Declared at: llvm/include/llvm/Transforms/Scalar/GVN.h:77

Parameters

llvm::Instruction* I

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

Description

Run the pass over the function.

Declared at: llvm/include/llvm/Transforms/Scalar/GVN.h:73

Parameters

llvm::Function& F
llvm::FunctionAnalysisManager& AM