blob: 0838d89569e0beb1b3ac1bc236c95222a40b19bb [file] [log] [blame]
Ben Claytona123b892022-07-27 16:36:35 +00001{{- /*
2--------------------------------------------------------------------------------
dan sinclairff7cf212022-10-03 14:05:23 +00003Template file for use with tools/src/cmd/gen to generate address_space.cc
Ben Claytona123b892022-07-27 16:36:35 +00004
5To update the generated file, run:
6 ./tools/run gen
7
8See:
9* tools/src/cmd/gen for structures used by this template
10* https://golang.org/pkg/text/template/ for documentation on the template syntax
11--------------------------------------------------------------------------------
12*/ -}}
13
Ben Clayton2dffb3c2023-08-07 12:35:33 +000014{{- $I := LoadIntrinsics "src/tint/lang/core/core.def" -}}
dan sinclair22b4dd22023-07-21 00:40:07 +000015{{- Import "src/tint/utils/templates/enums.tmpl.inc" -}}
Ben Clayton2dffb3c2023-08-07 12:35:33 +000016{{- $enum := ($I.Sem.Enum "address_space") -}}
Ben Claytona123b892022-07-27 16:36:35 +000017
Ben Claytoncd52f382023-08-07 13:11:08 +000018#include "src/tint/lang/core/address_space.h"
Ben Claytona123b892022-07-27 16:36:35 +000019
Ben Claytoncd52f382023-08-07 13:11:08 +000020namespace tint::core {
Ben Claytona123b892022-07-27 16:36:35 +000021
22{{ Eval "ParseEnum" $enum}}
23
24{{ Eval "EnumOStream" $enum}}
25
Ben Claytoncd52f382023-08-07 13:11:08 +000026} // namespace tint::core