Range Analysis: Compute the range of loop control variable - Part III 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_rhs, const_value] for (var i = const_value; const_rhs <= i; i--) // The range of i is [const_value, const_rhs] for (var i = const_value; const_rhs >= i; i++) // The range of i is [const_rhs + 1, const_value] for (var i = const_value; const_rhs < i; i--) // The range of i is [const_value, const_rhs - 1] for (var i = const_value; const_rhs > i; i++) ``` Bug: 348701956 Test: tint_unittests Change-Id: Id95c7d4ae62333731a6641e0261d60077d321592 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/238234 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.