#include <AffineExprAbstraction.hpp>


Public Member Functions | |
| AffineExprAbstraction () | |
| void | setOffset (int offset) |
| void | addTerm (OA_ptr< NamedLoc > var, int value) |
| virtual void | output (IRHandlesIRInterface &ir) |
Private Attributes | |
| OUTPUT GENOUT map< OA_ptr < NamedLoc >, int > | mCoefficients |
| GENOUT int | mOffset |
An expression is an affine function of variables, v1, v2, ..., vN if it can be expressed as the sum of a known constant times each of the variables plus a constant. That is,
c0 + c1*v1 + c2*v2 + ... + cN*vN, for known integers, c0..cN.
Definition from: http://www-cse.ucsd.edu/classes/sp02/cse231/scaledocs/scale/score/dependence/AffineExpr.html
Definition at line 24 of file AffineExprAbstraction.hpp.
| OA::AffineExpr::AffineExprAbstraction::AffineExprAbstraction | ( | ) |
Definition at line 9 of file AffineExprAbstraction.cpp.
Definition at line 11 of file AffineExprAbstraction.cpp.
References mCoefficients.
| void OA::AffineExpr::AffineExprAbstraction::output | ( | OA::IRHandlesIRInterface & | ir | ) | [virtual] |
Implements OA::Annotation.
Definition at line 9 of file AffineExprAbstraction_output.cpp.
References OA::int2string(), mCoefficients, mOffset, and OA::Annotation::sOutBuild.

| void OA::AffineExpr::AffineExprAbstraction::setOffset | ( | int | offset | ) | [inline] |
Definition at line 27 of file AffineExprAbstraction.hpp.
OUTPUT GENOUT map<OA_ptr<NamedLoc>, int> OA::AffineExpr::AffineExprAbstraction::mCoefficients [private] |
Definition at line 35 of file AffineExprAbstraction.hpp.
GENOUT int OA::AffineExpr::AffineExprAbstraction::mOffset [private] |
Definition at line 36 of file AffineExprAbstraction.hpp.
Referenced by output().
1.7.1