From 407d883bd54df8e229b161ecbc2c5964f3d4d2d8 Mon Sep 17 00:00:00 2001 From: drahn Date: Thu, 29 Apr 2021 05:32:01 +0000 Subject: [PATCH] riscv64 clang support. With several fixes from review integrated. ok patrick@ --- gnu/usr.bin/clang/Makefile.arch | 8 +- gnu/usr.bin/clang/include/llvm/RISCV/Makefile | 107 ++++++++++++++++++ gnu/usr.bin/clang/libLLVM/Makefile | 2 +- .../clang/libLLVMRISCVAsmParser/Makefile | 11 ++ .../clang/libLLVMRISCVCodeGen/Makefile | 28 +++++ gnu/usr.bin/clang/libLLVMRISCVDesc/Makefile | 20 ++++ .../clang/libLLVMRISCVDisassembler/Makefile | 11 ++ gnu/usr.bin/clang/libLLVMRISCVInfo/Makefile | 11 ++ gnu/usr.bin/clang/libLLVMRISCVUtils/Makefile | 12 ++ .../llvm-config/LibraryDependencies.inc.RISCV | 106 +++++++++++++++++ 10 files changed, 312 insertions(+), 4 deletions(-) create mode 100644 gnu/usr.bin/clang/include/llvm/RISCV/Makefile create mode 100644 gnu/usr.bin/clang/libLLVMRISCVAsmParser/Makefile create mode 100644 gnu/usr.bin/clang/libLLVMRISCVCodeGen/Makefile create mode 100644 gnu/usr.bin/clang/libLLVMRISCVDesc/Makefile create mode 100644 gnu/usr.bin/clang/libLLVMRISCVDisassembler/Makefile create mode 100644 gnu/usr.bin/clang/libLLVMRISCVInfo/Makefile create mode 100644 gnu/usr.bin/clang/libLLVMRISCVUtils/Makefile create mode 100644 gnu/usr.bin/clang/llvm-config/LibraryDependencies.inc.RISCV diff --git a/gnu/usr.bin/clang/Makefile.arch b/gnu/usr.bin/clang/Makefile.arch index 6e544f15af3..f56ebf601c7 100644 --- a/gnu/usr.bin/clang/Makefile.arch +++ b/gnu/usr.bin/clang/Makefile.arch @@ -1,12 +1,14 @@ -# $OpenBSD: Makefile.arch,v 1.8 2020/08/03 14:45:22 patrick Exp $ +# $OpenBSD: Makefile.arch,v 1.9 2021/04/29 05:32:01 drahn Exp $ -LLVM_ARCHS=AArch64 AMDGPU ARM Mips PowerPC Sparc X86 +LLVM_ARCHS=AArch64 AMDGPU ARM Mips PowerPC RISCV Sparc X86 LLVM_ARCH?= .if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386" LLVM_ARCH= X86 .elif ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "powerpc64" LLVM_ARCH= PowerPC +.elif ${MACHINE_ARCH} == "riscv64" +LLVM_ARCH= RISCV .elif ${MACHINE_ARCH} == "sparc64" LLVM_ARCH= Sparc .elif ${MACHINE_ARCH} == "aarch64" @@ -32,7 +34,7 @@ BACKEND_DESC+= LLVM${arch}Desc BACKEND_DISASSEMBLER+= LLVM${arch}Disassembler BACKEND_INFO+= LLVM${arch}Info .if "${arch}" == "X86" || "${arch}" == "AArch64" || "${arch}" == "ARM" \ - || "${arch}" == "AMDGPU" + || "${arch}" == "AMDGPU" || "${arch}" == "RISCV" BACKEND_UTILS+= LLVM${arch}Utils .endif .endif diff --git a/gnu/usr.bin/clang/include/llvm/RISCV/Makefile b/gnu/usr.bin/clang/include/llvm/RISCV/Makefile new file mode 100644 index 00000000000..0eb6c944bd6 --- /dev/null +++ b/gnu/usr.bin/clang/include/llvm/RISCV/Makefile @@ -0,0 +1,107 @@ +# $OpenBSD: Makefile,v 1.1 2021/04/29 05:32:01 drahn Exp $ + +.include + +LLVM_SRCS= ${.CURDIR}/../../../../../llvm/llvm + +HDRS= RISCVGenAsmMatcher.inc RISCVGenAsmWriter.inc \ + RISCVGenCallingConv.inc RISCVGenDAGISel.inc \ + RISCVGenDisassemblerTables.inc \ + RISCVGenInstrInfo.inc RISCVGenRegisterInfo.inc \ + RISCVGenSubtargetInfo.inc \ + RISCVGenMCCodeEmitter.inc RISCVGenMCPseudoLowering.inc \ + RISCVGenSystemOperands.inc RISCVGenRegisterBank.inc \ + RISCVGenGlobalISel.inc RISCVGenCompressInstEmitter.inc + +# RISCVGenGICombiner.inc RISCVGenFastISel.inc + +all: ${HDRS} + +install: + @# Nothing here so far ... + +clean cleandir: + rm -f ${HDRS} + +RISCVGenRegisterInfo.inc: ${LLVM_SRCS}/lib/Target/RISCV/RISCV.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-register-info \ + -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/RISCV \ + -o ${.TARGET} ${.ALLSRC} + +RISCVGenDisassemblerTables.inc: ${LLVM_SRCS}/lib/Target/RISCV/RISCV.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-disassembler \ + -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/RISCV \ + -o ${.TARGET} ${.ALLSRC} + +RISCVGenInstrInfo.inc: ${LLVM_SRCS}/lib/Target/RISCV/RISCV.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-instr-info \ + -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/RISCV \ + -o ${.TARGET} ${.ALLSRC} + +RISCVGenAsmWriter.inc: ${LLVM_SRCS}/lib/Target/RISCV/RISCV.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-asm-writer \ + -I${LLVM_SRCS}/include \ + -I${LLVM_SRCS}/lib/Target/RISCV -o ${.TARGET} ${.ALLSRC} + +RISCVGenAsmMatcher.inc: ${LLVM_SRCS}/lib/Target/RISCV/RISCV.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-asm-matcher \ + -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/RISCV \ + -o ${.TARGET} ${.ALLSRC} + +RISCVGenDAGISel.inc: ${LLVM_SRCS}/lib/Target/RISCV/RISCV.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-dag-isel \ + -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/RISCV \ + -o ${.TARGET} ${.ALLSRC} + +RISCVGenFastISel.inc: ${LLVM_SRCS}/lib/Target/RISCV/RISCV.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-fast-isel \ + -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/RISCV \ + -o ${.TARGET} ${.ALLSRC} + +RISCVGenCallingConv.inc: ${LLVM_SRCS}/lib/Target/RISCV/RISCV.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-callingconv \ + -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/RISCV \ + -o ${.TARGET} ${.ALLSRC} + +RISCVGenSubtargetInfo.inc: ${LLVM_SRCS}/lib/Target/RISCV/RISCV.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-subtarget \ + -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/RISCV \ + -o ${.TARGET} ${.ALLSRC} + +RISCVGenMCCodeEmitter.inc: ${LLVM_SRCS}/lib/Target/RISCV/RISCV.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-emitter \ + -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/RISCV \ + -o ${.TARGET} ${.ALLSRC} + +RISCVGenMCPseudoLowering.inc: ${LLVM_SRCS}/lib/Target/RISCV/RISCV.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-pseudo-lowering \ + -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/RISCV \ + -o ${.TARGET} ${.ALLSRC} + +RISCVGenSystemOperands.inc: ${LLVM_SRCS}/lib/Target/RISCV/RISCV.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-searchable-tables \ + -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/RISCV \ + -o ${.TARGET} ${.ALLSRC} + +RISCVGenRegisterBank.inc: ${LLVM_SRCS}/lib/Target/RISCV/RISCV.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-register-bank \ + -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/RISCV \ + -o ${.TARGET} ${.ALLSRC} + +RISCVGenGlobalISel.inc: ${LLVM_SRCS}/lib/Target/RISCV/RISCV.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-global-isel \ + -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/RISCV \ + -o ${.TARGET} ${.ALLSRC} + +RISCVGenCompressInstEmitter.inc: ${LLVM_SRCS}/lib/Target/RISCV/RISCV.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen --gen-compress-inst-emitter \ + -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/RISCV \ + -o ${.TARGET} ${.ALLSRC} + +RISCVGenGICombiner.inc: ${LLVM_SRCS}/lib/Target/RISCV/RISCV.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-global-isel-combiner \ + -combiners="RISCVPreLegalizerCombinerHelper" \ + -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/RISCV \ + -o ${.TARGET} ${.ALLSRC} + +.include diff --git a/gnu/usr.bin/clang/libLLVM/Makefile b/gnu/usr.bin/clang/libLLVM/Makefile index 0d79acb5580..c8f74cb601c 100644 --- a/gnu/usr.bin/clang/libLLVM/Makefile +++ b/gnu/usr.bin/clang/libLLVM/Makefile @@ -58,7 +58,7 @@ .include "../libLLVM${LLVM_ARCH}Desc/Makefile" .include "../libLLVM${LLVM_ARCH}Disassembler/Makefile" .include "../libLLVM${LLVM_ARCH}Info/Makefile" -.if "${LLVM_ARCH}" == "AArch64" || "${LLVM_ARCH}" == "ARM" +.if "${LLVM_ARCH}" == "AArch64" || "${LLVM_ARCH}" == "ARM" || "${LLVM_ARCH}" == "RISCV" .include "../libLLVM${LLVM_ARCH}Utils/Makefile" .endif .include "../libLLVMipo/Makefile" diff --git a/gnu/usr.bin/clang/libLLVMRISCVAsmParser/Makefile b/gnu/usr.bin/clang/libLLVMRISCVAsmParser/Makefile new file mode 100644 index 00000000000..40d8f78862f --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMRISCVAsmParser/Makefile @@ -0,0 +1,11 @@ +# $OpenBSD: Makefile,v 1.1 2021/04/29 05:32:01 drahn Exp $ + +LIB= LLVMRISCVAsmParser +NOPROFILE= + +CPPFLAGS+= -I${.OBJDIR}/../include/llvm/RISCV \ + -I${LLVM_SRCS}/lib/Target/RISCV + +SRCS+= RISCVAsmParser.cpp + +.PATH: ${.CURDIR}/../../../llvm/llvm/lib/Target/RISCV/AsmParser diff --git a/gnu/usr.bin/clang/libLLVMRISCVCodeGen/Makefile b/gnu/usr.bin/clang/libLLVMRISCVCodeGen/Makefile new file mode 100644 index 00000000000..9847fe54e13 --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMRISCVCodeGen/Makefile @@ -0,0 +1,28 @@ +# $OpenBSD: Makefile,v 1.1 2021/04/29 05:32:01 drahn Exp $ + +LIB= LLVMRISCVCodeGen +NOPROFILE= + +CPPFLAGS+= -I${.OBJDIR}/../include/llvm/RISCV \ + -I${LLVM_SRCS}/lib/Target/RISCV + +SRCS+= RISCVAsmPrinter.cpp \ + RISCVCallLowering.cpp \ + RISCVExpandAtomicPseudoInsts.cpp\ + RISCVExpandPseudoInsts.cpp \ + RISCVFrameLowering.cpp \ + RISCVInstrInfo.cpp \ + RISCVInstructionSelector.cpp \ + RISCVISelDAGToDAG.cpp \ + RISCVISelLowering.cpp \ + RISCVLegalizerInfo.cpp \ + RISCVMCInstLower.cpp \ + RISCVMergeBaseOffset.cpp \ + RISCVRegisterBankInfo.cpp \ + RISCVRegisterInfo.cpp \ + RISCVSubtarget.cpp \ + RISCVTargetMachine.cpp \ + RISCVTargetObjectFile.cpp \ + RISCVTargetTransformInfo.cpp + +.PATH: ${.CURDIR}/../../../llvm/llvm/lib/Target/RISCV diff --git a/gnu/usr.bin/clang/libLLVMRISCVDesc/Makefile b/gnu/usr.bin/clang/libLLVMRISCVDesc/Makefile new file mode 100644 index 00000000000..a1f4c1f24af --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMRISCVDesc/Makefile @@ -0,0 +1,20 @@ +# $OpenBSD: Makefile,v 1.1 2021/04/29 05:32:01 drahn Exp $ + +LIB= LLVMRISCVDesc +NOPROFILE= + +CPPFLAGS+= -I${.OBJDIR}/../include/llvm/RISCV \ + -I${LLVM_SRCS}/lib/Target/RISCV + +SRCS+= RISCVAsmBackend.cpp \ + RISCVELFObjectWriter.cpp \ + RISCVELFStreamer.cpp \ + RISCVInstPrinter.cpp \ + RISCVMCAsmInfo.cpp \ + RISCVMCCodeEmitter.cpp \ + RISCVMCExpr.cpp \ + RISCVMCTargetDesc.cpp \ + RISCVTargetStreamer.cpp + + +.PATH: ${.CURDIR}/../../../llvm/llvm/lib/Target/RISCV/MCTargetDesc diff --git a/gnu/usr.bin/clang/libLLVMRISCVDisassembler/Makefile b/gnu/usr.bin/clang/libLLVMRISCVDisassembler/Makefile new file mode 100644 index 00000000000..b5d9b11d8b0 --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMRISCVDisassembler/Makefile @@ -0,0 +1,11 @@ +# $OpenBSD: Makefile,v 1.1 2021/04/29 05:32:01 drahn Exp $ + +LIB= LLVMRISCVDisassembler +NOPROFILE= + +CPPFLAGS+= -I${.OBJDIR}/../include/llvm/RISCV \ + -I${LLVM_SRCS}/lib/Target/RISCV + +SRCS+= RISCVDisassembler.cpp + +.PATH: ${.CURDIR}/../../../llvm/llvm/lib/Target/RISCV/Disassembler diff --git a/gnu/usr.bin/clang/libLLVMRISCVInfo/Makefile b/gnu/usr.bin/clang/libLLVMRISCVInfo/Makefile new file mode 100644 index 00000000000..6dd5251c7de --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMRISCVInfo/Makefile @@ -0,0 +1,11 @@ +# $OpenBSD: Makefile,v 1.1 2021/04/29 05:32:01 drahn Exp $ + +LIB= LLVMRISCVInfo +NOPROFILE= + +CPPFLAGS+= -I${.OBJDIR}/../include/llvm/RISCV \ + -I${LLVM_SRCS}/lib/Target/RISCV + +SRCS+= RISCVTargetInfo.cpp + +.PATH: ${.CURDIR}/../../../llvm/llvm/lib/Target/RISCV/TargetInfo diff --git a/gnu/usr.bin/clang/libLLVMRISCVUtils/Makefile b/gnu/usr.bin/clang/libLLVMRISCVUtils/Makefile new file mode 100644 index 00000000000..c9eb4b7d1b6 --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMRISCVUtils/Makefile @@ -0,0 +1,12 @@ +# $OpenBSD: Makefile,v 1.1 2021/04/29 05:32:01 drahn Exp $ + +LIB= LLVMRISCVUtils +NOPROFILE= + +CPPFLAGS+= -I${.OBJDIR}/../include/llvm/RISCV \ + -I${LLVM_SRCS}/lib/Target/RISCV + +SRCS+= RISCVBaseInfo.cpp \ + RISCVMatInt.cpp + +.PATH: ${.CURDIR}/../../../llvm/llvm/lib/Target/RISCV/Utils diff --git a/gnu/usr.bin/clang/llvm-config/LibraryDependencies.inc.RISCV b/gnu/usr.bin/clang/llvm-config/LibraryDependencies.inc.RISCV new file mode 100644 index 00000000000..aca48f2b0b0 --- /dev/null +++ b/gnu/usr.bin/clang/llvm-config/LibraryDependencies.inc.RISCV @@ -0,0 +1,106 @@ +//===- llvm-build generated file --------------------------------*- C++ -*-===// +// +// Component Library Dependency Table +// +// Automatically generated file, do not edit! +// +//===----------------------------------------------------------------------===// + +struct AvailableComponent { + /// The name of the component. + const char *Name; + + /// The name of the library for this component (or NULL). + const char *Library; + + /// Whether the component is installed. + bool IsInstalled; + + /// The list of libraries required when linking this component. + const char *RequiredLibraries[25]; +} AvailableComponents[84] = { + { "aggressiveinstcombine", "LLVMAggressiveInstCombine", true, { "analysis", "core", "support", "transformutils" } }, + { "all", nullptr, true, { "all-targets", "coroutines", "coverage", "debuginfogsym", "dlltooldriver", "dwarflinker", "engine", "frontendopenmp", "fuzzmutate", "gtest_main", "libdriver", "lineeditor", "lto", "mca", "mcjit", "native", "nativecodegen", "objectyaml", "orcjit", "symbolize", "tablegen", "testingsupport", "windowsmanifest", "xray" } }, + { "all-targets", nullptr, true, { "amdgpu", "riscv" } }, + { "amdgpu", nullptr, true, { "amdgpuinfo", "amdgpuutils", "amdgpudesc", "amdgpuasmparser", "amdgpucodegen", "amdgpudisassembler" } }, + { "amdgpuasmparser", "LLVMAMDGPUAsmParser", true, { "mc", "mcparser", "amdgpudesc", "amdgpuinfo", "amdgpuutils", "support" } }, + { "amdgpucodegen", "LLVMAMDGPUCodeGen", true, { "analysis", "asmprinter", "codegen", "core", "ipo", "mc", "amdgpudesc", "amdgpuinfo", "amdgpuutils", "scalaropts", "selectiondag", "support", "target", "transformutils", "vectorize", "globalisel", "binaryformat", "mirparser" } }, + { "amdgpudesc", "LLVMAMDGPUDesc", true, { "core", "mc", "amdgpuinfo", "amdgpuutils", "support", "binaryformat" } }, + { "amdgpudisassembler", "LLVMAMDGPUDisassembler", true, { "amdgpudesc", "amdgpuinfo", "amdgpuutils", "mc", "mcdisassembler", "support" } }, + { "amdgpuinfo", "LLVMAMDGPUInfo", true, { "support" } }, + { "amdgpuutils", "LLVMAMDGPUUtils", true, { "core", "mc", "binaryformat", "support" } }, + { "analysis", "LLVMAnalysis", true, { "binaryformat", "core", "object", "profiledata", "support" } }, + { "asmparser", "LLVMAsmParser", true, { "binaryformat", "core", "support" } }, + { "asmprinter", "LLVMAsmPrinter", true, { "analysis", "binaryformat", "codegen", "core", "debuginfocodeview", "debuginfodwarf", "debuginfomsf", "mc", "mcparser", "remarks", "support", "target" } }, + { "binaryformat", "LLVMBinaryFormat", true, { "support" } }, + { "bitreader", "LLVMBitReader", true, { "bitstreamreader", "core", "support" } }, + { "bitstreamreader", "LLVMBitstreamReader", true, { "support" } }, + { "bitwriter", "LLVMBitWriter", true, { "analysis", "core", "mc", "object", "support" } }, + { "cfguard", "LLVMCFGuard", true, { "core", "support" } }, + { "codegen", "LLVMCodeGen", true, { "analysis", "bitreader", "bitwriter", "core", "mc", "profiledata", "scalaropts", "support", "target", "transformutils" } }, + { "core", "LLVMCore", true, { "binaryformat", "remarks", "support" } }, + { "coroutines", "LLVMCoroutines", true, { "analysis", "core", "ipo", "scalaropts", "support", "transformutils" } }, + { "coverage", "LLVMCoverage", true, { "core", "object", "profiledata", "support" } }, + { "debuginfocodeview", "LLVMDebugInfoCodeView", true, { "support", "debuginfomsf" } }, + { "debuginfodwarf", "LLVMDebugInfoDWARF", true, { "binaryformat", "object", "mc", "support" } }, + { "debuginfogsym", "LLVMDebugInfoGSYM", true, { "mc", "support" } }, + { "debuginfomsf", "LLVMDebugInfoMSF", true, { "support" } }, + { "debuginfopdb", "LLVMDebugInfoPDB", true, { "object", "support", "debuginfocodeview", "debuginfomsf" } }, + { "demangle", "LLVMDemangle", true, { } }, + { "dlltooldriver", "LLVMDlltoolDriver", true, { "object", "option", "support" } }, + { "dwarflinker", "LLVMDWARFLinker", true, { "debuginfodwarf", "asmprinter", "codegen", "mc", "object", "support" } }, + { "engine", nullptr, true, { "interpreter" } }, + { "executionengine", "LLVMExecutionEngine", true, { "core", "mc", "object", "runtimedyld", "support", "target" } }, + { "frontendopenmp", "LLVMFrontendOpenMP", true, { "core", "support", "transformutils" } }, + { "fuzzmutate", "LLVMFuzzMutate", true, { "analysis", "bitreader", "bitwriter", "core", "scalaropts", "support", "target" } }, + { "globalisel", "LLVMGlobalISel", true, { "analysis", "codegen", "core", "mc", "selectiondag", "support", "target", "transformutils" } }, + { "gtest", "gtest", false, { "support" } }, + { "gtest_main", "gtest_main", false, { "gtest" } }, + { "instcombine", "LLVMInstCombine", true, { "analysis", "core", "support", "transformutils" } }, + { "instrumentation", "LLVMInstrumentation", true, { "analysis", "core", "mc", "support", "transformutils", "profiledata" } }, + { "interpreter", "LLVMInterpreter", true, { "codegen", "core", "executionengine", "support" } }, + { "ipo", "LLVMipo", true, { "aggressiveinstcombine", "analysis", "bitreader", "bitwriter", "core", "instcombine", "irreader", "linker", "object", "profiledata", "scalaropts", "support", "transformutils", "vectorize", "instrumentation" } }, + { "irreader", "LLVMIRReader", true, { "asmparser", "bitreader", "core", "support" } }, + { "jitlink", "LLVMJITLink", true, { "binaryformat", "object", "support" } }, + { "libdriver", "LLVMLibDriver", true, { "binaryformat", "bitreader", "object", "option", "support" } }, + { "lineeditor", "LLVMLineEditor", true, { "support" } }, + { "linker", "LLVMLinker", true, { "core", "support", "transformutils" } }, + { "lto", "LLVMLTO", true, { "aggressiveinstcombine", "analysis", "bitreader", "bitwriter", "codegen", "core", "ipo", "instcombine", "linker", "mc", "objcarcopts", "object", "passes", "remarks", "scalaropts", "support", "target", "transformutils" } }, + { "mc", "LLVMMC", true, { "support", "binaryformat", "debuginfocodeview" } }, + { "mca", "LLVMMCA", true, { "mc", "support" } }, + { "mcdisassembler", "LLVMMCDisassembler", true, { "mc", "support" } }, + { "mcjit", "LLVMMCJIT", true, { "core", "executionengine", "object", "runtimedyld", "support", "target" } }, + { "mcparser", "LLVMMCParser", true, { "mc", "support" } }, + { "mirparser", "LLVMMIRParser", true, { "asmparser", "binaryformat", "codegen", "core", "mc", "support", "target" } }, + { "native", nullptr, true, { } }, + { "nativecodegen", nullptr, true, { } }, + { "objcarcopts", "LLVMObjCARCOpts", true, { "analysis", "core", "support", "transformutils" } }, + { "object", "LLVMObject", true, { "bitreader", "core", "mc", "binaryformat", "mcparser", "support", "textapi" } }, + { "objectyaml", "LLVMObjectYAML", true, { "object", "support", "debuginfocodeview", "mc" } }, + { "option", "LLVMOption", true, { "support" } }, + { "orcerror", "LLVMOrcError", true, { "support" } }, + { "orcjit", "LLVMOrcJIT", true, { "core", "executionengine", "jitlink", "object", "orcerror", "mc", "passes", "runtimedyld", "support", "target", "transformutils" } }, + { "passes", "LLVMPasses", true, { "aggressiveinstcombine", "analysis", "codegen", "core", "ipo", "instcombine", "scalaropts", "support", "target", "transformutils", "vectorize", "instrumentation" } }, + { "profiledata", "LLVMProfileData", true, { "core", "support" } }, + { "remarks", "LLVMRemarks", true, { "bitstreamreader", "support" } }, + { "riscv", nullptr, true, { "riscvinfo", "riscvutils", "riscvdesc", "riscvasmparser", "riscvcodegen", "riscvdisassembler" } }, + { "riscvasmparser", "LLVMRISCVAsmParser", true, { "mc", "mcparser", "riscvdesc", "riscvinfo", "riscvutils", "support" } }, + { "riscvcodegen", "LLVMRISCVCodeGen", true, { "analysis", "asmprinter", "core", "codegen", "mc", "riscvdesc", "riscvinfo", "riscvutils", "selectiondag", "support", "target", "globalisel" } }, + { "riscvdesc", "LLVMRISCVDesc", true, { "mc", "riscvinfo", "riscvutils", "support" } }, + { "riscvdisassembler", "LLVMRISCVDisassembler", true, { "mcdisassembler", "riscvinfo", "support" } }, + { "riscvinfo", "LLVMRISCVInfo", true, { "support" } }, + { "riscvutils", "LLVMRISCVUtils", true, { "support" } }, + { "runtimedyld", "LLVMRuntimeDyld", true, { "mc", "object", "support" } }, + { "scalaropts", "LLVMScalarOpts", true, { "aggressiveinstcombine", "analysis", "core", "instcombine", "support", "transformutils" } }, + { "selectiondag", "LLVMSelectionDAG", true, { "analysis", "codegen", "core", "mc", "support", "target", "transformutils" } }, + { "support", "LLVMSupport", true, { "demangle" } }, + { "symbolize", "LLVMSymbolize", true, { "debuginfodwarf", "debuginfopdb", "object", "support", "demangle" } }, + { "tablegen", "LLVMTableGen", true, { "support" } }, + { "target", "LLVMTarget", true, { "analysis", "core", "mc", "support" } }, + { "testingsupport", "LLVMTestingSupport", false, { "support" } }, + { "textapi", "LLVMTextAPI", true, { "support", "binaryformat" } }, + { "transformutils", "LLVMTransformUtils", true, { "analysis", "core", "support" } }, + { "vectorize", "LLVMVectorize", true, { "analysis", "core", "support", "transformutils" } }, + { "windowsmanifest", "LLVMWindowsManifest", true, { "support" } }, + { "xray", "LLVMXRay", true, { "support", "object" } }, +}; -- 2.20.1