blob: 89bb3da8de4b5075601da61413f381e6c37e83c0 [file] [log] [blame]
Ben Clayton451eee02022-06-01 23:57:20 +00001// 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
21namespace tint {
22class ProgramBuilder;
23} // namespace tint
24
25// Forward declarations
26namespace tint::sem {
27class Constant;
28} // namespace tint::sem
29
30namespace tint::resolver::const_eval {
31
32/// Typedef for a constant evaluation function
33using 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_