Ben Clayton
6cdb1bf7c0
resolver: Fix constant propagation for POC
...
Pipeline overidable constants are not compile-time constant.
If a module-scope const has an [[override]] decoration, do not assign
the constant value to it, as this will propagate, and the constant value
may become inlined in places that should be overridable.
Also: Rename sem::GlobalVariable::IsPipelineConstant() to
IsOverridable() to make it clearer that this is not a compile-time known
value. Add SetIsOverridable() so we can correctly set the
IsOverridable() flag even when there isn't an ID.
Change-Id: I5ede9dd180d5ff1696b3868ea4313fc28f93af4b
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/69140
Auto-Submit: Ben Clayton <bclayton@google.com>
Reviewed-by: James Price <jrprice@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
2021-11-11 19:12:36 +00:00
..
2021-07-22 18:56:54 +00:00
2021-10-19 18:38:54 +00:00
2021-06-17 15:48:39 +00:00
2021-07-28 22:43:36 +00:00
2021-07-28 22:43:36 +00:00
2021-05-10 19:16:46 +00:00
2021-11-05 16:51:38 +00:00
2021-11-05 16:51:38 +00:00
2021-05-14 17:51:13 +00:00
2021-07-22 18:56:54 +00:00
2021-07-22 18:56:54 +00:00
2021-10-19 18:38:54 +00:00
2021-10-19 18:38:54 +00:00
2021-11-05 16:51:38 +00:00
2021-11-05 16:51:38 +00:00
2021-11-05 16:51:38 +00:00
2021-11-05 16:51:38 +00:00
2021-07-26 22:19:48 +00:00
2021-07-26 22:19:48 +00:00
2021-07-26 22:19:48 +00:00
2021-05-14 17:51:13 +00:00
2021-06-24 11:27:36 +00:00
2021-05-05 16:55:22 +00:00
2021-10-19 18:38:54 +00:00
2021-11-05 16:51:38 +00:00
2021-05-14 17:51:13 +00:00
2021-05-05 16:55:22 +00:00
2021-05-05 16:55:22 +00:00
2021-05-14 17:51:13 +00:00
2021-07-22 18:56:54 +00:00
2021-07-22 18:56:54 +00:00
2021-11-05 16:51:38 +00:00
2021-11-05 16:51:38 +00:00
2021-11-05 16:51:38 +00:00
2021-11-10 14:38:34 +00:00
2021-05-14 17:51:13 +00:00
2021-07-22 18:56:54 +00:00
2021-07-22 18:56:54 +00:00
2021-11-05 16:51:38 +00:00
2021-11-05 16:51:38 +00:00
2021-04-19 15:20:03 +00:00
2021-11-05 16:51:38 +00:00
2021-06-14 15:29:34 +00:00
2021-08-26 15:26:25 +00:00
2021-07-22 13:24:59 +00:00
2021-08-26 15:26:25 +00:00
2021-07-22 13:24:59 +00:00
2021-10-19 18:38:54 +00:00
2021-10-19 18:38:54 +00:00
2021-11-05 16:51:38 +00:00
2021-11-05 16:51:38 +00:00
2021-05-14 17:51:13 +00:00
2021-10-19 18:38:54 +00:00
2021-10-19 18:38:54 +00:00
2021-10-19 18:38:54 +00:00
2021-10-19 18:38:54 +00:00
2021-05-19 19:51:22 +00:00
2021-06-24 11:27:36 +00:00
2021-10-19 18:38:54 +00:00
2021-05-06 15:52:33 +00:00
2021-05-06 15:52:33 +00:00
2021-06-03 09:16:14 +00:00
2021-06-01 10:00:10 +00:00
2021-06-03 09:16:14 +00:00
2021-06-01 10:00:10 +00:00
2021-06-03 16:07:34 +00:00
2021-06-04 22:17:37 +00:00
2021-06-24 11:27:36 +00:00
2021-07-06 10:20:19 +00:00
2021-06-04 22:17:37 +00:00
2021-06-24 11:27:36 +00:00
2021-07-06 10:20:19 +00:00
2021-05-19 19:51:22 +00:00
2021-06-24 11:27:36 +00:00
2021-05-05 16:55:22 +00:00
2021-07-22 13:24:59 +00:00
2021-05-05 16:55:22 +00:00
2021-05-05 16:55:22 +00:00
2021-07-22 18:56:54 +00:00
2021-10-15 17:33:10 +00:00
2021-11-05 16:51:38 +00:00
2021-11-05 16:51:38 +00:00
2021-06-04 20:41:47 +00:00
2021-06-04 20:41:47 +00:00
2021-06-04 20:41:47 +00:00
2021-10-19 18:38:54 +00:00
2021-10-19 18:38:54 +00:00
2021-11-05 16:51:38 +00:00
2021-11-05 16:51:38 +00:00
2021-04-19 22:54:43 +00:00
2021-05-21 19:40:23 +00:00
2021-04-21 13:47:12 +00:00
2021-04-21 13:47:12 +00:00
2021-04-19 22:54:43 +00:00
2021-04-19 22:54:43 +00:00
2021-04-19 22:54:43 +00:00
2021-06-16 09:19:36 +00:00
2021-08-23 15:16:42 +00:00
2021-07-22 18:56:54 +00:00
2021-05-14 17:51:13 +00:00
2021-07-22 18:56:54 +00:00
2021-07-22 18:56:54 +00:00
2021-11-11 19:12:36 +00:00
2021-11-11 19:12:36 +00:00
2021-07-22 18:31:34 +00:00
2021-07-22 18:56:54 +00:00
2021-10-19 18:38:54 +00:00
2021-05-05 16:55:22 +00:00
2021-05-05 16:55:22 +00:00