21 lines · bash
1#!/bin/bash2 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-exception6 7# Script for reporting current level of SPIR-V spec instruction coverage in spv8# Dialect. It dumps to standard output a YAML string of current coverage.9#10# Run as:11# ./report_coverage.sh12 13set -e14 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-coverage21