diff options
author | Tuowen Zhao <ztuowen@gmail.com> | 2016-10-02 14:10:10 -0600 |
---|---|---|
committer | Tuowen Zhao <ztuowen@gmail.com> | 2016-10-02 14:10:10 -0600 |
commit | d2176835fc6e497a6c3e19b4630745c3911bde2c (patch) | |
tree | ad4b207876c32f80dc62ccce47cf99458d8a2e5e /include/ir_clang.hh | |
parent | db3ff28ba74ff76aaac9e73d1b208e17992864cb (diff) | |
download | chill-d2176835fc6e497a6c3e19b4630745c3911bde2c.tar.gz chill-d2176835fc6e497a6c3e19b4630745c3911bde2c.tar.bz2 chill-d2176835fc6e497a6c3e19b4630745c3911bde2c.zip |
fixes
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; |