[ir] Add a SPIRV BuiltinCall instruction
This CL adds a `BuiltinCall` instruction to SPIR-V IR and moves
`VectorTimesScalar` over to the builtin.
Bug: tint:1718
Change-Id: I4fd92aab01d32897c5bdb4add97e22b698ded377
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/150100
Reviewed-by: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: dan sinclair <dsinclair@chromium.org>
diff --git a/src/tint/lang/core/ir/validator.cc b/src/tint/lang/core/ir/validator.cc
index d712e65..182c035 100644
--- a/src/tint/lang/core/ir/validator.cc
+++ b/src/tint/lang/core/ir/validator.cc
@@ -527,7 +527,9 @@
[&](Convert*) {}, //
[&](Discard*) {}, //
[&](UserCall*) {}, //
- [&](Default) { AddError(call, InstError(call, "missing validation")); });
+ [&](Default) {
+ // Validation of custom IR instructions
+ });
}
void Validator::CheckCoreBuiltinCall(CoreBuiltinCall* call) {