Skip to content

ArrayAnnotation

Synopsis

Declared in <src/midend/programAnalysis/valuePropagation/ArrayAnnot.h>

class ArrayAnnotation
    : public FunctionSideEffectInterface
    , public FunctionAliasInterface

Base Classes

Name Description
FunctionSideEffectInterface
FunctionAliasInterface

Member Functions

Name
Dump
void Dump() const;
create_access_array_elem
SymbolicVal create_access_array_elem( AstNodePtr const& array, SymbolicFunction::Arguments const& args);
create_access_array_length
SymbolicVal create_access_array_length( AstNodePtr const& array, SymbolicVal const& dim);
create_reshape_array
AstNodePtr create_reshape_array( CPPAstInterface& fa, AstNodePtr const& array, CPPAstInterface::AstNodeList const& args);
has_array_opt
bool has_array_opt( CPPAstInterface& fa, AstNodePtr const array, ArrayOptDescriptor* d = 0);
is_access_array_elem
bool is_access_array_elem( CPPAstInterface& fa, AstNodePtr const& orig, AstNodePtr* array = 0, CPPAstInterface::AstNodeList* args = 0);
is_access_array_length
bool is_access_array_length( CPPAstInterface& fa, SymbolicVal const& orig, AstNodePtr* array = 0, SymbolicVal* dim = 0);
is_array_construct_op
bool is_array_construct_op( CPPAstInterface& fa, AstNodePtr const& arrayExp, CPPAstInterface::AstNodeList* alias = 0, ArrayDescriptor* desc = 0, ReplaceParams* repl = 0);
is_array_mod_op
bool is_array_mod_op( CPPAstInterface& fa, AstNodePtr const& arrayExp, AstNodePtr* modArray = 0, ArrayDescriptor* desc = 0, bool* reshapeArray = 0, ReplaceParams* repl = 0);
is_reshape_array
bool is_reshape_array( CPPAstInterface& fa, AstNodePtr const& orig, AstNodePtr* array = 0, CPPAstInterface::AstNodeList* args = 0);
known_array
bool known_array( CPPAstInterface& fa, AstNodePtr const& array, ArrayDefineDescriptor* d = 0);
known_array_type
bool known_array_type( CPPAstInterface& fa, AstNodeType const& array, ArrayDefineDescriptor* d = 0);
known_unique_array
bool known_unique_array( CPPAstInterface& fa, AstNodePtr const& array, ArrayDefineDescriptor* d = 0);
register_annot
void register_annot();

Static Member Functions

Name
get_inst
static ArrayAnnotation* get_inst();
release_inst
static void release_inst();

Private Member Functions

Name Description
ArrayAnnotation
ArrayAnnotation(); [constructor]
Default constructor
allow_alias
virtual bool allow_alias( AstInterface& fa, AstNodePtr const& fc, CollectObject<std::pair<AstNodePtr, int>>& collectalias); [virtual]
get_modify
virtual bool get_modify( AstInterface& fa, AstNodePtr const& fc, CollectObject<AstNodePtr>* collect = 0); [virtual]
get_read
virtual bool get_read( AstInterface& fa, AstNodePtr const& fc, CollectObject<AstNodePtr>* collect = 0); [virtual]
may_alias
virtual bool may_alias( AstInterface& fa, AstNodePtr const& fc, AstNodePtr const& result, CollectObject<std::pair<AstNodePtr, int>>& collectalias); [virtual]

Private Data Members

Name
arrayConstruct
arrayModify
arrayopt
arrays
unique_arrays

Private Static Data Members

Name
inst

Created with MrDocs