diff options
author | alan-baker <alanbaker@google.com> | 2020-07-30 19:08:53 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-30 19:08:53 +0300 |
commit | 50300450af880da63178ce077a91c8a2a0794a7d (patch) | |
tree | 07b389c3379c9abebf96a62f309242415e008dd4 /BUILD.gn | |
parent | ab4fe12a46be66d56734f879a317f888ec0425bf (diff) |
Validator support for non-semantic clspv reflection (#3618)
* Generate ext inst table for reflection
* Change build to use grammar files from SPIRV-Headers instead of
SPIRV-Tools
* Add enum for clspv reflection extended instruction set
* count it as non-semantic
* validate clspv reflection extended instruction set
* Remove local extended inst sets
* update headers deps
* Update nbuilds to use grammars from SPIRV-Headers instead of
local duplicates
Diffstat (limited to 'BUILD.gn')
-rw-r--r-- | BUILD.gn | 23 |
1 files changed, 12 insertions, 11 deletions
@@ -32,8 +32,8 @@ template("spvtools_core_tables") { "${spirv_headers}/include/spirv/$version/spirv.core.grammar.json" core_insts_file = "${target_gen_dir}/core.insts-$version.inc" operand_kinds_file = "${target_gen_dir}/operand.kinds-$version.inc" - debuginfo_insts_file = "source/extinst.debuginfo.grammar.json" - cldebuginfo100_insts_file = "source/extinst.opencl.debuginfo.100.grammar.json" + debuginfo_insts_file = "${spirv_headers}/include/spirv/unified1/extinst.debuginfo.grammar.json" + cldebuginfo100_insts_file = "${spirv_headers}/include/spirv/unified1/extinst.opencl.debuginfo.100.grammar.json" sources = [ core_json_file, @@ -69,8 +69,8 @@ template("spvtools_core_enums") { core_json_file = "${spirv_headers}/include/spirv/$version/spirv.core.grammar.json" - debuginfo_insts_file = "source/extinst.debuginfo.grammar.json" - cldebuginfo100_insts_file = "source/extinst.opencl.debuginfo.100.grammar.json" + debuginfo_insts_file = "${spirv_headers}/include/spirv/unified1/extinst.debuginfo.grammar.json" + cldebuginfo100_insts_file = "${spirv_headers}/include/spirv/unified1/extinst.opencl.debuginfo.100.grammar.json" extension_enum_file = "${target_gen_dir}/extension_enum.inc" extension_map_file = "${target_gen_dir}/enum_string_mapping.inc" @@ -110,8 +110,8 @@ template("spvtools_glsl_tables") { core_json_file = "${spirv_headers}/include/spirv/$version/spirv.core.grammar.json" glsl_json_file = "${spirv_headers}/include/spirv/${version}/extinst.glsl.std.450.grammar.json" - debuginfo_insts_file = "source/extinst.debuginfo.grammar.json" - cldebuginfo100_insts_file = "source/extinst.opencl.debuginfo.100.grammar.json" + debuginfo_insts_file = "${spirv_headers}/include/spirv/unified1/extinst.debuginfo.grammar.json" + cldebuginfo100_insts_file = "${spirv_headers}/include/spirv/unified1/extinst.opencl.debuginfo.100.grammar.json" glsl_insts_file = "${target_gen_dir}/glsl.std.450.insts.inc" @@ -150,8 +150,8 @@ template("spvtools_opencl_tables") { core_json_file = "${spirv_headers}/include/spirv/$version/spirv.core.grammar.json" opencl_json_file = "${spirv_headers}/include/spirv/${version}/extinst.opencl.std.100.grammar.json" - debuginfo_insts_file = "source/extinst.debuginfo.grammar.json" - cldebuginfo100_insts_file = "source/extinst.opencl.debuginfo.100.grammar.json" + debuginfo_insts_file = "${spirv_headers}/include/spirv/unified1/extinst.debuginfo.grammar.json" + cldebuginfo100_insts_file = "${spirv_headers}/include/spirv/unified1/extinst.opencl.debuginfo.100.grammar.json" opencl_insts_file = "${target_gen_dir}/opencl.std.insts.inc" @@ -210,7 +210,7 @@ template("spvtools_vendor_table") { script = "utils/generate_grammar_tables.py" name = invoker.name - extinst_vendor_grammar = "source/extinst.${name}.grammar.json" + extinst_vendor_grammar = "${spirv_headers}/include/spirv/unified1/extinst.${name}.grammar.json" extinst_file = "${target_gen_dir}/${name}.insts.inc" args = [ @@ -280,11 +280,11 @@ spvtools_opencl_tables("opencl1-0") { } spvtools_language_header("debuginfo") { name = "DebugInfo" - grammar_file = "source/extinst.debuginfo.grammar.json" + grammar_file = "${spirv_headers}/include/spirv/unified1/extinst.debuginfo.grammar.json" } spvtools_language_header("cldebuginfo100") { name = "OpenCLDebugInfo100" - grammar_file = "source/extinst.opencl.debuginfo.100.grammar.json" + grammar_file = "${spirv_headers}/include/spirv/unified1/extinst.opencl.debuginfo.100.grammar.json" } spvtools_vendor_tables = [ @@ -294,6 +294,7 @@ spvtools_vendor_tables = [ ["spv-amd-shader-ballot", "...nil..."], ["debuginfo", "...nil..."], ["opencl.debuginfo.100", "CLDEBUG100_"], + ["nonsemantic.clspvreflection", "...nil..."], ] foreach(table_def, spvtools_vendor_tables) { |