LLVM API Documentation

llvm::SCEVNAryExpr Class Reference

#include <ScalarEvolutionExpressions.h>

Inheritance diagram for llvm::SCEVNAryExpr:
[legend]
Collaboration diagram for llvm::SCEVNAryExpr:
[legend]

List of all members.

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


Detailed Description

SCEVNAryExpr - This node is a base class providing common functionality for n'ary operators.

Definition at line 175 of file ScalarEvolutionExpressions.h.


Member Typedef Documentation

typedef SmallVectorImpl<const SCEV *>::const_iterator llvm::SCEVNAryExpr::op_iterator

Definition at line 193 of file ScalarEvolutionExpressions.h.


Constructor & Destructor Documentation

llvm::SCEVNAryExpr::SCEVNAryExpr ( const FoldingSetNodeID &  ID,
enum SCEVTypes  T,
const SmallVectorImpl< const SCEV * > &  ops 
) [inline, protected]

Definition at line 179 of file ScalarEvolutionExpressions.h.


Member Function Documentation

unsigned llvm::SCEVNAryExpr::getNumOperands (  )  const [inline]

const SCEV* llvm::SCEVNAryExpr::getOperand ( unsigned  i  )  const [inline]

const SmallVectorImpl<const SCEV *>& llvm::SCEVNAryExpr::getOperands (  )  const [inline]

Definition at line 190 of file ScalarEvolutionExpressions.h.

References Operands.

op_iterator llvm::SCEVNAryExpr::op_begin (  )  const [inline]

op_iterator llvm::SCEVNAryExpr::op_end (  )  const [inline]

virtual bool llvm::SCEVNAryExpr::isLoopInvariant ( const Loop *  L  )  const [inline, virtual]

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().

virtual bool llvm::SCEVNAryExpr::hasOperand ( const SCEV *  Op  )  const [inline, virtual]

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.

static bool llvm::SCEVNAryExpr::classof ( const SCEV *  S  )  [inline, static]


Member Data Documentation


The documentation for this class was generated from the following files: