Ben Clayton | 451eee0 | 2022-06-01 23:57:20 +0000 | [diff] [blame] | 1 | // Copyright 2022 The Tint Authors. |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
| 15 | #ifndef SRC_TINT_RESOLVER_CONST_EVAL_H_ |
| 16 | #define SRC_TINT_RESOLVER_CONST_EVAL_H_ |
| 17 | |
| 18 | #include <stddef.h> |
| 19 | |
| 20 | // Forward declarations |
| 21 | namespace tint { |
| 22 | class ProgramBuilder; |
| 23 | } // namespace tint |
| 24 | |
| 25 | // Forward declarations |
| 26 | namespace tint::sem { |
| 27 | class Constant; |
| 28 | } // namespace tint::sem |
| 29 | |
| 30 | namespace tint::resolver::const_eval { |
| 31 | |
| 32 | /// Typedef for a constant evaluation function |
| 33 | using Function = sem::Constant(ProgramBuilder& builder, const sem::Constant* args, size_t num_args); |
| 34 | |
| 35 | } // namespace tint::resolver::const_eval |
| 36 | |
| 37 | #endif // SRC_TINT_RESOLVER_CONST_EVAL_H_ |