check if the feature can be auto-vectorized by the compiler
(self, name)
| 1607 | |
| 1608 | @_Cache.me |
| 1609 | def feature_can_autovec(self, name): |
| 1610 | """ |
| 1611 | check if the feature can be auto-vectorized by the compiler |
| 1612 | """ |
| 1613 | assert(isinstance(name, str)) |
| 1614 | d = self.feature_supported[name] |
| 1615 | can = d.get("autovec", None) |
| 1616 | if can is None: |
| 1617 | valid_flags = [ |
| 1618 | self.cc_test_flags([f]) for f in d.get("flags", []) |
| 1619 | ] |
| 1620 | can = valid_flags and any(valid_flags) |
| 1621 | return can |
| 1622 | |
| 1623 | @_Cache.me |
| 1624 | def feature_extra_checks(self, name): |
no test coverage detected