LLVM API Documentation
#include <ScalarEvolutionExpressions.h>
Public Types | |
| typedef SmallVectorImpl< const SCEV * >::const_iterator | op_iterator |
Public Member Functions | |
| unsigned | getNumOperands () const |
| const SCEV * | getOperand (unsigned i) const |
| const SmallVectorImpl< const SCEV * > & | getOperands () const |
| op_iterator | op_begin () const |
| op_iterator | op_end () const |
| virtual bool | isLoopInvariant (const Loop *L) const |
| virtual bool | hasComputableLoopEvolution (const Loop *L) const |
| virtual bool | hasOperand (const SCEV *O) const |
| bool | dominates (BasicBlock *BB, DominatorTree *DT) const |
| virtual const Type * | getType () const |
Static Public Member Functions | |
| static bool | classof (const SCEVNAryExpr *S) |
| Methods for support type inquiry through isa, cast, and dyn_cast:. | |
| static bool | classof (const SCEV *S) |
Protected Member Functions | |
| SCEVNAryExpr (const FoldingSetNodeID &ID, enum SCEVTypes T, const SmallVectorImpl< const SCEV * > &ops) | |
Protected Attributes | |
| SmallVector< const SCEV *, 8 > | Operands |
Definition at line 175 of file ScalarEvolutionExpressions.h.
| typedef SmallVectorImpl<const SCEV *>::const_iterator llvm::SCEVNAryExpr::op_iterator |
Definition at line 193 of file ScalarEvolutionExpressions.h.
| llvm::SCEVNAryExpr::SCEVNAryExpr | ( | const FoldingSetNodeID & | ID, | |
| enum SCEVTypes | T, | |||
| const SmallVectorImpl< const SCEV * > & | ops | |||
| ) | [inline, protected] |
Definition at line 179 of file ScalarEvolutionExpressions.h.
| unsigned llvm::SCEVNAryExpr::getNumOperands | ( | ) | const [inline] |
Definition at line 184 of file ScalarEvolutionExpressions.h.
References Operands.
Referenced by CollectAddOperandsWithScales(), dominates(), llvm::SCEVAddRecExpr::evaluateAtIteration(), llvm::ScalarEvolution::getAddExpr(), llvm::ScalarEvolution::getMulExpr(), llvm::SCEVAddRecExpr::getNumIterationsInRange(), hasComputableLoopEvolution(), hasOperand(), llvm::SCEVAddRecExpr::isAffine(), isLoopInvariant(), llvm::SCEVAddRecExpr::isLoopInvariant(), llvm::SCEVAddRecExpr::isQuadratic(), and SolveQuadraticEquation().
Definition at line 185 of file ScalarEvolutionExpressions.h.
References Operands.
Referenced by CollectAddOperandsWithScales(), dominates(), llvm::SCEVAddRecExpr::evaluateAtIteration(), llvm::ScalarEvolution::getAddExpr(), llvm::ScalarEvolution::getMulExpr(), llvm::SCEVAddRecExpr::getNumIterationsInRange(), llvm::SCEVAddRecExpr::getStepRecurrence(), getType(), hasComputableLoopEvolution(), hasOperand(), isLoopInvariant(), llvm::SCEVAddRecExpr::isLoopInvariant(), isNonConstantNegative(), and SolveQuadraticEquation().
| const SmallVectorImpl<const SCEV *>& llvm::SCEVNAryExpr::getOperands | ( | ) | const [inline] |
| op_iterator llvm::SCEVNAryExpr::op_begin | ( | ) | const [inline] |
Definition at line 194 of file ScalarEvolutionExpressions.h.
References Operands.
Referenced by CollectAddOperandsWithScales(), llvm::ScalarEvolution::getAddExpr(), llvm::SCEVAddRecExpr::getNumIterationsInRange(), and llvm::SCEVAddRecExpr::getStepRecurrence().
| op_iterator llvm::SCEVNAryExpr::op_end | ( | ) | const [inline] |
Definition at line 195 of file ScalarEvolutionExpressions.h.
References Operands.
Referenced by CollectAddOperandsWithScales(), llvm::ScalarEvolution::getAddExpr(), llvm::SCEVAddRecExpr::getNumIterationsInRange(), and llvm::SCEVAddRecExpr::getStepRecurrence().
isLoopInvariant - Return true if the value of this SCEV is unchanging in the specified loop.
Implements llvm::SCEV.
Reimplemented in llvm::SCEVAddRecExpr.
Definition at line 197 of file ScalarEvolutionExpressions.h.
References getNumOperands(), and getOperand().
Referenced by hasComputableLoopEvolution().
| virtual bool llvm::SCEVNAryExpr::hasComputableLoopEvolution | ( | const Loop * | L | ) | const [inline, virtual] |
hasComputableLoopEvolution - Return true if this SCEV changes value in a known way in the specified loop. This property being true implies that the value is variant in the loop AND that we can emit an expression to compute the value of the expression at any particular loop iteration.
Implements llvm::SCEV.
Reimplemented in llvm::SCEVAddRecExpr.
Definition at line 206 of file ScalarEvolutionExpressions.h.
References getNumOperands(), getOperand(), and isLoopInvariant().
hasOperand - Test whether this SCEV has Op as a direct or indirect operand.
Implements llvm::SCEV.
Definition at line 218 of file ScalarEvolutionExpressions.h.
References getNumOperands(), and getOperand().
| bool SCEVNAryExpr::dominates | ( | BasicBlock * | BB, | |
| DominatorTree * | DT | |||
| ) | const [virtual] |
dominates - Return true if elements that makes up this SCEV dominates the specified basic block.
Implements llvm::SCEV.
Definition at line 259 of file ScalarEvolution.cpp.
References getNumOperands(), and getOperand().
| virtual const Type* llvm::SCEVNAryExpr::getType | ( | ) | const [inline, virtual] |
getType - Return the LLVM type of this SCEV expression.
Implements llvm::SCEV.
Definition at line 227 of file ScalarEvolutionExpressions.h.
References getOperand(), and llvm::SCEV::getType().
Referenced by llvm::SCEVAddRecExpr::evaluateAtIteration(), and llvm::SCEVAddRecExpr::getNumIterationsInRange().
| static bool llvm::SCEVNAryExpr::classof | ( | const SCEVNAryExpr * | S | ) | [inline, static] |
Methods for support type inquiry through isa, cast, and dyn_cast:.
Definition at line 230 of file ScalarEvolutionExpressions.h.
Reimplemented in llvm::SCEVCommutativeExpr, llvm::SCEVAddExpr, llvm::SCEVMulExpr, llvm::SCEVAddRecExpr, llvm::SCEVSMaxExpr, and llvm::SCEVUMaxExpr.
Definition at line 231 of file ScalarEvolutionExpressions.h.
References llvm::SCEV::getSCEVType(), llvm::scAddExpr, llvm::scAddRecExpr, llvm::scMulExpr, llvm::scSMaxExpr, and llvm::scUMaxExpr.
SmallVector<const SCEV *, 8> llvm::SCEVNAryExpr::Operands [protected] |
Definition at line 177 of file ScalarEvolutionExpressions.h.
Referenced by llvm::SCEVAddRecExpr::getNumIterationsInRange(), getNumOperands(), getOperand(), getOperands(), llvm::SCEVAddRecExpr::getStart(), op_begin(), op_end(), llvm::SCEVAddRecExpr::print(), and llvm::SCEVCommutativeExpr::print().