commit | 1c324f2546fa6114365cc3d49cad7473f6955fb4 | [log] [tgz] |
---|---|---|
author | Jiawei Shao <jiawei.shao@intel.com> | Mon Mar 24 18:06:59 2025 -0700 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Mar 24 18:06:59 2025 -0700 |
tree | d7d552d43dbbb0fd63cc5e58c4a28971869e3090 | |
parent | 0de95eebe58cdfa29a00d5affd749669086e9972 [diff] |
Range Analysis: Get loop control variable from loop initializer This patch is the first part to implement the computation of the range on the loop control variables. In this patch we implement the helper function `GetLoopControlVariableFromConstantInitializer()` to get the pointer of the loop control variable from the loop initializer block when the block satisfy below conditions: - There are only two statements in the loop initializer block. - The first statement is to initialize the loop control variable with a constant value. - the second statement is `next_iteration`. Bug: chromium:348701956 Test: tint_unittests Change-Id: If4bf28ec17685865519e6404bdfce4c20532838a Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/222036 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.