mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-06 13:15:59 +00:00
This CL moves the need to pull in SEM and AST into a specific `libtint_ir_builder_src` library. This will make it a GN error if we accidentally try to use the SEM or AST inside the IR after the initial construction. This required move the `ToProgram`/`FromProgram` methods out of `ir::Module` and into an `ir::Converter` class. Bug: tint:1921 Change-Id: I2e6ae195f9a100030b43f35a2c5dad634433147f Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/129661 Reviewed-by: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Ben Clayton <bclayton@google.com>
28 lines
819 B
C++
28 lines
819 B
C++
// Copyright 2022 The Tint Authors.
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
#include "src/tint/ir/module.h"
|
|
|
|
namespace tint::ir {
|
|
|
|
Module::Module() = default;
|
|
|
|
Module::Module(Module&&) = default;
|
|
|
|
Module::~Module() = default;
|
|
|
|
Module& Module::operator=(Module&&) = default;
|
|
|
|
} // namespace tint::ir
|