[tint][uniformity] ignores post-loop code if loop only returns
Consider:
loop {
return;
continuing { break if true; }
}
post_loop_code();
The loop behaviour is exactly {Return}, and so uniformity issues
in post_loop_code() should be ignored.
The short-circuiting of the analysis applies to all kinds of loops:
loop, for, and while.
While loops always have conditions, and so the behaviour of a while
loop always includes Next.
Similarly, a for loop with a non-empty condition clause will
have a behaviour including Next.
Fixed: 452692768
Change-Id: I6a6a6964630ea42948e308d037dbe75524289c5d
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/267474
Commit-Queue: David Neto <dneto@google.com>
Reviewed-by: James Price <jrprice@google.com>
Dawn is an open-source and cross-platform implementation of the WebGPU standard. More precisely it implements webgpu.h that is a one-to-one mapping with the WebGPU IDL. Dawn is meant to be integrated as part of a larger system and is the underlying implementation of WebGPU in Chromium.
Dawn provides several WebGPU building blocks:
webgpu.h version that Dawn implements.webgpu.h.Helpful links:
Developer documentation:
User documentation: (TODO, figure out what overlaps with the webgpu.h docs)
BSD 3-Clause License, please see LICENSE.
This is not an officially supported Google product.