mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-16 00:17:03 +00:00
sem: Split sem::Variable into global, local and parameter
Each of these may contain information specific to their kind. Change-Id: Ic8ac808088132b7bc2e43da6ce46a06571e0fed5 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/59200 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Ryan Harrison <rharrison@chromium.org> Reviewed-by: James Price <jrprice@google.com>
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
#include "src/ast/unary_op_expression.h"
|
||||
#include "src/ast/variable_decl_statement.h"
|
||||
#include "src/sem/depth_texture_type.h"
|
||||
#include "src/sem/intrinsic_type.h"
|
||||
#include "src/sem/sampled_texture_type.h"
|
||||
|
||||
// Terms:
|
||||
@@ -4959,9 +4960,7 @@ bool FunctionEmitter::EmitControlBarrier(
|
||||
TypedExpression FunctionEmitter::MakeIntrinsicCall(
|
||||
const spvtools::opt::Instruction& inst) {
|
||||
const auto intrinsic = GetIntrinsic(inst.opcode());
|
||||
std::ostringstream ss;
|
||||
ss << intrinsic;
|
||||
auto name = ss.str();
|
||||
auto* name = sem::str(intrinsic);
|
||||
auto* ident = create<ast::IdentifierExpression>(
|
||||
Source{}, builder_.Symbols().Register(name));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user