From 402afd7403bcea1371199b996958e09c3c6ecffe Mon Sep 17 00:00:00 2001 From: Eduard-Mihai Burtescu Date: Mon, 30 Jan 2023 23:05:32 +0200 Subject: [PATCH] Add `CHANGELOG` entry for `--spirt-passes=...`. --- CHANGELOG.md | 5 +++++ docs/src/codegen-args.md | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index aa900ae740..8c4445deca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,6 +29,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Added ⭐ +- [PR#988](https://github.com/EmbarkStudios/rust-gpu/pull/988) added a couple of (highly experimental) + `SPIR-🇹` optimization passes, and `--spirt-passes=...` codegen args as a way to enable them + (see also [the `--spirt-passes` codegen args docs](docs/src/codegen-args.md#--spirt-passes-PASSES)) + ### Changed 🛠️ - [PR#982](https://github.com/EmbarkStudios/rust-gpu/pull/982) updated toolchain to `nightly-2022-12-18` - [PR#953](https://github.com/EmbarkStudios/rust-gpu/pull/953) migrated to the Rust 2021 edition, and fixed Rust 2021 support for shader crates to be on par with Rust 2018 (discrepancies having been limited to/caused by `panic!` changes in Rust 2021) diff --git a/docs/src/codegen-args.md b/docs/src/codegen-args.md index c3da6e5cc5..2965057b23 100644 --- a/docs/src/codegen-args.md +++ b/docs/src/codegen-args.md @@ -151,9 +151,10 @@ For more information, also see [the `SPIR-🇹` repository](https://github.com/E ### `--spirt-passes PASSES` -Enable additional `SPIR-🇹` passes, as listed in `PASSES` (comma-separated). -_Note: passes that are not already enabled by default are considered experimental -and likely not ready for production use, this flag exists primarily for testing.* +Enable additional `SPIR-🇹` passes, as listed in `PASSES` (comma-separated). +Their implementation can be found in [`rustc_codegen_spirv::linker::spirt_passes`](../../crates/rustc_codegen_spirv/src/linker/spirt_passes). + +_Note: passes that are not already enabled by default are considered experimental and likely not ready for production use, this flag exists primarily for testing._ ### `--dump-spirt-passes DIR`