LLVM 20.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 &) |
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 85 of file Reassociate.h.
using llvm::ReassociatePass::OrderedSet = SetVector<AssertingVH<Instruction>, std::deque<AssertingVH<Instruction> >> |
Definition at line 87 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(), llvm::SetVector< T, Vector, Set, N >::pop_back_val(), and llvm::PreservedAnalyses::preserveSet().
Definition at line 96 of file Reassociate.h.
|
protected |
Definition at line 108 of file Reassociate.h.
Definition at line 97 of file Reassociate.h.
|
protected |
Definition at line 106 of file Reassociate.h.
|
protected |
Definition at line 91 of file Reassociate.h.
|
protected |
Definition at line 93 of file Reassociate.h.
|
protected |
Definition at line 92 of file Reassociate.h.