rust/src/libsyntax
bors 2cdbd5eb42 Auto merge of #38079 - BurntSushi:attrtarget, r=alexcrichton
Add new #[target_feature = "..."] attribute.

This commit adds a new attribute that instructs the compiler to emit
target specific code for a single function. For example, the following
function is permitted to use instructions that are part of SSE 4.2:

    #[target_feature = "+sse4.2"]
    fn foo() { ... }

In particular, use of this attribute does not require setting the
-C target-feature or -C target-cpu options on rustc.

This attribute does not have any protections built into it. For example,
nothing stops one from calling the above `foo` function on hosts without
SSE 4.2 support. Doing so may result in a SIGILL.

I've also expanded the x86 target feature whitelist.
2016-12-03 17:41:14 +00:00
..
diagnostics Use Symbol instead of InternedString in the AST, HIR, and various other places. 2016-11-21 09:00:55 +00:00
ext Auto merge of #37487 - goffrie:break, r=nikomatsakis 2016-11-22 17:51:59 -06:00
parse Support ?Sized in where clauses 2016-11-25 00:43:00 +03:00
print Implement the loop_break_value feature. 2016-11-21 20:20:42 -08:00
util Fix fallout in rustdoc and tests. 2016-11-21 12:16:46 +00:00
abi.rs check target abi support 2016-10-24 15:59:53 +02:00
ast.rs Implement the loop_break_value feature. 2016-11-21 20:20:42 -08:00
attr.rs Use Symbol instead of InternedString in the AST, HIR, and various other places. 2016-11-21 09:00:55 +00:00
Cargo.toml Change implementation of syntax::util::SmallVector to use data_structures::SmallVec. 2016-11-11 07:38:48 -07:00
codemap.rs rustc: use Span's allow_internal_unstable instead of hir::BlockCheckMode. 2016-11-28 04:18:10 +02:00
config.rs Move MetaItemKind's Name to a field of MetaItem. 2016-11-20 12:36:30 +00:00
diagnostic_list.rs Implement RFC#1559: allow all literals in attributes. 2016-08-25 13:25:22 -07:00
entry.rs Cleanup InternedString. 2016-11-21 09:00:56 +00:00
feature_gate.rs Auto merge of #38079 - BurntSushi:attrtarget, r=alexcrichton 2016-12-03 17:41:14 +00:00
fold.rs Implement the loop_break_value feature. 2016-11-21 20:20:42 -08:00
json.rs Allow supplying an error destination via the compiler driver 2016-09-28 16:20:30 +13:00
lib.rs Update the bootstrap compiler 2016-11-30 10:38:08 -08:00
ptr.rs Documentation for default types modified 2016-09-11 22:58:01 +05:30
show_span.rs Remove the type parameter from syntax::visit::Visitor 2016-06-14 07:40:32 +00:00
std_inject.rs Move syntax::util::interner -> syntax::symbol, cleanup. 2016-11-20 23:40:20 +00:00
str.rs syntax: Copy unstable str::char_at into libsyntax 2015-04-21 10:23:53 -07:00
symbol.rs Remove Rc from the interner. 2016-11-21 09:00:56 +00:00
test.rs rustc: rework stability to be on-demand for type-directed lookup. 2016-11-28 04:18:11 +02:00
test_snippet.rs review comments 2016-11-23 23:44:17 -08:00
tokenstream.rs Fix fallout in rustdoc and tests. 2016-11-21 12:16:46 +00:00
visit.rs Implement the loop_break_value feature. 2016-11-21 20:20:42 -08:00