1 | #pragma once |
---|---|
2 | |
3 | #include "taichi/ir/pass.h" |
4 | |
5 | namespace taichi::lang { |
6 | |
7 | class FullSimplifyPass : public Pass { |
8 | public: |
9 | static const PassID id; |
10 | |
11 | struct Args { |
12 | bool after_lower_access; |
13 | // Switch off some optimization in store forwarding if there is an autodiff |
14 | // pass after the full_simplify |
15 | bool autodiff_enabled; |
16 | Program *program; |
17 | }; |
18 | }; |
19 | |
20 | } // namespace taichi::lang |
21 |