blob: 7112f0148665a74301d59119bb4a0da4be25ad4b [file] [log] [blame]
dan sinclair69108d02023-04-25 20:44:18 +00001// Copyright 2023 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
dan sinclair97c37272023-07-24 17:11:53 +000015#include "src/tint/lang/core/ir/discard.h"
dan sinclair16cb4bd2023-09-21 08:52:11 +000016
17#include "src/tint/lang/core/ir/clone_context.h"
18#include "src/tint/lang/core/ir/module.h"
dan sinclair69108d02023-04-25 20:44:18 +000019
dan sinclair6f138fe2023-08-15 21:29:34 +000020TINT_INSTANTIATE_TYPEINFO(tint::core::ir::Discard);
dan sinclair69108d02023-04-25 20:44:18 +000021
dan sinclair6f138fe2023-08-15 21:29:34 +000022namespace tint::core::ir {
dan sinclair69108d02023-04-25 20:44:18 +000023
dan sinclair0d80c3d2023-06-19 13:32:03 +000024Discard::Discard() = default;
dan sinclair69108d02023-04-25 20:44:18 +000025
26Discard::~Discard() = default;
27
dan sinclair16cb4bd2023-09-21 08:52:11 +000028Discard* Discard::Clone(CloneContext& ctx) {
29 return ctx.ir.instructions.Create<Discard>();
30}
31
dan sinclair6f138fe2023-08-15 21:29:34 +000032} // namespace tint::core::ir