From 1495b54fc63d8b7e4f2e85ede35f16425a02803b Mon Sep 17 00:00:00 2001 From: Beyley Thomas Date: Fri, 8 Nov 2024 03:34:44 -0800 Subject: [PATCH 1/4] remove DownloadSourceStep and instead use the package manager --- build.zig | 1918 ++++++++++++++++++++++++------------------------- build.zig.zon | 20 + 2 files changed, 966 insertions(+), 972 deletions(-) diff --git a/build.zig b/build.zig index 6c2d45d..e4f1287 100644 --- a/build.zig +++ b/build.zig @@ -10,7 +10,6 @@ const source_repository = "https://github.com/hexops/DirectXShaderCompiler"; const source_revision = "4190bb0c90d374c6b4d0b0f2c7b45b604eda24b6"; // main branch const log = std.log.scoped(.mach_dxcompiler); -const prefix = "libs/DirectXShaderCompiler"; pub fn build(b: *Build) !void { const optimize = b.standardOptimizeOption(.{}); @@ -46,7 +45,7 @@ pub fn build(b: *Build) !void { } break :blk .{ .lib = linkage, .lib_path = cache_dir }; - } else { + } else if (b.lazyDependency("DirectXShaderCompiler", .{})) |dxc_sources| { const lib = b.addStaticLibrary(.{ .name = "machdxcompiler", .optimize = optimize, @@ -59,9 +58,6 @@ pub fn build(b: *Build) !void { lib.root_module.sanitize_c = false; lib.root_module.sanitize_thread = false; // sometimes in parallel, too. - var download_step = DownloadSourceStep.init(b); - lib.step.dependOn(&download_step.step); - lib.addCSourceFile(.{ .file = b.path("src/mach_dxc.cpp"), .flags = &.{ @@ -96,8 +92,10 @@ pub fn build(b: *Build) !void { try cflags.appendSlice(base_flags); try cppflags.appendSlice(base_flags); + const dxh_sources = b.lazyDependency("directx-headers", .{}) orelse return; + addConfigHeaders(b, lib); - addIncludes(b, lib); + addIncludes(b, dxc_sources, dxh_sources, lib); const cpp_sources = tools_clang_lib_lex_sources ++ @@ -154,27 +152,33 @@ pub fn build(b: *Build) !void { if (build_spirv) { lib.defineCMacro("ENABLE_SPIRV_CODEGEN", ""); - addSPIRVIncludes(b, lib); - // Add clang SPIRV tooling sources lib.addCSourceFiles(.{ .files = &lib_spirv, .flags = cppflags.items, + .root = dxc_sources.path("."), }); if (b.lazyDependency("spirv-tools", .{ .target = target, .optimize = optimize, - })) |dep| lib.linkLibrary(dep.artifact("spirv-opt")); + })) |spirv_tools| { + if (b.lazyDependency("SPIRV-Headers", .{})) |spirv_headers| + addSPIRVIncludes(spirv_tools, spirv_headers, lib); + + lib.linkLibrary(spirv_tools.artifact("spirv-opt")); + } } lib.addCSourceFiles(.{ .files = &cpp_sources, .flags = cppflags.items, + .root = dxc_sources.path("."), }); lib.addCSourceFiles(.{ .files = &c_sources, .flags = cflags.items, + .root = dxc_sources.path("."), }); if (target.result.abi != .msvc) lib.defineCMacro("NDEBUG", ""); // disable assertions @@ -209,18 +213,18 @@ pub fn build(b: *Build) !void { const install_dxc_step = b.step("dxc", "Build and install dxc.exe"); install_dxc_step.dependOn(&b.addInstallArtifact(dxc_exe, .{}).step); dxc_exe.addCSourceFile(.{ - .file = b.path(prefix ++ "/tools/clang/tools/dxc/dxcmain.cpp"), + .file = dxc_sources.path("tools/clang/tools/dxc/dxcmain.cpp"), .flags = &.{"-std=c++17"}, }); dxc_exe.defineCMacro("NDEBUG", ""); // disable assertions if (target.result.os.tag != .windows) dxc_exe.defineCMacro("HAVE_DLFCN_H", "1"); - dxc_exe.addIncludePath(b.path(prefix ++ "/tools/clang/tools")); - dxc_exe.addIncludePath(b.path(prefix ++ "/include")); + dxc_exe.addIncludePath(dxc_sources.path("tools/clang/tools")); + dxc_exe.addIncludePath(dxc_sources.path("include")); addConfigHeaders(b, dxc_exe); - addIncludes(b, dxc_exe); + addIncludes(b, dxc_sources, dxh_sources, dxc_exe); dxc_exe.addCSourceFile(.{ - .file = b.path(prefix ++ "/tools/clang/tools/dxclib/dxc.cpp"), + .file = dxc_sources.path("tools/clang/tools/dxclib/dxc.cpp"), .flags = cppflags.items, }); b.installArtifact(dxc_exe); @@ -443,44 +447,47 @@ fn addConfigHeaders(b: *Build, step: *std.Build.Step.Compile) void { )); } -fn addIncludes(b: *Build, step: *std.Build.Step.Compile) void { +fn addIncludes(b: *Build, dxc_sources: *std.Build.Dependency, dxh_sources: *std.Build.Dependency, step: *std.Build.Step.Compile) void { // TODO: replace unofficial external/DIA submodule with something else (or eliminate dep on it) - step.addIncludePath(b.path(prefix ++ "/external/DIA/include")); + if (b.lazyDependency("DIA", .{})) |dia| step.addIncludePath(dia.path("include")); // TODO: replace generated-include with logic to actually generate this code step.addIncludePath(b.path("generated-include/")); - step.addIncludePath(b.path(prefix ++ "/tools/clang/include")); - step.addIncludePath(b.path(prefix ++ "/include")); - step.addIncludePath(b.path(prefix ++ "/include/llvm")); - step.addIncludePath(b.path(prefix ++ "/include/llvm/llvm_assert")); - step.addIncludePath(b.path(prefix ++ "/include/llvm/Bitcode")); - step.addIncludePath(b.path(prefix ++ "/include/llvm/IR")); - step.addIncludePath(b.path(prefix ++ "/include/llvm/IRReader")); - step.addIncludePath(b.path(prefix ++ "/include/llvm/Linker")); - step.addIncludePath(b.path(prefix ++ "/include/llvm/Analysis")); - step.addIncludePath(b.path(prefix ++ "/include/llvm/Transforms")); - step.addIncludePath(b.path(prefix ++ "/include/llvm/Transforms/Utils")); - step.addIncludePath(b.path(prefix ++ "/include/llvm/Transforms/InstCombine")); - step.addIncludePath(b.path(prefix ++ "/include/llvm/Transforms/IPO")); - step.addIncludePath(b.path(prefix ++ "/include/llvm/Transforms/Scalar")); - step.addIncludePath(b.path(prefix ++ "/include/llvm/Transforms/Vectorize")); - step.addIncludePath(b.path(prefix ++ "/include/llvm/Target")); - step.addIncludePath(b.path(prefix ++ "/include/llvm/ProfileData")); - step.addIncludePath(b.path(prefix ++ "/include/llvm/Option")); - step.addIncludePath(b.path(prefix ++ "/include/llvm/PassPrinters")); - step.addIncludePath(b.path(prefix ++ "/include/llvm/Passes")); - step.addIncludePath(b.path(prefix ++ "/include/dxc")); - step.addIncludePath(b.path(prefix ++ "/external/DirectX-Headers/include/directx")); + step.addIncludePath(dxc_sources.path("tools/clang/include")); + step.addIncludePath(dxc_sources.path("include")); + step.addIncludePath(dxc_sources.path("include/llvm")); + step.addIncludePath(dxc_sources.path("include/llvm/llvm_assert")); + step.addIncludePath(dxc_sources.path("include/llvm/Bitcode")); + step.addIncludePath(dxc_sources.path("include/llvm/IR")); + step.addIncludePath(dxc_sources.path("include/llvm/IRReader")); + step.addIncludePath(dxc_sources.path("include/llvm/Linker")); + step.addIncludePath(dxc_sources.path("include/llvm/Analysis")); + step.addIncludePath(dxc_sources.path("include/llvm/Transforms")); + step.addIncludePath(dxc_sources.path("include/llvm/Transforms/Utils")); + step.addIncludePath(dxc_sources.path("include/llvm/Transforms/InstCombine")); + step.addIncludePath(dxc_sources.path("include/llvm/Transforms/IPO")); + step.addIncludePath(dxc_sources.path("include/llvm/Transforms/Scalar")); + step.addIncludePath(dxc_sources.path("include/llvm/Transforms/Vectorize")); + step.addIncludePath(dxc_sources.path("include/llvm/Target")); + step.addIncludePath(dxc_sources.path("include/llvm/ProfileData")); + step.addIncludePath(dxc_sources.path("include/llvm/Option")); + step.addIncludePath(dxc_sources.path("include/llvm/PassPrinters")); + step.addIncludePath(dxc_sources.path("include/llvm/Passes")); + step.addIncludePath(dxc_sources.path("include/dxc")); + step.addIncludePath(dxh_sources.path("include/directx")); const target = step.rootModuleTarget(); - if (target.os.tag != .windows) step.addIncludePath(b.path(prefix ++ "/external/DirectX-Headers/include/wsl/stubs")); + if (target.os.tag != .windows) step.addIncludePath(dxh_sources.path("include/wsl/stubs")); } -fn addSPIRVIncludes(b: *Build, step: *std.Build.Step.Compile) void { - step.addIncludePath(b.path(prefix ++ "/external/SPIRV-Tools")); - step.addIncludePath(b.path(prefix ++ "/external/SPIRV-Tools/include")); - step.addIncludePath(b.path(prefix ++ "/external/SPIRV-Tools/source")); +fn addSPIRVIncludes( + spirv_tools: *std.Build.Dependency, + spirv_headers: *std.Build.Dependency, + step: *std.Build.Step.Compile, +) void { + step.addIncludePath(spirv_tools.path("source")); + step.addIncludePath(spirv_tools.path("include")); - step.addIncludePath(b.path(prefix ++ "/external/SPIRV-Headers/include")); + step.addIncludePath(spirv_headers.path("include")); } // /include/llvm/Config/llvm-config.h.cmake @@ -938,39 +945,6 @@ fn sdkPath(comptime suffix: []const u8) []const u8 { }; } -const DownloadSourceStep = struct { - step: std.Build.Step, - b: *std.Build, - - fn init(b: *std.Build) *DownloadSourceStep { - const download_step = b.allocator.create(DownloadSourceStep) catch unreachable; - download_step.* = .{ - .step = std.Build.Step.init(.{ - .id = .custom, - .name = "download github.com/hexops/DirectXShaderCompiler source", - .owner = b, - .makeFn = &make, - }), - .b = b, - }; - return download_step; - } - - fn make(step_ptr: *std.Build.Step, make_options: Build.Step.MakeOptions) anyerror!void { - _ = make_options; - const download_step: *DownloadSourceStep = @fieldParentPtr("step", step_ptr); - const b = download_step.b; - - // Zig will run build steps in parallel if possible, so if there were two invocations of - // then this function would be called in parallel. We're manipulating the FS here - // and so need to prevent that. - download_mutex.lock(); - defer download_mutex.unlock(); - - try ensureGitRepoCloned(b.allocator, source_repository, source_revision, sdkPath("/libs/DirectXShaderCompiler")); - } -}; - // ------------------------------------------ // Binary download logic // ------------------------------------------ @@ -1189,1089 +1163,1089 @@ test hex64 { // find libs/DirectXShaderCompiler/tools/clang/lib/Lex | grep '\.cpp$' | xargs -I {} -n1 echo '"{}",' | pbcopy const tools_clang_lib_lex_sources = [_][]const u8{ - "libs/DirectXShaderCompiler/tools/clang/lib/Lex/MacroInfo.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Lex/Preprocessor.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Lex/PPExpressions.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Lex/PreprocessorLexer.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Lex/HeaderSearch.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Lex/PPDirectives.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Lex/ScratchBuffer.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Lex/ModuleMap.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Lex/TokenLexer.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Lex/Lexer.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Lex/HLSLMacroExpander.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Lex/PTHLexer.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Lex/PPCallbacks.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Lex/Pragma.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Lex/PPCaching.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Lex/PreprocessingRecord.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Lex/PPMacroExpansion.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Lex/HeaderMap.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Lex/LiteralSupport.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Lex/PPLexerChange.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Lex/TokenConcatenation.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Lex/PPConditionalDirectiveRecord.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Lex/MacroArgs.cpp", + "tools/clang/lib/Lex/MacroInfo.cpp", + "tools/clang/lib/Lex/Preprocessor.cpp", + "tools/clang/lib/Lex/PPExpressions.cpp", + "tools/clang/lib/Lex/PreprocessorLexer.cpp", + "tools/clang/lib/Lex/HeaderSearch.cpp", + "tools/clang/lib/Lex/PPDirectives.cpp", + "tools/clang/lib/Lex/ScratchBuffer.cpp", + "tools/clang/lib/Lex/ModuleMap.cpp", + "tools/clang/lib/Lex/TokenLexer.cpp", + "tools/clang/lib/Lex/Lexer.cpp", + "tools/clang/lib/Lex/HLSLMacroExpander.cpp", + "tools/clang/lib/Lex/PTHLexer.cpp", + "tools/clang/lib/Lex/PPCallbacks.cpp", + "tools/clang/lib/Lex/Pragma.cpp", + "tools/clang/lib/Lex/PPCaching.cpp", + "tools/clang/lib/Lex/PreprocessingRecord.cpp", + "tools/clang/lib/Lex/PPMacroExpansion.cpp", + "tools/clang/lib/Lex/HeaderMap.cpp", + "tools/clang/lib/Lex/LiteralSupport.cpp", + "tools/clang/lib/Lex/PPLexerChange.cpp", + "tools/clang/lib/Lex/TokenConcatenation.cpp", + "tools/clang/lib/Lex/PPConditionalDirectiveRecord.cpp", + "tools/clang/lib/Lex/MacroArgs.cpp", }; // find libs/DirectXShaderCompiler/tools/clang/lib/Basic | grep '\.cpp$' | xargs -I {} -n1 echo '"{}",' | pbcopy const tools_clang_lib_basic_sources = [_][]const u8{ - "libs/DirectXShaderCompiler/tools/clang/lib/Basic/OpenMPKinds.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Basic/TargetInfo.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Basic/LangOptions.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Basic/Warnings.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Basic/Builtins.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Basic/DiagnosticOptions.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Basic/Module.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Basic/Version.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Basic/IdentifierTable.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Basic/TokenKinds.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Basic/ObjCRuntime.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Basic/SourceManager.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Basic/VersionTuple.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Basic/FileSystemStatCache.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Basic/FileManager.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Basic/CharInfo.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Basic/OperatorPrecedence.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Basic/SanitizerBlacklist.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Basic/VirtualFileSystem.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Basic/DiagnosticIDs.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Basic/Diagnostic.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Basic/Targets.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Basic/Attributes.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Basic/SourceLocation.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Basic/Sanitizers.cpp", + "tools/clang/lib/Basic/OpenMPKinds.cpp", + "tools/clang/lib/Basic/TargetInfo.cpp", + "tools/clang/lib/Basic/LangOptions.cpp", + "tools/clang/lib/Basic/Warnings.cpp", + "tools/clang/lib/Basic/Builtins.cpp", + "tools/clang/lib/Basic/DiagnosticOptions.cpp", + "tools/clang/lib/Basic/Module.cpp", + "tools/clang/lib/Basic/Version.cpp", + "tools/clang/lib/Basic/IdentifierTable.cpp", + "tools/clang/lib/Basic/TokenKinds.cpp", + "tools/clang/lib/Basic/ObjCRuntime.cpp", + "tools/clang/lib/Basic/SourceManager.cpp", + "tools/clang/lib/Basic/VersionTuple.cpp", + "tools/clang/lib/Basic/FileSystemStatCache.cpp", + "tools/clang/lib/Basic/FileManager.cpp", + "tools/clang/lib/Basic/CharInfo.cpp", + "tools/clang/lib/Basic/OperatorPrecedence.cpp", + "tools/clang/lib/Basic/SanitizerBlacklist.cpp", + "tools/clang/lib/Basic/VirtualFileSystem.cpp", + "tools/clang/lib/Basic/DiagnosticIDs.cpp", + "tools/clang/lib/Basic/Diagnostic.cpp", + "tools/clang/lib/Basic/Targets.cpp", + "tools/clang/lib/Basic/Attributes.cpp", + "tools/clang/lib/Basic/SourceLocation.cpp", + "tools/clang/lib/Basic/Sanitizers.cpp", }; // find libs/DirectXShaderCompiler/tools/clang/lib/Driver | grep '\.cpp$' | xargs -I {} -n1 echo '"{}",' | pbcopy const tools_clang_lib_driver_sources = [_][]const u8{ - "libs/DirectXShaderCompiler/tools/clang/lib/Driver/Job.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Driver/ToolChains.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Driver/DriverOptions.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Driver/Types.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Driver/MinGWToolChain.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Driver/Phases.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Driver/MSVCToolChain.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Driver/Compilation.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Driver/Driver.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Driver/Multilib.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Driver/Tools.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Driver/SanitizerArgs.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Driver/Tool.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Driver/Action.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Driver/CrossWindowsToolChain.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Driver/ToolChain.cpp", + "tools/clang/lib/Driver/Job.cpp", + "tools/clang/lib/Driver/ToolChains.cpp", + "tools/clang/lib/Driver/DriverOptions.cpp", + "tools/clang/lib/Driver/Types.cpp", + "tools/clang/lib/Driver/MinGWToolChain.cpp", + "tools/clang/lib/Driver/Phases.cpp", + "tools/clang/lib/Driver/MSVCToolChain.cpp", + "tools/clang/lib/Driver/Compilation.cpp", + "tools/clang/lib/Driver/Driver.cpp", + "tools/clang/lib/Driver/Multilib.cpp", + "tools/clang/lib/Driver/Tools.cpp", + "tools/clang/lib/Driver/SanitizerArgs.cpp", + "tools/clang/lib/Driver/Tool.cpp", + "tools/clang/lib/Driver/Action.cpp", + "tools/clang/lib/Driver/CrossWindowsToolChain.cpp", + "tools/clang/lib/Driver/ToolChain.cpp", }; // find libs/DirectXShaderCompiler/tools/clang/lib/Analysis | grep -v 'CocoaConventions.cpp' | grep -v 'FormatString.cpp' | grep -v 'PrintfFormatString.cpp' | grep -v 'ScanfFormatString.cpp' | grep '\.cpp$' | xargs -I {} -n1 echo '"{}",' | pbcopy const tools_clang_lib_analysis_sources = [_][]const u8{ - "libs/DirectXShaderCompiler/tools/clang/lib/Analysis/ReachableCode.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Analysis/ThreadSafetyLogical.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Analysis/ThreadSafetyCommon.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Analysis/CFG.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Analysis/BodyFarm.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Analysis/ThreadSafety.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Analysis/UninitializedValues.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Analysis/CFGReachabilityAnalysis.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Analysis/Dominators.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Analysis/PseudoConstantAnalysis.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Analysis/AnalysisDeclContext.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Analysis/LiveVariables.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Analysis/CallGraph.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Analysis/PostOrderCFGView.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Analysis/ProgramPoint.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Analysis/ObjCNoReturn.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Analysis/ThreadSafetyTIL.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Analysis/CFGStmtMap.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Analysis/Consumed.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Analysis/CodeInjector.cpp", + "tools/clang/lib/Analysis/ReachableCode.cpp", + "tools/clang/lib/Analysis/ThreadSafetyLogical.cpp", + "tools/clang/lib/Analysis/ThreadSafetyCommon.cpp", + "tools/clang/lib/Analysis/CFG.cpp", + "tools/clang/lib/Analysis/BodyFarm.cpp", + "tools/clang/lib/Analysis/ThreadSafety.cpp", + "tools/clang/lib/Analysis/UninitializedValues.cpp", + "tools/clang/lib/Analysis/CFGReachabilityAnalysis.cpp", + "tools/clang/lib/Analysis/Dominators.cpp", + "tools/clang/lib/Analysis/PseudoConstantAnalysis.cpp", + "tools/clang/lib/Analysis/AnalysisDeclContext.cpp", + "tools/clang/lib/Analysis/LiveVariables.cpp", + "tools/clang/lib/Analysis/CallGraph.cpp", + "tools/clang/lib/Analysis/PostOrderCFGView.cpp", + "tools/clang/lib/Analysis/ProgramPoint.cpp", + "tools/clang/lib/Analysis/ObjCNoReturn.cpp", + "tools/clang/lib/Analysis/ThreadSafetyTIL.cpp", + "tools/clang/lib/Analysis/CFGStmtMap.cpp", + "tools/clang/lib/Analysis/Consumed.cpp", + "tools/clang/lib/Analysis/CodeInjector.cpp", }; // find libs/DirectXShaderCompiler/tools/clang/lib/Index | grep '\.cpp$' | xargs -I {} -n1 echo '"{}",' | pbcopy const tools_clang_lib_index_sources = [_][]const u8{ - "libs/DirectXShaderCompiler/tools/clang/lib/Index/CommentToXML.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Index/USRGeneration.cpp", + "tools/clang/lib/Index/CommentToXML.cpp", + "tools/clang/lib/Index/USRGeneration.cpp", }; // find libs/DirectXShaderCompiler/tools/clang/lib/Parse | grep '\.cpp$' | xargs -I {} -n1 echo '"{}",' | pbcopy const tools_clang_lib_parse_sources = [_][]const u8{ - "libs/DirectXShaderCompiler/tools/clang/lib/Parse/ParseExprCXX.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Parse/ParseTemplate.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Parse/ParseDeclCXX.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Parse/ParseInit.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Parse/ParseOpenMP.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Parse/HLSLRootSignature.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Parse/ParseObjc.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Parse/ParseDecl.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Parse/ParseExpr.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Parse/ParseHLSL.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Parse/ParseCXXInlineMethods.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Parse/ParseStmtAsm.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Parse/ParseStmt.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Parse/ParsePragma.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Parse/Parser.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Parse/ParseAST.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Parse/ParseTentative.cpp", + "tools/clang/lib/Parse/ParseExprCXX.cpp", + "tools/clang/lib/Parse/ParseTemplate.cpp", + "tools/clang/lib/Parse/ParseDeclCXX.cpp", + "tools/clang/lib/Parse/ParseInit.cpp", + "tools/clang/lib/Parse/ParseOpenMP.cpp", + "tools/clang/lib/Parse/HLSLRootSignature.cpp", + "tools/clang/lib/Parse/ParseObjc.cpp", + "tools/clang/lib/Parse/ParseDecl.cpp", + "tools/clang/lib/Parse/ParseExpr.cpp", + "tools/clang/lib/Parse/ParseHLSL.cpp", + "tools/clang/lib/Parse/ParseCXXInlineMethods.cpp", + "tools/clang/lib/Parse/ParseStmtAsm.cpp", + "tools/clang/lib/Parse/ParseStmt.cpp", + "tools/clang/lib/Parse/ParsePragma.cpp", + "tools/clang/lib/Parse/Parser.cpp", + "tools/clang/lib/Parse/ParseAST.cpp", + "tools/clang/lib/Parse/ParseTentative.cpp", }; // find libs/DirectXShaderCompiler/tools/clang/lib/AST | grep -v 'NSAPI.cpp' | grep '\.cpp$' | xargs -I {} -n1 echo '"{}",' | pbcopy const tools_clang_lib_ast_sources = [_][]const u8{ - "libs/DirectXShaderCompiler/tools/clang/lib/AST/ExprConstant.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/ExprCXX.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/CommentCommandTraits.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/Mangle.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/ASTDiagnostic.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/CommentParser.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/AttrImpl.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/ASTDumper.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/DeclOpenMP.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/ASTTypeTraits.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/ASTImporter.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/StmtPrinter.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/CommentBriefParser.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/APValue.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/ASTConsumer.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/DeclCXX.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/Stmt.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/CommentSema.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/HlslTypes.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/ASTContextHLSL.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/InheritViz.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/Expr.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/RecordLayout.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/StmtIterator.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/ExprClassification.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/DeclPrinter.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/DeclBase.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/StmtProfile.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/Comment.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/VTTBuilder.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/Decl.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/SelectorLocationsKind.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/TypeLoc.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/DeclarationName.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/DeclObjC.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/VTableBuilder.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/CommentLexer.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/StmtViz.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/DeclTemplate.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/CXXInheritance.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/RecordLayoutBuilder.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/RawCommentList.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/TemplateBase.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/HlslBuiltinTypeDeclBuilder.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/DeclFriend.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/ItaniumMangle.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/ASTContext.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/TemplateName.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/ParentMap.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/ItaniumCXXABI.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/NestedNameSpecifier.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/MicrosoftMangle.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/DeclGroup.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/Type.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/ExternalASTSource.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/TypePrinter.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/AST/MicrosoftCXXABI.cpp", + "tools/clang/lib/AST/ExprConstant.cpp", + "tools/clang/lib/AST/ExprCXX.cpp", + "tools/clang/lib/AST/CommentCommandTraits.cpp", + "tools/clang/lib/AST/Mangle.cpp", + "tools/clang/lib/AST/ASTDiagnostic.cpp", + "tools/clang/lib/AST/CommentParser.cpp", + "tools/clang/lib/AST/AttrImpl.cpp", + "tools/clang/lib/AST/ASTDumper.cpp", + "tools/clang/lib/AST/DeclOpenMP.cpp", + "tools/clang/lib/AST/ASTTypeTraits.cpp", + "tools/clang/lib/AST/ASTImporter.cpp", + "tools/clang/lib/AST/StmtPrinter.cpp", + "tools/clang/lib/AST/CommentBriefParser.cpp", + "tools/clang/lib/AST/APValue.cpp", + "tools/clang/lib/AST/ASTConsumer.cpp", + "tools/clang/lib/AST/DeclCXX.cpp", + "tools/clang/lib/AST/Stmt.cpp", + "tools/clang/lib/AST/CommentSema.cpp", + "tools/clang/lib/AST/HlslTypes.cpp", + "tools/clang/lib/AST/ASTContextHLSL.cpp", + "tools/clang/lib/AST/InheritViz.cpp", + "tools/clang/lib/AST/Expr.cpp", + "tools/clang/lib/AST/RecordLayout.cpp", + "tools/clang/lib/AST/StmtIterator.cpp", + "tools/clang/lib/AST/ExprClassification.cpp", + "tools/clang/lib/AST/DeclPrinter.cpp", + "tools/clang/lib/AST/DeclBase.cpp", + "tools/clang/lib/AST/StmtProfile.cpp", + "tools/clang/lib/AST/Comment.cpp", + "tools/clang/lib/AST/VTTBuilder.cpp", + "tools/clang/lib/AST/Decl.cpp", + "tools/clang/lib/AST/SelectorLocationsKind.cpp", + "tools/clang/lib/AST/TypeLoc.cpp", + "tools/clang/lib/AST/DeclarationName.cpp", + "tools/clang/lib/AST/DeclObjC.cpp", + "tools/clang/lib/AST/VTableBuilder.cpp", + "tools/clang/lib/AST/CommentLexer.cpp", + "tools/clang/lib/AST/StmtViz.cpp", + "tools/clang/lib/AST/DeclTemplate.cpp", + "tools/clang/lib/AST/CXXInheritance.cpp", + "tools/clang/lib/AST/RecordLayoutBuilder.cpp", + "tools/clang/lib/AST/RawCommentList.cpp", + "tools/clang/lib/AST/TemplateBase.cpp", + "tools/clang/lib/AST/HlslBuiltinTypeDeclBuilder.cpp", + "tools/clang/lib/AST/DeclFriend.cpp", + "tools/clang/lib/AST/ItaniumMangle.cpp", + "tools/clang/lib/AST/ASTContext.cpp", + "tools/clang/lib/AST/TemplateName.cpp", + "tools/clang/lib/AST/ParentMap.cpp", + "tools/clang/lib/AST/ItaniumCXXABI.cpp", + "tools/clang/lib/AST/NestedNameSpecifier.cpp", + "tools/clang/lib/AST/MicrosoftMangle.cpp", + "tools/clang/lib/AST/DeclGroup.cpp", + "tools/clang/lib/AST/Type.cpp", + "tools/clang/lib/AST/ExternalASTSource.cpp", + "tools/clang/lib/AST/TypePrinter.cpp", + "tools/clang/lib/AST/MicrosoftCXXABI.cpp", }; // find libs/DirectXShaderCompiler/tools/clang/lib/Edit | grep -v 'RewriteObjCFoundationAPI.cpp' | grep '\.cpp$' | xargs -I {} -n1 echo '"{}",' | pbcopy const tools_clang_lib_edit_sources = [_][]const u8{ - "libs/DirectXShaderCompiler/tools/clang/lib/Edit/EditedSource.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Edit/Commit.cpp", + "tools/clang/lib/Edit/EditedSource.cpp", + "tools/clang/lib/Edit/Commit.cpp", }; // find libs/DirectXShaderCompiler/tools/clang/lib/Sema | grep '\.cpp$' | xargs -I {} -n1 echo '"{}",' | pbcopy const tools_clang_lib_sema_sources = [_][]const u8{ - "libs/DirectXShaderCompiler/tools/clang/lib/Sema/SemaDXR.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Sema/CodeCompleteConsumer.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Sema/SemaOverload.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Sema/SemaLambda.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Sema/SemaTemplateDeduction.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Sema/MultiplexExternalSemaSource.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Sema/IdentifierResolver.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Sema/TypeLocBuilder.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Sema/SemaCUDA.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Sema/SemaTemplateInstantiate.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Sema/SemaTemplate.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Sema/DelayedDiagnostic.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Sema/SemaDeclCXX.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Sema/ScopeInfo.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Sema/SemaStmtAttr.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Sema/SemaChecking.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Sema/SemaCast.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Sema/SemaInit.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Sema/SemaType.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Sema/SemaDeclAttr.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Sema/SemaOpenMP.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Sema/SemaFixItUtils.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Sema/SemaTemplateVariadic.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Sema/SemaExprCXX.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Sema/Scope.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Sema/DeclSpec.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Sema/SemaLookup.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Sema/SemaPseudoObject.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Sema/AttributeList.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Sema/SemaDeclObjC.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Sema/SemaCXXScopeSpec.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Sema/SemaExprMember.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Sema/SemaAccess.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Sema/SemaStmt.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Sema/SemaCodeComplete.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Sema/SemaExprObjC.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Sema/SemaAttr.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Sema/SemaStmtAsm.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Sema/SemaExpr.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Sema/JumpDiagnostics.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Sema/SemaHLSL.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Sema/SemaObjCProperty.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Sema/SemaConsumer.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Sema/SemaDecl.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Sema/SemaExceptionSpec.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Sema/Sema.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Sema/AnalysisBasedWarnings.cpp", + "tools/clang/lib/Sema/SemaDXR.cpp", + "tools/clang/lib/Sema/CodeCompleteConsumer.cpp", + "tools/clang/lib/Sema/SemaOverload.cpp", + "tools/clang/lib/Sema/SemaLambda.cpp", + "tools/clang/lib/Sema/SemaTemplateDeduction.cpp", + "tools/clang/lib/Sema/MultiplexExternalSemaSource.cpp", + "tools/clang/lib/Sema/IdentifierResolver.cpp", + "tools/clang/lib/Sema/TypeLocBuilder.cpp", + "tools/clang/lib/Sema/SemaCUDA.cpp", + "tools/clang/lib/Sema/SemaTemplateInstantiate.cpp", + "tools/clang/lib/Sema/SemaTemplate.cpp", + "tools/clang/lib/Sema/DelayedDiagnostic.cpp", + "tools/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp", + "tools/clang/lib/Sema/SemaDeclCXX.cpp", + "tools/clang/lib/Sema/ScopeInfo.cpp", + "tools/clang/lib/Sema/SemaStmtAttr.cpp", + "tools/clang/lib/Sema/SemaChecking.cpp", + "tools/clang/lib/Sema/SemaCast.cpp", + "tools/clang/lib/Sema/SemaInit.cpp", + "tools/clang/lib/Sema/SemaType.cpp", + "tools/clang/lib/Sema/SemaDeclAttr.cpp", + "tools/clang/lib/Sema/SemaOpenMP.cpp", + "tools/clang/lib/Sema/SemaFixItUtils.cpp", + "tools/clang/lib/Sema/SemaTemplateVariadic.cpp", + "tools/clang/lib/Sema/SemaExprCXX.cpp", + "tools/clang/lib/Sema/Scope.cpp", + "tools/clang/lib/Sema/DeclSpec.cpp", + "tools/clang/lib/Sema/SemaLookup.cpp", + "tools/clang/lib/Sema/SemaPseudoObject.cpp", + "tools/clang/lib/Sema/AttributeList.cpp", + "tools/clang/lib/Sema/SemaDeclObjC.cpp", + "tools/clang/lib/Sema/SemaCXXScopeSpec.cpp", + "tools/clang/lib/Sema/SemaExprMember.cpp", + "tools/clang/lib/Sema/SemaAccess.cpp", + "tools/clang/lib/Sema/SemaStmt.cpp", + "tools/clang/lib/Sema/SemaCodeComplete.cpp", + "tools/clang/lib/Sema/SemaExprObjC.cpp", + "tools/clang/lib/Sema/SemaAttr.cpp", + "tools/clang/lib/Sema/SemaStmtAsm.cpp", + "tools/clang/lib/Sema/SemaExpr.cpp", + "tools/clang/lib/Sema/JumpDiagnostics.cpp", + "tools/clang/lib/Sema/SemaHLSL.cpp", + "tools/clang/lib/Sema/SemaObjCProperty.cpp", + "tools/clang/lib/Sema/SemaConsumer.cpp", + "tools/clang/lib/Sema/SemaDecl.cpp", + "tools/clang/lib/Sema/SemaExceptionSpec.cpp", + "tools/clang/lib/Sema/Sema.cpp", + "tools/clang/lib/Sema/AnalysisBasedWarnings.cpp", }; // find libs/DirectXShaderCompiler/tools/clang/lib/CodeGen | grep -v 'CGObjCGNU.cpp' | grep -v 'CGObjCMac.cpp' | grep -v 'CGObjCRuntime.cpp' | grep -v 'CGOpenCLRuntime.cpp' | grep -v 'CGOpenMPRuntime.cpp' | grep '\.cpp$' | xargs -I {} -n1 echo '"{}",' | pbcopy const tools_clang_lib_codegen_sources = [_][]const u8{ - "libs/DirectXShaderCompiler/tools/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/CodeGen/CGHLSLMSFinishCodeGen.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/CodeGen/CGDeclCXX.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/CodeGen/SanitizerMetadata.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/CodeGen/CGDecl.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/CodeGen/TargetInfo.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/CodeGen/CGCall.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/CodeGen/CGVTables.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/CodeGen/CGExprScalar.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/CodeGen/CGBlocks.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/CodeGen/CGExpr.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/CodeGen/CodeGenPGO.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/CodeGen/CGStmtOpenMP.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/CodeGen/CGExprCXX.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/CodeGen/BackendUtil.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/CodeGen/CGAtomic.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/CodeGen/CGCUDARuntime.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/CodeGen/CGHLSLRootSignature.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/CodeGen/CodeGenAction.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/CodeGen/CGStmt.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/CodeGen/CodeGenABITypes.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/CodeGen/CGClass.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/CodeGen/CGException.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/CodeGen/CGHLSLRuntime.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/CodeGen/CGExprComplex.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/CodeGen/CGExprConstant.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/CodeGen/ModuleBuilder.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/CodeGen/CodeGenTypes.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/CodeGen/CGCUDANV.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/CodeGen/CGRecordLayoutBuilder.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/CodeGen/CoverageMappingGen.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/CodeGen/CGExprAgg.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/CodeGen/CGVTT.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/CodeGen/CGCXX.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/CodeGen/CGCleanup.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/CodeGen/CGHLSLMS.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/CodeGen/CodeGenFunction.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/CodeGen/ItaniumCXXABI.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/CodeGen/CGDebugInfo.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/CodeGen/CGCXXABI.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/CodeGen/CGObjC.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/CodeGen/CodeGenModule.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/CodeGen/CGBuiltin.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/CodeGen/CodeGenTBAA.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/CodeGen/CGLoopInfo.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/CodeGen/MicrosoftCXXABI.cpp", + "tools/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp", + "tools/clang/lib/CodeGen/CGHLSLMSFinishCodeGen.cpp", + "tools/clang/lib/CodeGen/CGDeclCXX.cpp", + "tools/clang/lib/CodeGen/SanitizerMetadata.cpp", + "tools/clang/lib/CodeGen/CGDecl.cpp", + "tools/clang/lib/CodeGen/TargetInfo.cpp", + "tools/clang/lib/CodeGen/CGCall.cpp", + "tools/clang/lib/CodeGen/CGVTables.cpp", + "tools/clang/lib/CodeGen/CGExprScalar.cpp", + "tools/clang/lib/CodeGen/CGBlocks.cpp", + "tools/clang/lib/CodeGen/CGExpr.cpp", + "tools/clang/lib/CodeGen/CodeGenPGO.cpp", + "tools/clang/lib/CodeGen/CGStmtOpenMP.cpp", + "tools/clang/lib/CodeGen/CGExprCXX.cpp", + "tools/clang/lib/CodeGen/BackendUtil.cpp", + "tools/clang/lib/CodeGen/CGAtomic.cpp", + "tools/clang/lib/CodeGen/CGCUDARuntime.cpp", + "tools/clang/lib/CodeGen/CGHLSLRootSignature.cpp", + "tools/clang/lib/CodeGen/CodeGenAction.cpp", + "tools/clang/lib/CodeGen/CGStmt.cpp", + "tools/clang/lib/CodeGen/CodeGenABITypes.cpp", + "tools/clang/lib/CodeGen/CGClass.cpp", + "tools/clang/lib/CodeGen/CGException.cpp", + "tools/clang/lib/CodeGen/CGHLSLRuntime.cpp", + "tools/clang/lib/CodeGen/CGExprComplex.cpp", + "tools/clang/lib/CodeGen/CGExprConstant.cpp", + "tools/clang/lib/CodeGen/ModuleBuilder.cpp", + "tools/clang/lib/CodeGen/CodeGenTypes.cpp", + "tools/clang/lib/CodeGen/CGCUDANV.cpp", + "tools/clang/lib/CodeGen/CGRecordLayoutBuilder.cpp", + "tools/clang/lib/CodeGen/CoverageMappingGen.cpp", + "tools/clang/lib/CodeGen/CGExprAgg.cpp", + "tools/clang/lib/CodeGen/CGVTT.cpp", + "tools/clang/lib/CodeGen/CGCXX.cpp", + "tools/clang/lib/CodeGen/CGCleanup.cpp", + "tools/clang/lib/CodeGen/CGHLSLMS.cpp", + "tools/clang/lib/CodeGen/CodeGenFunction.cpp", + "tools/clang/lib/CodeGen/ItaniumCXXABI.cpp", + "tools/clang/lib/CodeGen/CGDebugInfo.cpp", + "tools/clang/lib/CodeGen/CGCXXABI.cpp", + "tools/clang/lib/CodeGen/CGObjC.cpp", + "tools/clang/lib/CodeGen/CodeGenModule.cpp", + "tools/clang/lib/CodeGen/CGBuiltin.cpp", + "tools/clang/lib/CodeGen/CodeGenTBAA.cpp", + "tools/clang/lib/CodeGen/CGLoopInfo.cpp", + "tools/clang/lib/CodeGen/MicrosoftCXXABI.cpp", }; // find libs/DirectXShaderCompiler/tools/clang/lib/ASTMatchers | grep '\.cpp$' | xargs -I {} -n1 echo '"{}",' | pbcopy const tools_clang_lib_astmatchers_sources = [_][]const u8{ - "libs/DirectXShaderCompiler/tools/clang/lib/ASTMatchers/Dynamic/Diagnostics.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/ASTMatchers/Dynamic/Registry.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/ASTMatchers/Dynamic/VariantValue.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/ASTMatchers/Dynamic/Parser.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/ASTMatchers/ASTMatchersInternal.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/ASTMatchers/ASTMatchFinder.cpp", + "tools/clang/lib/ASTMatchers/Dynamic/Diagnostics.cpp", + "tools/clang/lib/ASTMatchers/Dynamic/Registry.cpp", + "tools/clang/lib/ASTMatchers/Dynamic/VariantValue.cpp", + "tools/clang/lib/ASTMatchers/Dynamic/Parser.cpp", + "tools/clang/lib/ASTMatchers/ASTMatchersInternal.cpp", + "tools/clang/lib/ASTMatchers/ASTMatchFinder.cpp", }; // find libs/DirectXShaderCompiler/tools/clang/lib/Tooling/Core | grep '\.cpp$' | xargs -I {} -n1 echo '"{}",' | pbcopy const tools_clang_lib_tooling_core_sources = [_][]const u8{ - "libs/DirectXShaderCompiler/tools/clang/lib/Tooling/Core/Replacement.cpp", + "tools/clang/lib/Tooling/Core/Replacement.cpp", }; // find libs/DirectXShaderCompiler/tools/clang/lib/Tooling | grep '\.cpp$' | xargs -I {} -n1 echo '"{}",' | pbcopy const tools_clang_lib_tooling_sources = [_][]const u8{ - "libs/DirectXShaderCompiler/tools/clang/lib/Tooling/JSONCompilationDatabase.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Tooling/FileMatchTrie.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Tooling/Core/Replacement.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Tooling/RefactoringCallbacks.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Tooling/CommonOptionsParser.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Tooling/CompilationDatabase.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Tooling/ArgumentsAdjusters.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Tooling/Refactoring.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Tooling/Tooling.cpp", + "tools/clang/lib/Tooling/JSONCompilationDatabase.cpp", + "tools/clang/lib/Tooling/FileMatchTrie.cpp", + "tools/clang/lib/Tooling/Core/Replacement.cpp", + "tools/clang/lib/Tooling/RefactoringCallbacks.cpp", + "tools/clang/lib/Tooling/CommonOptionsParser.cpp", + "tools/clang/lib/Tooling/CompilationDatabase.cpp", + "tools/clang/lib/Tooling/ArgumentsAdjusters.cpp", + "tools/clang/lib/Tooling/Refactoring.cpp", + "tools/clang/lib/Tooling/Tooling.cpp", }; // find libs/DirectXShaderCompiler/tools/clang/lib/Format | grep '\.cpp$' | xargs -I {} -n1 echo '"{}",' | pbcopy const tools_clang_lib_format_sources = [_][]const u8{ - "libs/DirectXShaderCompiler/tools/clang/lib/Format/FormatToken.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Format/ContinuationIndenter.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Format/Format.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Format/UnwrappedLineFormatter.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Format/WhitespaceManager.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Format/BreakableToken.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Format/TokenAnnotator.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Format/UnwrappedLineParser.cpp", + "tools/clang/lib/Format/FormatToken.cpp", + "tools/clang/lib/Format/ContinuationIndenter.cpp", + "tools/clang/lib/Format/Format.cpp", + "tools/clang/lib/Format/UnwrappedLineFormatter.cpp", + "tools/clang/lib/Format/WhitespaceManager.cpp", + "tools/clang/lib/Format/BreakableToken.cpp", + "tools/clang/lib/Format/TokenAnnotator.cpp", + "tools/clang/lib/Format/UnwrappedLineParser.cpp", }; // find libs/DirectXShaderCompiler/tools/clang/lib/Rewrite | grep '\.cpp$' | xargs -I {} -n1 echo '"{}",' | pbcopy const tools_clang_lib_rewrite_sources = [_][]const u8{ - "libs/DirectXShaderCompiler/tools/clang/lib/Rewrite/HTMLRewrite.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Rewrite/RewriteRope.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Rewrite/DeltaTree.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Rewrite/TokenRewriter.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Rewrite/Rewriter.cpp", + "tools/clang/lib/Rewrite/HTMLRewrite.cpp", + "tools/clang/lib/Rewrite/RewriteRope.cpp", + "tools/clang/lib/Rewrite/DeltaTree.cpp", + "tools/clang/lib/Rewrite/TokenRewriter.cpp", + "tools/clang/lib/Rewrite/Rewriter.cpp", }; // find libs/DirectXShaderCompiler/tools/clang/lib/Frontend | grep -v 'RewriteModernObjC.cpp' | grep -v 'ChainedIncludesSource.cpp' | grep '\.cpp$' | xargs -I {} -n1 echo '"{}",' | pbcopy const tools_clang_lib_frontend_sources = [_][]const u8{ - "libs/DirectXShaderCompiler/tools/clang/lib/Frontend/ASTConsumers.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Frontend/InitPreprocessor.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Frontend/FrontendActions.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Frontend/InitHeaderSearch.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Frontend/ASTMerge.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Frontend/Rewrite/RewriteMacros.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Frontend/Rewrite/FixItRewriter.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Frontend/Rewrite/InclusionRewriter.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Frontend/Rewrite/RewriteTest.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Frontend/Rewrite/FrontendActions_rewrite.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Frontend/Rewrite/RewriteObjC.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Frontend/Rewrite/HTMLPrint.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Frontend/DependencyGraph.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Frontend/FrontendAction.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Frontend/MultiplexConsumer.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Frontend/TextDiagnostic.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Frontend/ModuleDependencyCollector.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Frontend/DiagnosticRenderer.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Frontend/CompilerInvocation.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Frontend/PCHContainerOperations.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Frontend/TextDiagnosticPrinter.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Frontend/CodeGenOptions.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Frontend/HeaderIncludeGen.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Frontend/ASTUnit.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Frontend/ChainedDiagnosticConsumer.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Frontend/SerializedDiagnosticPrinter.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Frontend/LayoutOverrideSource.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Frontend/CacheTokens.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Frontend/FrontendOptions.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Frontend/LangStandards.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Frontend/TextDiagnosticBuffer.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Frontend/PrintPreprocessedOutput.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Frontend/DependencyFile.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Frontend/SerializedDiagnosticReader.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Frontend/VerifyDiagnosticConsumer.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Frontend/CompilerInstance.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/Frontend/LogDiagnosticPrinter.cpp", + "tools/clang/lib/Frontend/ASTConsumers.cpp", + "tools/clang/lib/Frontend/InitPreprocessor.cpp", + "tools/clang/lib/Frontend/FrontendActions.cpp", + "tools/clang/lib/Frontend/InitHeaderSearch.cpp", + "tools/clang/lib/Frontend/ASTMerge.cpp", + "tools/clang/lib/Frontend/Rewrite/RewriteMacros.cpp", + "tools/clang/lib/Frontend/Rewrite/FixItRewriter.cpp", + "tools/clang/lib/Frontend/Rewrite/InclusionRewriter.cpp", + "tools/clang/lib/Frontend/Rewrite/RewriteTest.cpp", + "tools/clang/lib/Frontend/Rewrite/FrontendActions_rewrite.cpp", + "tools/clang/lib/Frontend/Rewrite/RewriteObjC.cpp", + "tools/clang/lib/Frontend/Rewrite/HTMLPrint.cpp", + "tools/clang/lib/Frontend/DependencyGraph.cpp", + "tools/clang/lib/Frontend/FrontendAction.cpp", + "tools/clang/lib/Frontend/MultiplexConsumer.cpp", + "tools/clang/lib/Frontend/TextDiagnostic.cpp", + "tools/clang/lib/Frontend/ModuleDependencyCollector.cpp", + "tools/clang/lib/Frontend/DiagnosticRenderer.cpp", + "tools/clang/lib/Frontend/CompilerInvocation.cpp", + "tools/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp", + "tools/clang/lib/Frontend/PCHContainerOperations.cpp", + "tools/clang/lib/Frontend/TextDiagnosticPrinter.cpp", + "tools/clang/lib/Frontend/CodeGenOptions.cpp", + "tools/clang/lib/Frontend/HeaderIncludeGen.cpp", + "tools/clang/lib/Frontend/ASTUnit.cpp", + "tools/clang/lib/Frontend/ChainedDiagnosticConsumer.cpp", + "tools/clang/lib/Frontend/SerializedDiagnosticPrinter.cpp", + "tools/clang/lib/Frontend/LayoutOverrideSource.cpp", + "tools/clang/lib/Frontend/CacheTokens.cpp", + "tools/clang/lib/Frontend/FrontendOptions.cpp", + "tools/clang/lib/Frontend/LangStandards.cpp", + "tools/clang/lib/Frontend/TextDiagnosticBuffer.cpp", + "tools/clang/lib/Frontend/PrintPreprocessedOutput.cpp", + "tools/clang/lib/Frontend/DependencyFile.cpp", + "tools/clang/lib/Frontend/SerializedDiagnosticReader.cpp", + "tools/clang/lib/Frontend/VerifyDiagnosticConsumer.cpp", + "tools/clang/lib/Frontend/CompilerInstance.cpp", + "tools/clang/lib/Frontend/LogDiagnosticPrinter.cpp", }; // find libs/DirectXShaderCompiler/tools/clang/tools/libclang | grep -v 'ARCMigrate.cpp' | grep -v 'BuildSystem.cpp' | grep '\.cpp$' | xargs -I {} -n1 echo '"{}",' | pbcopy const tools_clang_tools_libclang_sources = [_][]const u8{ - "libs/DirectXShaderCompiler/tools/clang/tools/libclang/dxcisenseimpl.cpp", - "libs/DirectXShaderCompiler/tools/clang/tools/libclang/IndexBody.cpp", - "libs/DirectXShaderCompiler/tools/clang/tools/libclang/CIndexCXX.cpp", - "libs/DirectXShaderCompiler/tools/clang/tools/libclang/CIndexer.cpp", - "libs/DirectXShaderCompiler/tools/clang/tools/libclang/IndexingContext.cpp", - "libs/DirectXShaderCompiler/tools/clang/tools/libclang/CXLoadedDiagnostic.cpp", - "libs/DirectXShaderCompiler/tools/clang/tools/libclang/Indexing.cpp", - "libs/DirectXShaderCompiler/tools/clang/tools/libclang/CXCursor.cpp", - "libs/DirectXShaderCompiler/tools/clang/tools/libclang/dxcrewriteunused.cpp", - "libs/DirectXShaderCompiler/tools/clang/tools/libclang/CXCompilationDatabase.cpp", - "libs/DirectXShaderCompiler/tools/clang/tools/libclang/CIndexInclusionStack.cpp", - "libs/DirectXShaderCompiler/tools/clang/tools/libclang/CXStoredDiagnostic.cpp", - "libs/DirectXShaderCompiler/tools/clang/tools/libclang/CIndexHigh.cpp", - "libs/DirectXShaderCompiler/tools/clang/tools/libclang/CXType.cpp", - "libs/DirectXShaderCompiler/tools/clang/tools/libclang/CIndex.cpp", - "libs/DirectXShaderCompiler/tools/clang/tools/libclang/CIndexCodeCompletion.cpp", - "libs/DirectXShaderCompiler/tools/clang/tools/libclang/IndexTypeSourceInfo.cpp", - "libs/DirectXShaderCompiler/tools/clang/tools/libclang/CIndexDiagnostic.cpp", - "libs/DirectXShaderCompiler/tools/clang/tools/libclang/CXString.cpp", - "libs/DirectXShaderCompiler/tools/clang/tools/libclang/IndexDecl.cpp", - "libs/DirectXShaderCompiler/tools/clang/tools/libclang/CXComment.cpp", - "libs/DirectXShaderCompiler/tools/clang/tools/libclang/CXSourceLocation.cpp", - "libs/DirectXShaderCompiler/tools/clang/tools/libclang/CIndexUSRs.cpp", + "tools/clang/tools/libclang/dxcisenseimpl.cpp", + "tools/clang/tools/libclang/IndexBody.cpp", + "tools/clang/tools/libclang/CIndexCXX.cpp", + "tools/clang/tools/libclang/CIndexer.cpp", + "tools/clang/tools/libclang/IndexingContext.cpp", + "tools/clang/tools/libclang/CXLoadedDiagnostic.cpp", + "tools/clang/tools/libclang/Indexing.cpp", + "tools/clang/tools/libclang/CXCursor.cpp", + "tools/clang/tools/libclang/dxcrewriteunused.cpp", + "tools/clang/tools/libclang/CXCompilationDatabase.cpp", + "tools/clang/tools/libclang/CIndexInclusionStack.cpp", + "tools/clang/tools/libclang/CXStoredDiagnostic.cpp", + "tools/clang/tools/libclang/CIndexHigh.cpp", + "tools/clang/tools/libclang/CXType.cpp", + "tools/clang/tools/libclang/CIndex.cpp", + "tools/clang/tools/libclang/CIndexCodeCompletion.cpp", + "tools/clang/tools/libclang/IndexTypeSourceInfo.cpp", + "tools/clang/tools/libclang/CIndexDiagnostic.cpp", + "tools/clang/tools/libclang/CXString.cpp", + "tools/clang/tools/libclang/IndexDecl.cpp", + "tools/clang/tools/libclang/CXComment.cpp", + "tools/clang/tools/libclang/CXSourceLocation.cpp", + "tools/clang/tools/libclang/CIndexUSRs.cpp", }; // find libs/DirectXShaderCompiler/tools/clang/tools/dxcompiler | grep '\.cpp$' | xargs -I {} -n1 echo '"{}",' | pbcopy const tools_clang_tools_dxcompiler_sources = [_][]const u8{ - "libs/DirectXShaderCompiler/tools/clang/tools/dxcompiler/MachSiegbertVogtDXCSA.cpp", - "libs/DirectXShaderCompiler/tools/clang/tools/dxcompiler/dxcdisassembler.cpp", - "libs/DirectXShaderCompiler/tools/clang/tools/dxcompiler/dxcvalidator.cpp", - "libs/DirectXShaderCompiler/tools/clang/tools/dxcompiler/dxillib.cpp", - "libs/DirectXShaderCompiler/tools/clang/tools/dxcompiler/dxcfilesystem.cpp", - "libs/DirectXShaderCompiler/tools/clang/tools/dxcompiler/DXCompiler.cpp", - "libs/DirectXShaderCompiler/tools/clang/tools/dxcompiler/dxcutil.cpp", - "libs/DirectXShaderCompiler/tools/clang/tools/dxcompiler/dxclinker.cpp", - "libs/DirectXShaderCompiler/tools/clang/tools/dxcompiler/dxcshadersourceinfo.cpp", - "libs/DirectXShaderCompiler/tools/clang/tools/dxcompiler/dxcassembler.cpp", - "libs/DirectXShaderCompiler/tools/clang/tools/dxcompiler/dxcapi.cpp", - "libs/DirectXShaderCompiler/tools/clang/tools/dxcompiler/dxclibrary.cpp", - "libs/DirectXShaderCompiler/tools/clang/tools/dxcompiler/dxcpdbutils.cpp", - "libs/DirectXShaderCompiler/tools/clang/tools/dxcompiler/dxcompilerobj.cpp", + "tools/clang/tools/dxcompiler/MachSiegbertVogtDXCSA.cpp", + "tools/clang/tools/dxcompiler/dxcdisassembler.cpp", + "tools/clang/tools/dxcompiler/dxcvalidator.cpp", + "tools/clang/tools/dxcompiler/dxillib.cpp", + "tools/clang/tools/dxcompiler/dxcfilesystem.cpp", + "tools/clang/tools/dxcompiler/DXCompiler.cpp", + "tools/clang/tools/dxcompiler/dxcutil.cpp", + "tools/clang/tools/dxcompiler/dxclinker.cpp", + "tools/clang/tools/dxcompiler/dxcshadersourceinfo.cpp", + "tools/clang/tools/dxcompiler/dxcassembler.cpp", + "tools/clang/tools/dxcompiler/dxcapi.cpp", + "tools/clang/tools/dxcompiler/dxclibrary.cpp", + "tools/clang/tools/dxcompiler/dxcpdbutils.cpp", + "tools/clang/tools/dxcompiler/dxcompilerobj.cpp", }; // find libs/DirectXShaderCompiler/lib/Bitcode/Reader | grep '\.cpp$' | xargs -I {} -n1 echo '"{}",' | pbcopy const lib_bitcode_reader_sources = [_][]const u8{ - "libs/DirectXShaderCompiler/lib/Bitcode/Reader/BitReader.cpp", - "libs/DirectXShaderCompiler/lib/Bitcode/Reader/BitstreamReader.cpp", - "libs/DirectXShaderCompiler/lib/Bitcode/Reader/BitcodeReader.cpp", + "lib/Bitcode/Reader/BitReader.cpp", + "lib/Bitcode/Reader/BitstreamReader.cpp", + "lib/Bitcode/Reader/BitcodeReader.cpp", }; // find libs/DirectXShaderCompiler/lib/Bitcode/Writer | grep '\.cpp$' | xargs -I {} -n1 echo '"{}",' | pbcopy const lib_bitcode_writer_sources = [_][]const u8{ - "libs/DirectXShaderCompiler/lib/Bitcode/Writer/BitcodeWriterPass.cpp", - "libs/DirectXShaderCompiler/lib/Bitcode/Writer/BitWriter.cpp", - "libs/DirectXShaderCompiler/lib/Bitcode/Writer/ValueEnumerator.cpp", - "libs/DirectXShaderCompiler/lib/Bitcode/Writer/BitcodeWriter.cpp", + "lib/Bitcode/Writer/BitcodeWriterPass.cpp", + "lib/Bitcode/Writer/BitWriter.cpp", + "lib/Bitcode/Writer/ValueEnumerator.cpp", + "lib/Bitcode/Writer/BitcodeWriter.cpp", }; // find libs/DirectXShaderCompiler/lib/IR | grep '\.cpp$' | xargs -I {} -n1 echo '"{}",' | pbcopy const lib_ir_sources = [_][]const u8{ - "libs/DirectXShaderCompiler/lib/IR/DebugInfoMetadata.cpp", - "libs/DirectXShaderCompiler/lib/IR/GCOV.cpp", - "libs/DirectXShaderCompiler/lib/IR/IRBuilder.cpp", - "libs/DirectXShaderCompiler/lib/IR/Pass.cpp", - "libs/DirectXShaderCompiler/lib/IR/AutoUpgrade.cpp", - "libs/DirectXShaderCompiler/lib/IR/Core.cpp", - "libs/DirectXShaderCompiler/lib/IR/InlineAsm.cpp", - "libs/DirectXShaderCompiler/lib/IR/Module.cpp", - "libs/DirectXShaderCompiler/lib/IR/GVMaterializer.cpp", - "libs/DirectXShaderCompiler/lib/IR/Operator.cpp", - "libs/DirectXShaderCompiler/lib/IR/DataLayout.cpp", - "libs/DirectXShaderCompiler/lib/IR/IntrinsicInst.cpp", - "libs/DirectXShaderCompiler/lib/IR/DebugLoc.cpp", - "libs/DirectXShaderCompiler/lib/IR/Dominators.cpp", - "libs/DirectXShaderCompiler/lib/IR/Constants.cpp", - "libs/DirectXShaderCompiler/lib/IR/PassRegistry.cpp", - "libs/DirectXShaderCompiler/lib/IR/DiagnosticPrinter.cpp", - "libs/DirectXShaderCompiler/lib/IR/ValueSymbolTable.cpp", - "libs/DirectXShaderCompiler/lib/IR/Globals.cpp", - "libs/DirectXShaderCompiler/lib/IR/ConstantRange.cpp", - "libs/DirectXShaderCompiler/lib/IR/LegacyPassManager.cpp", - "libs/DirectXShaderCompiler/lib/IR/Function.cpp", - "libs/DirectXShaderCompiler/lib/IR/TypeFinder.cpp", - "libs/DirectXShaderCompiler/lib/IR/DebugInfo.cpp", - "libs/DirectXShaderCompiler/lib/IR/LLVMContextImpl.cpp", - "libs/DirectXShaderCompiler/lib/IR/Verifier.cpp", - "libs/DirectXShaderCompiler/lib/IR/Comdat.cpp", - "libs/DirectXShaderCompiler/lib/IR/Value.cpp", - "libs/DirectXShaderCompiler/lib/IR/Use.cpp", - "libs/DirectXShaderCompiler/lib/IR/MetadataTracking.cpp", - "libs/DirectXShaderCompiler/lib/IR/Mangler.cpp", - "libs/DirectXShaderCompiler/lib/IR/DiagnosticInfo.cpp", - "libs/DirectXShaderCompiler/lib/IR/ValueTypes.cpp", - "libs/DirectXShaderCompiler/lib/IR/DIBuilder.cpp", - "libs/DirectXShaderCompiler/lib/IR/User.cpp", - "libs/DirectXShaderCompiler/lib/IR/MDBuilder.cpp", - "libs/DirectXShaderCompiler/lib/IR/Metadata.cpp", - "libs/DirectXShaderCompiler/lib/IR/BasicBlock.cpp", - "libs/DirectXShaderCompiler/lib/IR/Instruction.cpp", - "libs/DirectXShaderCompiler/lib/IR/AsmWriter.cpp", - "libs/DirectXShaderCompiler/lib/IR/Statepoint.cpp", - "libs/DirectXShaderCompiler/lib/IR/LLVMContext.cpp", - "libs/DirectXShaderCompiler/lib/IR/Instructions.cpp", - "libs/DirectXShaderCompiler/lib/IR/PassManager.cpp", - "libs/DirectXShaderCompiler/lib/IR/ConstantFold.cpp", - "libs/DirectXShaderCompiler/lib/IR/IRPrintingPasses.cpp", - "libs/DirectXShaderCompiler/lib/IR/Attributes.cpp", - "libs/DirectXShaderCompiler/lib/IR/Type.cpp", + "lib/IR/DebugInfoMetadata.cpp", + "lib/IR/GCOV.cpp", + "lib/IR/IRBuilder.cpp", + "lib/IR/Pass.cpp", + "lib/IR/AutoUpgrade.cpp", + "lib/IR/Core.cpp", + "lib/IR/InlineAsm.cpp", + "lib/IR/Module.cpp", + "lib/IR/GVMaterializer.cpp", + "lib/IR/Operator.cpp", + "lib/IR/DataLayout.cpp", + "lib/IR/IntrinsicInst.cpp", + "lib/IR/DebugLoc.cpp", + "lib/IR/Dominators.cpp", + "lib/IR/Constants.cpp", + "lib/IR/PassRegistry.cpp", + "lib/IR/DiagnosticPrinter.cpp", + "lib/IR/ValueSymbolTable.cpp", + "lib/IR/Globals.cpp", + "lib/IR/ConstantRange.cpp", + "lib/IR/LegacyPassManager.cpp", + "lib/IR/Function.cpp", + "lib/IR/TypeFinder.cpp", + "lib/IR/DebugInfo.cpp", + "lib/IR/LLVMContextImpl.cpp", + "lib/IR/Verifier.cpp", + "lib/IR/Comdat.cpp", + "lib/IR/Value.cpp", + "lib/IR/Use.cpp", + "lib/IR/MetadataTracking.cpp", + "lib/IR/Mangler.cpp", + "lib/IR/DiagnosticInfo.cpp", + "lib/IR/ValueTypes.cpp", + "lib/IR/DIBuilder.cpp", + "lib/IR/User.cpp", + "lib/IR/MDBuilder.cpp", + "lib/IR/Metadata.cpp", + "lib/IR/BasicBlock.cpp", + "lib/IR/Instruction.cpp", + "lib/IR/AsmWriter.cpp", + "lib/IR/Statepoint.cpp", + "lib/IR/LLVMContext.cpp", + "lib/IR/Instructions.cpp", + "lib/IR/PassManager.cpp", + "lib/IR/ConstantFold.cpp", + "lib/IR/IRPrintingPasses.cpp", + "lib/IR/Attributes.cpp", + "lib/IR/Type.cpp", }; // find libs/DirectXShaderCompiler/lib/IRReader | grep '\.cpp$' | xargs -I {} -n1 echo '"{}",' | pbcopy const lib_irreader_sources = [_][]const u8{ - "libs/DirectXShaderCompiler/lib/IRReader/IRReader.cpp", + "lib/IRReader/IRReader.cpp", }; // find libs/DirectXShaderCompiler/lib/Linker | grep '\.cpp$' | xargs -I {} -n1 echo '"{}",' | pbcopy const lib_linker_sources = [_][]const u8{ - "libs/DirectXShaderCompiler/lib/Linker/LinkModules.cpp", + "lib/Linker/LinkModules.cpp", }; // find libs/DirectXShaderCompiler/lib/AsmParser | grep '\.cpp$' | xargs -I {} -n1 echo '"{}",' | pbcopy const lib_asmparser_sources = [_][]const u8{ - "libs/DirectXShaderCompiler/lib/AsmParser/LLParser.cpp", - "libs/DirectXShaderCompiler/lib/AsmParser/LLLexer.cpp", - "libs/DirectXShaderCompiler/lib/AsmParser/Parser.cpp", + "lib/AsmParser/LLParser.cpp", + "lib/AsmParser/LLLexer.cpp", + "lib/AsmParser/Parser.cpp", }; // find libs/DirectXShaderCompiler/lib/Analysis | grep '\.cpp$' | xargs -I {} -n1 echo '"{}",' | pbcopy const lib_analysis_sources = [_][]const u8{ - "libs/DirectXShaderCompiler/lib/Analysis/regioninfo.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/DxilConstantFolding.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/CGSCCPassManager.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/DxilValueCache.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/AliasSetTracker.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/LoopPass.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/MemDerefPrinter.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/regionprinter.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/DominanceFrontier.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/Loads.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/BlockFrequencyInfoImpl.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/Analysis.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/ReducibilityAnalysis.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/CodeMetrics.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/TargetTransformInfo.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/CFG.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/SparsePropagation.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/IntervalPartition.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/ScalarEvolutionNormalization.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/CFGPrinter.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/IPA/IPA.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/IPA/GlobalsModRef.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/IPA/InlineCost.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/IPA/CallGraph.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/IPA/CallGraphSCCPass.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/IPA/CallPrinter.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/Lint.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/ScalarEvolution.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/MemoryDependenceAnalysis.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/PostDominators.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/TypeBasedAliasAnalysis.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/DxilSimplify.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/DivergenceAnalysis.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/BlockFrequencyInfo.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/VectorUtils.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/Delinearization.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/AssumptionCache.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/AliasAnalysisEvaluator.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/IVUsers.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/ValueTracking.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/PHITransAddr.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/NoAliasAnalysis.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/AliasDebugger.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/DependenceAnalysis.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/LibCallSemantics.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/DomPrinter.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/Trace.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/LazyValueInfo.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/ConstantFolding.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/LoopAccessAnalysis.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/BranchProbabilityInfo.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/TargetLibraryInfo.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/CaptureTracking.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/IteratedDominanceFrontier.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/MemoryLocation.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/InstructionSimplify.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/VectorUtils2.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/MemDepPrinter.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/InstCount.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/CostModel.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/DxilConstantFoldingExt.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/ScopedNoAliasAA.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/ModuleDebugInfoPrinter.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/LibCallAliasAnalysis.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/MemoryBuiltins.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/PtrUseVisitor.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/AliasAnalysisCounter.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/ScalarEvolutionAliasAnalysis.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/BasicAliasAnalysis.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/ScalarEvolutionExpander.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/LoopInfo.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/CFLAliasAnalysis.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/Interval.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/RegionPass.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/LazyCallGraph.cpp", - "libs/DirectXShaderCompiler/lib/Analysis/AliasAnalysis.cpp", + "lib/Analysis/regioninfo.cpp", + "lib/Analysis/DxilConstantFolding.cpp", + "lib/Analysis/CGSCCPassManager.cpp", + "lib/Analysis/DxilValueCache.cpp", + "lib/Analysis/AliasSetTracker.cpp", + "lib/Analysis/LoopPass.cpp", + "lib/Analysis/MemDerefPrinter.cpp", + "lib/Analysis/regionprinter.cpp", + "lib/Analysis/DominanceFrontier.cpp", + "lib/Analysis/Loads.cpp", + "lib/Analysis/BlockFrequencyInfoImpl.cpp", + "lib/Analysis/Analysis.cpp", + "lib/Analysis/ReducibilityAnalysis.cpp", + "lib/Analysis/CodeMetrics.cpp", + "lib/Analysis/TargetTransformInfo.cpp", + "lib/Analysis/CFG.cpp", + "lib/Analysis/SparsePropagation.cpp", + "lib/Analysis/IntervalPartition.cpp", + "lib/Analysis/ScalarEvolutionNormalization.cpp", + "lib/Analysis/CFGPrinter.cpp", + "lib/Analysis/IPA/IPA.cpp", + "lib/Analysis/IPA/GlobalsModRef.cpp", + "lib/Analysis/IPA/InlineCost.cpp", + "lib/Analysis/IPA/CallGraph.cpp", + "lib/Analysis/IPA/CallGraphSCCPass.cpp", + "lib/Analysis/IPA/CallPrinter.cpp", + "lib/Analysis/Lint.cpp", + "lib/Analysis/ScalarEvolution.cpp", + "lib/Analysis/MemoryDependenceAnalysis.cpp", + "lib/Analysis/PostDominators.cpp", + "lib/Analysis/TypeBasedAliasAnalysis.cpp", + "lib/Analysis/DxilSimplify.cpp", + "lib/Analysis/DivergenceAnalysis.cpp", + "lib/Analysis/BlockFrequencyInfo.cpp", + "lib/Analysis/VectorUtils.cpp", + "lib/Analysis/Delinearization.cpp", + "lib/Analysis/AssumptionCache.cpp", + "lib/Analysis/AliasAnalysisEvaluator.cpp", + "lib/Analysis/IVUsers.cpp", + "lib/Analysis/ValueTracking.cpp", + "lib/Analysis/PHITransAddr.cpp", + "lib/Analysis/NoAliasAnalysis.cpp", + "lib/Analysis/AliasDebugger.cpp", + "lib/Analysis/DependenceAnalysis.cpp", + "lib/Analysis/LibCallSemantics.cpp", + "lib/Analysis/DomPrinter.cpp", + "lib/Analysis/Trace.cpp", + "lib/Analysis/LazyValueInfo.cpp", + "lib/Analysis/ConstantFolding.cpp", + "lib/Analysis/LoopAccessAnalysis.cpp", + "lib/Analysis/BranchProbabilityInfo.cpp", + "lib/Analysis/TargetLibraryInfo.cpp", + "lib/Analysis/CaptureTracking.cpp", + "lib/Analysis/IteratedDominanceFrontier.cpp", + "lib/Analysis/MemoryLocation.cpp", + "lib/Analysis/InstructionSimplify.cpp", + "lib/Analysis/VectorUtils2.cpp", + "lib/Analysis/MemDepPrinter.cpp", + "lib/Analysis/InstCount.cpp", + "lib/Analysis/CostModel.cpp", + "lib/Analysis/DxilConstantFoldingExt.cpp", + "lib/Analysis/ScopedNoAliasAA.cpp", + "lib/Analysis/ModuleDebugInfoPrinter.cpp", + "lib/Analysis/LibCallAliasAnalysis.cpp", + "lib/Analysis/MemoryBuiltins.cpp", + "lib/Analysis/PtrUseVisitor.cpp", + "lib/Analysis/AliasAnalysisCounter.cpp", + "lib/Analysis/ScalarEvolutionAliasAnalysis.cpp", + "lib/Analysis/BasicAliasAnalysis.cpp", + "lib/Analysis/ScalarEvolutionExpander.cpp", + "lib/Analysis/LoopInfo.cpp", + "lib/Analysis/CFLAliasAnalysis.cpp", + "lib/Analysis/Interval.cpp", + "lib/Analysis/RegionPass.cpp", + "lib/Analysis/LazyCallGraph.cpp", + "lib/Analysis/AliasAnalysis.cpp", }; // find libs/DirectXShaderCompiler/lib/MSSupport | grep '\.cpp$' | xargs -I {} -n1 echo '"{}",' | pbcopy const lib_mssupport_sources = [_][]const u8{ - "libs/DirectXShaderCompiler/lib/MSSupport/MSFileSystemImpl.cpp", + "lib/MSSupport/MSFileSystemImpl.cpp", }; // find libs/DirectXShaderCompiler/lib/Transforms/Utils | grep '\.cpp$' | xargs -I {} -n1 echo '"{}",' | pbcopy const lib_transforms_utils_sources = [_][]const u8{ - "libs/DirectXShaderCompiler/lib/Transforms/Utils/LoopUtils.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Utils/DemoteRegToStack.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Utils/Utils.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Utils/SimplifyCFG.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Utils/LoopSimplifyId.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Utils/SSAUpdater.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Utils/SimplifyIndVar.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Utils/BasicBlockUtils.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Utils/ASanStackFrameLayout.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Utils/FlattenCFG.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Utils/CmpInstAnalysis.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Utils/ModuleUtils.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Utils/LoopUnroll.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Utils/LowerSwitch.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Utils/LoopVersioning.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Utils/AddDiscriminators.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Utils/Local.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Utils/PromoteMemoryToRegister.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Utils/LCSSA.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Utils/BypassSlowDivision.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Utils/Mem2Reg.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Utils/CodeExtractor.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Utils/InlineFunction.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Utils/LoopSimplify.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Utils/SimplifyLibCalls.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Utils/MetaRenamer.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Utils/CloneModule.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Utils/IntegerDivision.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Utils/LoopUnrollRuntime.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Utils/ValueMapper.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Utils/InstructionNamer.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Utils/CtorUtils.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Utils/GlobalStatus.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Utils/LowerInvoke.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Utils/SimplifyInstructions.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Utils/BuildLibCalls.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Utils/SymbolRewriter.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Utils/BreakCriticalEdges.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Utils/CloneFunction.cpp", + "lib/Transforms/Utils/LoopUtils.cpp", + "lib/Transforms/Utils/DemoteRegToStack.cpp", + "lib/Transforms/Utils/Utils.cpp", + "lib/Transforms/Utils/SimplifyCFG.cpp", + "lib/Transforms/Utils/LoopSimplifyId.cpp", + "lib/Transforms/Utils/UnifyFunctionExitNodes.cpp", + "lib/Transforms/Utils/SSAUpdater.cpp", + "lib/Transforms/Utils/SimplifyIndVar.cpp", + "lib/Transforms/Utils/BasicBlockUtils.cpp", + "lib/Transforms/Utils/ASanStackFrameLayout.cpp", + "lib/Transforms/Utils/FlattenCFG.cpp", + "lib/Transforms/Utils/CmpInstAnalysis.cpp", + "lib/Transforms/Utils/ModuleUtils.cpp", + "lib/Transforms/Utils/LoopUnroll.cpp", + "lib/Transforms/Utils/LowerSwitch.cpp", + "lib/Transforms/Utils/LoopVersioning.cpp", + "lib/Transforms/Utils/AddDiscriminators.cpp", + "lib/Transforms/Utils/Local.cpp", + "lib/Transforms/Utils/PromoteMemoryToRegister.cpp", + "lib/Transforms/Utils/LCSSA.cpp", + "lib/Transforms/Utils/BypassSlowDivision.cpp", + "lib/Transforms/Utils/Mem2Reg.cpp", + "lib/Transforms/Utils/CodeExtractor.cpp", + "lib/Transforms/Utils/InlineFunction.cpp", + "lib/Transforms/Utils/LoopSimplify.cpp", + "lib/Transforms/Utils/SimplifyLibCalls.cpp", + "lib/Transforms/Utils/MetaRenamer.cpp", + "lib/Transforms/Utils/CloneModule.cpp", + "lib/Transforms/Utils/IntegerDivision.cpp", + "lib/Transforms/Utils/LoopUnrollRuntime.cpp", + "lib/Transforms/Utils/ValueMapper.cpp", + "lib/Transforms/Utils/InstructionNamer.cpp", + "lib/Transforms/Utils/CtorUtils.cpp", + "lib/Transforms/Utils/GlobalStatus.cpp", + "lib/Transforms/Utils/LowerInvoke.cpp", + "lib/Transforms/Utils/SimplifyInstructions.cpp", + "lib/Transforms/Utils/BuildLibCalls.cpp", + "lib/Transforms/Utils/SymbolRewriter.cpp", + "lib/Transforms/Utils/BreakCriticalEdges.cpp", + "lib/Transforms/Utils/CloneFunction.cpp", }; // find libs/DirectXShaderCompiler/lib/Transforms/InstCombine | grep '\.cpp$' | xargs -I {} -n1 echo '"{}",' | pbcopy const lib_transforms_instcombine_sources = [_][]const u8{ - "libs/DirectXShaderCompiler/lib/Transforms/InstCombine/InstCombineCasts.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/InstCombine/InstCombineCompares.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/InstCombine/InstCombineSelect.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/InstCombine/InstCombineCalls.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/InstCombine/InstCombineAddSub.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/InstCombine/InstructionCombining.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/InstCombine/InstCombineShifts.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/InstCombine/InstCombineVectorOps.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/InstCombine/InstCombinePHI.cpp", + "lib/Transforms/InstCombine/InstCombineCasts.cpp", + "lib/Transforms/InstCombine/InstCombineCompares.cpp", + "lib/Transforms/InstCombine/InstCombineSelect.cpp", + "lib/Transforms/InstCombine/InstCombineCalls.cpp", + "lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp", + "lib/Transforms/InstCombine/InstCombineAddSub.cpp", + "lib/Transforms/InstCombine/InstructionCombining.cpp", + "lib/Transforms/InstCombine/InstCombineMulDivRem.cpp", + "lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp", + "lib/Transforms/InstCombine/InstCombineShifts.cpp", + "lib/Transforms/InstCombine/InstCombineVectorOps.cpp", + "lib/Transforms/InstCombine/InstCombineAndOrXor.cpp", + "lib/Transforms/InstCombine/InstCombinePHI.cpp", }; // find libs/DirectXShaderCompiler/lib/Transforms/IPO | grep '\.cpp$' | xargs -I {} -n1 echo '"{}",' | pbcopy const lib_transforms_ipo_sources = [_][]const u8{ - "libs/DirectXShaderCompiler/lib/Transforms/IPO/ExtractGV.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/IPO/GlobalDCE.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/IPO/PruneEH.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/IPO/MergeFunctions.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/IPO/IPConstantPropagation.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/IPO/ConstantMerge.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/IPO/FunctionAttrs.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/IPO/BarrierNoopPass.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/IPO/StripSymbols.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/IPO/Internalize.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/IPO/StripDeadPrototypes.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/IPO/DeadArgumentElimination.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/IPO/ArgumentPromotion.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/IPO/PassManagerBuilder.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/IPO/LoopExtractor.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/IPO/Inliner.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/IPO/InlineAlways.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/IPO/LowerBitSets.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/IPO/InlineSimple.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/IPO/PartialInlining.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/IPO/ElimAvailExtern.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/IPO/IPO.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/IPO/GlobalOpt.cpp", + "lib/Transforms/IPO/ExtractGV.cpp", + "lib/Transforms/IPO/GlobalDCE.cpp", + "lib/Transforms/IPO/PruneEH.cpp", + "lib/Transforms/IPO/MergeFunctions.cpp", + "lib/Transforms/IPO/IPConstantPropagation.cpp", + "lib/Transforms/IPO/ConstantMerge.cpp", + "lib/Transforms/IPO/FunctionAttrs.cpp", + "lib/Transforms/IPO/BarrierNoopPass.cpp", + "lib/Transforms/IPO/StripSymbols.cpp", + "lib/Transforms/IPO/Internalize.cpp", + "lib/Transforms/IPO/StripDeadPrototypes.cpp", + "lib/Transforms/IPO/DeadArgumentElimination.cpp", + "lib/Transforms/IPO/ArgumentPromotion.cpp", + "lib/Transforms/IPO/PassManagerBuilder.cpp", + "lib/Transforms/IPO/LoopExtractor.cpp", + "lib/Transforms/IPO/Inliner.cpp", + "lib/Transforms/IPO/InlineAlways.cpp", + "lib/Transforms/IPO/LowerBitSets.cpp", + "lib/Transforms/IPO/InlineSimple.cpp", + "lib/Transforms/IPO/PartialInlining.cpp", + "lib/Transforms/IPO/ElimAvailExtern.cpp", + "lib/Transforms/IPO/IPO.cpp", + "lib/Transforms/IPO/GlobalOpt.cpp", }; // find libs/DirectXShaderCompiler/lib/Transforms/Scalar | grep '\.cpp$' | xargs -I {} -n1 echo '"{}",' | pbcopy const lib_transforms_scalar_sources = [_][]const u8{ - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/LoopRotation.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/LoopInstSimplify.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/ConstantProp.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/StructurizeCFG.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/IndVarSimplify.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/FlattenCFGPass.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/PartiallyInlineLibCalls.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/Scalarizer.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/ADCE.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/SCCP.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/LoopDistribute.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/Sink.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/DxilEliminateVector.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/EarlyCSE.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/LoopUnrollPass.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/DxilLoopUnroll.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/GVN.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/ConstantHoisting.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/DxilEraseDeadRegion.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/Scalar.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/LoopInterchange.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/JumpThreading.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/Reg2MemHLSL.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/Reg2Mem.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/HoistConstantArray.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/ScalarReplAggregates.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/LoadCombine.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/Reassociate.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/LoopIdiomRecognize.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/SampleProfile.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/DeadStoreElimination.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/SimplifyCFGPass.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/LoopStrengthReduce.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/DxilRemoveDeadBlocks.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/LoopRerollPass.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/LowerAtomic.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/MemCpyOptimizer.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/BDCE.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/LowerExpectIntrinsic.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/DxilFixConstArrayInitializer.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/ScalarReplAggregatesHLSL.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/Float2Int.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/LoopDeletion.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/SROA.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/MergedLoadStoreMotion.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/DCE.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/AlignmentFromAssumptions.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/DxilRemoveUnstructuredLoopExits.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/SpeculativeExecution.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/NaryReassociate.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/LoopUnswitch.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/LICM.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/DxilConditionalMem2Reg.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/PlaceSafepoints.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/LowerTypePasses.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/TailRecursionElimination.cpp", - "libs/DirectXShaderCompiler/lib/Transforms/Scalar/StraightLineStrengthReduce.cpp", + "lib/Transforms/Scalar/LoopRotation.cpp", + "lib/Transforms/Scalar/LoopInstSimplify.cpp", + "lib/Transforms/Scalar/ConstantProp.cpp", + "lib/Transforms/Scalar/StructurizeCFG.cpp", + "lib/Transforms/Scalar/IndVarSimplify.cpp", + "lib/Transforms/Scalar/FlattenCFGPass.cpp", + "lib/Transforms/Scalar/PartiallyInlineLibCalls.cpp", + "lib/Transforms/Scalar/Scalarizer.cpp", + "lib/Transforms/Scalar/ADCE.cpp", + "lib/Transforms/Scalar/SCCP.cpp", + "lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp", + "lib/Transforms/Scalar/LoopDistribute.cpp", + "lib/Transforms/Scalar/Sink.cpp", + "lib/Transforms/Scalar/DxilEliminateVector.cpp", + "lib/Transforms/Scalar/CorrelatedValuePropagation.cpp", + "lib/Transforms/Scalar/EarlyCSE.cpp", + "lib/Transforms/Scalar/LoopUnrollPass.cpp", + "lib/Transforms/Scalar/DxilLoopUnroll.cpp", + "lib/Transforms/Scalar/GVN.cpp", + "lib/Transforms/Scalar/ConstantHoisting.cpp", + "lib/Transforms/Scalar/DxilEraseDeadRegion.cpp", + "lib/Transforms/Scalar/Scalar.cpp", + "lib/Transforms/Scalar/LoopInterchange.cpp", + "lib/Transforms/Scalar/JumpThreading.cpp", + "lib/Transforms/Scalar/Reg2MemHLSL.cpp", + "lib/Transforms/Scalar/Reg2Mem.cpp", + "lib/Transforms/Scalar/HoistConstantArray.cpp", + "lib/Transforms/Scalar/ScalarReplAggregates.cpp", + "lib/Transforms/Scalar/LoadCombine.cpp", + "lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp", + "lib/Transforms/Scalar/Reassociate.cpp", + "lib/Transforms/Scalar/LoopIdiomRecognize.cpp", + "lib/Transforms/Scalar/SampleProfile.cpp", + "lib/Transforms/Scalar/DeadStoreElimination.cpp", + "lib/Transforms/Scalar/SimplifyCFGPass.cpp", + "lib/Transforms/Scalar/LoopStrengthReduce.cpp", + "lib/Transforms/Scalar/DxilRemoveDeadBlocks.cpp", + "lib/Transforms/Scalar/LoopRerollPass.cpp", + "lib/Transforms/Scalar/LowerAtomic.cpp", + "lib/Transforms/Scalar/MemCpyOptimizer.cpp", + "lib/Transforms/Scalar/BDCE.cpp", + "lib/Transforms/Scalar/LowerExpectIntrinsic.cpp", + "lib/Transforms/Scalar/DxilFixConstArrayInitializer.cpp", + "lib/Transforms/Scalar/ScalarReplAggregatesHLSL.cpp", + "lib/Transforms/Scalar/Float2Int.cpp", + "lib/Transforms/Scalar/LoopDeletion.cpp", + "lib/Transforms/Scalar/SROA.cpp", + "lib/Transforms/Scalar/MergedLoadStoreMotion.cpp", + "lib/Transforms/Scalar/DCE.cpp", + "lib/Transforms/Scalar/AlignmentFromAssumptions.cpp", + "lib/Transforms/Scalar/DxilRemoveUnstructuredLoopExits.cpp", + "lib/Transforms/Scalar/SpeculativeExecution.cpp", + "lib/Transforms/Scalar/NaryReassociate.cpp", + "lib/Transforms/Scalar/LoopUnswitch.cpp", + "lib/Transforms/Scalar/RewriteStatepointsForGC.cpp", + "lib/Transforms/Scalar/LICM.cpp", + "lib/Transforms/Scalar/DxilConditionalMem2Reg.cpp", + "lib/Transforms/Scalar/PlaceSafepoints.cpp", + "lib/Transforms/Scalar/LowerTypePasses.cpp", + "lib/Transforms/Scalar/TailRecursionElimination.cpp", + "lib/Transforms/Scalar/StraightLineStrengthReduce.cpp", }; // find libs/DirectXShaderCompiler/lib/Transforms/Vectorize | grep -v 'BBVectorize.cpp' | grep -v 'LoopVectorize.cpp' | grep -v 'LPVectorizer.cpp' | grep '\.cpp$' | xargs -I {} -n1 echo '"{}",' | pbcopy const lib_transforms_vectorize_sources = [_][]const u8{ - "libs/DirectXShaderCompiler/lib/Transforms/Vectorize/Vectorize.cpp", + "lib/Transforms/Vectorize/Vectorize.cpp", }; // find libs/DirectXShaderCompiler/lib/Target | grep '\.cpp$' | xargs -I {} -n1 echo '"{}",' | pbcopy const lib_target_sources = [_][]const u8{ - "libs/DirectXShaderCompiler/lib/Target/TargetSubtargetInfo.cpp", - "libs/DirectXShaderCompiler/lib/Target/TargetLoweringObjectFile.cpp", - "libs/DirectXShaderCompiler/lib/Target/Target.cpp", - "libs/DirectXShaderCompiler/lib/Target/TargetRecip.cpp", - "libs/DirectXShaderCompiler/lib/Target/TargetMachine.cpp", - "libs/DirectXShaderCompiler/lib/Target/TargetIntrinsicInfo.cpp", - "libs/DirectXShaderCompiler/lib/Target/TargetMachineC.cpp", + "lib/Target/TargetSubtargetInfo.cpp", + "lib/Target/TargetLoweringObjectFile.cpp", + "lib/Target/Target.cpp", + "lib/Target/TargetRecip.cpp", + "lib/Target/TargetMachine.cpp", + "lib/Target/TargetIntrinsicInfo.cpp", + "lib/Target/TargetMachineC.cpp", }; // find libs/DirectXShaderCompiler/lib/ProfileData | grep '\.cpp$' | xargs -I {} -n1 echo '"{}",' | pbcopy const lib_profiledata_sources = [_][]const u8{ - "libs/DirectXShaderCompiler/lib/ProfileData/InstrProfReader.cpp", - "libs/DirectXShaderCompiler/lib/ProfileData/CoverageMappingWriter.cpp", - "libs/DirectXShaderCompiler/lib/ProfileData/CoverageMapping.cpp", - "libs/DirectXShaderCompiler/lib/ProfileData/InstrProfWriter.cpp", - "libs/DirectXShaderCompiler/lib/ProfileData/CoverageMappingReader.cpp", - "libs/DirectXShaderCompiler/lib/ProfileData/SampleProfWriter.cpp", - "libs/DirectXShaderCompiler/lib/ProfileData/SampleProf.cpp", - "libs/DirectXShaderCompiler/lib/ProfileData/InstrProf.cpp", - "libs/DirectXShaderCompiler/lib/ProfileData/SampleProfReader.cpp", + "lib/ProfileData/InstrProfReader.cpp", + "lib/ProfileData/CoverageMappingWriter.cpp", + "lib/ProfileData/CoverageMapping.cpp", + "lib/ProfileData/InstrProfWriter.cpp", + "lib/ProfileData/CoverageMappingReader.cpp", + "lib/ProfileData/SampleProfWriter.cpp", + "lib/ProfileData/SampleProf.cpp", + "lib/ProfileData/InstrProf.cpp", + "lib/ProfileData/SampleProfReader.cpp", }; // find libs/DirectXShaderCompiler/lib/Option | grep '\.cpp$' | xargs -I {} -n1 echo '"{}",' | pbcopy const lib_option_sources = [_][]const u8{ - "libs/DirectXShaderCompiler/lib/Option/Arg.cpp", - "libs/DirectXShaderCompiler/lib/Option/OptTable.cpp", - "libs/DirectXShaderCompiler/lib/Option/Option.cpp", - "libs/DirectXShaderCompiler/lib/Option/ArgList.cpp", + "lib/Option/Arg.cpp", + "lib/Option/OptTable.cpp", + "lib/Option/Option.cpp", + "lib/Option/ArgList.cpp", }; // find libs/DirectXShaderCompiler/lib/PassPrinters | grep '\.cpp$' | xargs -I {} -n1 echo '"{}",' | pbcopy const lib_passprinters_sources = [_][]const u8{ - "libs/DirectXShaderCompiler/lib/PassPrinters/PassPrinters.cpp", + "lib/PassPrinters/PassPrinters.cpp", }; // find libs/DirectXShaderCompiler/lib/Passes | grep '\.cpp$' | xargs -I {} -n1 echo '"{}",' | pbcopy const lib_passes_sources = [_][]const u8{ - "libs/DirectXShaderCompiler/lib/Passes/PassBuilder.cpp", + "lib/Passes/PassBuilder.cpp", }; // find libs/DirectXShaderCompiler/lib/HLSL | grep '\.cpp$' | xargs -I {} -n1 echo '"{}",' | pbcopy const lib_hlsl_sources = [_][]const u8{ - "libs/DirectXShaderCompiler/lib/HLSL/HLLegalizeParameter.cpp", - "libs/DirectXShaderCompiler/lib/HLSL/HLOperations.cpp", - "libs/DirectXShaderCompiler/lib/HLSL/DxilExportMap.cpp", - "libs/DirectXShaderCompiler/lib/HLSL/DxilPrecisePropagatePass.cpp", - "libs/DirectXShaderCompiler/lib/HLSL/DxilPatchShaderRecordBindings.cpp", - "libs/DirectXShaderCompiler/lib/HLSL/HLUtil.cpp", - "libs/DirectXShaderCompiler/lib/HLSL/DxilCondenseResources.cpp", - "libs/DirectXShaderCompiler/lib/HLSL/DxilValidation.cpp", - "libs/DirectXShaderCompiler/lib/HLSL/DxilDeleteRedundantDebugValues.cpp", - "libs/DirectXShaderCompiler/lib/HLSL/DxilNoops.cpp", - "libs/DirectXShaderCompiler/lib/HLSL/ComputeViewIdState.cpp", - "libs/DirectXShaderCompiler/lib/HLSL/HLMatrixType.cpp", - "libs/DirectXShaderCompiler/lib/HLSL/DxilPackSignatureElement.cpp", - "libs/DirectXShaderCompiler/lib/HLSL/DxilLegalizeSampleOffsetPass.cpp", - "libs/DirectXShaderCompiler/lib/HLSL/HLModule.cpp", - "libs/DirectXShaderCompiler/lib/HLSL/DxilContainerReflection.cpp", - "libs/DirectXShaderCompiler/lib/HLSL/DxilLegalizeEvalOperations.cpp", - "libs/DirectXShaderCompiler/lib/HLSL/ControlDependence.cpp", - "libs/DirectXShaderCompiler/lib/HLSL/DxilTargetTransformInfo.cpp", - "libs/DirectXShaderCompiler/lib/HLSL/HLOperationLower.cpp", - "libs/DirectXShaderCompiler/lib/HLSL/DxilSignatureValidation.cpp", - "libs/DirectXShaderCompiler/lib/HLSL/DxilRenameResourcesPass.cpp", - "libs/DirectXShaderCompiler/lib/HLSL/DxilPromoteResourcePasses.cpp", - "libs/DirectXShaderCompiler/lib/HLSL/PauseResumePasses.cpp", - "libs/DirectXShaderCompiler/lib/HLSL/HLDeadFunctionElimination.cpp", - "libs/DirectXShaderCompiler/lib/HLSL/DxilExpandTrigIntrinsics.cpp", - "libs/DirectXShaderCompiler/lib/HLSL/DxilPoisonValues.cpp", - "libs/DirectXShaderCompiler/lib/HLSL/DxilGenerationPass.cpp", - "libs/DirectXShaderCompiler/lib/HLSL/DxilTranslateRawBuffer.cpp", - "libs/DirectXShaderCompiler/lib/HLSL/ComputeViewIdStateBuilder.cpp", - "libs/DirectXShaderCompiler/lib/HLSL/DxilTargetLowering.cpp", - "libs/DirectXShaderCompiler/lib/HLSL/DxilNoOptLegalize.cpp", - "libs/DirectXShaderCompiler/lib/HLSL/HLExpandStoreIntrinsics.cpp", - "libs/DirectXShaderCompiler/lib/HLSL/HLMetadataPasses.cpp", - "libs/DirectXShaderCompiler/lib/HLSL/DxilPreparePasses.cpp", - "libs/DirectXShaderCompiler/lib/HLSL/HLMatrixBitcastLowerPass.cpp", - "libs/DirectXShaderCompiler/lib/HLSL/HLPreprocess.cpp", - "libs/DirectXShaderCompiler/lib/HLSL/HLSignatureLower.cpp", - "libs/DirectXShaderCompiler/lib/HLSL/HLMatrixLowerPass.cpp", - "libs/DirectXShaderCompiler/lib/HLSL/HLResource.cpp", - "libs/DirectXShaderCompiler/lib/HLSL/HLLowerUDT.cpp", - "libs/DirectXShaderCompiler/lib/HLSL/HLOperationLowerExtension.cpp", - "libs/DirectXShaderCompiler/lib/HLSL/DxilEliminateOutputDynamicIndexing.cpp", - "libs/DirectXShaderCompiler/lib/HLSL/DxilSimpleGVNHoist.cpp", - "libs/DirectXShaderCompiler/lib/HLSL/DxcOptimizer.cpp", - "libs/DirectXShaderCompiler/lib/HLSL/DxilLinker.cpp", - "libs/DirectXShaderCompiler/lib/HLSL/DxilConvergent.cpp", - "libs/DirectXShaderCompiler/lib/HLSL/DxilLoopDeletion.cpp", - "libs/DirectXShaderCompiler/lib/HLSL/WaveSensitivityAnalysis.cpp", - "libs/DirectXShaderCompiler/lib/HLSL/DxilPreserveAllOutputs.cpp", - "libs/DirectXShaderCompiler/lib/HLSL/HLMatrixSubscriptUseReplacer.cpp", + "lib/HLSL/HLLegalizeParameter.cpp", + "lib/HLSL/HLOperations.cpp", + "lib/HLSL/DxilExportMap.cpp", + "lib/HLSL/DxilPrecisePropagatePass.cpp", + "lib/HLSL/DxilPatchShaderRecordBindings.cpp", + "lib/HLSL/HLUtil.cpp", + "lib/HLSL/DxilCondenseResources.cpp", + "lib/HLSL/DxilValidation.cpp", + "lib/HLSL/DxilDeleteRedundantDebugValues.cpp", + "lib/HLSL/DxilNoops.cpp", + "lib/HLSL/ComputeViewIdState.cpp", + "lib/HLSL/HLMatrixType.cpp", + "lib/HLSL/DxilPackSignatureElement.cpp", + "lib/HLSL/DxilLegalizeSampleOffsetPass.cpp", + "lib/HLSL/HLModule.cpp", + "lib/HLSL/DxilContainerReflection.cpp", + "lib/HLSL/DxilLegalizeEvalOperations.cpp", + "lib/HLSL/ControlDependence.cpp", + "lib/HLSL/DxilTargetTransformInfo.cpp", + "lib/HLSL/HLOperationLower.cpp", + "lib/HLSL/DxilSignatureValidation.cpp", + "lib/HLSL/DxilRenameResourcesPass.cpp", + "lib/HLSL/DxilPromoteResourcePasses.cpp", + "lib/HLSL/PauseResumePasses.cpp", + "lib/HLSL/HLDeadFunctionElimination.cpp", + "lib/HLSL/DxilExpandTrigIntrinsics.cpp", + "lib/HLSL/DxilPoisonValues.cpp", + "lib/HLSL/DxilGenerationPass.cpp", + "lib/HLSL/DxilTranslateRawBuffer.cpp", + "lib/HLSL/ComputeViewIdStateBuilder.cpp", + "lib/HLSL/DxilTargetLowering.cpp", + "lib/HLSL/DxilNoOptLegalize.cpp", + "lib/HLSL/HLExpandStoreIntrinsics.cpp", + "lib/HLSL/HLMetadataPasses.cpp", + "lib/HLSL/DxilPreparePasses.cpp", + "lib/HLSL/HLMatrixBitcastLowerPass.cpp", + "lib/HLSL/HLPreprocess.cpp", + "lib/HLSL/HLSignatureLower.cpp", + "lib/HLSL/HLMatrixLowerPass.cpp", + "lib/HLSL/HLResource.cpp", + "lib/HLSL/HLLowerUDT.cpp", + "lib/HLSL/HLOperationLowerExtension.cpp", + "lib/HLSL/DxilEliminateOutputDynamicIndexing.cpp", + "lib/HLSL/DxilSimpleGVNHoist.cpp", + "lib/HLSL/DxcOptimizer.cpp", + "lib/HLSL/DxilLinker.cpp", + "lib/HLSL/DxilConvergent.cpp", + "lib/HLSL/DxilLoopDeletion.cpp", + "lib/HLSL/WaveSensitivityAnalysis.cpp", + "lib/HLSL/DxilPreserveAllOutputs.cpp", + "lib/HLSL/HLMatrixSubscriptUseReplacer.cpp", }; // find libs/DirectXShaderCompiler/lib/Support | grep -v 'DynamicLibrary.cpp' | grep -v 'PluginLoader.cpp' | grep -v '\.inc\.cpp' | grep '\.cpp$' | xargs -I {} -n1 echo '"{}",' | pbcopy const lib_support_cpp_sources = [_][]const u8{ - "libs/DirectXShaderCompiler/lib/Support/BranchProbability.cpp", - "libs/DirectXShaderCompiler/lib/Support/Memory.cpp", - "libs/DirectXShaderCompiler/lib/Support/ToolOutputFile.cpp", - "libs/DirectXShaderCompiler/lib/Support/YAMLTraits.cpp", - "libs/DirectXShaderCompiler/lib/Support/MD5.cpp", - "libs/DirectXShaderCompiler/lib/Support/Mutex.cpp", - "libs/DirectXShaderCompiler/lib/Support/Program.cpp", - "libs/DirectXShaderCompiler/lib/Support/APFloat.cpp", - "libs/DirectXShaderCompiler/lib/Support/SpecialCaseList.cpp", - "libs/DirectXShaderCompiler/lib/Support/LEB128.cpp", - "libs/DirectXShaderCompiler/lib/Support/FileOutputBuffer.cpp", - "libs/DirectXShaderCompiler/lib/Support/Process.cpp", - "libs/DirectXShaderCompiler/lib/Support/regmalloc.cpp", - "libs/DirectXShaderCompiler/lib/Support/ScaledNumber.cpp", - "libs/DirectXShaderCompiler/lib/Support/Locale.cpp", - "libs/DirectXShaderCompiler/lib/Support/TimeProfiler.cpp", - "libs/DirectXShaderCompiler/lib/Support/FileUtilities.cpp", - "libs/DirectXShaderCompiler/lib/Support/TimeValue.cpp", - "libs/DirectXShaderCompiler/lib/Support/TargetRegistry.cpp", - "libs/DirectXShaderCompiler/lib/Support/Statistic.cpp", - "libs/DirectXShaderCompiler/lib/Support/Twine.cpp", - "libs/DirectXShaderCompiler/lib/Support/DAGDeltaAlgorithm.cpp", - "libs/DirectXShaderCompiler/lib/Support/APSInt.cpp", - "libs/DirectXShaderCompiler/lib/Support/SearchForAddressOfSpecialSymbol.cpp", - "libs/DirectXShaderCompiler/lib/Support/LineIterator.cpp", - "libs/DirectXShaderCompiler/lib/Support/PrettyStackTrace.cpp", - "libs/DirectXShaderCompiler/lib/Support/Timer.cpp", - "libs/DirectXShaderCompiler/lib/Support/ConvertUTFWrapper.cpp", - "libs/DirectXShaderCompiler/lib/Support/LockFileManager.cpp", - "libs/DirectXShaderCompiler/lib/Support/assert.cpp", - "libs/DirectXShaderCompiler/lib/Support/ARMBuildAttrs.cpp", - "libs/DirectXShaderCompiler/lib/Support/CrashRecoveryContext.cpp", - "libs/DirectXShaderCompiler/lib/Support/Options.cpp", - "libs/DirectXShaderCompiler/lib/Support/DeltaAlgorithm.cpp", - "libs/DirectXShaderCompiler/lib/Support/SystemUtils.cpp", - "libs/DirectXShaderCompiler/lib/Support/ThreadLocal.cpp", - "libs/DirectXShaderCompiler/lib/Support/YAMLParser.cpp", - "libs/DirectXShaderCompiler/lib/Support/StringPool.cpp", - "libs/DirectXShaderCompiler/lib/Support/IntrusiveRefCntPtr.cpp", - "libs/DirectXShaderCompiler/lib/Support/Watchdog.cpp", - "libs/DirectXShaderCompiler/lib/Support/StringRef.cpp", - "libs/DirectXShaderCompiler/lib/Support/Compression.cpp", - "libs/DirectXShaderCompiler/lib/Support/COM.cpp", - "libs/DirectXShaderCompiler/lib/Support/FoldingSet.cpp", - "libs/DirectXShaderCompiler/lib/Support/FormattedStream.cpp", - "libs/DirectXShaderCompiler/lib/Support/BlockFrequency.cpp", - "libs/DirectXShaderCompiler/lib/Support/IntervalMap.cpp", - "libs/DirectXShaderCompiler/lib/Support/MemoryObject.cpp", - "libs/DirectXShaderCompiler/lib/Support/TargetParser.cpp", - "libs/DirectXShaderCompiler/lib/Support/raw_os_ostream.cpp", - "libs/DirectXShaderCompiler/lib/Support/Allocator.cpp", - "libs/DirectXShaderCompiler/lib/Support/DataExtractor.cpp", - "libs/DirectXShaderCompiler/lib/Support/APInt.cpp", - "libs/DirectXShaderCompiler/lib/Support/StreamingMemoryObject.cpp", - "libs/DirectXShaderCompiler/lib/Support/circular_raw_ostream.cpp", - "libs/DirectXShaderCompiler/lib/Support/DataStream.cpp", - "libs/DirectXShaderCompiler/lib/Support/Debug.cpp", - "libs/DirectXShaderCompiler/lib/Support/Errno.cpp", - "libs/DirectXShaderCompiler/lib/Support/Path.cpp", - "libs/DirectXShaderCompiler/lib/Support/raw_ostream.cpp", - "libs/DirectXShaderCompiler/lib/Support/Atomic.cpp", - "libs/DirectXShaderCompiler/lib/Support/SmallVector.cpp", - "libs/DirectXShaderCompiler/lib/Support/MathExtras.cpp", - "libs/DirectXShaderCompiler/lib/Support/MemoryBuffer.cpp", - "libs/DirectXShaderCompiler/lib/Support/ErrorHandling.cpp", - "libs/DirectXShaderCompiler/lib/Support/StringExtras.cpp", - "libs/DirectXShaderCompiler/lib/Support/Triple.cpp", - "libs/DirectXShaderCompiler/lib/Support/Hashing.cpp", - "libs/DirectXShaderCompiler/lib/Support/GraphWriter.cpp", - "libs/DirectXShaderCompiler/lib/Support/RandomNumberGenerator.cpp", - "libs/DirectXShaderCompiler/lib/Support/SourceMgr.cpp", - "libs/DirectXShaderCompiler/lib/Support/Signals.cpp", - "libs/DirectXShaderCompiler/lib/Support/Dwarf.cpp", - "libs/DirectXShaderCompiler/lib/Support/StringMap.cpp", - "libs/DirectXShaderCompiler/lib/Support/MSFileSystemBasic.cpp", - "libs/DirectXShaderCompiler/lib/Support/IntEqClasses.cpp", - "libs/DirectXShaderCompiler/lib/Support/Threading.cpp", - "libs/DirectXShaderCompiler/lib/Support/RWMutex.cpp", - "libs/DirectXShaderCompiler/lib/Support/StringSaver.cpp", - "libs/DirectXShaderCompiler/lib/Support/CommandLine.cpp", - "libs/DirectXShaderCompiler/lib/Support/ManagedStatic.cpp", - "libs/DirectXShaderCompiler/lib/Support/Host.cpp", - "libs/DirectXShaderCompiler/lib/Support/Unicode.cpp", - "libs/DirectXShaderCompiler/lib/Support/SmallPtrSet.cpp", - "libs/DirectXShaderCompiler/lib/Support/Valgrind.cpp", - "libs/DirectXShaderCompiler/lib/Support/Regex.cpp", - "libs/DirectXShaderCompiler/lib/Support/ARMWinEH.cpp", + "lib/Support/BranchProbability.cpp", + "lib/Support/Memory.cpp", + "lib/Support/ToolOutputFile.cpp", + "lib/Support/YAMLTraits.cpp", + "lib/Support/MD5.cpp", + "lib/Support/Mutex.cpp", + "lib/Support/Program.cpp", + "lib/Support/APFloat.cpp", + "lib/Support/SpecialCaseList.cpp", + "lib/Support/LEB128.cpp", + "lib/Support/FileOutputBuffer.cpp", + "lib/Support/Process.cpp", + "lib/Support/regmalloc.cpp", + "lib/Support/ScaledNumber.cpp", + "lib/Support/Locale.cpp", + "lib/Support/TimeProfiler.cpp", + "lib/Support/FileUtilities.cpp", + "lib/Support/TimeValue.cpp", + "lib/Support/TargetRegistry.cpp", + "lib/Support/Statistic.cpp", + "lib/Support/Twine.cpp", + "lib/Support/DAGDeltaAlgorithm.cpp", + "lib/Support/APSInt.cpp", + "lib/Support/SearchForAddressOfSpecialSymbol.cpp", + "lib/Support/LineIterator.cpp", + "lib/Support/PrettyStackTrace.cpp", + "lib/Support/Timer.cpp", + "lib/Support/ConvertUTFWrapper.cpp", + "lib/Support/LockFileManager.cpp", + "lib/Support/assert.cpp", + "lib/Support/ARMBuildAttrs.cpp", + "lib/Support/CrashRecoveryContext.cpp", + "lib/Support/Options.cpp", + "lib/Support/DeltaAlgorithm.cpp", + "lib/Support/SystemUtils.cpp", + "lib/Support/ThreadLocal.cpp", + "lib/Support/YAMLParser.cpp", + "lib/Support/StringPool.cpp", + "lib/Support/IntrusiveRefCntPtr.cpp", + "lib/Support/Watchdog.cpp", + "lib/Support/StringRef.cpp", + "lib/Support/Compression.cpp", + "lib/Support/COM.cpp", + "lib/Support/FoldingSet.cpp", + "lib/Support/FormattedStream.cpp", + "lib/Support/BlockFrequency.cpp", + "lib/Support/IntervalMap.cpp", + "lib/Support/MemoryObject.cpp", + "lib/Support/TargetParser.cpp", + "lib/Support/raw_os_ostream.cpp", + "lib/Support/Allocator.cpp", + "lib/Support/DataExtractor.cpp", + "lib/Support/APInt.cpp", + "lib/Support/StreamingMemoryObject.cpp", + "lib/Support/circular_raw_ostream.cpp", + "lib/Support/DataStream.cpp", + "lib/Support/Debug.cpp", + "lib/Support/Errno.cpp", + "lib/Support/Path.cpp", + "lib/Support/raw_ostream.cpp", + "lib/Support/Atomic.cpp", + "lib/Support/SmallVector.cpp", + "lib/Support/MathExtras.cpp", + "lib/Support/MemoryBuffer.cpp", + "lib/Support/ErrorHandling.cpp", + "lib/Support/StringExtras.cpp", + "lib/Support/Triple.cpp", + "lib/Support/Hashing.cpp", + "lib/Support/GraphWriter.cpp", + "lib/Support/RandomNumberGenerator.cpp", + "lib/Support/SourceMgr.cpp", + "lib/Support/Signals.cpp", + "lib/Support/Dwarf.cpp", + "lib/Support/StringMap.cpp", + "lib/Support/MSFileSystemBasic.cpp", + "lib/Support/IntEqClasses.cpp", + "lib/Support/Threading.cpp", + "lib/Support/RWMutex.cpp", + "lib/Support/StringSaver.cpp", + "lib/Support/CommandLine.cpp", + "lib/Support/ManagedStatic.cpp", + "lib/Support/Host.cpp", + "lib/Support/Unicode.cpp", + "lib/Support/SmallPtrSet.cpp", + "lib/Support/Valgrind.cpp", + "lib/Support/Regex.cpp", + "lib/Support/ARMWinEH.cpp", }; // find libs/DirectXShaderCompiler/lib/Support | grep '\.c$' | xargs -I {} -n1 echo '"{}",' | pbcopy const lib_support_c_sources = [_][]const u8{ - "libs/DirectXShaderCompiler/lib/Support/ConvertUTF.c", - "libs/DirectXShaderCompiler/lib/Support/regexec.c", - "libs/DirectXShaderCompiler/lib/Support/regcomp.c", - "libs/DirectXShaderCompiler/lib/Support/regerror.c", - "libs/DirectXShaderCompiler/lib/Support/regstrlcpy.c", - "libs/DirectXShaderCompiler/lib/Support/regfree.c", + "lib/Support/ConvertUTF.c", + "lib/Support/regexec.c", + "lib/Support/regcomp.c", + "lib/Support/regerror.c", + "lib/Support/regstrlcpy.c", + "lib/Support/regfree.c", }; // find libs/DirectXShaderCompiler/lib/DxcSupport | grep '\.cpp$' | xargs -I {} -n1 echo '"{}",' | pbcopy const lib_dxcsupport_sources = [_][]const u8{ - "libs/DirectXShaderCompiler/lib/DxcSupport/WinIncludes.cpp", - "libs/DirectXShaderCompiler/lib/DxcSupport/HLSLOptions.cpp", - "libs/DirectXShaderCompiler/lib/DxcSupport/dxcmem.cpp", - "libs/DirectXShaderCompiler/lib/DxcSupport/WinFunctions.cpp", - "libs/DirectXShaderCompiler/lib/DxcSupport/Global.cpp", - "libs/DirectXShaderCompiler/lib/DxcSupport/Unicode.cpp", - "libs/DirectXShaderCompiler/lib/DxcSupport/FileIOHelper.cpp", - "libs/DirectXShaderCompiler/lib/DxcSupport/dxcapi.use.cpp", - "libs/DirectXShaderCompiler/lib/DxcSupport/WinAdapter.cpp", + "lib/DxcSupport/WinIncludes.cpp", + "lib/DxcSupport/HLSLOptions.cpp", + "lib/DxcSupport/dxcmem.cpp", + "lib/DxcSupport/WinFunctions.cpp", + "lib/DxcSupport/Global.cpp", + "lib/DxcSupport/Unicode.cpp", + "lib/DxcSupport/FileIOHelper.cpp", + "lib/DxcSupport/dxcapi.use.cpp", + "lib/DxcSupport/WinAdapter.cpp", }; // find libs/DirectXShaderCompiler/lib/DxcBindingTable | grep '\.cpp$' | xargs -I {} -n1 echo '"{}",' | pbcopy const lib_dxcbindingtable_sources = [_][]const u8{ - "libs/DirectXShaderCompiler/lib/DxcBindingTable/DxcBindingTable.cpp", + "lib/DxcBindingTable/DxcBindingTable.cpp", }; // find libs/DirectXShaderCompiler/lib/DXIL | grep '\.cpp$' | xargs -I {} -n1 echo '"{}",' | pbcopy const lib_dxil_sources = [_][]const u8{ - "libs/DirectXShaderCompiler/lib/DXIL/DxilInterpolationMode.cpp", - "libs/DirectXShaderCompiler/lib/DXIL/DxilCompType.cpp", - "libs/DirectXShaderCompiler/lib/DXIL/DxilShaderFlags.cpp", - "libs/DirectXShaderCompiler/lib/DXIL/DxilResourceBase.cpp", - "libs/DirectXShaderCompiler/lib/DXIL/DxilResource.cpp", - "libs/DirectXShaderCompiler/lib/DXIL/DxilOperations.cpp", - "libs/DirectXShaderCompiler/lib/DXIL/DxilSignature.cpp", - "libs/DirectXShaderCompiler/lib/DXIL/DxilResourceProperties.cpp", - "libs/DirectXShaderCompiler/lib/DXIL/DxilPDB.cpp", - "libs/DirectXShaderCompiler/lib/DXIL/DxilUtilDbgInfoAndMisc.cpp", - "libs/DirectXShaderCompiler/lib/DXIL/DxilSignatureElement.cpp", - "libs/DirectXShaderCompiler/lib/DXIL/DxilSemantic.cpp", - "libs/DirectXShaderCompiler/lib/DXIL/DxilSampler.cpp", - "libs/DirectXShaderCompiler/lib/DXIL/DxilModuleHelper.cpp", - "libs/DirectXShaderCompiler/lib/DXIL/DxilResourceBinding.cpp", - "libs/DirectXShaderCompiler/lib/DXIL/DxilTypeSystem.cpp", - "libs/DirectXShaderCompiler/lib/DXIL/DxilCounters.cpp", - "libs/DirectXShaderCompiler/lib/DXIL/DxilCBuffer.cpp", - "libs/DirectXShaderCompiler/lib/DXIL/DxilUtil.cpp", - "libs/DirectXShaderCompiler/lib/DXIL/DxilSubobject.cpp", - "libs/DirectXShaderCompiler/lib/DXIL/DxilShaderModel.cpp", - "libs/DirectXShaderCompiler/lib/DXIL/DxilMetadataHelper.cpp", - "libs/DirectXShaderCompiler/lib/DXIL/DxilModule.cpp", + "lib/DXIL/DxilInterpolationMode.cpp", + "lib/DXIL/DxilCompType.cpp", + "lib/DXIL/DxilShaderFlags.cpp", + "lib/DXIL/DxilResourceBase.cpp", + "lib/DXIL/DxilResource.cpp", + "lib/DXIL/DxilOperations.cpp", + "lib/DXIL/DxilSignature.cpp", + "lib/DXIL/DxilResourceProperties.cpp", + "lib/DXIL/DxilPDB.cpp", + "lib/DXIL/DxilUtilDbgInfoAndMisc.cpp", + "lib/DXIL/DxilSignatureElement.cpp", + "lib/DXIL/DxilSemantic.cpp", + "lib/DXIL/DxilSampler.cpp", + "lib/DXIL/DxilModuleHelper.cpp", + "lib/DXIL/DxilResourceBinding.cpp", + "lib/DXIL/DxilTypeSystem.cpp", + "lib/DXIL/DxilCounters.cpp", + "lib/DXIL/DxilCBuffer.cpp", + "lib/DXIL/DxilUtil.cpp", + "lib/DXIL/DxilSubobject.cpp", + "lib/DXIL/DxilShaderModel.cpp", + "lib/DXIL/DxilMetadataHelper.cpp", + "lib/DXIL/DxilModule.cpp", }; // find libs/DirectXShaderCompiler/lib/DxilContainer | grep '\.cpp$' | xargs -I {} -n1 echo '"{}",' | pbcopy const lib_dxilcontainer_sources = [_][]const u8{ - "libs/DirectXShaderCompiler/lib/DxilContainer/DxilRuntimeReflection.cpp", - "libs/DirectXShaderCompiler/lib/DxilContainer/DxilRDATBuilder.cpp", - "libs/DirectXShaderCompiler/lib/DxilContainer/RDATDumper.cpp", - "libs/DirectXShaderCompiler/lib/DxilContainer/DxilContainerReader.cpp", - "libs/DirectXShaderCompiler/lib/DxilContainer/D3DReflectionStrings.cpp", - "libs/DirectXShaderCompiler/lib/DxilContainer/DxilContainer.cpp", - "libs/DirectXShaderCompiler/lib/DxilContainer/RDATDxilSubobjects.cpp", - "libs/DirectXShaderCompiler/lib/DxilContainer/D3DReflectionDumper.cpp", - "libs/DirectXShaderCompiler/lib/DxilContainer/DxcContainerBuilder.cpp", - "libs/DirectXShaderCompiler/lib/DxilContainer/DxilContainerAssembler.cpp", + "lib/DxilContainer/DxilRuntimeReflection.cpp", + "lib/DxilContainer/DxilRDATBuilder.cpp", + "lib/DxilContainer/RDATDumper.cpp", + "lib/DxilContainer/DxilContainerReader.cpp", + "lib/DxilContainer/D3DReflectionStrings.cpp", + "lib/DxilContainer/DxilContainer.cpp", + "lib/DxilContainer/RDATDxilSubobjects.cpp", + "lib/DxilContainer/D3DReflectionDumper.cpp", + "lib/DxilContainer/DxcContainerBuilder.cpp", + "lib/DxilContainer/DxilContainerAssembler.cpp", }; // find libs/DirectXShaderCompiler/lib/DxilPIXPasses | grep '\.cpp$' | xargs -I {} -n1 echo '"{}",' | pbcopy const lib_dxilpixpasses_sources = [_][]const u8{ - "libs/DirectXShaderCompiler/lib/DxilPIXPasses/DxilDbgValueToDbgDeclare.cpp", - "libs/DirectXShaderCompiler/lib/DxilPIXPasses/DxilRemoveDiscards.cpp", - "libs/DirectXShaderCompiler/lib/DxilPIXPasses/DxilPIXDXRInvocationsLog.cpp", - "libs/DirectXShaderCompiler/lib/DxilPIXPasses/DxilForceEarlyZ.cpp", - "libs/DirectXShaderCompiler/lib/DxilPIXPasses/DxilAnnotateWithVirtualRegister.cpp", - "libs/DirectXShaderCompiler/lib/DxilPIXPasses/DxilPIXAddTidToAmplificationShaderPayload.cpp", - "libs/DirectXShaderCompiler/lib/DxilPIXPasses/DxilDebugInstrumentation.cpp", - "libs/DirectXShaderCompiler/lib/DxilPIXPasses/DxilPIXPasses.cpp", - "libs/DirectXShaderCompiler/lib/DxilPIXPasses/PixPassHelpers.cpp", - "libs/DirectXShaderCompiler/lib/DxilPIXPasses/DxilPIXVirtualRegisters.cpp", - "libs/DirectXShaderCompiler/lib/DxilPIXPasses/DxilShaderAccessTracking.cpp", - "libs/DirectXShaderCompiler/lib/DxilPIXPasses/DxilOutputColorBecomesConstant.cpp", - "libs/DirectXShaderCompiler/lib/DxilPIXPasses/DxilReduceMSAAToSingleSample.cpp", - "libs/DirectXShaderCompiler/lib/DxilPIXPasses/DxilAddPixelHitInstrumentation.cpp", - "libs/DirectXShaderCompiler/lib/DxilPIXPasses/DxilPIXMeshShaderOutputInstrumentation.cpp", + "lib/DxilPIXPasses/DxilDbgValueToDbgDeclare.cpp", + "lib/DxilPIXPasses/DxilRemoveDiscards.cpp", + "lib/DxilPIXPasses/DxilPIXDXRInvocationsLog.cpp", + "lib/DxilPIXPasses/DxilForceEarlyZ.cpp", + "lib/DxilPIXPasses/DxilAnnotateWithVirtualRegister.cpp", + "lib/DxilPIXPasses/DxilPIXAddTidToAmplificationShaderPayload.cpp", + "lib/DxilPIXPasses/DxilDebugInstrumentation.cpp", + "lib/DxilPIXPasses/DxilPIXPasses.cpp", + "lib/DxilPIXPasses/PixPassHelpers.cpp", + "lib/DxilPIXPasses/DxilPIXVirtualRegisters.cpp", + "lib/DxilPIXPasses/DxilShaderAccessTracking.cpp", + "lib/DxilPIXPasses/DxilOutputColorBecomesConstant.cpp", + "lib/DxilPIXPasses/DxilReduceMSAAToSingleSample.cpp", + "lib/DxilPIXPasses/DxilAddPixelHitInstrumentation.cpp", + "lib/DxilPIXPasses/DxilPIXMeshShaderOutputInstrumentation.cpp", }; // find libs/DirectXShaderCompiler/lib/DxilCompression | grep '\.cpp$' | xargs -I {} -n1 echo '"{}",' | pbcopy const lib_dxilcompression_cpp_sources = [_][]const u8{ - "libs/DirectXShaderCompiler/lib/DxilCompression/DxilCompression.cpp", + "lib/DxilCompression/DxilCompression.cpp", }; // find libs/DirectXShaderCompiler/lib/DxilCompression | grep '\.c$' | xargs -I {} -n1 echo '"{}",' | pbcopy const lib_dxilcompression_c_sources = [_][]const u8{ - "libs/DirectXShaderCompiler/lib/DxilCompression/miniz.c", + "lib/DxilCompression/miniz.c", }; // find libs/DirectXShaderCompiler/lib/DxilRootSignature | grep '\.cpp$' | xargs -I {} -n1 echo '"{}",' | pbcopy const lib_dxilrootsignature_sources = [_][]const u8{ - "libs/DirectXShaderCompiler/lib/DxilRootSignature/DxilRootSignature.cpp", - "libs/DirectXShaderCompiler/lib/DxilRootSignature/DxilRootSignatureSerializer.cpp", - "libs/DirectXShaderCompiler/lib/DxilRootSignature/DxilRootSignatureConvert.cpp", - "libs/DirectXShaderCompiler/lib/DxilRootSignature/DxilRootSignatureValidator.cpp", + "lib/DxilRootSignature/DxilRootSignature.cpp", + "lib/DxilRootSignature/DxilRootSignatureSerializer.cpp", + "lib/DxilRootSignature/DxilRootSignatureConvert.cpp", + "lib/DxilRootSignature/DxilRootSignatureValidator.cpp", }; // SPIRV-Tools stuff // find libs/DirectXShaderCompiler/external/SPIRV-Tools/source | grep '\.cpp$' | xargs -I {} -n1 echo '"{}",' | pbcopy const lib_spirv = [_][]const u8{ - "libs/DirectXShaderCompiler/tools/clang/lib/SPIRV/RemoveBufferBlockVisitor.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/SPIRV/LiteralTypeVisitor.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/SPIRV/AlignmentSizeCalculator.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/SPIRV/RawBufferMethods.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/SPIRV/GlPerVertex.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/SPIRV/SpirvFunction.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/SPIRV/LowerTypeVisitor.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/SPIRV/SpirvInstruction.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/SPIRV/DeclResultIdMapper.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/SPIRV/SpirvEmitter.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/SPIRV/SpirvBuilder.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/SPIRV/FeatureManager.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/SPIRV/SpirvModule.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/SPIRV/BlockReadableOrder.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/SPIRV/SignaturePackingUtil.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/SPIRV/CapabilityVisitor.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/SPIRV/SpirvBasicBlock.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/SPIRV/NonUniformVisitor.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/SPIRV/RelaxedPrecisionVisitor.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/SPIRV/SpirvType.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/SPIRV/SortDebugInfoVisitor.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/SPIRV/SpirvContext.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/SPIRV/PreciseVisitor.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/SPIRV/EmitSpirvAction.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/SPIRV/PervertexInputVisitor.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/SPIRV/EmitVisitor.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/SPIRV/String.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/SPIRV/AstTypeProbe.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/SPIRV/DebugTypeVisitor.cpp", - "libs/DirectXShaderCompiler/tools/clang/lib/SPIRV/InitListHandler.cpp", + "tools/clang/lib/SPIRV/RemoveBufferBlockVisitor.cpp", + "tools/clang/lib/SPIRV/LiteralTypeVisitor.cpp", + "tools/clang/lib/SPIRV/AlignmentSizeCalculator.cpp", + "tools/clang/lib/SPIRV/RawBufferMethods.cpp", + "tools/clang/lib/SPIRV/GlPerVertex.cpp", + "tools/clang/lib/SPIRV/SpirvFunction.cpp", + "tools/clang/lib/SPIRV/LowerTypeVisitor.cpp", + "tools/clang/lib/SPIRV/SpirvInstruction.cpp", + "tools/clang/lib/SPIRV/DeclResultIdMapper.cpp", + "tools/clang/lib/SPIRV/SpirvEmitter.cpp", + "tools/clang/lib/SPIRV/SpirvBuilder.cpp", + "tools/clang/lib/SPIRV/FeatureManager.cpp", + "tools/clang/lib/SPIRV/SpirvModule.cpp", + "tools/clang/lib/SPIRV/BlockReadableOrder.cpp", + "tools/clang/lib/SPIRV/SignaturePackingUtil.cpp", + "tools/clang/lib/SPIRV/CapabilityVisitor.cpp", + "tools/clang/lib/SPIRV/SpirvBasicBlock.cpp", + "tools/clang/lib/SPIRV/NonUniformVisitor.cpp", + "tools/clang/lib/SPIRV/RelaxedPrecisionVisitor.cpp", + "tools/clang/lib/SPIRV/SpirvType.cpp", + "tools/clang/lib/SPIRV/SortDebugInfoVisitor.cpp", + "tools/clang/lib/SPIRV/SpirvContext.cpp", + "tools/clang/lib/SPIRV/PreciseVisitor.cpp", + "tools/clang/lib/SPIRV/EmitSpirvAction.cpp", + "tools/clang/lib/SPIRV/PervertexInputVisitor.cpp", + "tools/clang/lib/SPIRV/EmitVisitor.cpp", + "tools/clang/lib/SPIRV/String.cpp", + "tools/clang/lib/SPIRV/AstTypeProbe.cpp", + "tools/clang/lib/SPIRV/DebugTypeVisitor.cpp", + "tools/clang/lib/SPIRV/InitListHandler.cpp", }; diff --git a/build.zig.zon b/build.zig.zon index b139063..56bd43b 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -21,5 +21,25 @@ .hash = "1220cb3152f957ad886b0eff7468e4c6580b1461c4c3d0c5d4e6848dd76b1ed7123e", .lazy = true, }, + .DirectXShaderCompiler = .{ + .url = "https://pkg.machengine.org/DirectXShaderCompiler/4190bb0c90d374c6b4d0b0f2c7b45b604eda24b6.tar.gz", + .hash = "12208fcd0779f1a4d195af0b6dfa096c5fc8058888e943e981b3549e4be9c3f630e1", + .lazy = true, + }, + .DIA = .{ + .url = "git+https://github.com/slimsag/DIA#069cf38846b3f7ae079f5fb37a760edd4591529e", + .hash = "1220ff2cc3b96f221da5683d523175dcd9b47f9a2acdf24f5350e246a1f7aadb2601", + .lazy = true, + }, + .@"directx-headers" = .{ + .url = "https://pkg.machengine.org/directx-headers/da7a056ee37d0f1e18e49f098f1d5261ab19990e.tar.gz", + .hash = "1220f4d1a3d50918abc71672092b515ea25549b498ce61f2ce03aa1b0780833ee85b", + .lazy = true, + }, + .@"SPIRV-Headers" = .{ + .url = "git+https://github.com/KhronosGroup/SPIRV-Headers#1bfd27101e4578d0284061bdf8f09fb4755c7c2d", + .hash = "122082a1487ea8e9185c6bea2850a53f376279d62bb06158cd357dbecb0fd02219ac", + // .lazy = true, // NOTE: not marked as lazy due to bug(?) in zig compiler + }, }, } From 801295d03fb19047c1f25b0443e0f12162c447e6 Mon Sep 17 00:00:00 2001 From: Beyley Thomas Date: Fri, 8 Nov 2024 03:44:01 -0800 Subject: [PATCH 2/4] fix lazy dependency shenanigans --- build.zig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build.zig b/build.zig index e4f1287..2dc0e85 100644 --- a/build.zig +++ b/build.zig @@ -45,7 +45,7 @@ pub fn build(b: *Build) !void { } break :blk .{ .lib = linkage, .lib_path = cache_dir }; - } else if (b.lazyDependency("DirectXShaderCompiler", .{})) |dxc_sources| { + } else { const lib = b.addStaticLibrary(.{ .name = "machdxcompiler", .optimize = optimize, @@ -92,7 +92,8 @@ pub fn build(b: *Build) !void { try cflags.appendSlice(base_flags); try cppflags.appendSlice(base_flags); - const dxh_sources = b.lazyDependency("directx-headers", .{}) orelse return; + const dxh_sources = b.lazyDependency("directx-headers", .{}) orelse break :blk .{ .lib = lib, .lib_path = null }; + const dxc_sources = b.lazyDependency("DirectXShaderCompiler", .{}) orelse break :blk .{ .lib = lib, .lib_path = null }; addConfigHeaders(b, lib); addIncludes(b, dxc_sources, dxh_sources, lib); From 394ebe617f08fa70e1ae23a4f03617b425d4e36e Mon Sep 17 00:00:00 2001 From: Beyley Thomas Date: Fri, 8 Nov 2024 03:47:52 -0800 Subject: [PATCH 3/4] dont use git+https --- build.zig.zon | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.zig.zon b/build.zig.zon index 56bd43b..2733b64 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -27,7 +27,7 @@ .lazy = true, }, .DIA = .{ - .url = "git+https://github.com/slimsag/DIA#069cf38846b3f7ae079f5fb37a760edd4591529e", + .url = "https://github.com/slimsag/DIA/archive/069cf38846b3f7ae079f5fb37a760edd4591529e.tar.gz", .hash = "1220ff2cc3b96f221da5683d523175dcd9b47f9a2acdf24f5350e246a1f7aadb2601", .lazy = true, }, @@ -37,7 +37,7 @@ .lazy = true, }, .@"SPIRV-Headers" = .{ - .url = "git+https://github.com/KhronosGroup/SPIRV-Headers#1bfd27101e4578d0284061bdf8f09fb4755c7c2d", + .url = "https://github.com/KhronosGroup/SPIRV-Headers/archive/1bfd27101e4578d0284061bdf8f09fb4755c7c2d.tar.gz", .hash = "122082a1487ea8e9185c6bea2850a53f376279d62bb06158cd357dbecb0fd02219ac", // .lazy = true, // NOTE: not marked as lazy due to bug(?) in zig compiler }, From daf4c9261edac025c6aed26a0569bb2d0fb80951 Mon Sep 17 00:00:00 2001 From: Beyley Thomas Date: Thu, 14 Nov 2024 20:10:51 -0800 Subject: [PATCH 4/4] Give shared machdxcompiler its own name This prevents an error when trying to pull a shared machdxcompiler through the package manager `panic: artifact name 'machdxcompiler' is ambiguous` --- build.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.zig b/build.zig index 2dc0e85..8ce6b38 100644 --- a/build.zig +++ b/build.zig @@ -309,7 +309,7 @@ pub fn build(b: *Build) !void { fn buildShared(b: *Build, lib: *Build.Step.Compile, optimize: std.builtin.OptimizeMode, target: std.Build.ResolvedTarget) void { const sharedlib = b.addSharedLibrary(.{ - .name = "machdxcompiler", + .name = "machdxcompiler-shared", .optimize = optimize, .target = target, });