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
..
2016-11-25 00:43:00 +03:00
2016-11-21 12:16:46 +00:00
2016-10-24 15:59:53 +02:00
2016-11-21 20:20:42 -08:00
2016-11-21 09:00:56 +00:00
2016-11-30 10:38:08 -08:00
2016-11-21 09:00:56 +00:00
2016-11-23 23:44:17 -08:00