[tint] Move tint/lang/core/builtin to tint/lang/core
These are the fundamentals of the 'core' dialect.
Update namespaces from tint::builtin to tint::core.
Change-Id: I8c13a2b986f5c13646b2599969910b20fbe9bc8e
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/144122
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
Reviewed-by: Dan Sinclair <dsinclair@chromium.org>
diff --git a/src/tint/lang/core/address_space.cc.tmpl b/src/tint/lang/core/address_space.cc.tmpl
new file mode 100644
index 0000000..0838d89
--- /dev/null
+++ b/src/tint/lang/core/address_space.cc.tmpl
@@ -0,0 +1,26 @@
+{{- /*
+--------------------------------------------------------------------------------
+Template file for use with tools/src/cmd/gen to generate address_space.cc
+
+To update the generated file, run:
+ ./tools/run gen
+
+See:
+* tools/src/cmd/gen for structures used by this template
+* https://golang.org/pkg/text/template/ for documentation on the template syntax
+--------------------------------------------------------------------------------
+*/ -}}
+
+{{- $I := LoadIntrinsics "src/tint/lang/core/core.def" -}}
+{{- Import "src/tint/utils/templates/enums.tmpl.inc" -}}
+{{- $enum := ($I.Sem.Enum "address_space") -}}
+
+#include "src/tint/lang/core/address_space.h"
+
+namespace tint::core {
+
+{{ Eval "ParseEnum" $enum}}
+
+{{ Eval "EnumOStream" $enum}}
+
+} // namespace tint::core