Skip to content

Commit 126e73d

Browse files
committed
Allow core_intrinsics when autodiff is enabled
1 parent 1bd54a7 commit 126e73d

File tree

15 files changed

+2
-14
lines changed

15 files changed

+2
-14
lines changed

library/core/src/macros/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1489,6 +1489,7 @@ pub(crate) mod builtin {
14891489
/// (or explicitly returns `-> ()`). Otherwise, it must be set to one of the allowed activities.
14901490
#[unstable(feature = "autodiff", issue = "124509")]
14911491
#[allow_internal_unstable(rustc_attrs)]
1492+
#[allow_internal_unstable(core_intrinsics)]
14921493
#[rustc_builtin_macro]
14931494
pub macro autodiff_forward($item:item) {
14941495
/* compiler built-in */
@@ -1507,6 +1508,7 @@ pub(crate) mod builtin {
15071508
/// (or explicitly returns `-> ()`). Otherwise, it must be set to one of the allowed activities.
15081509
#[unstable(feature = "autodiff", issue = "124509")]
15091510
#[allow_internal_unstable(rustc_attrs)]
1511+
#[allow_internal_unstable(core_intrinsics)]
15101512
#[rustc_builtin_macro]
15111513
pub macro autodiff_reverse($item:item) {
15121514
/* compiler built-in */

tests/codegen-llvm/autodiffv2.rs renamed to tests/codegen-llvm/autodiff/autodiffv2.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
// in our frontend and in the llvm backend to avoid these issues.
2626

2727
#![feature(autodiff)]
28-
#![feature(core_intrinsics)]
2928

3029
use std::autodiff::autodiff_forward;
3130

tests/codegen-llvm/autodiff/batched.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
// reduce this test to only match the first lines and the ret instructions.
1111

1212
#![feature(autodiff)]
13-
#![feature(core_intrinsics)]
1413

1514
use std::autodiff::autodiff_forward;
1615

tests/codegen-llvm/autodiff/generic.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
//@ no-prefer-dynamic
33
//@ needs-enzyme
44
#![feature(autodiff)]
5-
#![feature(core_intrinsics)]
65

76
use std::autodiff::autodiff_reverse;
87

tests/codegen-llvm/autodiff/identical_fnc.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
// We also explicetly test that we keep running merge_function after AD, by checking for two
1111
// identical function calls in the LLVM-IR, while having two different calls in the Rust code.
1212
#![feature(autodiff)]
13-
#![feature(core_intrinsics)]
1413

1514
use std::autodiff::autodiff_reverse;
1615

tests/codegen-llvm/autodiff/scalar.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
//@ no-prefer-dynamic
33
//@ needs-enzyme
44
#![feature(autodiff)]
5-
#![feature(core_intrinsics)]
65

76
use std::autodiff::autodiff_reverse;
87

tests/codegen-llvm/autodiff/sret.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
// We therefore use this test to verify some of our sret handling.
99

1010
#![feature(autodiff)]
11-
#![feature(core_intrinsics)]
1211

1312
use std::autodiff::autodiff_reverse;
1413

tests/codegen-llvm/autodiff/trait.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
// Just check it does not crash for now
66
// CHECK: ;
77
#![feature(autodiff)]
8-
#![feature(core_intrinsics)]
98

109
use std::autodiff::autodiff_reverse;
1110

tests/pretty/autodiff/autodiff_forward.pp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
//@ needs-enzyme
44

55
#![feature(autodiff)]
6-
#![feature(core_intrinsics)]
76
#[prelude_import]
87
use ::std::prelude::rust_2015::*;
98
#[macro_use]

tests/pretty/autodiff/autodiff_forward.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//@ needs-enzyme
22

33
#![feature(autodiff)]
4-
#![feature(core_intrinsics)]
54
//@ pretty-mode:expanded
65
//@ pretty-compare-only
76
//@ pp-exact:autodiff_forward.pp

0 commit comments

Comments
 (0)