diff options
Diffstat (limited to 'include/ir_clang.hh')
-rwxr-xr-x | include/ir_clang.hh | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/include/ir_clang.hh b/include/ir_clang.hh index 9b9e4be..4344f68 100755 --- a/include/ir_clang.hh +++ b/include/ir_clang.hh @@ -224,22 +224,13 @@ struct IR_chillScalarRef : public IR_ScalarRef { struct IR_chillArrayRef : public IR_ArrayRef { - //DeclRefExpr *as_; - //chillAST_DeclRefExpr *chillDRE; chillAST_ArraySubscriptExpr *chillASE; int iswrite; - - // IR_chillArrayRef(const IR_Code *ir, DeclRefExpr *as, ParentMap *pMap = NULL) { - // ir_ = ir; - // fprintf(stderr, "new IR_chillArrayRef() CLANG ERROR\n"); exit(-1); - //} - IR_chillArrayRef(const IR_Code *ir, chillAST_ArraySubscriptExpr *ase, int write) { - //fprintf(stderr, "IR_chillArrayRef::IR_chillArrayRef() write %d\n", write); ir_ = ir; chillASE = ase; - iswrite = write; // ase->imwrittento; + iswrite = write; } bool is_write() const; @@ -492,6 +483,8 @@ public: IR_ArrayRef *CreateArrayRef(const IR_ArraySymbol *sym, std::vector<omega::CG_outputRepr *> &index); + virtual bool FromSameStmt(IR_ArrayRef *A, IR_ArrayRef *B); + int ArrayIndexStartAt() { return 0; } // TODO FORTRAN std::vector<IR_ScalarRef *> FindScalarRef(const omega::CG_outputRepr *repr) const; |