1#!/bin/bash 2 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 6 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. 9# 10# Run as: 11# ./report_coverage.sh 12 13set -e 14 15current_file="$(readlink -f "$0")" 16current_dir="$(dirname "$current_file")" 17 18python3 ${current_dir}/gen_spirv_dialect.py \ 19 --base-td-path ${current_dir}/../../include/mlir/Dialect/SPIRV/IR/SPIRVBase.td \ 20 --gen-inst-coverage 21