|
LLVM 22.0.0git
|
Reassociate commutative expressions. More...
#include "llvm/Transforms/Scalar/Reassociate.h"
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 *, unsigned > | RankMap |
| DenseMap< AssertingVH< Value >, unsigned > | ValueRankMap |
| OrderedSet | RedoInsts |
| DenseMap< std::pair< Value *, Value * >, PairMapValue > | PairMap [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. | |
Reassociate commutative expressions.
Definition at line 74 of file Reassociate.h.
Definition at line 76 of file Reassociate.h.
| PreservedAnalyses ReassociatePass::run | ( | Function & | F, |
| FunctionAnalysisManager & | ) |
Definition at line 2546 of file Reassociate.cpp.
References llvm::PreservedAnalyses::all(), assert(), llvm::SetVector< T, Vector, Set, N >::empty(), F, I, II, llvm::isInstructionTriviallyDead(), MadeChange, PairMap, llvm::SetVector< T, Vector, Set, N >::pop_back_val(), llvm::PreservedAnalyses::preserveSet(), RankMap, RedoInsts, and ValueRankMap.
Definition at line 85 of file Reassociate.h.
|
protected |
Definition at line 97 of file Reassociate.h.
Referenced by run().
Definition at line 86 of file Reassociate.h.
|
protected |
Definition at line 95 of file Reassociate.h.
Referenced by run().
|
protected |
Definition at line 80 of file Reassociate.h.
Referenced by run().
|
protected |
Definition at line 82 of file Reassociate.h.
Referenced by run().
|
protected |
Definition at line 81 of file Reassociate.h.
Referenced by run().