Rename intrinsic.cc to sem_intrinsic.
For consistency with the other .cc file names in this directory.
The reason we need the sem_ prefix is because all the tint lib code is compiled as a single target, and .GN cannot cope with .cc files with the same file name, even if they're in different directories.
This could be fixed by building each directory as a separate target, but we have circular dependencies that currently make this impossible.
Change-Id: I2f1379ff11dd863f81662449f73d67832f0a8a4e
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/40501
Commit-Queue: Ben Clayton <bclayton@google.com>
Reviewed-by: dan sinclair <dsinclair@chromium.org>
diff --git a/BUILD.gn b/BUILD.gn
index 6b49645..57d221a 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -379,7 +379,6 @@
"src/semantic/call.h",
"src/semantic/expression.h",
"src/semantic/info.h",
- "src/semantic/intrinsic.cc",
"src/semantic/intrinsic.h",
"src/semantic/node.h",
"src/semantic/sem_call.cc",
@@ -387,6 +386,7 @@
"src/semantic/sem_expression.cc",
"src/semantic/sem_function.cc",
"src/semantic/sem_info.cc",
+ "src/semantic/sem_intrinsic.cc",
"src/semantic/sem_member_accessor_expression.cc",
"src/semantic/sem_node.cc",
"src/semantic/sem_variable.cc",
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 556e803..4ce8de2 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -193,7 +193,6 @@
semantic/call.h
semantic/expression.h
semantic/info.h
- semantic/intrinsic.cc
semantic/intrinsic.h
semantic/node.h
semantic/sem_call.cc
@@ -202,6 +201,7 @@
semantic/sem_member_accessor_expression.cc
semantic/sem_function.cc
semantic/sem_info.cc
+ semantic/sem_intrinsic.cc
semantic/sem_node.cc
semantic/sem_variable.cc
semantic/type_mappings.h
diff --git a/src/semantic/intrinsic.cc b/src/semantic/sem_intrinsic.cc
similarity index 100%
rename from src/semantic/intrinsic.cc
rename to src/semantic/sem_intrinsic.cc