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-10-19 18:38:54 +00:00
2021-06-17 15:48:39 +00:00
2021-05-14 17:51:13 +00:00
2021-05-14 17:51:13 +00:00
2021-05-14 17:51:13 +00:00
2021-04-19 15:20:03 +00:00
2021-08-26 15:26:25 +00:00
2021-05-14 17:51:13 +00:00
2021-07-06 10:20:19 +00:00
2021-05-05 16:55:22 +00:00
2021-05-05 16:55:22 +00:00
2021-10-15 17:33:10 +00:00
2021-10-19 18:38:54 +00:00
2021-10-19 18:38:54 +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