Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 14 pull requests #139344

Closed
wants to merge 47 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
bacd57a
Add integer to string formatting tests
GuillaumeGomez Mar 16, 2025
25900c2
Tweak integer to string conversion test a bit to be future-proof
GuillaumeGomez Mar 23, 2025
ec63690
refactor: Move Apple OSVersion (back) to rustc_target
madsmtm Feb 11, 2025
72b5ef0
refactor: Move env parsing of deployment target to rustc_session
madsmtm Feb 11, 2025
6ce74f7
replace extra_filename with strict version hash in metrics file names
yaahc Mar 25, 2025
53ef53a
settings.js: begin typechecking migration
lolbinarycat Apr 2, 2025
6ca7bd0
settings.js: add new rustdoc.Setting interface
lolbinarycat Apr 2, 2025
f056836
settings.js: remove dead code for adding <hr> to settings page
lolbinarycat Apr 2, 2025
9f8d3d0
settings.js: refactor settingsBlurHandler
lolbinarycat Apr 2, 2025
d2ff26b
settings.js: add some null checks to buildSettingsPage
lolbinarycat Apr 2, 2025
a805f52
settings.js: make top-level code typecheck
lolbinarycat Apr 2, 2025
8a34129
main.js: make hideAllModals docs clearer
lolbinarycat Apr 2, 2025
9f54910
settings.js: add elemContainsTarget utility function
lolbinarycat Apr 2, 2025
6a1f57d
Demote i686-pc-windows-gnu to Tier 2
Noratrieb Mar 1, 2025
ef1827b
settings.js: fix whitespace
lolbinarycat Apr 2, 2025
4435c99
rustdoc js: satisfy eslint
lolbinarycat Apr 2, 2025
0d8c33f
Remove creation of duplicate AnonPipe
JakeWharton Apr 3, 2025
a2a081a
Allow for missing invisible close delim when reparsing an expression.
nnethercote Apr 3, 2025
fadea8e
Unset RUSTC_WRAPPER in cg_clif's build system
bjorn3 Mar 31, 2025
3e762b1
compiletest: Allow `--fail-fast` as a command-line option
Zalathar Apr 3, 2025
1397094
Run coretests and alloctests with cg_clif in CI
bjorn3 Apr 1, 2025
ecf9e20
compiletest: Encapsulate all of the code that touches libtest
Zalathar Apr 3, 2025
6af96f8
Add a helper function for checking if LLD was used to `run-make-support`
Kobzol Mar 18, 2025
9ec11c2
Move `link-self-contained-consistency` test to a more reasonable loca…
Kobzol Mar 24, 2025
fde54c2
Fix testing with randomized layouts enabled
bjorn3 Apr 3, 2025
6189594
Deduplicate some `rustc_middle` function bodies by calling the `rustc…
oli-obk Apr 3, 2025
64b58dd
Pass correct param-env to error_implies
compiler-errors Apr 3, 2025
087ffd7
add the autodiff batch mode frontend
ZuseZ4 Apr 3, 2025
e0c8ead
add autodiff batching middle-end
ZuseZ4 Apr 3, 2025
90d5545
add autodiff batching backend
ZuseZ4 Apr 3, 2025
eefe423
add new tests for autodiff batching and update old ones
ZuseZ4 Apr 3, 2025
2898b90
add new flag to print the module post-AD, before opts
ZuseZ4 Apr 3, 2025
ad1fb1e
Add a mailmap entry for myself
meithecatte Apr 3, 2025
160a6ea
Rollup merge of #137869 - Noratrieb:Now_I_am_become_death,_the_destro…
Zalathar Apr 4, 2025
c2e6e72
Rollup merge of #137880 - EnzymeAD:autodiff-batching, r=oli-obk
Zalathar Apr 4, 2025
02031ee
Rollup merge of #138546 - GuillaumeGomez:integer-to-string-tests, r=A…
Zalathar Apr 4, 2025
2c4a70b
Rollup merge of #138947 - madsmtm:refactor-apple-versions, r=Noratrieb
Zalathar Apr 4, 2025
978a501
Rollup merge of #138950 - yaahc:svh-metrics-name, r=bjorn3
Zalathar Apr 4, 2025
078a3e9
Rollup merge of #139213 - bjorn3:cg_clif_test_coretests, r=jieyouxu
Zalathar Apr 4, 2025
607bdd9
Rollup merge of #139274 - lolbinarycat:rustdoc-js-less-expect-error-p…
Zalathar Apr 4, 2025
5d139d1
Rollup merge of #139295 - JakeWharton:jw.duplicate-anon-pipe.2025-04-…
Zalathar Apr 4, 2025
1126fbb
Rollup merge of #139298 - nnethercote:fix-139248, r=petrochenkov
Zalathar Apr 4, 2025
bee4d57
Rollup merge of #139313 - oli-obk:push-uzvmpxqyvrzp, r=compiler-errors
Zalathar Apr 4, 2025
94ca7b5
Rollup merge of #139317 - Zalathar:hide-libtest, r=jieyouxu
Zalathar Apr 4, 2025
d72cbff
Rollup merge of #139322 - Kobzol:run-make-lld-refactor, r=jieyouxu
Zalathar Apr 4, 2025
bcd8a90
Rollup merge of #139335 - compiler-errors:error-implies, r=oli-obk
Zalathar Apr 4, 2025
823eed4
Rollup merge of #139342 - meithecatte:mailmap, r=compiler-errors
Zalathar Apr 4, 2025
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: 2 additions & 0 deletions .mailmap
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,8 @@ Luqman Aden <me@luqman.ca> <laden@mozilla.com>
Luqman Aden <me@luqman.ca> <rust@luqman.ca>
Lzu Tao <taolzu@gmail.com>
Maik Klein <maikklein@googlemail.com>
Maja Kądziołka <maya@compilercrim.es> <github@compilercrim.es>
Maja Kądziołka <maya@compilercrim.es> <kuba@kadziolka.net>
Malo Jaffré <jaffre.malo@gmail.com>
Manish Goregaokar <manishsmail@gmail.com>
Mara Bos <m-ou.se@m-ou.se>
Expand Down
13 changes: 13 additions & 0 deletions compiler/rustc_ast/src/expand/autodiff_attrs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,17 @@ pub struct AutoDiffAttrs {
/// e.g. in the [JAX
/// Documentation](https://jax.readthedocs.io/en/latest/_tutorials/advanced-autodiff.html#how-it-s-made-two-foundational-autodiff-functions).
pub mode: DiffMode,
/// A user-provided, batching width. If not given, we will default to 1 (no batching).
/// Calling a differentiated, non-batched function through a loop 100 times is equivalent to:
/// - Calling the function 50 times with a batch size of 2
/// - Calling the function 25 times with a batch size of 4,
/// etc. A batched function takes more (or longer) arguments, and might be able to benefit from
/// cache locality, better re-usal of primal values, and other optimizations.
/// We will (before LLVM's vectorizer runs) just generate most LLVM-IR instructions `width`
/// times, so this massively increases code size. As such, values like 1024 are unlikely to
/// work. We should consider limiting this to u8 or u16, but will leave it at u32 for
/// experiments for now and focus on documenting the implications of a large width.
pub width: u32,
pub ret_activity: DiffActivity,
pub input_activity: Vec<DiffActivity>,
}
Expand Down Expand Up @@ -222,13 +233,15 @@ impl AutoDiffAttrs {
pub const fn error() -> Self {
AutoDiffAttrs {
mode: DiffMode::Error,
width: 0,
ret_activity: DiffActivity::None,
input_activity: Vec::new(),
}
}
pub fn source() -> Self {
AutoDiffAttrs {
mode: DiffMode::Source,
width: 0,
ret_activity: DiffActivity::None,
input_activity: Vec::new(),
}
Expand Down
1 change: 1 addition & 0 deletions compiler/rustc_builtin_macros/messages.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ builtin_macros_autodiff_ret_activity = invalid return activity {$act} in {$mode}
builtin_macros_autodiff_ty_activity = {$act} can not be used for this type
builtin_macros_autodiff_unknown_activity = did not recognize Activity: `{$act}`
builtin_macros_autodiff_width = autodiff width must fit u32, but is {$width}
builtin_macros_bad_derive_target = `derive` may only be applied to `struct`s, `enum`s and `union`s
.label = not applicable here
.label2 = not a `struct`, `enum` or `union`
Expand Down
Loading
Loading