dan sinclair | 69108d0 | 2023-04-25 20:44:18 +0000 | [diff] [blame] | 1 | // 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 sinclair | 97c3727 | 2023-07-24 17:11:53 +0000 | [diff] [blame] | 15 | #include "src/tint/lang/core/ir/discard.h" |
dan sinclair | 16cb4bd | 2023-09-21 08:52:11 +0000 | [diff] [blame] | 16 | |
| 17 | #include "src/tint/lang/core/ir/clone_context.h" |
| 18 | #include "src/tint/lang/core/ir/module.h" |
dan sinclair | 69108d0 | 2023-04-25 20:44:18 +0000 | [diff] [blame] | 19 | |
dan sinclair | 6f138fe | 2023-08-15 21:29:34 +0000 | [diff] [blame] | 20 | TINT_INSTANTIATE_TYPEINFO(tint::core::ir::Discard); |
dan sinclair | 69108d0 | 2023-04-25 20:44:18 +0000 | [diff] [blame] | 21 | |
dan sinclair | 6f138fe | 2023-08-15 21:29:34 +0000 | [diff] [blame] | 22 | namespace tint::core::ir { |
dan sinclair | 69108d0 | 2023-04-25 20:44:18 +0000 | [diff] [blame] | 23 | |
dan sinclair | 0d80c3d | 2023-06-19 13:32:03 +0000 | [diff] [blame] | 24 | Discard::Discard() = default; |
dan sinclair | 69108d0 | 2023-04-25 20:44:18 +0000 | [diff] [blame] | 25 | |
| 26 | Discard::~Discard() = default; |
| 27 | |
dan sinclair | 16cb4bd | 2023-09-21 08:52:11 +0000 | [diff] [blame] | 28 | Discard* Discard::Clone(CloneContext& ctx) { |
| 29 | return ctx.ir.instructions.Create<Discard>(); |
| 30 | } |
| 31 | |
dan sinclair | 6f138fe | 2023-08-15 21:29:34 +0000 | [diff] [blame] | 32 | } // namespace tint::core::ir |