LLVM API Documentation

llvm::SCEVCastExpr Class Reference

#include <ScalarEvolutionExpressions.h>

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

List of all members.

Public Member Functions

const SCEV * getOperand () const
virtual const Type * getType () const
virtual bool isLoopInvariant (const Loop *L) const
virtual bool hasComputableLoopEvolution (const Loop *L) const
virtual bool hasOperand (const SCEV *O) const
virtual bool dominates (BasicBlock *BB, DominatorTree *DT) const

Static Public Member Functions

static bool classof (const SCEVCastExpr *S)
 Methods for support type inquiry through isa, cast, and dyn_cast:.
static bool classof (const SCEV *S)

Protected Member Functions

 SCEVCastExpr (const FoldingSetNodeID &ID, unsigned SCEVTy, const SCEV *op, const Type *ty)

Protected Attributes

const SCEV * Op
const Type * Ty


Detailed Description

SCEVCastExpr - This is the base class for unary cast operator classes.

Definition at line 75 of file ScalarEvolutionExpressions.h.


Constructor & Destructor Documentation

SCEVCastExpr::SCEVCastExpr ( const FoldingSetNodeID &  ID,
unsigned  SCEVTy,
const SCEV *  op,
const Type *  ty 
) [protected]

Definition at line 206 of file ScalarEvolution.cpp.


Member Function Documentation

const SCEV* llvm::SCEVCastExpr::getOperand (  )  const [inline]

Definition at line 84 of file ScalarEvolutionExpressions.h.

References Op.

Referenced by llvm::ScalarEvolution::getAddExpr().

virtual const Type* llvm::SCEVCastExpr::getType (  )  const [inline, virtual]

getType - Return the LLVM type of this SCEV expression.

Implements llvm::SCEV.

Definition at line 85 of file ScalarEvolutionExpressions.h.

References Ty.

Referenced by llvm::ScalarEvolution::getAddExpr().

virtual bool llvm::SCEVCastExpr::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.

Definition at line 87 of file ScalarEvolutionExpressions.h.

References llvm::SCEV::isLoopInvariant(), and Op.

virtual bool llvm::SCEVCastExpr::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.

Definition at line 91 of file ScalarEvolutionExpressions.h.

References llvm::SCEV::hasComputableLoopEvolution(), and Op.

virtual bool llvm::SCEVCastExpr::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 95 of file ScalarEvolutionExpressions.h.

References llvm::SCEV::hasOperand(), and Op.

bool SCEVCastExpr::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 210 of file ScalarEvolution.cpp.

References llvm::SCEV::dominates(), and Op.

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

Methods for support type inquiry through isa, cast, and dyn_cast:.

Definition at line 102 of file ScalarEvolutionExpressions.h.

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


Member Data Documentation

const SCEV* llvm::SCEVCastExpr::Op [protected]

const Type* llvm::SCEVCastExpr::Ty [protected]


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