(self, full=False)
| 2437 | )) |
| 2438 | |
| 2439 | def report(self, full=False): |
| 2440 | report = [] |
| 2441 | platform_rows = [] |
| 2442 | baseline_rows = [] |
| 2443 | dispatch_rows = [] |
| 2444 | report.append(("Platform", platform_rows)) |
| 2445 | report.append(("", "")) |
| 2446 | report.append(("CPU baseline", baseline_rows)) |
| 2447 | report.append(("", "")) |
| 2448 | report.append(("CPU dispatch", dispatch_rows)) |
| 2449 | |
| 2450 | ########## platform ########## |
| 2451 | platform_rows.append(("Architecture", ( |
| 2452 | "unsupported" if self.cc_on_noarch else self.cc_march) |
| 2453 | )) |
| 2454 | platform_rows.append(("Compiler", ( |
| 2455 | "unix-like" if self.cc_is_nocc else self.cc_name) |
| 2456 | )) |
| 2457 | ########## baseline ########## |
| 2458 | if self.cc_noopt: |
| 2459 | baseline_rows.append(("Requested", "optimization disabled")) |
| 2460 | else: |
| 2461 | baseline_rows.append(("Requested", repr(self._requested_baseline))) |
| 2462 | |
| 2463 | baseline_names = self.cpu_baseline_names() |
| 2464 | baseline_rows.append(( |
| 2465 | "Enabled", (' '.join(baseline_names) if baseline_names else "none") |
| 2466 | )) |
| 2467 | baseline_flags = self.cpu_baseline_flags() |
| 2468 | baseline_rows.append(( |
| 2469 | "Flags", (' '.join(baseline_flags) if baseline_flags else "none") |
| 2470 | )) |
| 2471 | extra_checks = [] |
| 2472 | for name in baseline_names: |
| 2473 | extra_checks += self.feature_extra_checks(name) |
| 2474 | baseline_rows.append(( |
| 2475 | "Extra checks", (' '.join(extra_checks) if extra_checks else "none") |
| 2476 | )) |
| 2477 | |
| 2478 | ########## dispatch ########## |
| 2479 | if self.cc_noopt: |
| 2480 | baseline_rows.append(("Requested", "optimization disabled")) |
| 2481 | else: |
| 2482 | dispatch_rows.append(("Requested", repr(self._requested_dispatch))) |
| 2483 | |
| 2484 | dispatch_names = self.cpu_dispatch_names() |
| 2485 | dispatch_rows.append(( |
| 2486 | "Enabled", (' '.join(dispatch_names) if dispatch_names else "none") |
| 2487 | )) |
| 2488 | ########## Generated ########## |
| 2489 | # TODO: |
| 2490 | # - collect object names from 'try_dispatch()' |
| 2491 | # then get size of each object and printed |
| 2492 | # - give more details about the features that not |
| 2493 | # generated due compiler support |
| 2494 | # - find a better output's design. |
| 2495 | # |
| 2496 | target_sources = {} |
nothing calls this directly
no test coverage detected