[MLIR][SPIRV] Extend automation script to generate coverage report.
authorergawy <kareem.ergawy@gmail.com>
Tue, 23 Jun 2020 15:38:30 +0000 (11:38 -0400)
committerLei Zhang <antiagainst@google.com>
Tue, 23 Jun 2020 15:42:59 +0000 (11:42 -0400)
commit4837562de4df60063a6933956185e172571ccebe
tree75e0b6e6e411a04e6ac78e21804f4dcefab17e71
parent79ceda2e394cefd6ce650dc40fce44295e76be2b
[MLIR][SPIRV] Extend automation script to generate coverage report.

This patch adds a new cli argument to the automation script to generate
a report of the current SPIRV spec instruction coverage. It dumps to the
standard output a YAML string with the coverage information.

Differential Revision: https://reviews.llvm.org/D82006
mlir/utils/spirv/gen_spirv_dialect.py
mlir/utils/spirv/report_coverage.sh [new file with mode: 0755]