ArrayInterface¶
Synopsis¶
Declared in <src/midend/programTransformation/loopProcessing/driver/ArrayInterface.h>
class ArrayInterface
: public AstObserver
, public AliasAnalysisInterface
, public ArrayAbstractionInterface Base Classes¶
| Name | Description |
|---|---|
AstObserver | This is the base class for anyone who wants to be notified when AST nodes are being copied. |
AliasAnalysisInterface | |
ArrayAbstractionInterface | ***QY: Interface classes used by loop optimizations |
Member Functions¶
| Name | Description |
|---|---|
ArrayInterfaceArrayInterface(ArrayAnnotation& a); [constructor] | Construct from ArrayAnnotation |
analyzevirtual void analyze( AstInterface& fa, AstNodePtr const& h); [virtual] | Expose alias analysis for unit testing |
impl_access_array_elemAstNodePtr impl_access_array_elem( CPPAstInterface& fa, AstNodePtr const& array, AstInterface::AstNodeList const& args); | |
impl_access_array_lengthAstNodePtr impl_access_array_length( CPPAstInterface& fa, AstNodePtr const& array, int dim, int plus = 0); | |
impl_array_opt_initAstNodePtr impl_array_opt_init( CPPAstInterface& fa, AstNodePtr const& array, AstNodePtr const& scope); | |
impl_reshape_arrayAstNodePtr impl_reshape_array( CPPAstInterface& fa, AstNodePtr const& array, AstInterface::AstNodeList& args); | |
initializevoid initialize( AstInterface& fa, AstNodePtr const& h); | |
is_array_construct_opbool is_array_construct_op( CPPAstInterface& fa, AstNodePtr const& arrayExp, AstInterface::AstNodeList* alias = 0, int* dimp = 0, SymbolicFunctionDeclarationGroup* len = 0, SymbolicFunctionDeclarationGroup* elem = 0); | |
is_array_expbool is_array_exp( CPPAstInterface& fa, AstNodePtr const& array, int* dimp = 0, SymbolicFunctionDeclarationGroup* len = 0, bool* changeshape = 0); | |
is_array_mod_opbool is_array_mod_op( CPPAstInterface& fa, AstNodePtr const& arrayExp, AstNodePtr* modArray = 0, int* dimp = 0, SymbolicFunctionDeclarationGroup* len = 0, SymbolicFunctionDeclarationGroup* elem = 0, bool* reshape = 0); | |
may_aliasvirtual bool may_alias( AstInterface& fa, AstNodePtr const& r1, AstNodePtr const& r2); [virtual] | |
observevoid observe(AstInterface& fa); | |
set_array_dimensionvoid set_array_dimension( AstNodePtr const& arrayexp, int dim); | |
stop_observevoid stop_observe(AstInterface& fa); |
Static Member Functions¶
| Name |
|---|
get_inststatic ArrayInterface* get_inst( ArrayAnnotation& a, AstInterface& fa, SgFunctionDefinition* funcDef, AstNodePtr const& node); |
Private Member Functions¶
| Name |
|---|
CreateArrayAccessvirtual SymbolicVal CreateArrayAccess( SymbolicVal const&, SymbolicVal const&); |
GetArrayBoundvirtual bool GetArrayBound( AstInterface& fa, AstNodePtr const& array, int dim, int& lb, int& ub); [virtual] |
IsArrayvirtual bool IsArray( CPPAstInterface& fa, AstNodePtr const& s); [virtual] |
IsArrayAccessvirtual bool IsArrayAccess( AstInterface& fa, AstNodePtr const& s, AstNodePtr* array = 0, AstInterface::AstNodeList* index = 0); [virtual] |
IsArrayRefvirtual bool IsArrayRef( CPPAstInterface& fa, AstNodePtr const& t); [virtual] |
IsUniqueArrayvirtual bool IsUniqueArray( AstInterface& fa, AstNodePtr const& array); [virtual] |
ObserveCopyAstvirtual void ObserveCopyAst( AstInterfaceImpl& fa, AstNodePtr const& orig, AstNodePtr const& copy); [virtual] |
get_array_optbool get_array_opt( CPPAstInterface& fa, AstNodePtr const& array, ArrayOptDescriptor& d); |
Private Data Members¶
| Name |
|---|
aliasCollect |
dimmap |
lenmap |
optmap |
valueCollect |
Created with MrDocs