Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/run-make/autodiff/type-trees/array-typetree/rmake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
use run_make_support::{llvm_filecheck, rfs, rustc};

fn main() {
rustc().input("test.rs").arg("-Zautodiff=Enable").emit("llvm-ir").run();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, this gave the right error on my system, when I ran it individually:

error: using the autodiff feature requires setting `lto="fat"` in your Cargo.toml

error: aborting due to 1 previous error

I probably didn't notice it between all the other failures.

rustc().input("test.rs").arg("-Zautodiff=Enable").arg("-Clto=fat").emit("llvm-ir").run();
llvm_filecheck().patterns("array.check").stdin_buf(rfs::read("test.ll")).run();
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ fn main() {
.arg("-Zautodiff=Enable")
.arg("-Zautodiff=NoPostopt")
.opt_level("0")
.arg("-Clto=fat")
.emit("llvm-ir")
.run();

Expand Down
2 changes: 2 additions & 0 deletions tests/run-make/autodiff/type-trees/nott-flag/rmake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ fn main() {
rustc()
.input("test.rs")
.arg("-Zautodiff=Enable,NoTT")
.arg("-Clto=fat")
.emit("llvm-ir")
.arg("-o")
.arg("nott.ll")
Expand All @@ -17,6 +18,7 @@ fn main() {
rustc()
.input("test.rs")
.arg("-Zautodiff=Enable")
.arg("-Clto=fat")
.emit("llvm-ir")
.arg("-o")
.arg("with_tt.ll")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
use run_make_support::{llvm_filecheck, rfs, rustc};

fn main() {
rustc().input("test.rs").arg("-Zautodiff=Enable").emit("llvm-ir").run();
rustc().input("test.rs").arg("-Zautodiff=Enable").arg("-Clto=fat").emit("llvm-ir").run();
llvm_filecheck().patterns("recursion.check").stdin_buf(rfs::read("test.ll")).run();
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use run_make_support::{llvm_filecheck, rfs, rustc};

fn main() {
// Compile with TypeTree enabled and emit LLVM IR
rustc().input("test.rs").arg("-Zautodiff=Enable").emit("llvm-ir").run();
rustc().input("test.rs").arg("-Zautodiff=Enable").arg("-Clto=fat").emit("llvm-ir").run();

// Check that f128 TypeTree metadata is correctly generated
llvm_filecheck().patterns("f128.check").stdin_buf(rfs::read("test.ll")).run();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use run_make_support::{llvm_filecheck, rfs, rustc};

fn main() {
// Compile with TypeTree enabled and emit LLVM IR
rustc().input("test.rs").arg("-Zautodiff=Enable").emit("llvm-ir").run();
rustc().input("test.rs").arg("-Zautodiff=Enable").arg("-Clto=fat").emit("llvm-ir").run();

// Check that f16 TypeTree metadata is correctly generated
llvm_filecheck().patterns("f16.check").stdin_buf(rfs::read("test.ll")).run();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use run_make_support::{llvm_filecheck, rfs, rustc};

fn main() {
// Compile with TypeTree enabled and emit LLVM IR
rustc().input("test.rs").arg("-Zautodiff=Enable").emit("llvm-ir").run();
rustc().input("test.rs").arg("-Zautodiff=Enable").arg("-Clto=fat").emit("llvm-ir").run();

// Check that f32 TypeTree metadata is correctly generated
llvm_filecheck().patterns("f32.check").stdin_buf(rfs::read("test.ll")).run();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use run_make_support::{llvm_filecheck, rfs, rustc};

fn main() {
// Compile with TypeTree enabled and emit LLVM IR
rustc().input("test.rs").arg("-Zautodiff=Enable").emit("llvm-ir").run();
rustc().input("test.rs").arg("-Zautodiff=Enable").arg("-Clto=fat").emit("llvm-ir").run();

// Check that f64 TypeTree metadata is correctly generated
llvm_filecheck().patterns("f64.check").stdin_buf(rfs::read("test.ll")).run();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use run_make_support::{llvm_filecheck, rfs, rustc};

fn main() {
// Compile with TypeTree enabled and emit LLVM IR
rustc().input("test.rs").arg("-Zautodiff=Enable").emit("llvm-ir").run();
rustc().input("test.rs").arg("-Zautodiff=Enable").arg("-Clto=fat").emit("llvm-ir").run();

// Check that i32 TypeTree metadata is correctly generated
llvm_filecheck().patterns("i32.check").stdin_buf(rfs::read("test.ll")).run();
Expand Down
2 changes: 1 addition & 1 deletion tests/run-make/autodiff/type-trees/slice-typetree/rmake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
use run_make_support::{llvm_filecheck, rfs, rustc};

fn main() {
rustc().input("test.rs").arg("-Zautodiff=Enable").emit("llvm-ir").run();
rustc().input("test.rs").arg("-Zautodiff=Enable").arg("-Clto=fat").emit("llvm-ir").run();
llvm_filecheck().patterns("slice.check").stdin_buf(rfs::read("test.ll")).run();
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
use run_make_support::{llvm_filecheck, rfs, rustc};

fn main() {
rustc().input("test.rs").arg("-Zautodiff=Enable").emit("llvm-ir").run();
rustc().input("test.rs").arg("-Zautodiff=Enable").arg("-Clto=fat").emit("llvm-ir").run();
llvm_filecheck().patterns("struct.check").stdin_buf(rfs::read("test.ll")).run();
}
2 changes: 1 addition & 1 deletion tests/run-make/autodiff/type-trees/tuple-typetree/rmake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
use run_make_support::{llvm_filecheck, rfs, rustc};

fn main() {
rustc().input("test.rs").arg("-Zautodiff=Enable").emit("llvm-ir").run();
rustc().input("test.rs").arg("-Zautodiff=Enable").arg("-Clto=fat").emit("llvm-ir").run();
llvm_filecheck().patterns("tuple.check").stdin_buf(rfs::read("test.ll")).run();
}
Loading