LLVM 19.0.0git
Classes | Public Types | Public Member Functions | Protected Attributes | Static Protected Attributes | List of all members
llvm::ReassociatePass Class Reference

Reassociate commutative expressions. More...

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

Inheritance diagram for llvm::ReassociatePass:
Inheritance graph
[legend]

Classes

struct  PairMapValue
 

Public Types

using OrderedSet = SetVector< AssertingVH< Instruction >, std::deque< AssertingVH< Instruction > > >
 

Public Member Functions

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 71 of file Reassociate.h.

Member Typedef Documentation

◆ OrderedSet

Definition at line 73 of file Reassociate.h.

Member Function Documentation

◆ run()

PreservedAnalyses ReassociatePass::run ( Function F,
FunctionAnalysisManager  
)

Member Data Documentation

◆ GlobalReassociateLimit

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

Definition at line 82 of file Reassociate.h.

◆ MadeChange

bool llvm::ReassociatePass::MadeChange
protected

Definition at line 94 of file Reassociate.h.

◆ NumBinaryOps

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

Definition at line 83 of file Reassociate.h.

◆ PairMap

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

Definition at line 92 of file Reassociate.h.

◆ RankMap

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

Definition at line 77 of file Reassociate.h.

◆ RedoInsts

OrderedSet llvm::ReassociatePass::RedoInsts
protected

Definition at line 79 of file Reassociate.h.

◆ ValueRankMap

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

Definition at line 78 of file Reassociate.h.


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