From 2389639a0c248621c51a7a05deebb2f858356b0f Mon Sep 17 00:00:00 2001 From: Manuel Drehwald Date: Sun, 20 Apr 2025 03:10:45 -0400 Subject: [PATCH 01/29] start building enzyme on x86_64-gnu-llvm-{19|20} builders --- src/ci/docker/host-x86_64/x86_64-gnu-llvm-19/Dockerfile | 1 + src/ci/docker/host-x86_64/x86_64-gnu-llvm-20/Dockerfile | 1 + 2 files changed, 2 insertions(+) diff --git a/src/ci/docker/host-x86_64/x86_64-gnu-llvm-19/Dockerfile b/src/ci/docker/host-x86_64/x86_64-gnu-llvm-19/Dockerfile index be235f648b527..2d04bf1c33d59 100644 --- a/src/ci/docker/host-x86_64/x86_64-gnu-llvm-19/Dockerfile +++ b/src/ci/docker/host-x86_64/x86_64-gnu-llvm-19/Dockerfile @@ -52,6 +52,7 @@ ENV RUST_CONFIGURE_ARGS \ --build=x86_64-unknown-linux-gnu \ --llvm-root=/usr/lib/llvm-19 \ --enable-llvm-link-shared \ + --enable-llvm-enzyme \ --set rust.randomize-layout=true \ --set rust.thin-lto-import-instr-limit=10 diff --git a/src/ci/docker/host-x86_64/x86_64-gnu-llvm-20/Dockerfile b/src/ci/docker/host-x86_64/x86_64-gnu-llvm-20/Dockerfile index 408b87125e0c6..3edf165021b84 100644 --- a/src/ci/docker/host-x86_64/x86_64-gnu-llvm-20/Dockerfile +++ b/src/ci/docker/host-x86_64/x86_64-gnu-llvm-20/Dockerfile @@ -52,6 +52,7 @@ ENV RUST_CONFIGURE_ARGS \ --build=x86_64-unknown-linux-gnu \ --llvm-root=/usr/lib/llvm-20 \ --enable-llvm-link-shared \ + --enable-llvm-enzyme \ --set rust.randomize-layout=true \ --set rust.thin-lto-import-instr-limit=10 From 568ce15116216d8434e9597ffb2bebf107f4c8e9 Mon Sep 17 00:00:00 2001 From: Manuel Drehwald Date: Sun, 20 Apr 2025 03:42:21 -0400 Subject: [PATCH 02/29] enable enzyme for x86-64 dist builds --- src/ci/docker/host-x86_64/dist-x86_64-linux/Dockerfile | 2 ++ src/ci/docker/host-x86_64/x86_64-gnu/Dockerfile | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/ci/docker/host-x86_64/dist-x86_64-linux/Dockerfile b/src/ci/docker/host-x86_64/dist-x86_64-linux/Dockerfile index ae5bf8946dd94..ba5fff53bf3b7 100644 --- a/src/ci/docker/host-x86_64/dist-x86_64-linux/Dockerfile +++ b/src/ci/docker/host-x86_64/dist-x86_64-linux/Dockerfile @@ -90,6 +90,8 @@ ENV RUST_CONFIGURE_ARGS \ --set target.x86_64-unknown-linux-gnu.ranlib=/rustroot/bin/llvm-ranlib \ --set llvm.thin-lto=true \ --set llvm.ninja=false \ + --set llvm.plugins=true \ + --set llvm.enzyme=true \ --set llvm.libzstd=true \ --set rust.jemalloc \ --set rust.use-lld=true \ diff --git a/src/ci/docker/host-x86_64/x86_64-gnu/Dockerfile b/src/ci/docker/host-x86_64/x86_64-gnu/Dockerfile index 83c2aa8cfb3b7..171ec05744de7 100644 --- a/src/ci/docker/host-x86_64/x86_64-gnu/Dockerfile +++ b/src/ci/docker/host-x86_64/x86_64-gnu/Dockerfile @@ -30,4 +30,6 @@ ENV RUST_CONFIGURE_ARGS \ --enable-profiler \ --enable-compiler-docs \ --set llvm.libzstd=true + --set llvm.plugins=true \ + --set llvm.enzyme=true \ ENV SCRIPT python3 ../x.py --stage 2 test From cd25cc1713ba12185ae87074c5d05257f9c3322e Mon Sep 17 00:00:00 2001 From: Manuel Drehwald Date: Sun, 20 Apr 2025 20:36:30 -0400 Subject: [PATCH 03/29] temporarily remove tests for benchmarking --- tests/ui/autodiff/visibility.rs | 17 ----------- .../autodiff/visibility.std_autodiff.stderr | 24 --------------- ...ature-gate-autodiff-use.has_support.stderr | 23 --------------- ...eature-gate-autodiff-use.no_support.stderr | 29 ------------------- .../feature-gate-autodiff-use.rs | 17 ----------- 5 files changed, 110 deletions(-) delete mode 100644 tests/ui/autodiff/visibility.rs delete mode 100644 tests/ui/autodiff/visibility.std_autodiff.stderr delete mode 100644 tests/ui/feature-gates/feature-gate-autodiff-use.has_support.stderr delete mode 100644 tests/ui/feature-gates/feature-gate-autodiff-use.no_support.stderr delete mode 100644 tests/ui/feature-gates/feature-gate-autodiff-use.rs diff --git a/tests/ui/autodiff/visibility.rs b/tests/ui/autodiff/visibility.rs deleted file mode 100644 index dfaec03aef01f..0000000000000 --- a/tests/ui/autodiff/visibility.rs +++ /dev/null @@ -1,17 +0,0 @@ -//@ ignore-enzyme -//@ revisions: std_autodiff no_std_autodiff -//@[no_std_autodiff] check-pass -//@ proc-macro: my_macro.rs -#![crate_type = "lib"] -#![feature(autodiff)] - -#[cfg(std_autodiff)] -use std::autodiff::autodiff; - -extern crate my_macro; -use my_macro::autodiff; // bring `autodiff` in scope - -#[autodiff] -//[std_autodiff]~^^^ ERROR the name `autodiff` is defined multiple times -//[std_autodiff]~^^ ERROR this rustc version does not support autodiff -fn foo() {} diff --git a/tests/ui/autodiff/visibility.std_autodiff.stderr b/tests/ui/autodiff/visibility.std_autodiff.stderr deleted file mode 100644 index 720c9a00170e9..0000000000000 --- a/tests/ui/autodiff/visibility.std_autodiff.stderr +++ /dev/null @@ -1,24 +0,0 @@ -error[E0252]: the name `autodiff` is defined multiple times - --> $DIR/visibility.rs:12:5 - | -LL | use std::autodiff::autodiff; - | ----------------------- previous import of the macro `autodiff` here -... -LL | use my_macro::autodiff; // bring `autodiff` in scope - | ^^^^^^^^^^^^^^^^^^ `autodiff` reimported here - | - = note: `autodiff` must be defined only once in the macro namespace of this module -help: you can use `as` to change the binding name of the import - | -LL | use my_macro::autodiff as other_autodiff; // bring `autodiff` in scope - | +++++++++++++++++ - -error: this rustc version does not support autodiff - --> $DIR/visibility.rs:14:1 - | -LL | #[autodiff] - | ^^^^^^^^^^^ - -error: aborting due to 2 previous errors - -For more information about this error, try `rustc --explain E0252`. diff --git a/tests/ui/feature-gates/feature-gate-autodiff-use.has_support.stderr b/tests/ui/feature-gates/feature-gate-autodiff-use.has_support.stderr deleted file mode 100644 index 15ef257fbd84d..0000000000000 --- a/tests/ui/feature-gates/feature-gate-autodiff-use.has_support.stderr +++ /dev/null @@ -1,23 +0,0 @@ -error[E0658]: use of unstable library feature `autodiff` - --> $DIR/feature-gate-autodiff-use.rs:13:3 - | -LL | #[autodiff(dfoo, Reverse)] - | ^^^^^^^^ - | - = note: see issue #124509 for more information - = help: add `#![feature(autodiff)]` to the crate attributes to enable - = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date - -error[E0658]: use of unstable library feature `autodiff` - --> $DIR/feature-gate-autodiff-use.rs:9:5 - | -LL | use std::autodiff::autodiff; - | ^^^^^^^^^^^^^^^^^^^^^^^ - | - = note: see issue #124509 for more information - = help: add `#![feature(autodiff)]` to the crate attributes to enable - = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date - -error: aborting due to 2 previous errors - -For more information about this error, try `rustc --explain E0658`. diff --git a/tests/ui/feature-gates/feature-gate-autodiff-use.no_support.stderr b/tests/ui/feature-gates/feature-gate-autodiff-use.no_support.stderr deleted file mode 100644 index f59e495545202..0000000000000 --- a/tests/ui/feature-gates/feature-gate-autodiff-use.no_support.stderr +++ /dev/null @@ -1,29 +0,0 @@ -error[E0658]: use of unstable library feature `autodiff` - --> $DIR/feature-gate-autodiff-use.rs:13:3 - | -LL | #[autodiff(dfoo, Reverse)] - | ^^^^^^^^ - | - = note: see issue #124509 for more information - = help: add `#![feature(autodiff)]` to the crate attributes to enable - = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date - -error: this rustc version does not support autodiff - --> $DIR/feature-gate-autodiff-use.rs:13:1 - | -LL | #[autodiff(dfoo, Reverse)] - | ^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error[E0658]: use of unstable library feature `autodiff` - --> $DIR/feature-gate-autodiff-use.rs:9:5 - | -LL | use std::autodiff::autodiff; - | ^^^^^^^^^^^^^^^^^^^^^^^ - | - = note: see issue #124509 for more information - = help: add `#![feature(autodiff)]` to the crate attributes to enable - = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date - -error: aborting due to 3 previous errors - -For more information about this error, try `rustc --explain E0658`. diff --git a/tests/ui/feature-gates/feature-gate-autodiff-use.rs b/tests/ui/feature-gates/feature-gate-autodiff-use.rs deleted file mode 100644 index 602e830b0b21c..0000000000000 --- a/tests/ui/feature-gates/feature-gate-autodiff-use.rs +++ /dev/null @@ -1,17 +0,0 @@ -//@ revisions: has_support no_support -//@[no_support] ignore-enzyme -//@[has_support] needs-enzyme - -// This checks that without enabling the autodiff feature, we can't import std::autodiff::autodiff; - -#![crate_type = "lib"] - -use std::autodiff::autodiff; -//[has_support]~^ ERROR use of unstable library feature `autodiff` -//[no_support]~^^ ERROR use of unstable library feature `autodiff` - -#[autodiff(dfoo, Reverse)] -//[has_support]~^ ERROR use of unstable library feature `autodiff` [E0658] -//[no_support]~^^ ERROR use of unstable library feature `autodiff` [E0658] -//[no_support]~| ERROR this rustc version does not support autodiff -fn foo() {} From d021346e39116f177685be849ec24e450b852847 Mon Sep 17 00:00:00 2001 From: Manuel Drehwald Date: Mon, 21 Apr 2025 01:04:26 -0400 Subject: [PATCH 04/29] Revert "start building enzyme on x86_64-gnu-llvm-{19|20} builders" This reverts commit 1302345249a82dbf8e5b414be0918e7ab3fb34a0. --- src/ci/docker/host-x86_64/x86_64-gnu-llvm-19/Dockerfile | 1 - src/ci/docker/host-x86_64/x86_64-gnu-llvm-20/Dockerfile | 1 - 2 files changed, 2 deletions(-) diff --git a/src/ci/docker/host-x86_64/x86_64-gnu-llvm-19/Dockerfile b/src/ci/docker/host-x86_64/x86_64-gnu-llvm-19/Dockerfile index 2d04bf1c33d59..be235f648b527 100644 --- a/src/ci/docker/host-x86_64/x86_64-gnu-llvm-19/Dockerfile +++ b/src/ci/docker/host-x86_64/x86_64-gnu-llvm-19/Dockerfile @@ -52,7 +52,6 @@ ENV RUST_CONFIGURE_ARGS \ --build=x86_64-unknown-linux-gnu \ --llvm-root=/usr/lib/llvm-19 \ --enable-llvm-link-shared \ - --enable-llvm-enzyme \ --set rust.randomize-layout=true \ --set rust.thin-lto-import-instr-limit=10 diff --git a/src/ci/docker/host-x86_64/x86_64-gnu-llvm-20/Dockerfile b/src/ci/docker/host-x86_64/x86_64-gnu-llvm-20/Dockerfile index 3edf165021b84..408b87125e0c6 100644 --- a/src/ci/docker/host-x86_64/x86_64-gnu-llvm-20/Dockerfile +++ b/src/ci/docker/host-x86_64/x86_64-gnu-llvm-20/Dockerfile @@ -52,7 +52,6 @@ ENV RUST_CONFIGURE_ARGS \ --build=x86_64-unknown-linux-gnu \ --llvm-root=/usr/lib/llvm-20 \ --enable-llvm-link-shared \ - --enable-llvm-enzyme \ --set rust.randomize-layout=true \ --set rust.thin-lto-import-instr-limit=10 From dc9ad1a4742ca73572b89c3cd4fe4c2e3e22102d Mon Sep 17 00:00:00 2001 From: Manuel Drehwald Date: Mon, 21 Apr 2025 16:29:32 -0400 Subject: [PATCH 05/29] test autodiff on more builders --- src/ci/docker/host-aarch64/dist-aarch64-linux/Dockerfile | 2 ++ src/ci/github-actions/jobs.yml | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ci/docker/host-aarch64/dist-aarch64-linux/Dockerfile b/src/ci/docker/host-aarch64/dist-aarch64-linux/Dockerfile index 2b8a3f829c608..dd93ef98d2b85 100644 --- a/src/ci/docker/host-aarch64/dist-aarch64-linux/Dockerfile +++ b/src/ci/docker/host-aarch64/dist-aarch64-linux/Dockerfile @@ -89,6 +89,8 @@ ENV RUST_CONFIGURE_ARGS \ --set llvm.thin-lto=true \ --set llvm.libzstd=true \ --set llvm.ninja=false \ + --set llvm.plugins=true \ + --set llvm.enzyme=true \ --set rust.debug-assertions=false \ --set rust.jemalloc \ --set rust.use-lld=true \ diff --git a/src/ci/github-actions/jobs.yml b/src/ci/github-actions/jobs.yml index cb2bec5a9dfa6..7cb922fc13f0e 100644 --- a/src/ci/github-actions/jobs.yml +++ b/src/ci/github-actions/jobs.yml @@ -369,7 +369,7 @@ auto: - name: dist-x86_64-apple env: SCRIPT: ./x.py dist bootstrap --include-default-paths --host=x86_64-apple-darwin --target=x86_64-apple-darwin - RUST_CONFIGURE_ARGS: --enable-full-tools --enable-sanitizers --enable-profiler --set rust.jemalloc --set rust.lto=thin --set rust.codegen-units=1 + RUST_CONFIGURE_ARGS: --enable-full-tools --enable-sanitizers --enable-profiler --set llvm.plugins=true --set llvm.enzyme=true --set rust.jemalloc --set rust.lto=thin --set rust.codegen-units=1 RUSTC_RETRY_LINKER_ON_SEGFAULT: 1 # Ensure that host tooling is built to support our minimum support macOS version. MACOSX_DEPLOYMENT_TARGET: 10.12 @@ -387,7 +387,7 @@ auto: SCRIPT: ./x.py dist bootstrap --include-default-paths --host='' --target=aarch64-apple-ios,x86_64-apple-ios,aarch64-apple-ios-sim,aarch64-apple-ios-macabi,x86_64-apple-ios-macabi # Mac Catalyst cannot currently compile the sanitizer: # https://github.com/rust-lang/rust/issues/129069 - RUST_CONFIGURE_ARGS: --enable-sanitizers --enable-profiler --set rust.jemalloc --set target.aarch64-apple-ios-macabi.sanitizers=false --set target.x86_64-apple-ios-macabi.sanitizers=false + RUST_CONFIGURE_ARGS: --enable-sanitizers --enable-profiler --set rust.jemalloc --set llvm.plugins=true --set llvm.enzyme=true --set target.aarch64-apple-ios-macabi.sanitizers=false --set target.x86_64-apple-ios-macabi.sanitizers=false RUSTC_RETRY_LINKER_ON_SEGFAULT: 1 # Ensure that host tooling is built to support our minimum support macOS version. # FIXME(madsmtm): This might be redundant, as we're not building host tooling here (?) @@ -419,6 +419,8 @@ auto: --enable-profiler --set rust.jemalloc --set llvm.ninja=false + --set llvm.plugins=true \ + --set llvm.enzyme=true \ --set rust.lto=thin --set rust.codegen-units=1 RUSTC_RETRY_LINKER_ON_SEGFAULT: 1 From 9075e8edb55e5fa7de330305d241e8d61171e12c Mon Sep 17 00:00:00 2001 From: Manuel Drehwald Date: Mon, 21 Apr 2025 16:50:34 -0400 Subject: [PATCH 06/29] fix apple action formating --- src/ci/github-actions/jobs.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ci/github-actions/jobs.yml b/src/ci/github-actions/jobs.yml index 7cb922fc13f0e..eb50f18b94ab2 100644 --- a/src/ci/github-actions/jobs.yml +++ b/src/ci/github-actions/jobs.yml @@ -419,8 +419,8 @@ auto: --enable-profiler --set rust.jemalloc --set llvm.ninja=false - --set llvm.plugins=true \ - --set llvm.enzyme=true \ + --set llvm.plugins=true + --set llvm.enzyme=true --set rust.lto=thin --set rust.codegen-units=1 RUSTC_RETRY_LINKER_ON_SEGFAULT: 1 From a1d90410ddcb52f9c2b963a6f1227f84e4935d79 Mon Sep 17 00:00:00 2001 From: Manuel Drehwald Date: Mon, 21 Apr 2025 21:53:18 -0400 Subject: [PATCH 07/29] test autodiff on x86_64-pc-windows-gnu --- src/ci/github-actions/jobs.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ci/github-actions/jobs.yml b/src/ci/github-actions/jobs.yml index eb50f18b94ab2..432296b8e7304 100644 --- a/src/ci/github-actions/jobs.yml +++ b/src/ci/github-actions/jobs.yml @@ -603,6 +603,8 @@ auto: SCRIPT: python x.py dist bootstrap --include-default-paths RUST_CONFIGURE_ARGS: >- --build=x86_64-pc-windows-gnu + --set llvm.plugins=true + --set llvm.enzyme=true --enable-full-tools DIST_REQUIRE_ALL_TOOLS: 1 CODEGEN_BACKENDS: llvm,cranelift From 142ec6fbf7e2047282c5afb1d7f88ca6d7a0d28b Mon Sep 17 00:00:00 2001 From: Manuel Drehwald Date: Tue, 22 Apr 2025 00:27:22 -0400 Subject: [PATCH 08/29] build only enzyme, not LLVM's plugin Interface --- src/ci/docker/host-aarch64/dist-aarch64-linux/Dockerfile | 1 - src/ci/docker/host-x86_64/dist-x86_64-linux/Dockerfile | 1 - 2 files changed, 2 deletions(-) diff --git a/src/ci/docker/host-aarch64/dist-aarch64-linux/Dockerfile b/src/ci/docker/host-aarch64/dist-aarch64-linux/Dockerfile index dd93ef98d2b85..b47f91905ac11 100644 --- a/src/ci/docker/host-aarch64/dist-aarch64-linux/Dockerfile +++ b/src/ci/docker/host-aarch64/dist-aarch64-linux/Dockerfile @@ -89,7 +89,6 @@ ENV RUST_CONFIGURE_ARGS \ --set llvm.thin-lto=true \ --set llvm.libzstd=true \ --set llvm.ninja=false \ - --set llvm.plugins=true \ --set llvm.enzyme=true \ --set rust.debug-assertions=false \ --set rust.jemalloc \ diff --git a/src/ci/docker/host-x86_64/dist-x86_64-linux/Dockerfile b/src/ci/docker/host-x86_64/dist-x86_64-linux/Dockerfile index ba5fff53bf3b7..8932319b9cd25 100644 --- a/src/ci/docker/host-x86_64/dist-x86_64-linux/Dockerfile +++ b/src/ci/docker/host-x86_64/dist-x86_64-linux/Dockerfile @@ -90,7 +90,6 @@ ENV RUST_CONFIGURE_ARGS \ --set target.x86_64-unknown-linux-gnu.ranlib=/rustroot/bin/llvm-ranlib \ --set llvm.thin-lto=true \ --set llvm.ninja=false \ - --set llvm.plugins=true \ --set llvm.enzyme=true \ --set llvm.libzstd=true \ --set rust.jemalloc \ From 4a9fab7b8dd9944cef282d480608fe05e08ded6f Mon Sep 17 00:00:00 2001 From: Manuel Drehwald Date: Tue, 22 Apr 2025 11:09:37 -0400 Subject: [PATCH 09/29] remove llvm plugin usage --- src/ci/docker/host-x86_64/x86_64-gnu/Dockerfile | 1 - src/ci/github-actions/jobs.yml | 6 ++---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/ci/docker/host-x86_64/x86_64-gnu/Dockerfile b/src/ci/docker/host-x86_64/x86_64-gnu/Dockerfile index 171ec05744de7..d30754c15022f 100644 --- a/src/ci/docker/host-x86_64/x86_64-gnu/Dockerfile +++ b/src/ci/docker/host-x86_64/x86_64-gnu/Dockerfile @@ -30,6 +30,5 @@ ENV RUST_CONFIGURE_ARGS \ --enable-profiler \ --enable-compiler-docs \ --set llvm.libzstd=true - --set llvm.plugins=true \ --set llvm.enzyme=true \ ENV SCRIPT python3 ../x.py --stage 2 test diff --git a/src/ci/github-actions/jobs.yml b/src/ci/github-actions/jobs.yml index 432296b8e7304..b05296f1d9699 100644 --- a/src/ci/github-actions/jobs.yml +++ b/src/ci/github-actions/jobs.yml @@ -369,7 +369,7 @@ auto: - name: dist-x86_64-apple env: SCRIPT: ./x.py dist bootstrap --include-default-paths --host=x86_64-apple-darwin --target=x86_64-apple-darwin - RUST_CONFIGURE_ARGS: --enable-full-tools --enable-sanitizers --enable-profiler --set llvm.plugins=true --set llvm.enzyme=true --set rust.jemalloc --set rust.lto=thin --set rust.codegen-units=1 + RUST_CONFIGURE_ARGS: --enable-full-tools --enable-sanitizers --enable-profiler --set llvm.enzyme=true --set rust.jemalloc --set rust.lto=thin --set rust.codegen-units=1 RUSTC_RETRY_LINKER_ON_SEGFAULT: 1 # Ensure that host tooling is built to support our minimum support macOS version. MACOSX_DEPLOYMENT_TARGET: 10.12 @@ -387,7 +387,7 @@ auto: SCRIPT: ./x.py dist bootstrap --include-default-paths --host='' --target=aarch64-apple-ios,x86_64-apple-ios,aarch64-apple-ios-sim,aarch64-apple-ios-macabi,x86_64-apple-ios-macabi # Mac Catalyst cannot currently compile the sanitizer: # https://github.com/rust-lang/rust/issues/129069 - RUST_CONFIGURE_ARGS: --enable-sanitizers --enable-profiler --set rust.jemalloc --set llvm.plugins=true --set llvm.enzyme=true --set target.aarch64-apple-ios-macabi.sanitizers=false --set target.x86_64-apple-ios-macabi.sanitizers=false + RUST_CONFIGURE_ARGS: --enable-sanitizers --enable-profiler --set rust.jemalloc --set llvm.enzyme=true --set target.aarch64-apple-ios-macabi.sanitizers=false --set target.x86_64-apple-ios-macabi.sanitizers=false RUSTC_RETRY_LINKER_ON_SEGFAULT: 1 # Ensure that host tooling is built to support our minimum support macOS version. # FIXME(madsmtm): This might be redundant, as we're not building host tooling here (?) @@ -419,7 +419,6 @@ auto: --enable-profiler --set rust.jemalloc --set llvm.ninja=false - --set llvm.plugins=true --set llvm.enzyme=true --set rust.lto=thin --set rust.codegen-units=1 @@ -603,7 +602,6 @@ auto: SCRIPT: python x.py dist bootstrap --include-default-paths RUST_CONFIGURE_ARGS: >- --build=x86_64-pc-windows-gnu - --set llvm.plugins=true --set llvm.enzyme=true --enable-full-tools DIST_REQUIRE_ALL_TOOLS: 1 From ab667c0ee355d57cc13127723459bcf1263c5e46 Mon Sep 17 00:00:00 2001 From: Manuel Drehwald Date: Mon, 28 Apr 2025 16:06:01 -0400 Subject: [PATCH 10/29] be more precise about the location of the llvm build directory --- src/bootstrap/src/core/build_steps/llvm.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bootstrap/src/core/build_steps/llvm.rs b/src/bootstrap/src/core/build_steps/llvm.rs index 6f6839ad15b0b..93a9a667b30ba 100644 --- a/src/bootstrap/src/core/build_steps/llvm.rs +++ b/src/bootstrap/src/core/build_steps/llvm.rs @@ -981,7 +981,7 @@ impl Step for Enzyme { .env("LLVM_CONFIG_REAL", &llvm_config) .define("LLVM_ENABLE_ASSERTIONS", "ON") .define("ENZYME_EXTERNAL_SHARED_LIB", "ON") - .define("LLVM_DIR", builder.llvm_out(target)); + .define("LLVM_DIR", builder.llvm_out(target).join("build")); cfg.build(); From 78b144221066b4f8fd581998db77596a00b9cc44 Mon Sep 17 00:00:00 2001 From: Manuel Drehwald Date: Mon, 28 Apr 2025 17:44:19 -0400 Subject: [PATCH 11/29] update enzyme submodule --- src/tools/enzyme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/enzyme b/src/tools/enzyme index a35f4f773118c..33dbfcc7f1804 160000 --- a/src/tools/enzyme +++ b/src/tools/enzyme @@ -1 +1 @@ -Subproject commit a35f4f773118ccfbd8d05102eb12a34097b1ee55 +Subproject commit 33dbfcc7f18047da1a16890559cf8dd0a5d60b0c From ccf0e4fa3f9d4756f89f7365fb64d5f025fd7df4 Mon Sep 17 00:00:00 2001 From: Manuel Drehwald Date: Mon, 28 Apr 2025 18:32:29 -0400 Subject: [PATCH 12/29] test another potential apple fix --- src/tools/enzyme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/enzyme b/src/tools/enzyme index 33dbfcc7f1804..4a5378ad97496 160000 --- a/src/tools/enzyme +++ b/src/tools/enzyme @@ -1 +1 @@ -Subproject commit 33dbfcc7f18047da1a16890559cf8dd0a5d60b0c +Subproject commit 4a5378ad97496672315c7f15c13da35f2e94e6ff From 815ba4573ed89dfeeb0865512980dcb0dd7370c1 Mon Sep 17 00:00:00 2001 From: Manuel Drehwald Date: Tue, 29 Apr 2025 13:30:22 -0400 Subject: [PATCH 13/29] another enzyme submodule update --- src/tools/enzyme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/enzyme b/src/tools/enzyme index 4a5378ad97496..3c8eb040f7de8 160000 --- a/src/tools/enzyme +++ b/src/tools/enzyme @@ -1 +1 @@ -Subproject commit 4a5378ad97496672315c7f15c13da35f2e94e6ff +Subproject commit 3c8eb040f7de88bab2e1d9edd03e4efe4daf7a5f From 7bf008776297fff341dda2dc95a1703469e34ada Mon Sep 17 00:00:00 2001 From: Manuel Drehwald Date: Tue, 29 Apr 2025 15:27:52 -0400 Subject: [PATCH 14/29] another enzyme submodule update --- src/tools/enzyme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/enzyme b/src/tools/enzyme index 3c8eb040f7de8..b3d5626b2bd03 160000 --- a/src/tools/enzyme +++ b/src/tools/enzyme @@ -1 +1 @@ -Subproject commit 3c8eb040f7de88bab2e1d9edd03e4efe4daf7a5f +Subproject commit b3d5626b2bd03353b7842f85c4cabab5a5d49cce From 121b209cb050bfa6192ba07e307cf60240c0ad50 Mon Sep 17 00:00:00 2001 From: Manuel Drehwald Date: Tue, 29 Apr 2025 16:15:26 -0400 Subject: [PATCH 15/29] another enzyme submodule update --- src/tools/enzyme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/enzyme b/src/tools/enzyme index b3d5626b2bd03..b0054c48370b1 160000 --- a/src/tools/enzyme +++ b/src/tools/enzyme @@ -1 +1 @@ -Subproject commit b3d5626b2bd03353b7842f85c4cabab5a5d49cce +Subproject commit b0054c48370b15c3057529dc56087c23b0635e83 From fd990f24fa4feaebf7df5b906d6c37f6cf8d887a Mon Sep 17 00:00:00 2001 From: Manuel Drehwald Date: Tue, 29 Apr 2025 16:27:37 -0400 Subject: [PATCH 16/29] verbose printing --- src/tools/enzyme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/enzyme b/src/tools/enzyme index b0054c48370b1..9f938a7eb579b 160000 --- a/src/tools/enzyme +++ b/src/tools/enzyme @@ -1 +1 @@ -Subproject commit b0054c48370b15c3057529dc56087c23b0635e83 +Subproject commit 9f938a7eb579b8ee3ac4816523304d6d1b597e3a From acb4323fe8d498ad075d79a0811cfd53f08f2355 Mon Sep 17 00:00:00 2001 From: Manuel Drehwald Date: Tue, 29 Apr 2025 16:42:51 -0400 Subject: [PATCH 17/29] another enzyme submodule update --- src/tools/enzyme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/enzyme b/src/tools/enzyme index 9f938a7eb579b..01becfa8d714c 160000 --- a/src/tools/enzyme +++ b/src/tools/enzyme @@ -1 +1 @@ -Subproject commit 9f938a7eb579b8ee3ac4816523304d6d1b597e3a +Subproject commit 01becfa8d714c146ed7710084e2e66e06e6b94cd From 9e0941341002d232c8b32b07bce6f512942efd6d Mon Sep 17 00:00:00 2001 From: Manuel Drehwald Date: Tue, 29 Apr 2025 17:08:29 -0400 Subject: [PATCH 18/29] another enzyme submodule update --- src/tools/enzyme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/enzyme b/src/tools/enzyme index 01becfa8d714c..0319600a44de7 160000 --- a/src/tools/enzyme +++ b/src/tools/enzyme @@ -1 +1 @@ -Subproject commit 01becfa8d714c146ed7710084e2e66e06e6b94cd +Subproject commit 0319600a44de79029b1e2d6746796e2141a87d73 From b60e06d32dd6760966cde7c4c6b0257442fe7dc3 Mon Sep 17 00:00:00 2001 From: Manuel Drehwald Date: Tue, 29 Apr 2025 17:10:58 -0400 Subject: [PATCH 19/29] another apple experiment --- src/tools/enzyme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/enzyme b/src/tools/enzyme index 0319600a44de7..62b449b78d485 160000 --- a/src/tools/enzyme +++ b/src/tools/enzyme @@ -1 +1 @@ -Subproject commit 0319600a44de79029b1e2d6746796e2141a87d73 +Subproject commit 62b449b78d4850c444a0185401ebba9cd02c3de2 From 74cf1d5f6915209559d04b93bbb121e4fa7983f8 Mon Sep 17 00:00:00 2001 From: Manuel Drehwald Date: Tue, 29 Apr 2025 19:13:16 -0400 Subject: [PATCH 20/29] another enzyme submodule update --- src/tools/enzyme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/enzyme b/src/tools/enzyme index 62b449b78d485..7950e3c356a1b 160000 --- a/src/tools/enzyme +++ b/src/tools/enzyme @@ -1 +1 @@ -Subproject commit 62b449b78d4850c444a0185401ebba9cd02c3de2 +Subproject commit 7950e3c356a1b24921b13ec7b42467ec5f17b4b0 From 747d751b297cf9e4984ee53699c7d204e91dab83 Mon Sep 17 00:00:00 2001 From: Manuel Drehwald Date: Tue, 29 Apr 2025 19:56:48 -0400 Subject: [PATCH 21/29] another enzyme submodule update --- src/tools/enzyme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/enzyme b/src/tools/enzyme index 7950e3c356a1b..154f19b891291 160000 --- a/src/tools/enzyme +++ b/src/tools/enzyme @@ -1 +1 @@ -Subproject commit 7950e3c356a1b24921b13ec7b42467ec5f17b4b0 +Subproject commit 154f19b891291dc95028a4df0968c46070313259 From 2eafa972a7da3d167a0d6b61d2ea69718e79d97a Mon Sep 17 00:00:00 2001 From: Manuel Drehwald Date: Tue, 29 Apr 2025 20:42:32 -0400 Subject: [PATCH 22/29] another enzyme submodule update --- src/tools/enzyme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/enzyme b/src/tools/enzyme index 154f19b891291..fc68383947110 160000 --- a/src/tools/enzyme +++ b/src/tools/enzyme @@ -1 +1 @@ -Subproject commit 154f19b891291dc95028a4df0968c46070313259 +Subproject commit fc683839471105833e71e333bfaccdfadc7087a0 From efa8f407ef0fd4ad52408cffed55579720b00d88 Mon Sep 17 00:00:00 2001 From: Manuel Drehwald Date: Wed, 30 Apr 2025 23:16:40 -0400 Subject: [PATCH 23/29] another enzyme submodule update --- src/tools/enzyme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/enzyme b/src/tools/enzyme index fc68383947110..1444c23e514aa 160000 --- a/src/tools/enzyme +++ b/src/tools/enzyme @@ -1 +1 @@ -Subproject commit fc683839471105833e71e333bfaccdfadc7087a0 +Subproject commit 1444c23e514aa485b2caee14507d178d5c669bb8 From c065af90a4382a9840e1a6ec424b55f773617a88 Mon Sep 17 00:00:00 2001 From: Manuel Drehwald Date: Thu, 1 May 2025 00:17:55 -0400 Subject: [PATCH 24/29] another enzyme submodule update --- src/tools/enzyme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/enzyme b/src/tools/enzyme index 1444c23e514aa..0c17a70694827 160000 --- a/src/tools/enzyme +++ b/src/tools/enzyme @@ -1 +1 @@ -Subproject commit 1444c23e514aa485b2caee14507d178d5c669bb8 +Subproject commit 0c17a70694827464264a9a1710fd7595f919da4b From 144cdf47ee81b4853424065abcadb51c0787c22e Mon Sep 17 00:00:00 2001 From: Manuel Drehwald Date: Thu, 1 May 2025 02:17:06 -0400 Subject: [PATCH 25/29] another enzyme submodule update --- src/tools/enzyme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/enzyme b/src/tools/enzyme index 0c17a70694827..7716d552de52c 160000 --- a/src/tools/enzyme +++ b/src/tools/enzyme @@ -1 +1 @@ -Subproject commit 0c17a70694827464264a9a1710fd7595f919da4b +Subproject commit 7716d552de52c36ea1bd26e9cbaf6022d809f07c From 1f8850f05324a4c3b206d14e68e9a693d5e55177 Mon Sep 17 00:00:00 2001 From: Manuel Drehwald Date: Thu, 1 May 2025 02:37:45 -0400 Subject: [PATCH 26/29] another enzyme submodule update --- src/tools/enzyme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/enzyme b/src/tools/enzyme index 7716d552de52c..8cfecc4963972 160000 --- a/src/tools/enzyme +++ b/src/tools/enzyme @@ -1 +1 @@ -Subproject commit 7716d552de52c36ea1bd26e9cbaf6022d809f07c +Subproject commit 8cfecc4963972c7ef438f5ea2525a317fd4f6d04 From 51e2d96d8363f97f56255199fc2fdb4a8fde547d Mon Sep 17 00:00:00 2001 From: Manuel Drehwald Date: Sun, 4 May 2025 18:29:56 +0200 Subject: [PATCH 27/29] another enzyme submodule update --- src/tools/enzyme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/enzyme b/src/tools/enzyme index 8cfecc4963972..4f13e93d8acb0 160000 --- a/src/tools/enzyme +++ b/src/tools/enzyme @@ -1 +1 @@ -Subproject commit 8cfecc4963972c7ef438f5ea2525a317fd4f6d04 +Subproject commit 4f13e93d8acb048d5445e6ce5d24d33ecae48331 From 5fc01ffcadbadbd435855c53f924d382e5885b92 Mon Sep 17 00:00:00 2001 From: Manuel Drehwald Date: Mon, 5 May 2025 01:49:52 +0200 Subject: [PATCH 28/29] another enzyme submodule update --- src/tools/enzyme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/enzyme b/src/tools/enzyme index 4f13e93d8acb0..d81a370cfbd17 160000 --- a/src/tools/enzyme +++ b/src/tools/enzyme @@ -1 +1 @@ -Subproject commit 4f13e93d8acb048d5445e6ce5d24d33ecae48331 +Subproject commit d81a370cfbd179d7e7279368e5fefe11b56ea065 From 83ffdd34571635649fdfe38dff470811e16a5d4f Mon Sep 17 00:00:00 2001 From: Manuel Drehwald Date: Mon, 5 May 2025 02:15:28 +0200 Subject: [PATCH 29/29] another enzyme submodule update --- src/tools/enzyme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/enzyme b/src/tools/enzyme index d81a370cfbd17..ec3755e9cbd72 160000 --- a/src/tools/enzyme +++ b/src/tools/enzyme @@ -1 +1 @@ -Subproject commit d81a370cfbd179d7e7279368e5fefe11b56ea065 +Subproject commit ec3755e9cbd72e216f772b72f95c0702bc09e2e1