A helper class for CCompiler aims to provide extra build options to effectively control of compiler optimizations that are directly related to CPU features.
Force update the cache. | |
| Remove the conflicts that caused due gathering implied features flags. |
Return a dictionary of supported CPU features by the platform, and accumulate the rest of undefined options in | |
Returns a list of final CPU baseline compiler flags | |
return a list of final CPU baseline feature names | |
return a list of final CPU dispatch feature names | |
| Wrap CCompiler.compile() |
| Raise a compiler error |
| Raise a distutils error |
Return a tuple containing info about (platform, compiler, extra_args), required by the abstract class '_CCompiler' for discovering the platform environment. | |
| Load a module from file, required by the abstract class '_Cache'. |
| Print a console message |
| Return True if 'CCompiler.compile()' able to compile a source file with certain flags. |
| Return list of features in 'names' after remove any implied features and keep the origins. |
| Generate C preprocessor definitions and include headers of a CPU feature. |
| Return a list of CPU features that required to be detected sorted from the lowest to highest interest. |
| same as |
| Return a set of CPU features that implied by 'names' |
| same as feature_implies() but combining 'names' |
| Returns True if a certain feature is exist and covered within |
| Returns a set of CPU feature names that supported by platform and the C compiler. |
| Sort a list of CPU features ordered by the lowest interest. |
| same as 'feature_ahead()' but if both features implied each other and keep the highest interest. |
| Generate the dispatch header which contains the #definitions and headers for platform-specific instruction-sets for the enabled CPU baseline and dispatch-able features. |
Returns True if the class loaded from the cache file | |
| A static method that can be treated as a decorator to dynamically cache certain methods. |
| Fetch and parse configuration statements that required for defining the targeted CPU features, statements should be declared in the top of source in between C comment and start with a special mark @targets. |
| Compile one or more dispatch-able sources and generates object files, also generates abstract C config headers and macros that used later for the final runtime dispatching process. |
cache_hash | |
cc_test_cexpr | |
cc_test_flags | |
feature_can_autovec | |
feature_extra_checks | |
feature_flags | |
feature_is_supported | |
feature_test | |
report |
© 2005–2024 NumPy Developers
Licensed under the 3-clause BSD License.
https://numpy.org/doc/2.4/reference/generated/numpy.distutils.ccompiler_opt.CCompilerOpt.html