Antonio Maiorano
39a65a1d1e
Add type inference support to Resolver
...
There is still no way to spell this out in WGSL, but this adds support
for VariableDecls with an ast::Variable that has nullptr type. In this
case, the Resolver uses the type of the rhs (constructor expression),
which is stored in semantic::Variable.
Added tests for resolving inferred types from constructor, arithmetic,
and call expressions.
Bug: tint:672
Change-Id: I3dcfd18adecebc8b969373d2ac72c21891c21a87
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/46160
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
Commit-Queue: Antonio Maiorano <amaiorano@google.com>
2021-03-31 12:46:52 +00:00
..
2020-11-30 23:30:58 +00:00
2020-10-29 13:36:32 +00:00
2021-03-09 11:11:17 +00:00
2021-03-09 11:11:17 +00:00
2021-03-11 17:39:32 +00:00
2021-03-10 11:41:49 +00:00
2021-03-10 11:41:49 +00:00
2021-03-10 11:41:49 +00:00
2021-03-10 11:41:49 +00:00
2021-03-10 11:41:49 +00:00
2021-03-10 11:41:49 +00:00
2021-03-10 11:41:49 +00:00
2021-03-10 11:41:49 +00:00
2021-03-16 13:26:03 +00:00
2021-03-09 11:11:17 +00:00
2021-03-09 11:11:17 +00:00
2021-03-11 17:39:32 +00:00
2021-03-10 11:41:49 +00:00
2021-03-10 11:41:49 +00:00
2021-03-10 11:41:49 +00:00
2021-03-10 11:41:49 +00:00
2021-03-10 11:41:49 +00:00
2021-03-10 11:41:49 +00:00
2021-03-22 16:06:35 +00:00
2021-03-09 11:11:17 +00:00
2021-02-17 01:01:03 +00:00
2021-03-10 11:41:49 +00:00
2021-03-10 11:41:49 +00:00
2021-03-10 11:41:49 +00:00
2021-03-09 11:11:17 +00:00
2021-03-09 11:11:17 +00:00
2021-03-11 17:39:32 +00:00
2021-02-16 18:21:41 +00:00
2021-02-16 18:21:41 +00:00
2021-03-10 11:41:49 +00:00
2021-03-10 11:41:49 +00:00
2021-03-10 11:41:49 +00:00
2021-03-10 11:41:49 +00:00
2021-03-10 11:41:49 +00:00
2021-03-10 11:41:49 +00:00
2021-03-10 11:41:49 +00:00
2021-03-10 11:41:49 +00:00
2021-03-10 11:41:49 +00:00
2021-01-29 11:22:40 +00:00
2021-03-09 11:11:17 +00:00
2021-03-11 17:39:32 +00:00
2021-03-09 11:11:17 +00:00
2020-12-12 01:38:13 +00:00
2021-03-10 11:41:49 +00:00
2021-03-10 11:41:49 +00:00
2021-03-10 11:41:49 +00:00
2021-03-11 17:39:32 +00:00
2021-03-11 17:39:32 +00:00
2021-03-10 11:41:49 +00:00
2021-03-10 11:41:49 +00:00
2021-03-10 11:41:49 +00:00
2021-03-10 11:41:49 +00:00
2021-03-10 11:41:49 +00:00
2021-03-10 11:41:49 +00:00
2021-03-02 20:51:18 +00:00
2021-03-09 11:11:17 +00:00
2021-03-10 11:41:49 +00:00
2021-03-10 11:41:49 +00:00
2021-03-10 11:41:49 +00:00
2021-03-22 16:06:35 +00:00
2021-03-09 11:11:17 +00:00
2021-02-17 01:01:03 +00:00
2021-03-11 17:39:32 +00:00
2021-03-26 12:47:58 +00:00
2021-03-15 17:01:34 +00:00
2021-03-09 11:11:17 +00:00
2021-03-09 11:11:17 +00:00
2021-03-11 17:39:32 +00:00
2021-03-10 11:41:49 +00:00
2021-03-10 11:41:49 +00:00
2021-03-10 11:41:49 +00:00
2021-03-10 11:41:49 +00:00
2021-03-10 11:41:49 +00:00
2021-03-10 11:41:49 +00:00
2021-03-09 11:11:17 +00:00
2021-03-02 20:51:18 +00:00
2021-02-26 22:56:16 +00:00
2021-03-11 17:39:32 +00:00
2021-03-09 11:11:17 +00:00
2021-03-10 11:41:49 +00:00
2021-03-10 11:41:49 +00:00
2021-03-09 11:11:17 +00:00
2021-03-09 11:11:17 +00:00
2021-03-11 17:39:32 +00:00
2021-03-10 11:41:49 +00:00
2021-03-10 11:41:49 +00:00
2021-03-10 11:41:49 +00:00
2021-03-10 11:41:49 +00:00
2021-03-10 11:41:49 +00:00
2021-03-10 11:41:49 +00:00
2021-03-25 12:55:27 +00:00
2021-03-11 17:39:32 +00:00
2021-03-17 09:26:04 +00:00
2021-03-17 09:26:04 +00:00
2021-03-09 11:11:17 +00:00
2021-03-10 11:41:49 +00:00
2020-03-02 15:47:43 -05:00
2020-03-02 15:47:43 -05:00
2021-03-10 11:41:49 +00:00
2021-03-10 11:41:49 +00:00
2021-03-10 11:41:49 +00:00
2021-03-22 16:06:35 +00:00
2021-03-10 11:41:49 +00:00
2021-03-10 11:41:49 +00:00
2021-03-22 16:06:35 +00:00
2021-03-09 11:11:17 +00:00
2021-02-26 22:56:16 +00:00
2021-03-09 11:11:17 +00:00
2021-03-09 11:11:17 +00:00
2021-03-11 17:39:32 +00:00
2021-03-09 11:11:17 +00:00
2021-03-09 11:11:17 +00:00
2021-01-18 21:06:34 +00:00
2021-03-18 21:03:24 +00:00
2021-03-09 11:11:17 +00:00
2021-03-09 11:11:17 +00:00
2021-03-11 17:39:32 +00:00
2021-03-09 11:11:17 +00:00
2021-03-11 17:39:32 +00:00
2021-03-15 10:43:11 +00:00
2021-03-15 10:43:11 +00:00
2021-03-15 10:43:11 +00:00
2021-03-09 11:11:17 +00:00
2021-03-09 11:11:17 +00:00
2021-03-15 20:34:22 +00:00
2021-03-15 10:43:11 +00:00
2021-03-15 10:43:11 +00:00
2021-03-15 10:43:11 +00:00
2021-03-15 10:43:11 +00:00
2021-03-11 17:39:32 +00:00
2021-03-11 17:39:32 +00:00
2021-03-11 17:39:32 +00:00
2021-03-11 17:39:32 +00:00
2021-03-11 17:39:32 +00:00
2021-03-10 11:41:49 +00:00
2021-03-10 11:41:49 +00:00
2021-03-10 11:41:49 +00:00
2021-03-09 11:11:17 +00:00
2021-03-10 11:41:49 +00:00
2021-03-10 11:41:49 +00:00
2021-03-10 11:41:49 +00:00
2021-03-22 16:06:35 +00:00
2021-03-09 11:11:17 +00:00
2021-02-26 22:56:16 +00:00
2021-03-10 11:41:49 +00:00
2021-03-10 11:41:49 +00:00
2021-03-10 11:41:49 +00:00
2020-03-02 15:47:43 -05:00
2020-03-02 15:47:43 -05:00
2021-03-10 11:41:49 +00:00
2021-03-10 11:41:49 +00:00
2021-03-10 11:41:49 +00:00
2021-03-29 21:21:35 +00:00
2021-03-31 12:46:52 +00:00
2021-03-29 21:21:35 +00:00
2021-03-09 11:11:17 +00:00
2021-03-09 11:11:17 +00:00
2021-03-11 17:39:32 +00:00