|
LLVM 24.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 &AM) |
| LLVM_ABI PreservedAnalyses | runImpl (Function &F, UniformityInfo &UI) |
| 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 |
| UniformityInfo * | UA = nullptr |
Static Protected Attributes | |
| static const unsigned | GlobalReassociateLimit = 10 |
| static const unsigned | NumBinaryOps |
Additional Inherited Members | |
| Static Public Member Functions inherited from llvm::OptionalPassInfoMixin< ReassociatePass > | |
| static bool | isRequired () |
| Static Public Member Functions inherited from llvm::PassInfoMixin< ReassociatePass > | |
| static bool | isRequired () |
| Static Public Member Functions inherited from llvm::detail::InfoMixin< ReassociatePass > | |
| static StringRef | name () |
| Gets the name of the pass we are mixed into. | |
Reassociate commutative expressions.
Definition at line 75 of file Reassociate.h.
Definition at line 77 of file Reassociate.h.
| PreservedAnalyses ReassociatePass::run | ( | Function & | F, |
| FunctionAnalysisManager & | AM ) |
Definition at line 2673 of file Reassociate.cpp.
References F, llvm::AnalysisManager< IRUnitT, ExtraArgTs >::getResult(), and runImpl().
| PreservedAnalyses ReassociatePass::runImpl | ( | Function & | F, |
| UniformityInfo & | UI ) |
Definition at line 2681 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, UA, and ValueRankMap.
Definition at line 86 of file Reassociate.h.
|
protected |
Definition at line 98 of file Reassociate.h.
Referenced by runImpl().
Definition at line 87 of file Reassociate.h.
|
protected |
Definition at line 96 of file Reassociate.h.
Referenced by runImpl().
|
protected |
Definition at line 81 of file Reassociate.h.
Referenced by runImpl().
|
protected |
Definition at line 83 of file Reassociate.h.
Referenced by runImpl().
|
protected |
Definition at line 99 of file Reassociate.h.
Referenced by runImpl().
|
protected |
Definition at line 82 of file Reassociate.h.
Referenced by runImpl().