[Frontend] Remove unused includes (NFC) (#116927)
[llvm-project.git] / mlir / utils / spirv / report_coverage.sh
blob7ef1cf2a2140f7405ceda2e5125598d91a493928
1 #!/bin/bash
3 # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 # See https://llvm.org/LICENSE.txt for license information.
5 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 # Script for reporting current level of SPIR-V spec instruction coverage in spv
8 # Dialect. It dumps to standard output a YAML string of current coverage.
10 # Run as:
11 # ./report_coverage.sh
13 set -e
15 current_file="$(readlink -f "$0")"
16 current_dir="$(dirname "$current_file")"
18 python3 ${current_dir}/gen_spirv_dialect.py \
19 --base-td-path ${current_dir}/../../include/mlir/Dialect/SPIRV/IR/SPIRVBase.td \
20 --gen-inst-coverage