mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-08 21:17:45 +00:00
tint: Implement pointer alias analysis
Track reads and writes to pointer parameters for each function in the Resolver, as well as accesses to module-scope variables. At function call sites, check the root identifiers of each pointer argument to determine if problematic aliasing occurs. The MSL backend passes pointers to sub-objects to functions when handling workgroup storage variables, which triggers the alias analysis. Add a validation override for this scenario. Bug: tint:1675 Change-Id: I81a40d1309df65521cc5ad39764d6a09a260f51e Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/110167 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Ben Clayton <bclayton@google.com> Commit-Queue: James Price <jrprice@google.com>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
d6f9a8a253
commit
4d65fc91bb
@@ -5,6 +5,8 @@
|
||||
### Deprecated Features
|
||||
|
||||
* The `sig` member of the return type of `frexp()` has been renamed to `fract`. [tint:1757](crbug.com/tint/1757)
|
||||
* Calling a function with multiple pointer arguments that alias each other is now a warning, and
|
||||
will become an error in a future release. [tint:1675](crbug.com/tint/1675)
|
||||
|
||||
## Changes for M109
|
||||
|
||||
|
||||
Reference in New Issue
Block a user