Add target_features for the bit manipulation instruction sets: BMI 1.0, BMI 2.0, and TBM.

This commit is contained in:
gnzlbg 2016-06-22 16:36:48 +02:00
parent 10cbc37cdd
commit 483bec790b
2 changed files with 3 additions and 1 deletions

View File

@ -32,7 +32,6 @@ class PlatformInfo(object):
class IntrinsicSet(object):
def __init__(self, platform, json):
self._llvm_prefix = json['llvm_prefix']
self._type_info = json['number_info']
self._intrinsics = json['intrinsics']

View File

@ -30,12 +30,15 @@ const ARM_WHITELIST: &'static [&'static str] = &[
const X86_WHITELIST: &'static [&'static str] = &[
"avx\0",
"avx2\0",
"bmi\0",
"bmi2\0",
"sse\0",
"sse2\0",
"sse3\0",
"sse4.1\0",
"sse4.2\0",
"ssse3\0",
"tbm\0",
];
/// Add `target_feature = "..."` cfgs for a variety of platform