Range Analysis: Compute the range of loop control variable - Part II This patch implements the range analysis on the loop control variable of a simple for-loop when the for-loop matches the below pattern: ``` // The range of i is [const_value, const_rhs - 1] for (var i = const_value; i < const_rhs; i++) // The range of i is [const_rhs + 1, const_value] for (var i = const_value; i > const_rhs; i--) ``` Bug: 348701956 Test: tint_unittests Change-Id: I7820cf4b1394f1d38b2f47fa428a8ef5ab04d02c Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/236994 Commit-Queue: Jiawei Shao <jiawei.shao@intel.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.