Huon Wilson
29b79aabd8
Add most AVX intrinsics.
2015-08-17 14:41:39 -07:00
Huon Wilson
67d56db16f
Rearrange x86 intrinsics to prepare for AVX.
2015-08-17 14:41:39 -07:00
Huon Wilson
627784b186
Add most SSE4.1 intrinsics.
2015-08-17 14:41:39 -07:00
Huon Wilson
f6275b760c
Add most SSSE3 intrinsics.
2015-08-17 14:41:39 -07:00
Huon Wilson
9d78efbd60
Add most SSE3 intrinsics.
2015-08-17 14:41:39 -07:00
Huon Wilson
907bbac40f
Reorganise x86 intrinsic definitions.
...
- factor out redundant mm prefix
- group methods by instruction set
2015-08-17 14:41:39 -07:00
Huon Wilson
e61f5397db
Add most SSE2 intrinsics.
2015-08-17 14:41:39 -07:00
Huon Wilson
9b26895346
Generalise SIMD casting to unequal bitwidths.
2015-08-17 14:41:39 -07:00
Huon Wilson
4fe138cac0
Add _mm_shuffle_epi8 intrinsic.
2015-08-17 14:41:39 -07:00
Huon Wilson
bef1828d42
Rename simd_basics
feature gate to repr_simd
.
2015-08-17 14:41:39 -07:00
Huon Wilson
48f3507763
Use error codes for platform-intrinsic typeck errors.
2015-08-17 14:41:39 -07:00
Huon Wilson
dbcd9f00d1
Create separate module for intrinsic typechecking.
2015-08-17 14:41:38 -07:00
Huon Wilson
717da9513f
Create "platform-intrinsic" ABI for SIMD/platform intrinsics.
...
This is purposely separate to the "rust-intrinsic" ABI, because these
intrinsics are theoretically going to become stable, and should be fine
to be independent of the compiler/language internals since they're
intimately to the platform.
2015-08-17 14:41:38 -07:00
Huon Wilson
58891278a3
Type check platform-intrinsics in typeck.
2015-08-17 14:41:38 -07:00
Huon Wilson
cb1eb9d0c4
Remove automatic built-in SIMD operators.
...
These should now go via the intrinsics, and implement the standard traits.
2015-08-17 14:41:38 -07:00
Huon Wilson
8d8b489bc9
Add intrinsics for SIMD arithmetic.
2015-08-17 14:41:38 -07:00
Huon Wilson
ecb3df5a91
Add simd_cast intrinsic.
2015-08-17 14:41:38 -07:00
Huon Wilson
f1d3b0271e
Add x86 & arm reciprocal approximation intrinsics.
2015-08-17 14:41:38 -07:00
Huon Wilson
78eead63fa
Implement the simd_insert/simd_extract intrinsics.
2015-08-17 14:41:38 -07:00
Huon Wilson
9af385bddb
Add rustc_platform_intrinsics & some arm/x86 intrs.
...
These are enough to implement a cross-platform SIMD single-precision
mandelbrot renderer.
2015-08-17 14:41:38 -07:00
Huon Wilson
1bfbde6778
Add comparison and shuffle SIMD intrinsics.
...
- simd_eq, simd_ne, simd_lt, simd_le, simd_gt, simd_ge
- simd_shuffleNNN
2015-08-17 14:41:37 -07:00
Huon Wilson
4f4425840d
Add some SIMD target_feature cfg's when appropriate.
...
NB. this may not be 100% perfect.
2015-08-17 14:41:37 -07:00
Huon Wilson
e364f0eb5a
feature gate cfg(target_feature)
.
...
This is theoretically a breaking change, but GitHub search turns up no
uses of it, and most non-built-in cfg's are passed via cargo features,
which look like `feature = "..."`, and hence can't overlap.
2015-08-17 14:41:37 -07:00
Huon Wilson
c66554cab3
switch core::simd to repr(simd) and deprecate it.
...
This functionality will be available out of tree in the `simd` crate on
crates.io.
[breaking-change]
2015-08-17 14:41:37 -07:00
Ariel Ben-Yehuda
13809ffff7
don't iterate over all impls when none match
...
before:
573.01user 4.04system 7:33.86elapsed 127%CPU (0avgtext+0avgdata 1141656maxresident)k
after:
567.03user 4.00system 7:28.23elapsed 127%CPU (0avgtext+0avgdata 1133112maxresident)k
an additional 1% improvement
2015-08-18 00:25:29 +03:00
Ariel Ben-Yehuda
8aeaaac654
add a fast-path to resolve_type_vars_if_possible
...
this avoids needless substituting
before:
577.76user 4.27system 7:36.13elapsed 127%CPU (0avgtext+0avgdata 1141608maxresident)k
after:
573.01user 4.04system 7:33.86elapsed 127%CPU (0avgtext+0avgdata 1141656maxresident)k
2015-08-18 00:24:16 +03:00
Alex Crichton
0c849de1a2
core: Move atomic
into a new sync
module
...
This mirrors the same hierarchy in the standard library.
2015-08-17 14:03:32 -07:00
Alex Crichton
8cb4d8671a
std: Clean up primitive integer modules
...
All of the modules in the standard library were just straight reexports of those
in libcore, so remove all the "macro modules" from the standard library and just
reexport what's in core directly.
2015-08-17 14:03:32 -07:00
bors
6d992728c3
Auto merge of #27833 - arielb1:robust-construction, r=eddyb
...
Fixes #27815
r? @eddyb
2015-08-17 21:02:47 +00:00
Alex Burka
a70635b2cc
remove untrue doc from marker.rs
...
I just took out the sentences that were lies. I'm not sure if they need to be replaced.
2015-08-17 16:37:48 -04:00
Martin Wernstål
6532a08525
rustdoc: Add test for #27759
2015-08-17 22:05:07 +02:00
Alex Crichton
bfc45834c1
test: Don't panic if some tests failed
...
This commit removes the call to `panic!("Some tests failed")` at the end of all
tests run when running with libtest. The panic is replaced with
`std::process::exit` to have a nonzero error code, but this change both:
1. Makes the test runner no longer print out the extraneous panic message at the
end of a failing test run that some tests failed. (this is already summarized
in the output of the test run).
2. When running tests with `RUST_BACKTRACE` set it removes an extraneous
backtrace from the output (only failing tests will have their backtraces in
the output.
2015-08-17 12:58:19 -07:00
Ariel Ben-Yehuda
96e6b2fef8
use an FnvHashSet instead of an HashSet in fulfill
...
this doesn't cause a measurable perf increase, but it makes callgrind output
cleaner. Anyway, rustc should be using FNV everywhere.
2015-08-17 21:53:46 +03:00
Ariel Ben-Yehuda
9b75a2bcd1
make trait matching smarter with projections
...
also, use the right caching logic for type_moves_by_default (this was
broken by @jroesch).
before:
593.10user 5.21system 7:51.41elapsed 126%CPU (0avgtext+0avgdata 1150016maxresident)k
llvm: 427.045
after:
577.76user 4.27system 7:36.13elapsed 127%CPU (0avgtext+0avgdata 1141608maxresident)k
llvm: 431.001
2015-08-17 21:53:44 +03:00
Martin Wernstål
3dc02978bd
rustdoc: Removed issue_tracker_base_url from crates not in public API docs
2015-08-17 20:37:30 +02:00
Eli Friedman
1ddee8070d
Remove dependencies on libm functions from libcore.
...
There wasn't any particular reason the functions needed to be there
anyway, so just get rid of them, and adjust libstd to compensate.
With this change, libcore depends on exactly two floating-point functions:
fmod and fmodf. They are implicitly referenced because they are
used to implement "%".
2015-08-17 11:30:59 -07:00
Martin Wernstål
10d08f0466
rustdoc: Removed command line option issue-tracker-base-url
2015-08-17 20:24:28 +02:00
Martin Wernstål
d893145cae
rustdoc: Adjusted style for unstable feature-name
2015-08-17 20:23:47 +02:00
Huon Wilson
c8b6d5b23c
Implement repr(simd)
as an alias for #[simd]
.
2015-08-17 10:57:18 -07:00
bors
47ea0cfb6b
Auto merge of #27864 - frewsxcv:regression-test, r=alexcrichton
...
Closes #23304
2015-08-17 16:29:31 +00:00
Ariel Ben-Yehuda
44f41063dd
use the correct substs when checking struct patterns
...
also, make sure this is tested.
2015-08-17 18:22:00 +03:00
Corey Farwell
1e79d05ac0
Add regression tests for #23304
...
Closes #23304
2015-08-17 09:36:03 -04:00
Guillaume Gomez
73685afb8a
Add E0390 error explanation
2015-08-17 14:30:38 +02:00
Martin Wernstål
ed02a768ef
librustdoc: Fix tidy
2015-08-16 23:06:57 +02:00
Ulrik Sverdrup
01e8812461
StrSearcher: Additional comments and small code moves
...
Break out a separate static method to create the "byteset".
2015-08-16 22:37:18 +02:00
Martin Wernstål
7fdbe69996
rustdoc: Added issue_tracker_base_url annotations to crates
2015-08-16 22:15:26 +02:00
Martin Wernstål
9698e8fd17
rustdoc: Print feature flag and issue link if present in short_stability
2015-08-16 22:15:26 +02:00
Martin Wernstål
b31038764d
rustdoc: Pass the Context down to short_stability()
2015-08-16 22:15:26 +02:00
Martin Wernstål
440c0f07c3
rustdoc: Added issue tracker option and issue data to clean::Stability
2015-08-16 22:15:26 +02:00
bors
e822a18ae7
Auto merge of #27858 - rkruppe:rustdoc-codespans, r=alexcrichton
...
Fixes #24746
2015-08-16 17:17:43 +00:00