Change SpirvShaderInstructions.inc extension to .inl
Files that are #included in a non-standard header way usually have a .inc or .inl extension.
Reactor already has Reactor/Traits.inl, so let's be consistent and stick with this extension.
Bug: b/148778720
Change-Id: Ie69951c254921b9cf86c3ab201533a3b21489b97
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/40977
Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
Reviewed-by: Alexis Hétu <sugoi@google.com>
Tested-by: Ben Clayton <bclayton@google.com>
diff --git a/src/Pipeline/SpirvShaderInstructions.cpp b/src/Pipeline/SpirvShaderInstructions.cpp
index f75d6d4..18cced1 100644
--- a/src/Pipeline/SpirvShaderInstructions.cpp
+++ b/src/Pipeline/SpirvShaderInstructions.cpp
@@ -22,7 +22,7 @@
namespace {
// checkForNoMissingOps() is an unused function that simply exists to try and
-// detect missing opcodes in "SpirvShaderInstructions.inc".
+// detect missing opcodes in "SpirvShaderInstructions.inl".
// If there are missing opcodes, then some compilers will warn that not all
// enum values are handled by the switch case below.
constexpr void checkForNoMissingOps(spv::Op op)
@@ -35,7 +35,7 @@
#define DECORATE_OP(isStatement, op) \
case spv::op: \
return;
-#include "SpirvShaderInstructions.inc"
+#include "SpirvShaderInstructions.inl"
#undef DECORATE_OP
case spv::OpMax: return;
}
@@ -54,7 +54,7 @@
#define DECORATE_OP(isStatement, op) \
CONCAT2(IS_STATEMENT_, isStatement) \
(op)
-#include "SpirvShaderInstructions.inc"
+#include "SpirvShaderInstructions.inl"
#undef IS_STATEMENT_T
#undef IS_STATEMENT_F
#undef DECORATE_OP
diff --git a/src/Pipeline/SpirvShaderInstructions.inc b/src/Pipeline/SpirvShaderInstructions.inl
similarity index 98%
rename from src/Pipeline/SpirvShaderInstructions.inc
rename to src/Pipeline/SpirvShaderInstructions.inl
index 1718e5c..8ec4a44 100644
--- a/src/Pipeline/SpirvShaderInstructions.inc
+++ b/src/Pipeline/SpirvShaderInstructions.inl
@@ -12,12 +12,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-// SpirvShaderInstructions.inc holds additional metadata for SPIR-V opcodes.
-// SpirvShaderInstructions.inc should only be included by
+// SpirvShaderInstructions.inl holds additional metadata for SPIR-V opcodes.
+// SpirvShaderInstructions.inl should only be included by
// SpirvShaderInstructions.cpp.
#ifndef DECORATE_OP
-# error "SpirvShaderInstructions.inc must be included after defining DECORATE_OP()"
+# error "SpirvShaderInstructions.inl must be included after defining DECORATE_OP()"
#endif
// is-statement