class _Parse: (source)
Known subclasses: numpy.distutils.ccompiler_opt.CCompilerOpt
A helper class that parsing main arguments of CCompilerOpt
,
also parsing configuration statements in dispatch-able sources.
Parameters | |
cpu | minimal set of required CPU features or special options. |
cpu | dispatched set of additional CPU features or special options. |
| |
NOTES |
|
Method | __init__ |
Undocumented |
Method | parse |
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... |
Instance Variable | parse |
Compiler flags of baseline features |
Instance Variable | parse |
Final CPU baseline's feature names(sorted from low to high) |
Instance Variable | parse |
Final CPU dispatch-able feature names(sorted from low to high) |
Instance Variable | parse |
Undocumented |
Instance Variable | parse |
Dictionary containing initialized target groups that configured through class attribute conf_target_groups . |
Method | _parse |
Undocumented |
Method | _parse |
validate multi targets that defined between parentheses() |
Method | _parse |
skip features that has no auto-vectorized support by compiler |
Method | _parse |
leave a notice that $keep_sort is on |
Method | _parse |
append the compiler optimization flags |
Method | _parse |
skip all baseline features |
Method | _parse |
sorted depend on the highest interest |
Method | _parse |
force warnings to treated as errors |
Method | _parse |
Undocumented |
Method | _parse |
validate group token |
Method | _parse |
validate policy token |
Class Variable | _parse |
Undocumented |
Class Variable | _parse |
Undocumented |
Instance Variable | _parse |
Undocumented |
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.
Configuration statements are sort of keywords representing CPU features names, group of statements and policies, combined together to determine the required optimization.
Parameters | |
source:str | the path of C source file. |
Returns | |
|
Dictionary containing initialized target groups that configured
through class attribute conf_target_groups
.
The key is represent the group name and value is a tuple contains three items :
- bool, True if group has the 'baseline' option.
- list, list of CPU features.
- list, list of extra compiler flags.