Skip to content

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
ArrayInterface
ArrayInterface(ArrayAnnotation& a); [constructor]
Construct from ArrayAnnotation
analyze
virtual void analyze( AstInterface& fa, AstNodePtr const& h); [virtual]
Expose alias analysis for unit testing
impl_access_array_elem
AstNodePtr impl_access_array_elem( CPPAstInterface& fa, AstNodePtr const& array, AstInterface::AstNodeList const& args);
impl_access_array_length
AstNodePtr impl_access_array_length( CPPAstInterface& fa, AstNodePtr const& array, int dim, int plus = 0);
impl_array_opt_init
AstNodePtr impl_array_opt_init( CPPAstInterface& fa, AstNodePtr const& array, AstNodePtr const& scope);
impl_reshape_array
AstNodePtr impl_reshape_array( CPPAstInterface& fa, AstNodePtr const& array, AstInterface::AstNodeList& args);
initialize
void initialize( AstInterface& fa, AstNodePtr const& h);
is_array_construct_op
bool is_array_construct_op( CPPAstInterface& fa, AstNodePtr const& arrayExp, AstInterface::AstNodeList* alias = 0, int* dimp = 0, SymbolicFunctionDeclarationGroup* len = 0, SymbolicFunctionDeclarationGroup* elem = 0);
is_array_exp
bool is_array_exp( CPPAstInterface& fa, AstNodePtr const& array, int* dimp = 0, SymbolicFunctionDeclarationGroup* len = 0, bool* changeshape = 0);
is_array_mod_op
bool 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_alias
virtual bool may_alias( AstInterface& fa, AstNodePtr const& r1, AstNodePtr const& r2); [virtual]
observe
void observe(AstInterface& fa);
set_array_dimension
void set_array_dimension( AstNodePtr const& arrayexp, int dim);
stop_observe
void stop_observe(AstInterface& fa);

Static Member Functions

Name
get_inst
static ArrayInterface* get_inst( ArrayAnnotation& a, AstInterface& fa, SgFunctionDefinition* funcDef, AstNodePtr const& node);

Private Member Functions

Name
CreateArrayAccess
virtual SymbolicVal CreateArrayAccess( SymbolicVal const&, SymbolicVal const&);
GetArrayBound
virtual bool GetArrayBound( AstInterface& fa, AstNodePtr const& array, int dim, int& lb, int& ub); [virtual]
IsArray
virtual bool IsArray( CPPAstInterface& fa, AstNodePtr const& s); [virtual]
IsArrayAccess
virtual bool IsArrayAccess( AstInterface& fa, AstNodePtr const& s, AstNodePtr* array = 0, AstInterface::AstNodeList* index = 0); [virtual]
IsArrayRef
virtual bool IsArrayRef( CPPAstInterface& fa, AstNodePtr const& t); [virtual]
IsUniqueArray
virtual bool IsUniqueArray( AstInterface& fa, AstNodePtr const& array); [virtual]
ObserveCopyAst
virtual void ObserveCopyAst( AstInterfaceImpl& fa, AstNodePtr const& orig, AstNodePtr const& copy); [virtual]
get_array_opt
bool get_array_opt( CPPAstInterface& fa, AstNodePtr const& array, ArrayOptDescriptor& d);

Private Data Members

Name
aliasCollect
dimmap
lenmap
optmap
valueCollect

Created with MrDocs