LLVM 18.0.0git
|
Reassociate commutative expressions. More...
#include "llvm/Transforms/Scalar/Reassociate.h"
Classes | |
struct | PairMapValue |
Public Types | |
using | OrderedSet = SetVector< AssertingVH< Instruction >, std::deque< AssertingVH< Instruction > > > |
Public Member Functions | |
PreservedAnalyses | run (Function &F, FunctionAnalysisManager &) |
![]() | |
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 StringRef | name () |
Gets the name of the pass we are mixed into. | |
Reassociate commutative expressions.
Definition at line 71 of file Reassociate.h.
using llvm::ReassociatePass::OrderedSet = SetVector<AssertingVH<Instruction>, std::deque<AssertingVH<Instruction> >> |
Definition at line 73 of file Reassociate.h.
PreservedAnalyses ReassociatePass::run | ( | Function & | F, |
FunctionAnalysisManager & | |||
) |
Definition at line 2609 of file Reassociate.cpp.
References llvm::PreservedAnalyses::all(), assert(), llvm::SetVector< T, Vector, Set, N >::empty(), F, I, llvm::isInstructionTriviallyDead(), llvm::SetVector< T, Vector, Set, N >::pop_back_val(), and llvm::PreservedAnalyses::preserveSet().
Definition at line 82 of file Reassociate.h.
|
protected |
Definition at line 94 of file Reassociate.h.
Definition at line 83 of file Reassociate.h.
|
protected |
Definition at line 92 of file Reassociate.h.
|
protected |
Definition at line 77 of file Reassociate.h.
|
protected |
Definition at line 79 of file Reassociate.h.
|
protected |
Definition at line 78 of file Reassociate.h.