LLVM 22.0.0git
llvm::ReassociatePass Class Reference

Reassociate commutative expressions. More...

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

Inheritance diagram for llvm::ReassociatePass:
[legend]

Classes

struct  PairMapValue

Public Types

using OrderedSet

Public Member Functions

LLVM_ABI PreservedAnalyses run (Function &F, FunctionAnalysisManager &)
Public Member Functions inherited from llvm::PassInfoMixin< ReassociatePass >
void printPipeline (raw_ostream &OS, function_ref< StringRef(StringRef)> MapClassName2PassName)

Protected Attributes

DenseMap< BasicBlock *, unsignedRankMap
DenseMap< AssertingVH< Value >, unsignedValueRankMap
OrderedSet RedoInsts
DenseMap< std::pair< Value *, Value * >, PairMapValuePairMap [NumBinaryOps]
bool MadeChange

Static Protected Attributes

static const unsigned GlobalReassociateLimit = 10
static const unsigned NumBinaryOps

Additional Inherited Members

Static Public Member Functions inherited from llvm::PassInfoMixin< ReassociatePass >
static StringRef name ()
 Gets the name of the pass we are mixed into.

Detailed Description

Reassociate commutative expressions.

Definition at line 74 of file Reassociate.h.

Member Typedef Documentation

◆ OrderedSet

Initial value:
SetVector<AssertingVH<Instruction>, std::deque<AssertingVH<Instruction>>>
A vector that has set insertion semantics.
Definition SetVector.h:59

Definition at line 76 of file Reassociate.h.

Member Function Documentation

◆ run()

Member Data Documentation

◆ GlobalReassociateLimit

const unsigned llvm::ReassociatePass::GlobalReassociateLimit = 10
staticprotected

Definition at line 85 of file Reassociate.h.

◆ MadeChange

bool llvm::ReassociatePass::MadeChange
protected

Definition at line 97 of file Reassociate.h.

Referenced by run().

◆ NumBinaryOps

const unsigned llvm::ReassociatePass::NumBinaryOps
staticprotected
Initial value:
=
Instruction::BinaryOpsEnd - Instruction::BinaryOpsBegin

Definition at line 86 of file Reassociate.h.

◆ PairMap

DenseMap<std::pair<Value *, Value *>, PairMapValue> llvm::ReassociatePass::PairMap[NumBinaryOps]
protected

Definition at line 95 of file Reassociate.h.

Referenced by run().

◆ RankMap

DenseMap<BasicBlock *, unsigned> llvm::ReassociatePass::RankMap
protected

Definition at line 80 of file Reassociate.h.

Referenced by run().

◆ RedoInsts

OrderedSet llvm::ReassociatePass::RedoInsts
protected

Definition at line 82 of file Reassociate.h.

Referenced by run().

◆ ValueRankMap

DenseMap<AssertingVH<Value>, unsigned> llvm::ReassociatePass::ValueRankMap
protected

Definition at line 81 of file Reassociate.h.

Referenced by run().


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