Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
28e0907
nontemporal_store: make sure that the intrinsic is truly just a hint
RalfJung Jul 24, 2024
697787a
RISC-V also has sane nontemporal stores
RalfJung Jul 25, 2024
a282e52
Unify run button display with "copy code" button and with mdbook buttons
GuillaumeGomez Jul 30, 2024
be71bd9
Update GUI tests for code example buttons
GuillaumeGomez Jul 30, 2024
e2da2fb
Update rustdoc tests
GuillaumeGomez Jul 30, 2024
59cb159
Prevent clicking on a link or on a button to toggle the code example …
GuillaumeGomez Jul 30, 2024
27ca35a
const vector passed to codegen
Jamesbarford Aug 8, 2024
03ee7b5
Move verbose help parsing to `main`
Kobzol Aug 9, 2024
5431a93
Pass `Flags` to `Config::parse` explicitly
Kobzol Aug 9, 2024
f83b085
rustc_attr: remove redundant `#[allow(rustc::untranslatable_diagnosti…
GrigorenkoPV Aug 7, 2024
43f3a21
rustc_const_eval: remove redundant `#[allow(rustc::untranslatable_dia…
GrigorenkoPV Aug 7, 2024
3a18c6b
rustc_const_eval: make message about "const stable" translatable
GrigorenkoPV Aug 7, 2024
a11922d
rustc_const_eval: make LazyLock suggestion translatable
GrigorenkoPV Aug 7, 2024
c36b21a
rustc_attr: make "compact `cfg(target(..))` is unstable" translatable
GrigorenkoPV Aug 7, 2024
334a097
rustc_ast_lowering: make "using `_` for array lengths is unstable" tr…
GrigorenkoPV Aug 7, 2024
290df4f
rustc_ast_lowering: make "yield syntax is experimental" translatable
GrigorenkoPV Aug 7, 2024
6760298
rustc_ast_lowering: make asm-related unstability messages translatable
GrigorenkoPV Aug 7, 2024
48413cf
rustc_borrowck: make dereference suggestion translatable
GrigorenkoPV Aug 8, 2024
446e03e
rustc_borrowck: make suggestion to move closure translatable
GrigorenkoPV Aug 8, 2024
1b6cc24
rustc_borrowck: make some suggestion about static lifetimes translatable
GrigorenkoPV Aug 8, 2024
1481ab3
rustc_borrowck: make "implicit static" suff translatable
GrigorenkoPV Aug 8, 2024
f43cdce
rustc_borrowck: fmt
GrigorenkoPV Aug 8, 2024
fbc2459
rustc_expand: remove some redundant `#[allow(rustc::untranslatable_di…
GrigorenkoPV Aug 8, 2024
1373074
rustc_expand: make a message translatable
GrigorenkoPV Aug 8, 2024
cbae581
rustc_interface: remove a redundant `#[allow(rustc::untranslatable_di…
GrigorenkoPV Aug 8, 2024
2babab6
rustc_lint: remove some redundant `#[allow(rustc::untranslatable_diag…
GrigorenkoPV Aug 8, 2024
d548636
rustc_metadata: remove a redundant `#[allow(rustc::untranslatable_dia…
GrigorenkoPV Aug 8, 2024
007cc2c
rustc_metadata: make "link {arg,cfg} is unstable" translatable
GrigorenkoPV Aug 8, 2024
fcdb374
rustc_passes: remove a redundant `#[allow(rustc::untranslatable_diagn…
GrigorenkoPV Aug 9, 2024
f09a2b0
rustc_passes: make some messages in check_attr translatable
GrigorenkoPV Aug 9, 2024
03b6c2f
Fix and enable disabled codegen-units tests
saethlin Aug 10, 2024
141d9dc
remove unused imports from rmake tests
lqd Aug 10, 2024
f4cb0de
remove other warnings from rmake tests
lqd Aug 10, 2024
dcd6170
use `rfs` in rustdoc io rmake test
lqd Aug 11, 2024
c361c92
Use assert_matches around the compiler
compiler-errors Aug 11, 2024
46b4c5a
Fix bug in `Parser::look_ahead`.
nnethercote Aug 12, 2024
8542cd6
std: do not overwrite style in `get_backtrace_style`
joboet Aug 4, 2024
75743dc
make the codegen test also cover an ill-behaved arch, and add links
RalfJung Aug 12, 2024
095ca33
Rollup merge of #128149 - RalfJung:nontemporal_store, r=jieyouxu,Aman…
GuillaumeGomez Aug 12, 2024
c6e3385
Rollup merge of #128394 - GuillaumeGomez:run-button, r=t-rustdoc
GuillaumeGomez Aug 12, 2024
aea5087
Rollup merge of #128537 - Jamesbarford:118980-const-vector, r=RalfJun…
GuillaumeGomez Aug 12, 2024
aa6f240
Rollup merge of #128632 - joboet:dont_overwrite_style, r=Amanieu
GuillaumeGomez Aug 12, 2024
355a232
Rollup merge of #128878 - Kobzol:refactor-flags, r=onur-ozkan
GuillaumeGomez Aug 12, 2024
ea74eff
Rollup merge of #128886 - GrigorenkoPV:untranslatable-diagnostic, r=n…
GuillaumeGomez Aug 12, 2024
5b6379a
Rollup merge of #128929 - saethlin:enable-codegen-units-tests, r=comp…
GuillaumeGomez Aug 12, 2024
bb35b88
Rollup merge of #128937 - lqd:clean-rmake-tests, r=jieyouxu
GuillaumeGomez Aug 12, 2024
7c6dca9
Rollup merge of #128978 - compiler-errors:assert-matches, r=jieyouxu
GuillaumeGomez Aug 12, 2024
99a785d
Rollup merge of #128994 - nnethercote:fix-Parser-look_ahead-more, r=c…
GuillaumeGomez Aug 12, 2024
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
Prev Previous commit
Next Next commit
RISC-V also has sane nontemporal stores
  • Loading branch information
RalfJung committed Aug 5, 2024
commit 697787a92d8858b17bfe3e55c3e82877149f8f83
3 changes: 2 additions & 1 deletion compiler/rustc_codegen_llvm/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,8 @@ impl<'a, 'll, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
// a hint, and use regular stores everywhere else.
// (In the future, we could alternatively ensure that an sfence gets emitted after a sequence of movnt
// before any kind of synchronizing operation. But it's not clear how to do that with LLVM.)
const WELL_BEHAVED_NONTEMPORAL_ARCHS: &[&str] = &["aarch64", "arm"];
const WELL_BEHAVED_NONTEMPORAL_ARCHS: &[&str] =
&["aarch64", "arm", "riscv32", "riscv64"];

let use_nontemporal =
WELL_BEHAVED_NONTEMPORAL_ARCHS.contains(&&*self.cx.tcx.sess.target.arch);
Expand Down