updated across and reduction

This commit is contained in:
ALEXks
2024-11-14 09:16:06 +03:00
parent 5e60b5cd5c
commit dfad887814
5 changed files with 157 additions and 89 deletions

View File

@@ -104,6 +104,7 @@ private:
SgStatement* loop_body;
int dimension;
std::map<SgSymbol*, Array*> arrays;
std::set<SgSymbol*> redArrays;
int* acrossDims;
int acrossType;
std::vector<SgSymbol*> symbols;

View File

@@ -1377,6 +1377,7 @@ int TestOneGroupStatement(SgStatement *stmt);
int TestOneGroupStatement(SgStatement *stmt);
void DeclareUsedVars();
void DeclareInternalPrivateVars();
void DeclarePrivateVars();
void DeclarePrivateVars(SgType *idxTypeInKernel);
void DeclareArrayBases();
void DeclareArrayCoeffsInKernel(SgType*);
@@ -1451,6 +1452,7 @@ SgExpression * DummyListForPrivateArrays(SgStatement *st_hedr);
SgExpression * DummyListForPrivateArrays(SgStatement *st_hedr);
SgExpression *CreatePrivateDummyList();
char *PointerNameForPrivateArray(SgSymbol *symb);
void GetMemoryForPrivateArrays(SgSymbol *private_first, SgSymbol *s_loop_ref, int nump, SgStatement *st_end, SgStatement *st_hedr, SgExpression *e_totalThreads);
SgSymbol *LocRedVariableSymbolInKernel(reduction_operation_list *rsl);
/* acc_analyzer.cpp */