commit | 76c6d0bb06e23257c6391dcb43074fb8828f7fa6 | [log] [tgz] |
---|---|---|
author | Jiawei Shao <jiawei.shao@intel.com> | Wed Apr 23 00:38:46 2025 -0700 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Apr 23 00:38:46 2025 -0700 |
tree | 60a005f095ddb27d10724b8a6ebb8f47d19caa56 | |
parent | 7237138b9eadb747658cbc6c08881c5493997e2e [diff] |
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.