From c5c1a25ab6d0e509e893d737a679ac47949df2f6 Mon Sep 17 00:00:00 2001 From: Yong He Date: Thu, 18 Jan 2024 16:46:00 -0800 Subject: Capability def parsing & codegen + disjoint sets (#3451) * Capability def parsing & codegen + disjoint sets This change adds a capability definition file, and a code generator to produce C++ code that defines the capability enums and necessary data structures around the capabilities. Extends the existing CapabilitySet class to support expressing disjoint sets of capabilities. This sets up for the next change that will enhance our type checking with reasoning of capability requirements. * Fix cmake. * Fix warning. * Fix. * Fix isBetterForTarget to prefer less specialized option. * Fix. * Fix premake. * Fix intrinsic. * Fix vs sln file. --------- Co-authored-by: Yong He --- .../visual-studio/run-generators/run-generators.vcxproj | 17 +++++++++++++++++ .../run-generators/run-generators.vcxproj.filters | 9 +++++++++ 2 files changed, 26 insertions(+) (limited to 'build/visual-studio/run-generators') diff --git a/build/visual-studio/run-generators/run-generators.vcxproj b/build/visual-studio/run-generators/run-generators.vcxproj index 8a143c391..dbd3a3947 100644 --- a/build/visual-studio/run-generators/run-generators.vcxproj +++ b/build/visual-studio/run-generators/run-generators.vcxproj @@ -319,6 +319,23 @@ ../../../bin/windows-x64/release/slang-cpp-extractor.exe;../../../source/slang/slang-ast-support-types.h;../../../source/slang/slang-ast-base.h;../../../source/slang/slang-ast-decl.h;../../../source/slang/slang-ast-expr.h;../../../source/slang/slang-ast-modifier.h;../../../source/slang/slang-ast-stmt.h;../../../source/slang/slang-ast-type.h;../../../source/slang/slang-ast-val.h ../../../bin/windows-aarch64/release/slang-cpp-extractor.exe;../../../source/slang/slang-ast-support-types.h;../../../source/slang/slang-ast-base.h;../../../source/slang/slang-ast-decl.h;../../../source/slang/slang-ast-expr.h;../../../source/slang/slang-ast-modifier.h;../../../source/slang/slang-ast-stmt.h;../../../source/slang/slang-ast-type.h;../../../source/slang/slang-ast-val.h + + Document + "../../../bin/windows-x86/debug/slang-capability-generator" "%(FullPath)" + "../../../bin/windows-x64/debug/slang-capability-generator" "%(FullPath)" + "../../../bin/windows-aarch64/debug/slang-capability-generator" "%(FullPath)" + "../../../bin/windows-x86/release/slang-capability-generator" "%(FullPath)" + "../../../bin/windows-x64/release/slang-capability-generator" "%(FullPath)" + "../../../bin/windows-aarch64/release/slang-capability-generator" "%(FullPath)" + ../../../source/slang/slang-generated-capability-defs.h + slang-capability-generator %(Identity) + ../../../source/slang/slang-capabilities.capdef;../../../bin/windows-x86/debug/slang-capability-generator.exe + ../../../source/slang/slang-capabilities.capdef;../../../bin/windows-x64/debug/slang-capability-generator.exe + ../../../source/slang/slang-capabilities.capdef;../../../bin/windows-aarch64/debug/slang-capability-generator.exe + ../../../source/slang/slang-capabilities.capdef;../../../bin/windows-x86/release/slang-capability-generator.exe + ../../../source/slang/slang-capabilities.capdef;../../../bin/windows-x64/release/slang-capability-generator.exe + ../../../source/slang/slang-capabilities.capdef;../../../bin/windows-aarch64/release/slang-capability-generator.exe + diff --git a/build/visual-studio/run-generators/run-generators.vcxproj.filters b/build/visual-studio/run-generators/run-generators.vcxproj.filters index 12c02fd18..c3c8330a8 100644 --- a/build/visual-studio/run-generators/run-generators.vcxproj.filters +++ b/build/visual-studio/run-generators/run-generators.vcxproj.filters @@ -7,6 +7,12 @@ {E9C7FDCE-D52A-8D73-7EB0-C5296AF258F6} + + {76FF3A1C-62A1-65F2-4B5C-7946379DEC42} + + + {9A9B9613-86FE-25B8-2F84-5E6E1BC6F13A} + @@ -58,5 +64,8 @@ Header Files + + source\slang + \ No newline at end of file -- cgit v1.2.3