Index: llvm/CMakeLists.txt =================================================================== --- llvm/CMakeLists.txt +++ llvm/CMakeLists.txt @@ -713,22 +713,16 @@ ###### # LLVMBuild Integration # -# We use llvm-build to generate all the data required by the CMake based +# We use LLVM-Build.cmake to generate all the data required by the CMake based # build system in one swoop: # -# - We generate a file (a CMake fragment) in the object root which contains -# all the definitions that are required by CMake. +# - We set all the definitions that are required by CMake. # # - We generate the library table used by llvm-config. # -# - We generate the dependencies for the CMake fragment, so that we will -# automatically reconfigure ourselves. -set(LLVMBUILDTOOL "${LLVM_MAIN_SRC_DIR}/utils/llvm-build/llvm-build") set(LLVMCONFIGLIBRARYDEPENDENCIESINC "${LLVM_BINARY_DIR}/tools/llvm-config/LibraryDependencies.inc") -set(LLVMBUILDCMAKEFRAG - "${LLVM_BINARY_DIR}/LLVMBuild.cmake") # Create the list of optional components that are enabled if (LLVM_USE_INTEL_JITEVENTS) @@ -742,34 +736,11 @@ endif (LLVM_USE_PERF) message(STATUS "Constructing LLVMBuild project information") -execute_process( - COMMAND "${Python3_EXECUTABLE}" -B ${LLVMBUILDTOOL} - --native-target "${LLVM_NATIVE_ARCH}" - --enable-targets "${LLVM_TARGETS_TO_BUILD}" - --enable-optional-components "${LLVMOPTIONALCOMPONENTS}" - --write-library-table ${LLVMCONFIGLIBRARYDEPENDENCIESINC} - --write-cmake-fragment ${LLVMBUILDCMAKEFRAG} - OUTPUT_VARIABLE LLVMBUILDOUTPUT - ERROR_VARIABLE LLVMBUILDERRORS - OUTPUT_STRIP_TRAILING_WHITESPACE - ERROR_STRIP_TRAILING_WHITESPACE - RESULT_VARIABLE LLVMBUILDRESULT) - -# On Win32, CMake doesn't properly handle piping the default output/error -# streams into the GUI console. So, we explicitly catch and report them. -if( NOT "${LLVMBUILDOUTPUT}" STREQUAL "") - message(STATUS "llvm-build output: ${LLVMBUILDOUTPUT}") -endif() -if( NOT "${LLVMBUILDRESULT}" STREQUAL "0" ) - message(FATAL_ERROR - "Unexpected failure executing llvm-build: ${LLVMBUILDERRORS}") -endif() +include(LLVM-Build) +LLVMBuildLoad() +LLVMBuildGenerateCFragment(COMPONENTS ${LLVMBuildComponents} OUTPUT ${LLVMCONFIGLIBRARYDEPENDENCIESINC}) +LLVMBuildGenerateCMakeFragment(COMPONENTS ${LLVMBuildComponents}) -# Include the generated CMake fragment. This will define properties from the -# LLVMBuild files in a format which is easy to consume from CMake, and will add -# the dependencies so that CMake will reconfigure properly when the LLVMBuild -# files change. -include(${LLVMBUILDCMAKEFRAG}) ###### Index: llvm/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/LLVMBuild.cmake @@ -0,0 +1,8 @@ +LLVMBuildCommon( + SUBDIRECTORIES bindings lib projects +) +LLVMBuildComponent( + TYPE Group + NAME Miscellaneous + PARENT $ROOT +) Index: llvm/LLVMBuild.txt =================================================================== --- llvm/LLVMBuild.txt +++ /dev/null @@ -1,23 +0,0 @@ -;===- ./LLVMBuild.txt ------------------------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[common] -subdirectories = bindings docs examples lib projects tools utils - -[component_0] -type = Group -name = Miscellaneous -parent = $ROOT Index: llvm/bindings/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/bindings/LLVMBuild.cmake @@ -0,0 +1,5 @@ +LLVMBuildComponent( + TYPE Group + NAME Bindings + PARENT $ROOT +) Index: llvm/bindings/LLVMBuild.txt =================================================================== --- llvm/bindings/LLVMBuild.txt +++ /dev/null @@ -1,20 +0,0 @@ -;===- ./bindings/LLVMBuild.txt ---------------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Group -name = Bindings -parent = $ROOT Index: llvm/cmake/modules/LLVM-Build.cmake =================================================================== --- /dev/null +++ llvm/cmake/modules/LLVM-Build.cmake @@ -0,0 +1,316 @@ +# Declare directory hierarchy for LLVMBuild. +# Accepts a single multi-value-keyword SUBDIRECTORIES followed by any number +# of subdirectories, relative to CMAKE_CURRENT_LIST_DIR +function(LLVMBuildCommon) + cmake_parse_arguments(ARG "" "" "SUBDIRECTORIES" ${ARGN}) + foreach(subdirectory ${ARG_SUBDIRECTORIES}) + include(${CMAKE_CURRENT_LIST_DIR}/${subdirectory}/LLVMBuild.cmake) + endforeach() +endfunction() + +# Build a single component. Each component have the following mandatory +# single-value-keyword: +# +# TYPE provides the type of the component, as enumerated below. +# NAME provides the name of the component, used to refer to it in other +# components +# PARENT provides the ancestor of the component. $ROOT is a special +# value that represents the top of the tree component. +# +# --- +# +# A component of the `Group` type accepts no extra argument and exists purely +# to allow additional arbitrary structuring of the logical components tree. +# For example, one might define a Libraries group to hold all of the root +# library components. +# +# --- +# +# A component of the `Library` type defines an individual library which should +# be built from the source code in the component directory. It accepts the +# following optional single-value-keywords: +# +# LIBRARY_NAME provides the name to use for the actual library file on +# disk. If not given, the name is derived from the component +# name itself. +# ADD_TO_LIBRARY_GROUPS provides a list of the names of LibraryGroup +# components which this component is also part of. +# This allows nesting groups of components. For +# example, the X86 target might define a library +# group for all of the X86 components. That library +# group might then be included in the all-targets +# library group. +# INSTALLED states if this library is installed. Libraries that are not +# installed are not reported by llvm-config when it is run as +# part of a development directory. +# +# It also accepts the following optional multi-value-keyword: +# +# REQUIRED_LIBRARIES provides a list of the names of Library or LibraryGroup +# components which must also be linked in whenever this +# library is used. That is, the link time dependencies for +# this component. When tools are built, the build system +# will include the transitive closure of all REQUIRED_LIBRARIES +# for the components the tool needs +# +# --- +# +# A component of the `OptionalLibrary` type accepts the same keyword arguments +# has `Library`, but its parent is only set if it is part of the LLVMOPTIONALCOMPONENTS +# list. +# +# --- +# +# A component of the `LibraryGroup` type accepts the following optional keywords: +# +# ADD_TO_LIBRARY_GROUPS: see the `Library` type for a description of this keyword +# REQUIRED_LIBRARIES: see the `Library` type for a description of this keyword +# +# --- +# +# A component of the `TargetGroup` type accepts the following optional single-value-keyword: +# +# HAS_JIT states if this target supports JIT compilation (default: true). + +# It also accepts the same multi-value-keyword as the `LibraryGroup` type. +function(LLVMBuildComponent) + + cmake_parse_arguments(COMPONENT "" "TYPE;NAME;PARENT" "" ${ARGN}) + set_property(GLOBAL PROPERTY LLVMBUILD_TYPE_${COMPONENT_NAME} ${COMPONENT_TYPE}) + + if(COMPONENT_TYPE STREQUAL "Group") + set_property(GLOBAL PROPERTY LLVMBUILD_PARENT_${COMPONENT_NAME} ${COMPONENT_PARENT}) + cmake_parse_arguments(GRP "" "" "" ${COMPONENT_UNPARSED_ARGUMENTS}) + if(GRP_UNPARSED_ARGUMENTS) + message(SEND_ERROR "Unsupported arguments for ${COMPONENT_NAME}: ${GRP_UNPARSED_ARGUMENTS}") + endif() + + elseif(COMPONENT_TYPE STREQUAL "Library" OR COMPONENT_TYPE STREQUAL "OptionalLibrary") + # parse component specific arguments + cmake_parse_arguments(LIB + "" "LIBRARY_NAME;ADD_TO_LIBRARY_GROUPS;INSTALLED" "REQUIRED_LIBRARIES" + ${COMPONENT_UNPARSED_ARGUMENTS}) + # minimal argument checking + if(LIB_UNPARSED_ARGUMENTS) + message(SEND_ERROR "Unsupported arguments for ${COMPONENT_NAME}: ${LIB_UNPARSED_ARGUMENTS}") + endif() + # skip non specified optional libraries + if(COMPONENT_TYPE STREQUAL "OptionalLibrary" AND NOT ${COMPONENT_NAME} IN_LIST LLVMOPTIONALCOMPONENTS) + return() + endif() + # only do that now to orphan non-selected optional libraries + set_property(GLOBAL PROPERTY LLVMBUILD_PARENT_${COMPONENT_NAME} ${COMPONENT_PARENT}) + # sanitize arguments + if(NOT LIB_LIBRARY_NAME) + set(LIB_LIBRARY_NAME "${COMPONENT_NAME}") + endif() + + if(NOT DEFINED ${LIB_INSTALLED} OR ${LIB_INSTALLED}) + set(IsInstalled "true") + else() + set(IsInstalled "false") + endif() + + set_property(GLOBAL APPEND PROPERTY LLVMBUILD_COMPONENTS ${COMPONENT_NAME}) + set_property(GLOBAL PROPERTY LLVMBUILD_LIB_NAME_${COMPONENT_NAME} ${LIB_LIBRARY_NAME}) + set_property(GLOBAL PROPERTY LLVMBUILD_INSTALLED_${COMPONENT_NAME} ${IsInstalled}) + set_property(GLOBAL APPEND PROPERTY LLVMBUILD_LIB_DEPS_${COMPONENT_NAME} ${LIB_REQUIRED_LIBRARIES}) + if(LIB_ADD_TO_LIBRARY_GROUPS) + set_property(GLOBAL APPEND PROPERTY LLVMBUILD_LIB_DEPS_${LIB_ADD_TO_LIBRARY_GROUPS} ${COMPONENT_NAME}) + endif() + + elseif(COMPONENT_TYPE STREQUAL "LibraryGroup") + cmake_parse_arguments(LIBGROUP + "" "" "REQUIRED_LIBRARIES;ADD_TO_LIBRARY_GROUPS" + ${COMPONENT_UNPARSED_ARGUMENTS}) + if(LIBGROUP_UNPARSED_ARGUMENTS) + message(SEND_ERROR "Unsupported arguments for ${COMPONENT_NAME}: ${LIBGROUP_UNPARSED_ARGUMENTS}") + endif() + set_property(GLOBAL PROPERTY LLVMBUILD_PARENT_${COMPONENT_NAME} ${COMPONENT_PARENT}) + # special group handling + if(COMPONENT_NAME STREQUAL "all-targets") + if(LIBGROUP_REQUIRED_LIBRARIES OR LIBGROUP_ADD_TO_LIBRARY_GROUPS) + message(SEND_ERROR "Special component ${COMPONENT_NAME} must have empty properties") + endif() + list(APPEND LIBGROUP_REQUIRED_LIBRARIES ${LLVM_TARGETS_TO_BUILD}) + elseif(COMPONENT_NAME STREQUAL "Native") + if(LIBGROUP_REQUIRED_LIBRARIES OR LIBGROUP_ADD_TO_LIBRARY_GROUPS) + message(SEND_ERROR "Special component ${COMPONENT_NAME} must have empty properties") + endif() + list(APPEND LIBGROUP_REQUIRED_LIBRARIES ${LLVM_NATIVE_ARCH}) + elseif(COMPONENT_NAME STREQUAL "NativeCodeGen") + if(LIBGROUP_REQUIRED_LIBRARIES OR LIBGROUP_ADD_TO_LIBRARY_GROUPS) + message(SEND_ERROR "Special component ${COMPONENT_NAME} must have empty properties") + endif() + list(APPEND LIBGROUP_REQUIRED_LIBRARIES ${LLVM_NATIVE_ARCH}CodeGen) + elseif(COMPONENT_NAME STREQUAL "Engine") + if(LIBGROUP_REQUIRED_LIBRARIES OR LIBGROUP_ADD_TO_LIBRARY_GROUPS) + message(SEND_ERROR "Special component ${COMPONENT_NAME} must have empty properties") + endif() + # defered to second phase, when all components are known + endif() + + set_property(GLOBAL APPEND PROPERTY LLVMBUILD_COMPONENTS ${COMPONENT_NAME}) + set_property(GLOBAL PROPERTY LLVMBUILD_INSTALLED_${COMPONENT_NAME} true) + set_property(GLOBAL APPEND PROPERTY LLVMBUILD_LIB_DEPS_${COMPONENT_NAME} ${LIBGROUP_REQUIRED_LIBRARIES}) + if(LIBGROUP_ADD_TO_LIBRARY_GROUPS) + set_property(GLOBAL APPEND PROPERTY LLVMBUILD_LIB_DEPS_${LIBGROUP_ADD_TO_LIBRARY_GROUPS} ${COMPONENT_NAME}) + endif() + + elseif(COMPONENT_TYPE STREQUAL "TargetGroup") + cmake_parse_arguments(TGTGROUP + "" "HAS_JIT" "REQUIRED_LIBRARIES;ADD_TO_LIBRARY_GROUPS" + ${COMPONENT_UNPARSED_ARGUMENTS}) + if(NOT ${COMPONENT_NAME} IN_LIST LLVM_TARGETS_TO_BUILD) + return() + endif() + # only do that now to orphan non-selected architectures + set_property(GLOBAL PROPERTY LLVMBUILD_PARENT_${COMPONENT_NAME} ${COMPONENT_PARENT}) + if(NOT DEFINED TGTGROUP_HAS_JIT) + set(TGTGROUP_HAS_JIT "false") + endif() + set_property(GLOBAL APPEND PROPERTY LLVMBUILD_COMPONENTS ${COMPONENT_NAME}) + set_property(GLOBAL PROPERTY LLVMBUILD_HAS_JIT_${COMPONENT_NAME} ${TGTGROUP_HAS_JIT}) + set_property(GLOBAL PROPERTY LLVMBUILD_INSTALLED_${COMPONENT_NAME} true) + set_property(GLOBAL APPEND PROPERTY LLVMBUILD_LIB_DEPS_${COMPONENT_NAME} ${TGTGROUP_REQUIRED_LIBRARIES}) + if(TGTGROUP_ADD_TO_LIBRARY_GROUPS) + set_property(GLOBAL APPEND PROPERTY LLVMBUILD_LIB_DEPS_${TGTGROUP_ADD_TO_LIBRARY_GROUPS} ${COMPONENT_NAME}) + endif() + else() + message(SEND_ERROR "Unsupported component type ${COMPONENT_TYPE}") + endif() +endfunction() + +# Process the LLVMBuild.cmake hierachy, starting from `${LLVM_MAIN_SRC_DIR}/LLVMBuild.cmake` +# +# Sets `LLVMBuildComponents` to the list of live components of the component hierarchy (a component is live if it has $Root as ancestor). +# +# For each component named `component_name` in this list, and each of the component property named `property_name`, +# sets a global property named LLVMBUILD_LIB_${property_name}_${component_name} to the value of that property. +# +function(LLVMBuildLoad) + # Read the component info. + include(${LLVM_MAIN_SRC_DIR}/LLVMBuild.cmake) + + # Special handling for has_jit property. + get_property(llvmbuild_has_jit_native GLOBAL PROPERTY LLVMBUILD_HAS_JIT_${LLVM_NATIVE_ARCH}) + if(llvmbuild_has_jit_native) + set_property(GLOBAL APPEND PROPERTY LLVMBUILD_LIB_DEPS_Engine "MCJIT" "Native") + else() + set_property(GLOBAL APPEND PROPERTY LLVMBUILD_LIB_DEPS_Engine "Interpreter") + endif() + + # Compute live components a component is alive if its parent is alive. $ROOT is always alive. + get_property(llvmbuild_components GLOBAL PROPERTY LLVMBUILD_COMPONENTS) + foreach(llvmbuild_component ${llvmbuild_components}) + get_property(llvmbuild_parent GLOBAL PROPERTY LLVMBUILD_LIB_NAME_${llvmbuild_component}) + if(llvmbuild_componentname STREQUAL "all") + message(SEND_ERROR "Reserved component name ${llvmbuild_componentname}") + endif() + + set(llvmbuild_child ${llvmbuild_component}) + while(llvmbuild_child) + get_property(llvmbuild_parent GLOBAL PROPERTY LLVMBUILD_PARENT_${llvmbuild_child}) + if(llvmbuild_parent STREQUAL "$ROOT") + get_property(llvmbuild_type GLOBAL PROPERTY LLVMBUILD_TYPE_${llvmbuild_component}) + # Group components are no longer useful past this point + if(llvmbuild_type STREQUAL "Group") + break() + else() + list(APPEND llvmbuild_final_components ${llvmbuild_component}) + break() + endif() + else() + set(llvmbuild_child ${llvmbuild_parent}) + endif() + endwhile() + endforeach() + set(LLVMBuildComponents ${llvmbuild_final_components} PARENT_SCOPE) + + # Add the special `all` component + set_property(GLOBAL APPEND PROPERTY LLVMBUILD_LIB_DEPS_all ${LLVMBuildComponents}) + set_property(GLOBAL APPEND PROPERTY LLVMBUILD_INSTALLED_all true) + list(APPEND LLVMBuildComponents "all") + + +endfunction() + +# Generate C code in the file provided as OUTPUT that describes the properties +# of all components listed in COMPONENTS. This C code is suitable for inclusion +# in `llvm-config` +function(LLVMBuildGenerateCFragment) + cmake_parse_arguments(ARG "" "OUTPUT" "COMPONENTS" ${ARGN}) + # Write C header + ################# + list(LENGTH ARG_COMPONENTS llvmbuild_components_size) + file(WRITE ${ARG_OUTPUT} + " + 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[${llvmbuild_components_size}]; + } AvailableComponents[${llvmbuild_components_size}] = { + ") + + foreach(llvmbuild_component ${ARG_COMPONENTS}) + get_property(llvmbuild_libname GLOBAL PROPERTY LLVMBUILD_LIB_NAME_${llvmbuild_component}) + get_property(llvmbuild_installed GLOBAL PROPERTY LLVMBUILD_INSTALLED_${llvmbuild_component}) + get_property(llvmbuild_libdeps GLOBAL PROPERTY LLVMBUILD_LIB_DEPS_${llvmbuild_component}) + string(TOLOWER ${llvmbuild_component} llvmbuild_componentname) + + if(NOT llvmbuild_libname) + set(llvmbuild_llvmlibname nullptr) + string(TOLOWER ${llvmbuild_component} llvmbuild_libname) + else() + set(llvmbuild_llvmlibname "\"LLVM${llvmbuild_libname}\"") + string(TOLOWER ${llvmbuild_libname} llvmbuild_libname) + endif() + set(llvmbuild_clibdeps "") + foreach(llvmbuild_libdep ${llvmbuild_libdeps}) + get_property(llvmbuild_libdepname GLOBAL PROPERTY LLVMBUILD_LIB_NAME_${llvmbuild_libdep}) + if(NOT llvmbuild_libdepname) + string(TOLOWER ${llvmbuild_libdep} llvmbuild_clibdep) + else() + string(TOLOWER ${llvmbuild_libdepname} llvmbuild_clibdep) + endif() + list(APPEND llvmbuild_clibdeps ${llvmbuild_clibdep}) + endforeach() + list(TRANSFORM llvmbuild_clibdeps PREPEND "\"") + list(TRANSFORM llvmbuild_clibdeps APPEND "\"") + list(JOIN llvmbuild_clibdeps ", " llvmbuild_clibdeps_joint) + list(APPEND llvmbuild_centries "{ \"${llvmbuild_libname}\", ${llvmbuild_llvmlibname}, ${llvmbuild_installed}, {${llvmbuild_clibdeps_joint}} },\n") + endforeach() + list(SORT llvmbuild_centries) + foreach(llvmbuild_centry ${llvmbuild_centries}) + file(APPEND ${ARG_OUTPUT} "${llvmbuild_centry}") + endforeach() + file(APPEND ${ARG_OUTPUT} "};") +endfunction() + +# Set global property `LLVMBUILD_LIB_DEPS_LLVM${component_libname}` to the list +# of libraries component_libname` depends on, for each component listed in +# COMPONENTS. + +function(LLVMBuildGenerateCMakeFragment) + cmake_parse_arguments(ARG "" "" "COMPONENTS" ${ARGN}) + + foreach(llvmbuild_component ${ARG_COMPONENTS}) + get_property(llvmbuild_libname GLOBAL PROPERTY LLVMBUILD_LIB_NAME_${llvmbuild_component}) + if(llvmbuild_libname) + get_property(llvmbuild_libdeps GLOBAL PROPERTY LLVMBUILD_LIB_DEPS_${llvmbuild_component}) + foreach(llvmbuild_dep ${llvmbuild_libdeps}) + get_property(llvmbuild_depname GLOBAL PROPERTY LLVMBUILD_LIB_NAME_${llvmbuild_dep}) + set_property(GLOBAL APPEND PROPERTY LLVMBUILD_LIB_DEPS_LLVM${llvmbuild_libname} LLVM${llvmbuild_depname}) + endforeach() + endif() + endforeach() + +endfunction() Index: llvm/docs/CodingStandards.rst =================================================================== --- llvm/docs/CodingStandards.rst +++ llvm/docs/CodingStandards.rst @@ -749,7 +749,7 @@ A directory of header files (for example ``include/llvm/Foo``) defines a library (``Foo``). Dependencies between libraries are defined by the -``LLVMBuild.txt`` file in their implementation (``lib/Foo``). One library (both +``LLVMBuild.cmake`` file in their implementation (``lib/Foo``). One library (both its headers and implementation) should only use things from the libraries listed in its dependencies. Index: llvm/docs/GettingInvolved.rst =================================================================== --- llvm/docs/GettingInvolved.rst +++ llvm/docs/GettingInvolved.rst @@ -61,7 +61,6 @@ :hidden: Projects - LLVMBuild HowToReleaseLLVM Packaging ReleaseProcess @@ -74,10 +73,6 @@ tree) allow the project code to be located outside (or inside) the ``llvm/`` tree, while using LLVM header files and libraries. -:doc:`LLVMBuild` - Describes the LLVMBuild organization and files used by LLVM to specify - component descriptions. - :doc:`HowToReleaseLLVM` This is a guide to preparing LLVM releases. Most developers can ignore it. Index: llvm/docs/LLVMBuild.rst =================================================================== --- llvm/docs/LLVMBuild.rst +++ /dev/null @@ -1,323 +0,0 @@ -=============== -LLVMBuild Guide -=============== - -.. contents:: - :local: - -Introduction -============ - -This document describes the ``LLVMBuild`` organization and files which -we use to describe parts of the LLVM ecosystem. For description of -specific LLVMBuild related tools, please see the command guide. - -LLVM is designed to be a modular set of libraries which can be flexibly -mixed together in order to build a variety of tools, like compilers, -JITs, custom code generators, optimization passes, interpreters, and so -on. Related projects in the LLVM system like Clang and LLDB also tend to -follow this philosophy. - -In order to support this usage style, LLVM has a fairly strict structure -as to how the source code and various components are organized. The -``LLVMBuild.txt`` files are the explicit specification of that -structure, and are used by the build systems and other tools in order to -develop the LLVM project. - -Project Organization -==================== - -The source code for LLVM projects using the LLVMBuild system (LLVM, -Clang, and LLDB) is organized into *components*, which define the -separate pieces of functionality that make up the project. These -projects may consist of many libraries, associated tools, build tools, -or other utility tools (for example, testing tools). - -For the most part, the project contents are organized around defining -one main component per each subdirectory. Each such directory contains -an ``LLVMBuild.txt`` which contains the component definitions. - -The component descriptions for the project as a whole are automatically -gathered by the LLVMBuild tools. The tools automatically traverse the -source directory structure to find all of the component description -files. NOTE: For performance/sanity reasons, we only traverse into -subdirectories when the parent itself contains an ``LLVMBuild.txt`` -description file. - -Build Integration -================= - -The LLVMBuild files themselves are just a declarative way to describe -the project structure. The actual building of the LLVM project is -handled by another build system (See: :doc:`CMake `). - -The build system implementation will load the relevant contents of the -LLVMBuild files and use that to drive the actual project build. -Typically, the build system will only need to load this information at -"configure" time, and use it to generate native information. Build -systems will also handle automatically reconfiguring their information -when the contents of the ``LLVMBuild.txt`` files change. - -Developers generally are not expected to need to be aware of the details -of how the LLVMBuild system is integrated into their build. Ideally, -LLVM developers who are not working on the build system would only ever -need to modify the contents of the ``LLVMBuild.txt`` description files -(although we have not reached this goal yet). - -For more information on the utility tool we provide to help interfacing -with the build system, please see the :doc:`llvm-build -` documentation. - -Component Overview -================== - -As mentioned earlier, LLVM projects are organized into logical -*components*. Every component is typically grouped into its own -subdirectory. Generally, a component is organized around a coherent -group of sources which have some kind of clear API separation from other -parts of the code. - -LLVM primarily uses the following types of components: - -- *Libraries* - Library components define a distinct API which can be - independently linked into LLVM client applications. Libraries typically - have private and public header files, and may specify a link of required - libraries that they build on top of. -- *Build Tools* - Build tools are applications which are designed to be run - as part of the build process (typically to generate other source files). - Currently, LLVM uses one main build tool called :doc:`TableGen/index` - to generate a variety of source files. -- *Tools* - Command line applications which are built using the LLVM - component libraries. Most LLVM tools are small and are primarily - frontends to the library interfaces. - -Components are described using ``LLVMBuild.txt`` files in the directories -that define the component. See the `LLVMBuild Format Reference`_ section -for information on the exact format of these files. - -LLVMBuild Format Reference -========================== - -LLVMBuild files are written in a simple variant of the INI or configuration -file format (`Wikipedia entry`_). The format defines a list of sections -each of which may contain some number of properties. A simple example of -the file format is below: - -.. _Wikipedia entry: http://en.wikipedia.org/wiki/INI_file - -.. code-block:: ini - - ; Comments start with a semi-colon. - - ; Sections are declared using square brackets. - [component_0] - - ; Properties are declared using '=' and are contained in the previous section. - ; - ; We support simple string and boolean scalar values and list values, where - ; items are separated by spaces. There is no support for quoting, and so - ; property values may not contain spaces. - property_name = property_value - list_property_name = value_1 value_2 ... value_n - boolean_property_name = 1 (or 0) - -LLVMBuild files are expected to define a strict set of sections and -properties. A typical component description file for a library -component would look like the following example: - -.. code-block:: ini - - [component_0] - type = Library - name = Linker - parent = Libraries - required_libraries = Archive BitReader Core Support TransformUtils - -A full description of the exact sections and properties which are -allowed follows. - -Each file may define exactly one common component, named ``common``. The -common component may define the following properties: - -- ``subdirectories`` **[optional]** - - If given, a list of the names of the subdirectories from the current - subpath to search for additional LLVMBuild files. - -Each file may define multiple components. Each component is described by a -section who name starts with ``component``. The remainder of the section -name is ignored, but each section name must be unique. Typically components -are just number in order for files with multiple components -(``component_0``, ``component_1``, and so on). - -.. warning:: - - Section names not matching this format (or the ``common`` section) are - currently unused and are disallowed. - -Every component is defined by the properties in the section. The exact -list of properties that are allowed depends on the component type. -Components **may not** define any properties other than those expected -by the component type. - -Every component must define the following properties: - -- ``type`` **[required]** - - The type of the component. Supported component types are detailed - below. Most components will define additional properties which may be - required or optional. - -- ``name`` **[required]** - - The name of the component. Names are required to be unique across the - entire project. - -- ``parent`` **[required]** - - The name of the logical parent of the component. Components are - organized into a logical tree to make it easier to navigate and - organize groups of components. The parents have no semantics as far - as the project build is concerned, however. Typically, the parent - will be the main component of the parent directory. - - Components may reference the root pseudo component using ``$ROOT`` to - indicate they should logically be grouped at the top-level. - -Components may define the following properties: - -- ``dependencies`` **[optional]** - - If specified, a list of names of components which *must* be built - prior to this one. This should only be exactly those components which - produce some tool or source code required for building the component. - - .. note:: - - ``Group`` and ``LibraryGroup`` components have no semantics for the - actual build, and are not allowed to specify dependencies. - -The following section lists the available component types, as well as -the properties which are associated with that component. - -- ``type = Group`` - - Group components exist purely to allow additional arbitrary structuring - of the logical components tree. For example, one might define a - ``Libraries`` group to hold all of the root library components. - - ``Group`` components have no additionally properties. - -- ``type = Library`` - - Library components define an individual library which should be built - from the source code in the component directory. - - Components with this type use the following properties: - - - ``library_name`` **[optional]** - - If given, the name to use for the actual library file on disk. If - not given, the name is derived from the component name itself. - - - ``required_libraries`` **[optional]** - - If given, a list of the names of ``Library`` or ``LibraryGroup`` - components which must also be linked in whenever this library is - used. That is, the link time dependencies for this component. When - tools are built, the build system will include the transitive closure - of all ``required_libraries`` for the components the tool needs. - - - ``add_to_library_groups`` **[optional]** - - If given, a list of the names of ``LibraryGroup`` components which - this component is also part of. This allows nesting groups of - components. For example, the ``X86`` target might define a library - group for all of the ``X86`` components. That library group might - then be included in the ``all-targets`` library group. - - - ``installed`` **[optional]** **[boolean]** - - Whether this library is installed. Libraries that are not installed - are only reported by ``llvm-config`` when it is run as part of a - development directory. - -- ``type = LibraryGroup`` - - ``LibraryGroup`` components are a mechanism to allow easy definition of - useful sets of related components. In particular, we use them to easily - specify things like "all targets", or "all assembly printers". - - Components with this type use the following properties: - - - ``required_libraries`` **[optional]** - - See the ``Library`` type for a description of this property. - - - ``add_to_library_groups`` **[optional]** - - See the ``Library`` type for a description of this property. - -- ``type = TargetGroup`` - - ``TargetGroup`` components are an extension of ``LibraryGroup``\s, - specifically for defining LLVM targets (which are handled specially in a - few places). - - The name of the component should always be the name of the target. - - Components with this type use the ``LibraryGroup`` properties in - addition to: - - - ``has_asmparser`` **[optional]** **[boolean]** - - Whether this target defines an assembly parser. - - - ``has_asmprinter`` **[optional]** **[boolean]** - - Whether this target defines an assembly printer. - - - ``has_disassembler`` **[optional]** **[boolean]** - - Whether this target defines a disassembler. - - - ``has_jit`` **[optional]** **[boolean]** - - Whether this target supports JIT compilation. - -- ``type = Tool`` - - ``Tool`` components define standalone command line tools which should be - built from the source code in the component directory and linked. - - Components with this type use the following properties: - - - ``required_libraries`` **[optional]** - - If given, a list of the names of ``Library`` or ``LibraryGroup`` - components which this tool is required to be linked with. - - .. note:: - - The values should be the component names, which may not always - match up with the actual library names on disk. - - Build systems are expected to properly include all of the libraries - required by the linked components (i.e., the transitive closure of - ``required_libraries``). - - Build systems are also expected to understand that those library - components must be built prior to linking -- they do not also need - to be listed under ``dependencies``. - -- ``type = BuildTool`` - - ``BuildTool`` components are like ``Tool`` components, except that the - tool is supposed to be built for the platform where the build is running - (instead of that platform being targeted). Build systems are expected - to handle the fact that required libraries may need to be built for - multiple platforms in order to be able to link this tool. - - ``BuildTool`` components currently use the exact same properties as - ``Tool`` components, the type distinction is only used to differentiate - what the tool is built for. Index: llvm/docs/LLVMBuild.txt =================================================================== --- llvm/docs/LLVMBuild.txt +++ /dev/null @@ -1,20 +0,0 @@ -;===- ./docs/LLVMBuild.txt -------------------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; https://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Group -name = Docs -parent = $ROOT Index: llvm/docs/WritingAnLLVMNewPMPass.rst =================================================================== --- llvm/docs/WritingAnLLVMNewPMPass.rst +++ llvm/docs/WritingAnLLVMNewPMPass.rst @@ -48,7 +48,7 @@ First, configure and build LLVM as described in :doc:`GettingStarted`. Next, we will reuse an existing directory (creating a new directory involves -modifying more ``CMakeLists.txt``s and ``LLVMBuild.txt``s than we want). For +modifying more ``CMakeLists.txt``s and ``LLVMBuild.cmake``s than we want). For this example, we'll use ``llvm/lib/Transforms/HelloNew/HelloWorld.cpp``, which has already been created. If you'd like to create your own pass, add a new source file into ``llvm/lib/Transforms/HelloNew/CMakeLists.txt`` under Index: llvm/examples/LLVMBuild.txt =================================================================== --- llvm/examples/LLVMBuild.txt +++ /dev/null @@ -1,20 +0,0 @@ -;===- ./examples/LLVMBuild.txt ---------------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Group -name = Examples -parent = $ROOT Index: llvm/lib/Analysis/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Analysis/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE Library + NAME Analysis + PARENT Libraries + REQUIRED_LIBRARIES BinaryFormat Core Object ProfileData Support +) Index: llvm/lib/Analysis/LLVMBuild.txt =================================================================== --- llvm/lib/Analysis/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./lib/Analysis/LLVMBuild.txt -----------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = Analysis -parent = Libraries -required_libraries = BinaryFormat Core Object ProfileData Support Index: llvm/lib/AsmParser/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/AsmParser/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE Library + NAME AsmParser + PARENT Libraries + REQUIRED_LIBRARIES BinaryFormat Core Support +) Index: llvm/lib/AsmParser/LLVMBuild.txt =================================================================== --- llvm/lib/AsmParser/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./lib/AsmParser/LLVMBuild.txt ----------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = AsmParser -parent = Libraries -required_libraries = BinaryFormat Core Support Index: llvm/lib/BinaryFormat/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/BinaryFormat/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE Library + NAME BinaryFormat + PARENT Libraries + REQUIRED_LIBRARIES Support +) Index: llvm/lib/BinaryFormat/LLVMBuild.txt =================================================================== --- llvm/lib/BinaryFormat/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./lib/BinaryFormat/LLVMBuild.txt -------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = BinaryFormat -parent = Libraries -required_libraries = Support Index: llvm/lib/Bitcode/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Bitcode/LLVMBuild.cmake @@ -0,0 +1,8 @@ +LLVMBuildCommon( + SUBDIRECTORIES Reader Writer +) +LLVMBuildComponent( + TYPE Group + NAME Bitcode + PARENT Libraries +) Index: llvm/lib/Bitcode/LLVMBuild.txt =================================================================== --- llvm/lib/Bitcode/LLVMBuild.txt +++ /dev/null @@ -1,23 +0,0 @@ -;===- ./lib/Bitcode/LLVMBuild.txt ------------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[common] -subdirectories = Reader Writer - -[component_0] -type = Group -name = Bitcode -parent = Libraries Index: llvm/lib/Bitcode/Reader/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Bitcode/Reader/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE Library + NAME BitReader + PARENT Bitcode + REQUIRED_LIBRARIES BitstreamReader Core Support +) Index: llvm/lib/Bitcode/Reader/LLVMBuild.txt =================================================================== --- llvm/lib/Bitcode/Reader/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./lib/Bitcode/Reader/LLVMBuild.txt -----------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = BitReader -parent = Bitcode -required_libraries = BitstreamReader Core Support Index: llvm/lib/Bitcode/Writer/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Bitcode/Writer/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE Library + NAME BitWriter + PARENT Bitcode + REQUIRED_LIBRARIES Analysis Core MC Object Support +) Index: llvm/lib/Bitcode/Writer/LLVMBuild.txt =================================================================== --- llvm/lib/Bitcode/Writer/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./lib/Bitcode/Writer/LLVMBuild.txt -----------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = BitWriter -parent = Bitcode -required_libraries = Analysis Core MC Object Support Index: llvm/lib/Bitstream/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Bitstream/LLVMBuild.cmake @@ -0,0 +1,8 @@ +LLVMBuildCommon( + SUBDIRECTORIES Reader +) +LLVMBuildComponent( + TYPE Group + NAME Bitstream + PARENT Libraries +) Index: llvm/lib/Bitstream/LLVMBuild.txt =================================================================== --- llvm/lib/Bitstream/LLVMBuild.txt +++ /dev/null @@ -1,23 +0,0 @@ -;===- ./lib/Bitstream/LLVMBuild.txt ----------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[common] -subdirectories = Reader - -[component_0] -type = Group -name = Bitstream -parent = Libraries Index: llvm/lib/Bitstream/Reader/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Bitstream/Reader/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE Library + NAME BitstreamReader + PARENT Bitstream + REQUIRED_LIBRARIES Support +) Index: llvm/lib/Bitstream/Reader/LLVMBuild.txt =================================================================== --- llvm/lib/Bitstream/Reader/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./lib/Bitstream/Reader/LLVMBuild.txt ---------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = BitstreamReader -parent = Bitstream -required_libraries = Support Index: llvm/lib/CodeGen/AsmPrinter/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/CodeGen/AsmPrinter/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE Library + NAME AsmPrinter + PARENT Libraries + REQUIRED_LIBRARIES Analysis BinaryFormat CodeGen Core DebugInfoCodeView DebugInfoDWARF DebugInfoMSF MC MCParser Remarks Support Target +) Index: llvm/lib/CodeGen/AsmPrinter/LLVMBuild.txt =================================================================== --- llvm/lib/CodeGen/AsmPrinter/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./lib/CodeGen/AsmPrinter/LLVMBuild.txt -------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = AsmPrinter -parent = Libraries -required_libraries = Analysis BinaryFormat CodeGen Core DebugInfoCodeView DebugInfoDWARF DebugInfoMSF MC MCParser Remarks Support Target Index: llvm/lib/CodeGen/GlobalISel/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/CodeGen/GlobalISel/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE Library + NAME GlobalISel + PARENT CodeGen + REQUIRED_LIBRARIES Analysis CodeGen Core MC SelectionDAG Support Target TransformUtils +) Index: llvm/lib/CodeGen/GlobalISel/LLVMBuild.txt =================================================================== --- llvm/lib/CodeGen/GlobalISel/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./lib/CodeGen/GlobalISel/LLVMBuild.txt -----------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = GlobalISel -parent = CodeGen -required_libraries = Analysis CodeGen Core MC SelectionDAG Support Target TransformUtils Index: llvm/lib/CodeGen/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/CodeGen/LLVMBuild.cmake @@ -0,0 +1,9 @@ +LLVMBuildCommon( + SUBDIRECTORIES AsmPrinter SelectionDAG MIRParser GlobalISel +) +LLVMBuildComponent( + TYPE Library + NAME CodeGen + PARENT Libraries + REQUIRED_LIBRARIES Analysis BitReader BitWriter Core MC ProfileData Scalar Support Target TransformUtils +) Index: llvm/lib/CodeGen/LLVMBuild.txt =================================================================== --- llvm/lib/CodeGen/LLVMBuild.txt +++ /dev/null @@ -1,24 +0,0 @@ -;===- ./lib/CodeGen/LLVMBuild.txt ------------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[common] -subdirectories = AsmPrinter SelectionDAG MIRParser GlobalISel - -[component_0] -type = Library -name = CodeGen -parent = Libraries -required_libraries = Analysis BitReader BitWriter Core MC ProfileData Scalar Support Target TransformUtils Index: llvm/lib/CodeGen/MIRParser/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/CodeGen/MIRParser/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE Library + NAME MIRParser + PARENT CodeGen + REQUIRED_LIBRARIES AsmParser BinaryFormat CodeGen Core MC Support Target +) Index: llvm/lib/CodeGen/MIRParser/LLVMBuild.txt =================================================================== --- llvm/lib/CodeGen/MIRParser/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./lib/CodeGen/MIRParser/LLVMBuild.txt --------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = MIRParser -parent = CodeGen -required_libraries = AsmParser BinaryFormat CodeGen Core MC Support Target Index: llvm/lib/CodeGen/SelectionDAG/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/CodeGen/SelectionDAG/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE Library + NAME SelectionDAG + PARENT CodeGen + REQUIRED_LIBRARIES Analysis CodeGen Core MC Support Target TransformUtils +) Index: llvm/lib/CodeGen/SelectionDAG/LLVMBuild.txt =================================================================== --- llvm/lib/CodeGen/SelectionDAG/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./lib/CodeGen/SelectionDAG/LLVMBuild.txt -----------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = SelectionDAG -parent = CodeGen -required_libraries = Analysis CodeGen Core MC Support Target TransformUtils Index: llvm/lib/DWARFLinker/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/DWARFLinker/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE Library + NAME DWARFLinker + PARENT Libraries + REQUIRED_LIBRARIES DebugInfoDWARF AsmPrinter CodeGen MC Object Support +) Index: llvm/lib/DWARFLinker/LLVMBuild.txt =================================================================== --- llvm/lib/DWARFLinker/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./lib/DWARFLinker/LLVMBuild.txt ---------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = DWARFLinker -parent = Libraries -required_libraries = DebugInfoDWARF AsmPrinter CodeGen MC Object Support Index: llvm/lib/DebugInfo/CodeView/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/DebugInfo/CodeView/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE Library + NAME DebugInfoCodeView + PARENT DebugInfo + REQUIRED_LIBRARIES Support DebugInfoMSF +) Index: llvm/lib/DebugInfo/CodeView/LLVMBuild.txt =================================================================== --- llvm/lib/DebugInfo/CodeView/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./lib/DebugInfo/CodeView/LLVMBuild.txt -------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = DebugInfoCodeView -parent = DebugInfo -required_libraries = Support DebugInfoMSF Index: llvm/lib/DebugInfo/DWARF/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/DebugInfo/DWARF/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE Library + NAME DebugInfoDWARF + PARENT DebugInfo + REQUIRED_LIBRARIES BinaryFormat Object MC Support +) Index: llvm/lib/DebugInfo/DWARF/LLVMBuild.txt =================================================================== --- llvm/lib/DebugInfo/DWARF/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./lib/DebugInfo/DWARF/LLVMBuild.txt ----------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = DebugInfoDWARF -parent = DebugInfo -required_libraries = BinaryFormat Object MC Support Index: llvm/lib/DebugInfo/GSYM/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/DebugInfo/GSYM/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE Library + NAME DebugInfoGSYM + PARENT DebugInfo + REQUIRED_LIBRARIES MC Object Support DebugInfoDWARF +) Index: llvm/lib/DebugInfo/GSYM/LLVMBuild.txt =================================================================== --- llvm/lib/DebugInfo/GSYM/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./lib/DebugInfo/GSYM/LLVMBuild.txt ----------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = DebugInfoGSYM -parent = DebugInfo -required_libraries = MC Object Support DebugInfoDWARF Index: llvm/lib/DebugInfo/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/DebugInfo/LLVMBuild.cmake @@ -0,0 +1,8 @@ +LLVMBuildCommon( + SUBDIRECTORIES DWARF GSYM MSF CodeView PDB Symbolize +) +LLVMBuildComponent( + TYPE Group + NAME DebugInfo + PARENT $ROOT +) Index: llvm/lib/DebugInfo/LLVMBuild.txt =================================================================== --- llvm/lib/DebugInfo/LLVMBuild.txt +++ /dev/null @@ -1,23 +0,0 @@ -;===- ./lib/DebugInfo/LLVMBuild.txt ----------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[common] -subdirectories = DWARF GSYM MSF CodeView PDB Symbolize - -[component_0] -type = Group -name = DebugInfo -parent = $ROOT Index: llvm/lib/DebugInfo/MSF/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/DebugInfo/MSF/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE Library + NAME DebugInfoMSF + PARENT DebugInfo + REQUIRED_LIBRARIES Support +) Index: llvm/lib/DebugInfo/MSF/LLVMBuild.txt =================================================================== --- llvm/lib/DebugInfo/MSF/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./lib/DebugInfo/MSF/LLVMBuild.txt -------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = DebugInfoMSF -parent = DebugInfo -required_libraries = Support Index: llvm/lib/DebugInfo/PDB/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/DebugInfo/PDB/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE Library + NAME DebugInfoPDB + PARENT DebugInfo + REQUIRED_LIBRARIES BinaryFormat Object Support DebugInfoCodeView DebugInfoMSF +) Index: llvm/lib/DebugInfo/PDB/LLVMBuild.txt =================================================================== --- llvm/lib/DebugInfo/PDB/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/DebugInfo/PDB/LLVMBuild.txt ------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = DebugInfoPDB -parent = DebugInfo -required_libraries = BinaryFormat Object Support DebugInfoCodeView DebugInfoMSF - Index: llvm/lib/DebugInfo/Symbolize/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/DebugInfo/Symbolize/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE Library + NAME Symbolize + PARENT DebugInfo + REQUIRED_LIBRARIES DebugInfoDWARF DebugInfoPDB Object Support Demangle +) Index: llvm/lib/DebugInfo/Symbolize/LLVMBuild.txt =================================================================== --- llvm/lib/DebugInfo/Symbolize/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./lib/DebugInfo/Symbolize/LLVMBuild.txt ------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = Symbolize -parent = DebugInfo -required_libraries = DebugInfoDWARF DebugInfoPDB Object Support Demangle Index: llvm/lib/Demangle/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Demangle/LLVMBuild.cmake @@ -0,0 +1,5 @@ +LLVMBuildComponent( + TYPE Library + NAME Demangle + PARENT Libraries +) Index: llvm/lib/Demangle/LLVMBuild.txt =================================================================== --- llvm/lib/Demangle/LLVMBuild.txt +++ /dev/null @@ -1,20 +0,0 @@ -;===- ./lib/Support/LLVMBuild.txt ------------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = Demangle -parent = Libraries Index: llvm/lib/ExecutionEngine/IntelJITEvents/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/ExecutionEngine/IntelJITEvents/LLVMBuild.cmake @@ -0,0 +1,8 @@ +LLVMBuildCommon( +) +LLVMBuildComponent( + TYPE OptionalLibrary + NAME IntelJITEvents + PARENT ExecutionEngine + REQUIRED_LIBRARIES CodeGen Core DebugInfoDWARF Support Object ExecutionEngine +) Index: llvm/lib/ExecutionEngine/IntelJITEvents/LLVMBuild.txt =================================================================== --- llvm/lib/ExecutionEngine/IntelJITEvents/LLVMBuild.txt +++ /dev/null @@ -1,23 +0,0 @@ -;===- ./lib/ExecutionEngine/JITProfileAmplifier/LLVMBuild.txt --*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[common] - -[component_0] -type = OptionalLibrary -name = IntelJITEvents -parent = ExecutionEngine -required_libraries = CodeGen Core DebugInfoDWARF Support Object ExecutionEngine Index: llvm/lib/ExecutionEngine/Interpreter/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/ExecutionEngine/Interpreter/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE Library + NAME Interpreter + PARENT ExecutionEngine + REQUIRED_LIBRARIES CodeGen Core ExecutionEngine Support +) Index: llvm/lib/ExecutionEngine/Interpreter/LLVMBuild.txt =================================================================== --- llvm/lib/ExecutionEngine/Interpreter/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./lib/ExecutionEngine/Interpreter/LLVMBuild.txt ----------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = Interpreter -parent = ExecutionEngine -required_libraries = CodeGen Core ExecutionEngine Support Index: llvm/lib/ExecutionEngine/JITLink/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/ExecutionEngine/JITLink/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE Library + NAME JITLink + PARENT ExecutionEngine + REQUIRED_LIBRARIES BinaryFormat Object Support +) Index: llvm/lib/ExecutionEngine/JITLink/LLVMBuild.txt =================================================================== --- llvm/lib/ExecutionEngine/JITLink/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===----- ./lib/ExecutionEngine/JTILink/LLVMBuild.txt ----------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = JITLink -parent = ExecutionEngine -required_libraries = BinaryFormat Object Support Index: llvm/lib/ExecutionEngine/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/ExecutionEngine/LLVMBuild.cmake @@ -0,0 +1,9 @@ +LLVMBuildCommon( + SUBDIRECTORIES Interpreter MCJIT JITLink RuntimeDyld IntelJITEvents OProfileJIT Orc OrcError PerfJITEvents +) +LLVMBuildComponent( + TYPE Library + NAME ExecutionEngine + PARENT Libraries + REQUIRED_LIBRARIES Core MC Object RuntimeDyld Support Target +) Index: llvm/lib/ExecutionEngine/LLVMBuild.txt =================================================================== --- llvm/lib/ExecutionEngine/LLVMBuild.txt +++ /dev/null @@ -1,25 +0,0 @@ -;===- ./lib/ExecutionEngine/LLVMBuild.txt ----------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[common] -subdirectories = Interpreter MCJIT JITLink RuntimeDyld IntelJITEvents - OProfileJIT Orc OrcError PerfJITEvents - -[component_0] -type = Library -name = ExecutionEngine -parent = Libraries -required_libraries = Core MC Object RuntimeDyld Support Target Index: llvm/lib/ExecutionEngine/MCJIT/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/ExecutionEngine/MCJIT/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE Library + NAME MCJIT + PARENT ExecutionEngine + REQUIRED_LIBRARIES Core ExecutionEngine Object RuntimeDyld Support Target +) Index: llvm/lib/ExecutionEngine/MCJIT/LLVMBuild.txt =================================================================== --- llvm/lib/ExecutionEngine/MCJIT/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./lib/ExecutionEngine/MCJIT/LLVMBuild.txt ----------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = MCJIT -parent = ExecutionEngine -required_libraries = Core ExecutionEngine Object RuntimeDyld Support Target Index: llvm/lib/ExecutionEngine/OProfileJIT/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/ExecutionEngine/OProfileJIT/LLVMBuild.cmake @@ -0,0 +1,8 @@ +LLVMBuildCommon( +) +LLVMBuildComponent( + TYPE OptionalLibrary + NAME OProfileJIT + PARENT ExecutionEngine + REQUIRED_LIBRARIES DebugInfoDWARF Support Object ExecutionEngine +) Index: llvm/lib/ExecutionEngine/OProfileJIT/LLVMBuild.txt =================================================================== --- llvm/lib/ExecutionEngine/OProfileJIT/LLVMBuild.txt +++ /dev/null @@ -1,23 +0,0 @@ -;===- ./lib/ExecutionEngine/OProfileJIT/LLVMBuild.txt ----------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[common] - -[component_0] -type = OptionalLibrary -name = OProfileJIT -parent = ExecutionEngine -required_libraries = DebugInfoDWARF Support Object ExecutionEngine Index: llvm/lib/ExecutionEngine/Orc/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/ExecutionEngine/Orc/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE Library + NAME OrcJIT + PARENT ExecutionEngine + REQUIRED_LIBRARIES Core ExecutionEngine JITLink Object OrcError MC Passes RuntimeDyld Support Target TransformUtils +) Index: llvm/lib/ExecutionEngine/Orc/LLVMBuild.txt =================================================================== --- llvm/lib/ExecutionEngine/Orc/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/ExecutionEngine/Orc/LLVMBuild.txt ----------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = OrcJIT -parent = ExecutionEngine -required_libraries = Core ExecutionEngine JITLink Object OrcError MC Passes - RuntimeDyld Support Target TransformUtils Index: llvm/lib/ExecutionEngine/OrcError/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/ExecutionEngine/OrcError/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE Library + NAME OrcError + PARENT ExecutionEngine + REQUIRED_LIBRARIES Support +) Index: llvm/lib/ExecutionEngine/OrcError/LLVMBuild.txt =================================================================== --- llvm/lib/ExecutionEngine/OrcError/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./lib/ExecutionEngine/OrcError/LLVMBuild.txt -------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = OrcError -parent = ExecutionEngine -required_libraries = Support Index: llvm/lib/ExecutionEngine/PerfJITEvents/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/ExecutionEngine/PerfJITEvents/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE OptionalLibrary + NAME PerfJITEvents + PARENT ExecutionEngine + REQUIRED_LIBRARIES CodeGen Core DebugInfoDWARF ExecutionEngine Object Support +) Index: llvm/lib/ExecutionEngine/PerfJITEvents/LLVMBuild.txt =================================================================== --- llvm/lib/ExecutionEngine/PerfJITEvents/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./lib/ExecutionEngine/PerfJITEvents/LLVMBuild.txt ----------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = OptionalLibrary -name = PerfJITEvents -parent = ExecutionEngine -required_libraries = CodeGen Core DebugInfoDWARF ExecutionEngine Object Support Index: llvm/lib/ExecutionEngine/RuntimeDyld/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/ExecutionEngine/RuntimeDyld/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE Library + NAME RuntimeDyld + PARENT ExecutionEngine + REQUIRED_LIBRARIES Core MC Object Support +) Index: llvm/lib/ExecutionEngine/RuntimeDyld/LLVMBuild.txt =================================================================== --- llvm/lib/ExecutionEngine/RuntimeDyld/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./lib/ExecutionEngine/RuntimeDyld/LLVMBuild.txt ----------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = RuntimeDyld -parent = ExecutionEngine -required_libraries = Core MC Object Support Index: llvm/lib/Extensions/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Extensions/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE Library + NAME Extensions + PARENT Libraries + REQUIRED_LIBRARIES Support +) Index: llvm/lib/Extensions/LLVMBuild.txt =================================================================== --- llvm/lib/Extensions/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./lib/Extensions/LLVMBuild.txt -------------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = Extensions -parent = Libraries -required_libraries = Support Index: llvm/lib/Frontend/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Frontend/LLVMBuild.cmake @@ -0,0 +1,8 @@ +LLVMBuildCommon( + SUBDIRECTORIES OpenMP +) +LLVMBuildComponent( + TYPE Group + NAME Frontend + PARENT Libraries +) Index: llvm/lib/Frontend/LLVMBuild.txt =================================================================== --- llvm/lib/Frontend/LLVMBuild.txt +++ /dev/null @@ -1,23 +0,0 @@ -;===- ./lib/Frontend/LLVMBuild.txt -----------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[common] -subdirectories = OpenMP - -[component_0] -type = Group -name = Frontend -parent = Libraries Index: llvm/lib/Frontend/OpenMP/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Frontend/OpenMP/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE Library + NAME FrontendOpenMP + PARENT Frontend + REQUIRED_LIBRARIES Core Support TransformUtils +) Index: llvm/lib/Frontend/OpenMP/LLVMBuild.txt =================================================================== --- llvm/lib/Frontend/OpenMP/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./lib/Frontend/OpenMP/LLVMBuild.txt ----------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = FrontendOpenMP -parent = Frontend -required_libraries = Core Support TransformUtils Index: llvm/lib/FuzzMutate/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/FuzzMutate/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE Library + NAME FuzzMutate + PARENT Libraries + REQUIRED_LIBRARIES Analysis BitReader BitWriter Core Scalar Support Target +) Index: llvm/lib/FuzzMutate/LLVMBuild.txt =================================================================== --- llvm/lib/FuzzMutate/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./lib/FuzzMutate/LLVMBuild.txt ---------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = FuzzMutate -parent = Libraries -required_libraries = Analysis BitReader BitWriter Core Scalar Support Target Index: llvm/lib/IR/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/IR/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE Library + NAME Core + PARENT Libraries + REQUIRED_LIBRARIES BinaryFormat Remarks Support +) Index: llvm/lib/IR/LLVMBuild.txt =================================================================== --- llvm/lib/IR/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./lib/IR/LLVMBuild.txt -----------------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = Core -parent = Libraries -required_libraries = BinaryFormat Remarks Support Index: llvm/lib/IRReader/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/IRReader/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE Library + NAME IRReader + PARENT Libraries + REQUIRED_LIBRARIES AsmParser BitReader Core Support +) Index: llvm/lib/IRReader/LLVMBuild.txt =================================================================== --- llvm/lib/IRReader/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./lib/IRReader/LLVMBuild.txt -----------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = IRReader -parent = Libraries -required_libraries = AsmParser BitReader Core Support Index: llvm/lib/InterfaceStub/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/InterfaceStub/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE Library + NAME InterfaceStub + PARENT Libraries + REQUIRED_LIBRARIES Object Support +) Index: llvm/lib/InterfaceStub/LLVMBuild.txt =================================================================== --- llvm/lib/InterfaceStub/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./lib/InterfaceStub/LLVMBuild.txt ------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = InterfaceStub -parent = Libraries -required_libraries = Object Support Index: llvm/lib/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/LLVMBuild.cmake @@ -0,0 +1,8 @@ +LLVMBuildCommon( + SUBDIRECTORIES Analysis AsmParser Bitcode Bitstream CodeGen DebugInfo Demangle DWARFLinker ExecutionEngine Extensions Frontend FuzzMutate LineEditor Linker InterfaceStub IR IRReader LTO MC MCA Object BinaryFormat ObjectYAML Option Remarks Passes ProfileData Support TableGen TextAPI Target Testing ToolDrivers Transforms WindowsManifest XRay +) +LLVMBuildComponent( + TYPE Group + NAME Libraries + PARENT $ROOT +) Index: llvm/lib/LLVMBuild.txt =================================================================== --- llvm/lib/LLVMBuild.txt +++ /dev/null @@ -1,59 +0,0 @@ -;===- ./lib/LLVMBuild.txt --------------------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[common] -subdirectories = - Analysis - AsmParser - Bitcode - Bitstream - CodeGen - DebugInfo - Demangle - DWARFLinker - ExecutionEngine - Extensions - Frontend - FuzzMutate - LineEditor - Linker - InterfaceStub - IR - IRReader - LTO - MC - MCA - Object - BinaryFormat - ObjectYAML - Option - Remarks - Passes - ProfileData - Support - TableGen - TextAPI - Target - Testing - ToolDrivers - Transforms - WindowsManifest - XRay - -[component_0] -type = Group -name = Libraries -parent = $ROOT Index: llvm/lib/LTO/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/LTO/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE Library + NAME LTO + PARENT Libraries + REQUIRED_LIBRARIES AggressiveInstCombine Analysis BinaryFormat BitReader BitWriter CodeGen Core Extensions IPO InstCombine Linker MC ObjCARC Object Passes Remarks Scalar Support Target TransformUtils +) Index: llvm/lib/LTO/LLVMBuild.txt =================================================================== --- llvm/lib/LTO/LLVMBuild.txt +++ /dev/null @@ -1,41 +0,0 @@ -;===- ./lib/LTO/LLVMBuild.txt ----------------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = LTO -parent = Libraries -required_libraries = - AggressiveInstCombine - Analysis - BinaryFormat - BitReader - BitWriter - CodeGen - Core - Extensions - IPO - InstCombine - Linker - MC - ObjCARC - Object - Passes - Remarks - Scalar - Support - Target - TransformUtils Index: llvm/lib/LineEditor/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/LineEditor/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE Library + NAME LineEditor + PARENT Libraries + REQUIRED_LIBRARIES Support +) Index: llvm/lib/LineEditor/LLVMBuild.txt =================================================================== --- llvm/lib/LineEditor/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./lib/LineEditor/LLVMBuild.txt ---------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = LineEditor -parent = Libraries -required_libraries = Support Index: llvm/lib/Linker/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Linker/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE Library + NAME Linker + PARENT Libraries + REQUIRED_LIBRARIES Core Support TransformUtils +) Index: llvm/lib/Linker/LLVMBuild.txt =================================================================== --- llvm/lib/Linker/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./lib/Linker/LLVMBuild.txt -------------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = Linker -parent = Libraries -required_libraries = Core Support TransformUtils Index: llvm/lib/MC/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/MC/LLVMBuild.cmake @@ -0,0 +1,9 @@ +LLVMBuildCommon( + SUBDIRECTORIES MCDisassembler MCParser +) +LLVMBuildComponent( + TYPE Library + NAME MC + PARENT Libraries + REQUIRED_LIBRARIES Support BinaryFormat DebugInfoCodeView +) Index: llvm/lib/MC/LLVMBuild.txt =================================================================== --- llvm/lib/MC/LLVMBuild.txt +++ /dev/null @@ -1,24 +0,0 @@ -;===- ./lib/MC/LLVMBuild.txt -----------------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[common] -subdirectories = MCDisassembler MCParser - -[component_0] -type = Library -name = MC -parent = Libraries -required_libraries = Support BinaryFormat DebugInfoCodeView Index: llvm/lib/MC/MCDisassembler/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/MC/MCDisassembler/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE Library + NAME MCDisassembler + PARENT MC + REQUIRED_LIBRARIES MC Support +) Index: llvm/lib/MC/MCDisassembler/LLVMBuild.txt =================================================================== --- llvm/lib/MC/MCDisassembler/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./lib/MC/MCDisassembler/LLVMBuild.txt --------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = MCDisassembler -parent = MC -required_libraries = MC Support Index: llvm/lib/MC/MCParser/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/MC/MCParser/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE Library + NAME MCParser + PARENT MC + REQUIRED_LIBRARIES MC Support +) Index: llvm/lib/MC/MCParser/LLVMBuild.txt =================================================================== --- llvm/lib/MC/MCParser/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./lib/MC/MCParser/LLVMBuild.txt --------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = MCParser -parent = MC -required_libraries = MC Support Index: llvm/lib/MCA/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/MCA/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE Library + NAME MCA + PARENT Libraries + REQUIRED_LIBRARIES MC Support +) Index: llvm/lib/MCA/LLVMBuild.txt =================================================================== --- llvm/lib/MCA/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./tools/llvm-mca/lib/LLVMBuild.txt -----------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = MCA -parent = Libraries -required_libraries = MC Support Index: llvm/lib/Object/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Object/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE Library + NAME Object + PARENT Libraries + REQUIRED_LIBRARIES BitReader Core MC BinaryFormat MCParser Support TextAPI +) Index: llvm/lib/Object/LLVMBuild.txt =================================================================== --- llvm/lib/Object/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./lib/Object/LLVMBuild.txt -------------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = Object -parent = Libraries -required_libraries = BitReader Core MC BinaryFormat MCParser Support TextAPI Index: llvm/lib/ObjectYAML/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/ObjectYAML/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE Library + NAME ObjectYAML + PARENT Libraries + REQUIRED_LIBRARIES BinaryFormat Object Support DebugInfoCodeView MC +) Index: llvm/lib/ObjectYAML/LLVMBuild.txt =================================================================== --- llvm/lib/ObjectYAML/LLVMBuild.txt +++ /dev/null @@ -1,13 +0,0 @@ -;===------------------------------------------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = ObjectYAML -parent = Libraries -required_libraries = BinaryFormat Object Support DebugInfoCodeView MC Index: llvm/lib/Option/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Option/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE Library + NAME Option + PARENT Libraries + REQUIRED_LIBRARIES Support +) Index: llvm/lib/Option/LLVMBuild.txt =================================================================== --- llvm/lib/Option/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./lib/Option/LLVMBuild.txt -------------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = Option -parent = Libraries -required_libraries = Support Index: llvm/lib/Passes/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Passes/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE Library + NAME Passes + PARENT Libraries + REQUIRED_LIBRARIES AggressiveInstCombine Analysis Core Coroutines HelloNew IPO InstCombine ObjCARC Scalar Support Target TransformUtils Vectorize Instrumentation +) Index: llvm/lib/Passes/LLVMBuild.txt =================================================================== --- llvm/lib/Passes/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./lib/Passes/LLVMBuild.txt -------------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = Passes -parent = Libraries -required_libraries = AggressiveInstCombine Analysis Core Coroutines HelloNew IPO InstCombine ObjCARC Scalar Support Target TransformUtils Vectorize Instrumentation Index: llvm/lib/ProfileData/Coverage/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/ProfileData/Coverage/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE Library + NAME Coverage + PARENT ProfileData + REQUIRED_LIBRARIES Core Object ProfileData Support +) Index: llvm/lib/ProfileData/Coverage/LLVMBuild.txt =================================================================== --- llvm/lib/ProfileData/Coverage/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/ProfileData/Coverage/LLVMBuild.txt -----------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = Coverage -parent = ProfileData -required_libraries = Core Object ProfileData Support - Index: llvm/lib/ProfileData/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/ProfileData/LLVMBuild.cmake @@ -0,0 +1,9 @@ +LLVMBuildCommon( + SUBDIRECTORIES Coverage +) +LLVMBuildComponent( + TYPE Library + NAME ProfileData + PARENT Libraries + REQUIRED_LIBRARIES Core Support Demangle +) Index: llvm/lib/ProfileData/LLVMBuild.txt =================================================================== --- llvm/lib/ProfileData/LLVMBuild.txt +++ /dev/null @@ -1,24 +0,0 @@ -;===- ./lib/ProfileData/LLVMBuild.txt --------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[common] -subdirectories = Coverage - -[component_0] -type = Library -name = ProfileData -parent = Libraries -required_libraries = Core Support Demangle Index: llvm/lib/Remarks/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Remarks/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE Library + NAME Remarks + PARENT Libraries + REQUIRED_LIBRARIES BitstreamReader Support +) Index: llvm/lib/Remarks/LLVMBuild.txt =================================================================== --- llvm/lib/Remarks/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./lib/Remarks/LLVMBuild.txt ------------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = Remarks -parent = Libraries -required_libraries = BitstreamReader Support Index: llvm/lib/Support/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Support/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE Library + NAME Support + PARENT Libraries + REQUIRED_LIBRARIES Demangle +) Index: llvm/lib/Support/LLVMBuild.txt =================================================================== --- llvm/lib/Support/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./lib/Support/LLVMBuild.txt ------------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = Support -parent = Libraries -required_libraries = Demangle Index: llvm/lib/TableGen/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/TableGen/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE Library + NAME TableGen + PARENT Libraries + REQUIRED_LIBRARIES Support +) Index: llvm/lib/TableGen/LLVMBuild.txt =================================================================== --- llvm/lib/TableGen/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./lib/TableGen/LLVMBuild.txt -----------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = TableGen -parent = Libraries -required_libraries = Support Index: llvm/lib/Target/AArch64/AsmParser/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/AArch64/AsmParser/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME AArch64AsmParser + PARENT AArch64 + REQUIRED_LIBRARIES AArch64Desc AArch64Info AArch64Utils MC MCParser Support + ADD_TO_LIBRARY_GROUPS AArch64 +) Index: llvm/lib/Target/AArch64/AsmParser/LLVMBuild.txt =================================================================== --- llvm/lib/Target/AArch64/AsmParser/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/AArch64/AsmParser/LLVMBuild.txt ---------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = AArch64AsmParser -parent = AArch64 -required_libraries = AArch64Desc AArch64Info AArch64Utils MC MCParser Support -add_to_library_groups = AArch64 Index: llvm/lib/Target/AArch64/Disassembler/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/AArch64/Disassembler/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME AArch64Disassembler + PARENT AArch64 + REQUIRED_LIBRARIES AArch64Desc AArch64Info AArch64Utils MC MCDisassembler Support + ADD_TO_LIBRARY_GROUPS AArch64 +) Index: llvm/lib/Target/AArch64/Disassembler/LLVMBuild.txt =================================================================== --- llvm/lib/Target/AArch64/Disassembler/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/AArch64/Disassembler/LLVMBuild.txt ------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = AArch64Disassembler -parent = AArch64 -required_libraries = AArch64Desc AArch64Info AArch64Utils MC MCDisassembler Support -add_to_library_groups = AArch64 Index: llvm/lib/Target/AArch64/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/AArch64/LLVMBuild.cmake @@ -0,0 +1,16 @@ +LLVMBuildCommon( + SUBDIRECTORIES AsmParser Disassembler MCTargetDesc TargetInfo Utils +) +LLVMBuildComponent( + TYPE TargetGroup + NAME AArch64 + PARENT Target + HAS_JIT 1 +) +LLVMBuildComponent( + TYPE Library + NAME AArch64CodeGen + PARENT AArch64 + REQUIRED_LIBRARIES AArch64Desc AArch64Info AArch64Utils Analysis AsmPrinter CodeGen Core MC Scalar SelectionDAG Support Target TransformUtils GlobalISel CFGuard + ADD_TO_LIBRARY_GROUPS AArch64 +) Index: llvm/lib/Target/AArch64/LLVMBuild.txt =================================================================== --- llvm/lib/Target/AArch64/LLVMBuild.txt +++ /dev/null @@ -1,34 +0,0 @@ -;===- ./lib/Target/AArch64/LLVMBuild.txt -------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[common] -subdirectories = AsmParser Disassembler MCTargetDesc TargetInfo Utils - -[component_0] -type = TargetGroup -name = AArch64 -parent = Target -has_asmparser = 1 -has_asmprinter = 1 -has_disassembler = 1 -has_jit = 1 - -[component_1] -type = Library -name = AArch64CodeGen -parent = AArch64 -required_libraries = AArch64Desc AArch64Info AArch64Utils Analysis AsmPrinter CodeGen Core MC Scalar SelectionDAG Support Target TransformUtils GlobalISel CFGuard -add_to_library_groups = AArch64 Index: llvm/lib/Target/AArch64/MCTargetDesc/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/AArch64/MCTargetDesc/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME AArch64Desc + PARENT AArch64 + REQUIRED_LIBRARIES AArch64Info AArch64Utils MC BinaryFormat Support + ADD_TO_LIBRARY_GROUPS AArch64 +) Index: llvm/lib/Target/AArch64/MCTargetDesc/LLVMBuild.txt =================================================================== --- llvm/lib/Target/AArch64/MCTargetDesc/LLVMBuild.txt +++ /dev/null @@ -1,23 +0,0 @@ -;===- ./lib/Target/AArch64/MCTargetDesc/LLVMBuild.txt ------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = AArch64Desc -parent = AArch64 -required_libraries = AArch64Info AArch64Utils MC BinaryFormat Support -add_to_library_groups = AArch64 - Index: llvm/lib/Target/AArch64/TargetInfo/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/AArch64/TargetInfo/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME AArch64Info + PARENT AArch64 + REQUIRED_LIBRARIES Support + ADD_TO_LIBRARY_GROUPS AArch64 +) Index: llvm/lib/Target/AArch64/TargetInfo/LLVMBuild.txt =================================================================== --- llvm/lib/Target/AArch64/TargetInfo/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/AArch64/TargetInfo/LLVMBuild.txt --------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = AArch64Info -parent = AArch64 -required_libraries = Support -add_to_library_groups = AArch64 Index: llvm/lib/Target/AArch64/Utils/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/AArch64/Utils/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME AArch64Utils + PARENT AArch64 + REQUIRED_LIBRARIES Support + ADD_TO_LIBRARY_GROUPS AArch64 +) Index: llvm/lib/Target/AArch64/Utils/LLVMBuild.txt =================================================================== --- llvm/lib/Target/AArch64/Utils/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/AArch64/Utils/LLVMBuild.txt ----------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = AArch64Utils -parent = AArch64 -required_libraries = Support -add_to_library_groups = AArch64 Index: llvm/lib/Target/AMDGPU/AsmParser/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/AMDGPU/AsmParser/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME AMDGPUAsmParser + PARENT AMDGPU + REQUIRED_LIBRARIES MC MCParser AMDGPUDesc AMDGPUInfo AMDGPUUtils Support + ADD_TO_LIBRARY_GROUPS AMDGPU +) Index: llvm/lib/Target/AMDGPU/AsmParser/LLVMBuild.txt =================================================================== --- llvm/lib/Target/AMDGPU/AsmParser/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/AMDGPU/AsmParser/LLVMBuild.txt -------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = AMDGPUAsmParser -parent = AMDGPU -required_libraries = MC MCParser AMDGPUDesc AMDGPUInfo AMDGPUUtils Support -add_to_library_groups = AMDGPU Index: llvm/lib/Target/AMDGPU/Disassembler/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/AMDGPU/Disassembler/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME AMDGPUDisassembler + PARENT AMDGPU + REQUIRED_LIBRARIES AMDGPUDesc AMDGPUInfo AMDGPUUtils MC MCDisassembler Support + ADD_TO_LIBRARY_GROUPS AMDGPU +) Index: llvm/lib/Target/AMDGPU/Disassembler/LLVMBuild.txt =================================================================== --- llvm/lib/Target/AMDGPU/Disassembler/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/AMDGPU/Disassembler/LLVMBuild.txt ------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = AMDGPUDisassembler -parent = AMDGPU -required_libraries = AMDGPUDesc AMDGPUInfo AMDGPUUtils MC MCDisassembler Support -add_to_library_groups = AMDGPU Index: llvm/lib/Target/AMDGPU/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/AMDGPU/LLVMBuild.cmake @@ -0,0 +1,15 @@ +LLVMBuildCommon( + SUBDIRECTORIES AsmParser Disassembler MCTargetDesc TargetInfo Utils +) +LLVMBuildComponent( + TYPE TargetGroup + NAME AMDGPU + PARENT Target +) +LLVMBuildComponent( + TYPE Library + NAME AMDGPUCodeGen + PARENT AMDGPU + REQUIRED_LIBRARIES Analysis AsmPrinter CodeGen Core IPO MC AMDGPUDesc AMDGPUInfo AMDGPUUtils Scalar SelectionDAG Support Target TransformUtils Vectorize GlobalISel BinaryFormat MIRParser + ADD_TO_LIBRARY_GROUPS AMDGPU +) Index: llvm/lib/Target/AMDGPU/LLVMBuild.txt =================================================================== --- llvm/lib/Target/AMDGPU/LLVMBuild.txt +++ /dev/null @@ -1,33 +0,0 @@ -;===- ./lib/Target/AMDGPU/LLVMBuild.txt ------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[common] -subdirectories = AsmParser Disassembler MCTargetDesc TargetInfo Utils - -[component_0] -type = TargetGroup -name = AMDGPU -parent = Target -has_asmparser = 1 -has_asmprinter = 1 -has_disassembler = 1 - -[component_1] -type = Library -name = AMDGPUCodeGen -parent = AMDGPU -required_libraries = Analysis AsmPrinter CodeGen Core IPO MC AMDGPUDesc AMDGPUInfo AMDGPUUtils Scalar SelectionDAG Support Target TransformUtils Vectorize GlobalISel BinaryFormat MIRParser -add_to_library_groups = AMDGPU Index: llvm/lib/Target/AMDGPU/MCTargetDesc/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/AMDGPU/MCTargetDesc/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME AMDGPUDesc + PARENT AMDGPU + REQUIRED_LIBRARIES Core MC AMDGPUInfo AMDGPUUtils Support BinaryFormat + ADD_TO_LIBRARY_GROUPS AMDGPU +) Index: llvm/lib/Target/AMDGPU/MCTargetDesc/LLVMBuild.txt =================================================================== --- llvm/lib/Target/AMDGPU/MCTargetDesc/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/AMDGPU/MCTargetDesc/LLVMBuild.txt -------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = AMDGPUDesc -parent = AMDGPU -required_libraries = Core MC AMDGPUInfo AMDGPUUtils Support BinaryFormat -add_to_library_groups = AMDGPU Index: llvm/lib/Target/AMDGPU/TargetInfo/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/AMDGPU/TargetInfo/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME AMDGPUInfo + PARENT AMDGPU + REQUIRED_LIBRARIES Support + ADD_TO_LIBRARY_GROUPS AMDGPU +) Index: llvm/lib/Target/AMDGPU/TargetInfo/LLVMBuild.txt =================================================================== --- llvm/lib/Target/AMDGPU/TargetInfo/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/AMDGPU/TargetInfo/LLVMBuild.txt --------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = AMDGPUInfo -parent = AMDGPU -required_libraries = Support -add_to_library_groups = AMDGPU Index: llvm/lib/Target/AMDGPU/Utils/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/AMDGPU/Utils/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME AMDGPUUtils + PARENT AMDGPU + REQUIRED_LIBRARIES Core MC BinaryFormat Support + ADD_TO_LIBRARY_GROUPS AMDGPU +) Index: llvm/lib/Target/AMDGPU/Utils/LLVMBuild.txt =================================================================== --- llvm/lib/Target/AMDGPU/Utils/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/AMDGPU/Utils/LLVMBuild.txt ------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = AMDGPUUtils -parent = AMDGPU -required_libraries = Core MC BinaryFormat Support -add_to_library_groups = AMDGPU Index: llvm/lib/Target/ARC/Disassembler/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/ARC/Disassembler/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME ARCDisassembler + PARENT ARC + REQUIRED_LIBRARIES MCDisassembler Support ARCInfo + ADD_TO_LIBRARY_GROUPS ARC +) Index: llvm/lib/Target/ARC/Disassembler/LLVMBuild.txt =================================================================== --- llvm/lib/Target/ARC/Disassembler/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/ARC/Disassembler/LLVMBuild.txt ------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = ARCDisassembler -parent = ARC -required_libraries = MCDisassembler Support ARCInfo -add_to_library_groups = ARC Index: llvm/lib/Target/ARC/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/ARC/LLVMBuild.cmake @@ -0,0 +1,17 @@ +LLVMBuildCommon( + SUBDIRECTORIES Disassembler MCTargetDesc TargetInfo +) +LLVMBuildComponent( + TYPE TargetGroup + NAME ARC + PARENT Target + HAS_ASMPRINTER 1 + HAS_DISASSEMBLER 1 +) +LLVMBuildComponent( + TYPE Library + NAME ARCCodeGen + PARENT ARC + REQUIRED_LIBRARIES Analysis AsmPrinter CodeGen Core MC SelectionDAG Support Target TransformUtils ARCDesc ARCInfo + ADD_TO_LIBRARY_GROUPS ARC +) Index: llvm/lib/Target/ARC/LLVMBuild.txt =================================================================== --- llvm/lib/Target/ARC/LLVMBuild.txt +++ /dev/null @@ -1,43 +0,0 @@ -;===- ./lib/Target/ARC/LLVMBuild.txt -------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[common] -subdirectories = Disassembler MCTargetDesc TargetInfo - -[component_0] -type = TargetGroup -name = ARC -parent = Target -has_asmprinter = 1 -has_disassembler = 1 - -[component_1] -type = Library -name = ARCCodeGen -parent = ARC -required_libraries = - Analysis - AsmPrinter - CodeGen - Core - MC - SelectionDAG - Support - Target - TransformUtils - ARCDesc - ARCInfo -add_to_library_groups = ARC Index: llvm/lib/Target/ARC/MCTargetDesc/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/ARC/MCTargetDesc/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME ARCDesc + PARENT ARC + REQUIRED_LIBRARIES MC Support ARCInfo + ADD_TO_LIBRARY_GROUPS ARC +) Index: llvm/lib/Target/ARC/MCTargetDesc/LLVMBuild.txt =================================================================== --- llvm/lib/Target/ARC/MCTargetDesc/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/ARC/MCTargetDesc/LLVMBuild.txt ------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = ARCDesc -parent = ARC -required_libraries = MC Support ARCInfo -add_to_library_groups = ARC Index: llvm/lib/Target/ARC/TargetInfo/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/ARC/TargetInfo/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME ARCInfo + PARENT ARC + REQUIRED_LIBRARIES Support + ADD_TO_LIBRARY_GROUPS ARC +) Index: llvm/lib/Target/ARC/TargetInfo/LLVMBuild.txt =================================================================== --- llvm/lib/Target/ARC/TargetInfo/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/ARC/TargetInfo/LLVMBuild.txt --------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = ARCInfo -parent = ARC -required_libraries = Support -add_to_library_groups = ARC Index: llvm/lib/Target/ARM/AsmParser/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/ARM/AsmParser/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME ARMAsmParser + PARENT ARM + REQUIRED_LIBRARIES ARMDesc ARMInfo MC MCParser Support ARMUtils + ADD_TO_LIBRARY_GROUPS ARM +) Index: llvm/lib/Target/ARM/AsmParser/LLVMBuild.txt =================================================================== --- llvm/lib/Target/ARM/AsmParser/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/ARM/AsmParser/LLVMBuild.txt -----------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = ARMAsmParser -parent = ARM -required_libraries = ARMDesc ARMInfo MC MCParser Support ARMUtils -add_to_library_groups = ARM Index: llvm/lib/Target/ARM/Disassembler/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/ARM/Disassembler/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME ARMDisassembler + PARENT ARM + REQUIRED_LIBRARIES ARMDesc ARMInfo MCDisassembler Support ARMUtils + ADD_TO_LIBRARY_GROUPS ARM +) Index: llvm/lib/Target/ARM/Disassembler/LLVMBuild.txt =================================================================== --- llvm/lib/Target/ARM/Disassembler/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/ARM/Disassembler/LLVMBuild.txt --------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = ARMDisassembler -parent = ARM -required_libraries = ARMDesc ARMInfo MCDisassembler Support ARMUtils -add_to_library_groups = ARM Index: llvm/lib/Target/ARM/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/ARM/LLVMBuild.cmake @@ -0,0 +1,16 @@ +LLVMBuildCommon( + SUBDIRECTORIES AsmParser Disassembler MCTargetDesc TargetInfo Utils +) +LLVMBuildComponent( + TYPE TargetGroup + NAME ARM + PARENT Target + HAS_JIT 1 +) +LLVMBuildComponent( + TYPE Library + NAME ARMCodeGen + PARENT ARM + REQUIRED_LIBRARIES ARMDesc ARMInfo Analysis AsmPrinter CodeGen Core MC Scalar SelectionDAG Support Target GlobalISel ARMUtils TransformUtils CFGuard + ADD_TO_LIBRARY_GROUPS ARM +) Index: llvm/lib/Target/ARM/LLVMBuild.txt =================================================================== --- llvm/lib/Target/ARM/LLVMBuild.txt +++ /dev/null @@ -1,34 +0,0 @@ -;===- ./lib/Target/ARM/LLVMBuild.txt ---------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[common] -subdirectories = AsmParser Disassembler MCTargetDesc TargetInfo Utils - -[component_0] -type = TargetGroup -name = ARM -parent = Target -has_asmparser = 1 -has_asmprinter = 1 -has_disassembler = 1 -has_jit = 1 - -[component_1] -type = Library -name = ARMCodeGen -parent = ARM -required_libraries = ARMDesc ARMInfo Analysis AsmPrinter CodeGen Core MC Scalar SelectionDAG Support Target GlobalISel ARMUtils TransformUtils CFGuard -add_to_library_groups = ARM Index: llvm/lib/Target/ARM/MCTargetDesc/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/ARM/MCTargetDesc/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME ARMDesc + PARENT ARM + REQUIRED_LIBRARIES ARMInfo ARMUtils MC MCDisassembler Support BinaryFormat + ADD_TO_LIBRARY_GROUPS ARM +) Index: llvm/lib/Target/ARM/MCTargetDesc/LLVMBuild.txt =================================================================== --- llvm/lib/Target/ARM/MCTargetDesc/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/ARM/MCTargetDesc/LLVMBuild.txt --------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = ARMDesc -parent = ARM -required_libraries = ARMInfo ARMUtils MC MCDisassembler Support BinaryFormat -add_to_library_groups = ARM Index: llvm/lib/Target/ARM/TargetInfo/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/ARM/TargetInfo/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME ARMInfo + PARENT ARM + REQUIRED_LIBRARIES Support + ADD_TO_LIBRARY_GROUPS ARM +) Index: llvm/lib/Target/ARM/TargetInfo/LLVMBuild.txt =================================================================== --- llvm/lib/Target/ARM/TargetInfo/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/ARM/TargetInfo/LLVMBuild.txt ----------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = ARMInfo -parent = ARM -required_libraries = Support -add_to_library_groups = ARM Index: llvm/lib/Target/ARM/Utils/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/ARM/Utils/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME ARMUtils + PARENT ARM + REQUIRED_LIBRARIES Support + ADD_TO_LIBRARY_GROUPS ARM +) Index: llvm/lib/Target/ARM/Utils/LLVMBuild.txt =================================================================== --- llvm/lib/Target/ARM/Utils/LLVMBuild.txt +++ /dev/null @@ -1,23 +0,0 @@ -;===- ./lib/Target/ARM/Utils/LLVMBuild.txt ----------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = ARMUtils -parent = ARM -required_libraries = Support -add_to_library_groups = ARM - Index: llvm/lib/Target/AVR/AsmParser/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/AVR/AsmParser/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME AVRAsmParser + PARENT AVR + REQUIRED_LIBRARIES MC MCParser AVRDesc AVRInfo Support + ADD_TO_LIBRARY_GROUPS AVR +) Index: llvm/lib/Target/AVR/AsmParser/LLVMBuild.txt =================================================================== --- llvm/lib/Target/AVR/AsmParser/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/AVR/AsmParser/LLVMBuild.txt -----------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = AVRAsmParser -parent = AVR -required_libraries = MC MCParser AVRDesc AVRInfo Support -add_to_library_groups = AVR Index: llvm/lib/Target/AVR/Disassembler/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/AVR/Disassembler/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME AVRDisassembler + PARENT AVR + REQUIRED_LIBRARIES MCDisassembler AVRInfo Support + ADD_TO_LIBRARY_GROUPS AVR +) Index: llvm/lib/Target/AVR/Disassembler/LLVMBuild.txt =================================================================== --- llvm/lib/Target/AVR/Disassembler/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/AVR/Disassembler/LLVMBuild.txt --------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = AVRDisassembler -parent = AVR -required_libraries = MCDisassembler AVRInfo Support -add_to_library_groups = AVR Index: llvm/lib/Target/AVR/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/AVR/LLVMBuild.cmake @@ -0,0 +1,15 @@ +LLVMBuildCommon( + SUBDIRECTORIES AsmParser Disassembler MCTargetDesc TargetInfo +) +LLVMBuildComponent( + TYPE TargetGroup + NAME AVR + PARENT Target +) +LLVMBuildComponent( + TYPE Library + NAME AVRCodeGen + PARENT AVR + REQUIRED_LIBRARIES AsmPrinter CodeGen Core MC AVRDesc AVRInfo SelectionDAG Support Target + ADD_TO_LIBRARY_GROUPS AVR +) Index: llvm/lib/Target/AVR/LLVMBuild.txt =================================================================== --- llvm/lib/Target/AVR/LLVMBuild.txt +++ /dev/null @@ -1,34 +0,0 @@ -;===- ./lib/Target/AVR/LLVMBuild.txt ---------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[common] -subdirectories = AsmParser Disassembler MCTargetDesc TargetInfo - -[component_0] -type = TargetGroup -name = AVR -parent = Target -has_asmprinter = 1 -has_asmparser = 1 -has_disassembler = 1 - -[component_1] -type = Library -name = AVRCodeGen -parent = AVR -required_libraries = AsmPrinter CodeGen Core MC AVRDesc AVRInfo SelectionDAG Support Target -add_to_library_groups = AVR - Index: llvm/lib/Target/AVR/MCTargetDesc/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/AVR/MCTargetDesc/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME AVRDesc + PARENT AVR + REQUIRED_LIBRARIES MC AVRInfo Support + ADD_TO_LIBRARY_GROUPS AVR +) Index: llvm/lib/Target/AVR/MCTargetDesc/LLVMBuild.txt =================================================================== --- llvm/lib/Target/AVR/MCTargetDesc/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/AVR/MCTargetDesc/LLVMBuild.txt --------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = AVRDesc -parent = AVR -required_libraries = MC AVRInfo Support -add_to_library_groups = AVR Index: llvm/lib/Target/AVR/TargetInfo/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/AVR/TargetInfo/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME AVRInfo + PARENT AVR + REQUIRED_LIBRARIES Support + ADD_TO_LIBRARY_GROUPS AVR +) Index: llvm/lib/Target/AVR/TargetInfo/LLVMBuild.txt =================================================================== --- llvm/lib/Target/AVR/TargetInfo/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/AVR/TargetInfo/LLVMBuild.txt ----------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = AVRInfo -parent = AVR -required_libraries = Support -add_to_library_groups = AVR Index: llvm/lib/Target/BPF/AsmParser/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/BPF/AsmParser/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME BPFAsmParser + PARENT BPF + REQUIRED_LIBRARIES MC MCParser BPFDesc BPFInfo Support + ADD_TO_LIBRARY_GROUPS BPF +) Index: llvm/lib/Target/BPF/AsmParser/LLVMBuild.txt =================================================================== --- llvm/lib/Target/BPF/AsmParser/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/BPF/AsmParser/LLVMBuild.txt ---------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = BPFAsmParser -parent = BPF -required_libraries = MC MCParser BPFDesc BPFInfo Support -add_to_library_groups = BPF Index: llvm/lib/Target/BPF/Disassembler/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/BPF/Disassembler/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME BPFDisassembler + PARENT BPF + REQUIRED_LIBRARIES MCDisassembler BPFInfo Support + ADD_TO_LIBRARY_GROUPS BPF +) Index: llvm/lib/Target/BPF/Disassembler/LLVMBuild.txt =================================================================== --- llvm/lib/Target/BPF/Disassembler/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/BPF/Disassembler/LLVMBuild.txt --------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = BPFDisassembler -parent = BPF -required_libraries = MCDisassembler BPFInfo Support -add_to_library_groups = BPF Index: llvm/lib/Target/BPF/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/BPF/LLVMBuild.cmake @@ -0,0 +1,17 @@ +LLVMBuildCommon( + SUBDIRECTORIES AsmParser Disassembler MCTargetDesc TargetInfo +) +LLVMBuildComponent( + TYPE TargetGroup + NAME BPF + PARENT Target + HAS_ASMPRINTER 1 + HAS_DISASSEMBLER 1 +) +LLVMBuildComponent( + TYPE Library + NAME BPFCodeGen + PARENT BPF + REQUIRED_LIBRARIES AsmPrinter CodeGen Core MC BPFDesc BPFInfo IPO Scalar SelectionDAG Support Target + ADD_TO_LIBRARY_GROUPS BPF +) Index: llvm/lib/Target/BPF/LLVMBuild.txt =================================================================== --- llvm/lib/Target/BPF/LLVMBuild.txt +++ /dev/null @@ -1,43 +0,0 @@ -;===- ./lib/Target/BPF/LLVMBuild.txt ---------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[common] -subdirectories = AsmParser Disassembler MCTargetDesc TargetInfo - -[component_0] -type = TargetGroup -name = BPF -parent = Target -has_asmprinter = 1 -has_disassembler = 1 - -[component_1] -type = Library -name = BPFCodeGen -parent = BPF -required_libraries = - AsmPrinter - CodeGen - Core - MC - BPFDesc - BPFInfo - IPO - Scalar - SelectionDAG - Support - Target -add_to_library_groups = BPF Index: llvm/lib/Target/BPF/MCTargetDesc/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/BPF/MCTargetDesc/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME BPFDesc + PARENT BPF + REQUIRED_LIBRARIES MC BPFInfo Support + ADD_TO_LIBRARY_GROUPS BPF +) Index: llvm/lib/Target/BPF/MCTargetDesc/LLVMBuild.txt =================================================================== --- llvm/lib/Target/BPF/MCTargetDesc/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/BPF/MCTargetDesc/LLVMBuild.txt --------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = BPFDesc -parent = BPF -required_libraries = MC BPFInfo Support -add_to_library_groups = BPF Index: llvm/lib/Target/BPF/TargetInfo/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/BPF/TargetInfo/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME BPFInfo + PARENT BPF + REQUIRED_LIBRARIES Support + ADD_TO_LIBRARY_GROUPS BPF +) Index: llvm/lib/Target/BPF/TargetInfo/LLVMBuild.txt =================================================================== --- llvm/lib/Target/BPF/TargetInfo/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/BPF/TargetInfo/LLVMBuild.txt ----------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = BPFInfo -parent = BPF -required_libraries = Support -add_to_library_groups = BPF Index: llvm/lib/Target/Hexagon/AsmParser/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/Hexagon/AsmParser/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME HexagonAsmParser + PARENT Hexagon + REQUIRED_LIBRARIES MC MCParser Support HexagonDesc HexagonInfo + ADD_TO_LIBRARY_GROUPS Hexagon +) Index: llvm/lib/Target/Hexagon/AsmParser/LLVMBuild.txt =================================================================== --- llvm/lib/Target/Hexagon/AsmParser/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/Hexagon/AsmParser/LLVMBuild.txt --------------*- Conf -*-===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = HexagonAsmParser -parent = Hexagon -required_libraries = MC MCParser Support HexagonDesc HexagonInfo -add_to_library_groups = Hexagon Index: llvm/lib/Target/Hexagon/Disassembler/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/Hexagon/Disassembler/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME HexagonDisassembler + PARENT Hexagon + REQUIRED_LIBRARIES HexagonDesc HexagonInfo MC MCDisassembler Support + ADD_TO_LIBRARY_GROUPS Hexagon +) Index: llvm/lib/Target/Hexagon/Disassembler/LLVMBuild.txt =================================================================== --- llvm/lib/Target/Hexagon/Disassembler/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===-- ./lib/Target/Hexagon/Disassembler/LLVMBuild.txt ---------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = HexagonDisassembler -parent = Hexagon -required_libraries = HexagonDesc HexagonInfo MC MCDisassembler Support -add_to_library_groups = Hexagon Index: llvm/lib/Target/Hexagon/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/Hexagon/LLVMBuild.cmake @@ -0,0 +1,16 @@ +LLVMBuildCommon( + SUBDIRECTORIES AsmParser Disassembler MCTargetDesc TargetInfo +) +LLVMBuildComponent( + TYPE TargetGroup + NAME Hexagon + PARENT Target + HAS_ASMPRINTER 1 +) +LLVMBuildComponent( + TYPE Library + NAME HexagonCodeGen + PARENT Hexagon + REQUIRED_LIBRARIES Analysis AsmPrinter CodeGen Core HexagonAsmParser HexagonDesc HexagonInfo IPO MC Scalar SelectionDAG Support Target TransformUtils + ADD_TO_LIBRARY_GROUPS Hexagon +) Index: llvm/lib/Target/Hexagon/LLVMBuild.txt =================================================================== --- llvm/lib/Target/Hexagon/LLVMBuild.txt +++ /dev/null @@ -1,45 +0,0 @@ -;===- ./lib/Target/Hexagon/LLVMBuild.txt -----------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[common] -subdirectories = AsmParser Disassembler MCTargetDesc TargetInfo - -[component_0] -type = TargetGroup -name = Hexagon -parent = Target -has_asmprinter = 1 - -[component_1] -type = Library -name = HexagonCodeGen -parent = Hexagon -required_libraries = - Analysis - AsmPrinter - CodeGen - Core - HexagonAsmParser - HexagonDesc - HexagonInfo - IPO - MC - Scalar - SelectionDAG - Support - Target - TransformUtils -add_to_library_groups = Hexagon Index: llvm/lib/Target/Hexagon/MCTargetDesc/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/Hexagon/MCTargetDesc/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME HexagonDesc + PARENT Hexagon + REQUIRED_LIBRARIES HexagonInfo MC Support + ADD_TO_LIBRARY_GROUPS Hexagon +) Index: llvm/lib/Target/Hexagon/MCTargetDesc/LLVMBuild.txt =================================================================== --- llvm/lib/Target/Hexagon/MCTargetDesc/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/Hexagon/MCTargetDesc/LLVMBuild.txt ----------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = HexagonDesc -parent = Hexagon -required_libraries = HexagonInfo MC Support -add_to_library_groups = Hexagon Index: llvm/lib/Target/Hexagon/TargetInfo/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/Hexagon/TargetInfo/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME HexagonInfo + PARENT Hexagon + REQUIRED_LIBRARIES Support + ADD_TO_LIBRARY_GROUPS Hexagon +) Index: llvm/lib/Target/Hexagon/TargetInfo/LLVMBuild.txt =================================================================== --- llvm/lib/Target/Hexagon/TargetInfo/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/Hexagon/TargetInfo/LLVMBuild.txt ------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = HexagonInfo -parent = Hexagon -required_libraries = Support -add_to_library_groups = Hexagon Index: llvm/lib/Target/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/LLVMBuild.cmake @@ -0,0 +1,29 @@ +LLVMBuildCommon( + SUBDIRECTORIES AArch64 AMDGPU ARC ARM AVR BPF Hexagon Lanai MSP430 Mips NVPTX PowerPC RISCV Sparc SystemZ VE WebAssembly X86 XCore +) +LLVMBuildComponent( + TYPE LibraryGroup + NAME Engine + PARENT Libraries +) +LLVMBuildComponent( + TYPE LibraryGroup + NAME Native + PARENT Libraries +) +LLVMBuildComponent( + TYPE LibraryGroup + NAME NativeCodeGen + PARENT Libraries +) +LLVMBuildComponent( + TYPE Library + NAME Target + PARENT Libraries + REQUIRED_LIBRARIES Analysis Core MC Support +) +LLVMBuildComponent( + TYPE LibraryGroup + NAME all-targets + PARENT Libraries +) Index: llvm/lib/Target/LLVMBuild.txt =================================================================== --- llvm/lib/Target/LLVMBuild.txt +++ /dev/null @@ -1,76 +0,0 @@ -;===- ./lib/Target/LLVMBuild.txt -------------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -; Please keep these as one per line so that out-of-tree merges -; will typically require only insertion of a line. -[common] -subdirectories = - AArch64 - AMDGPU - ARC - ARM - AVR - BPF - Hexagon - Lanai - MSP430 - Mips - NVPTX - PowerPC - RISCV - Sparc - SystemZ - VE - WebAssembly - X86 - XCore - -; This is a special group whose required libraries are extended (by llvm-build) -; with the best execution engine (the native JIT, if available, or the -; interpreter). -[component_0] -type = LibraryGroup -name = Engine -parent = Libraries - -; This is a special group whose required libraries are extended (by llvm-build) -; with the configured native target, if any. -[component_1] -type = LibraryGroup -name = Native -parent = Libraries - -; This is a special group whose required libraries are extended (by llvm-build) -; with the configured native code generator, if any. -[component_2] -type = LibraryGroup -name = NativeCodeGen -parent = Libraries - -; The component for the actual target library itself. -[component_3] -type = Library -name = Target -parent = Libraries -required_libraries = Analysis Core MC Support - -; This is a special group whose required libraries are extended (by llvm-build) -; with every built target, which makes it easy for tools to include every -; target. -[component_4] -type = LibraryGroup -name = all-targets -parent = Libraries Index: llvm/lib/Target/Lanai/AsmParser/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/Lanai/AsmParser/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME LanaiAsmParser + PARENT Lanai + REQUIRED_LIBRARIES MC MCParser Support LanaiDesc LanaiInfo + ADD_TO_LIBRARY_GROUPS Lanai +) Index: llvm/lib/Target/Lanai/AsmParser/LLVMBuild.txt =================================================================== --- llvm/lib/Target/Lanai/AsmParser/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/Lanai/AsmParser/LLVMBuild.txt ----------------*- Conf -*-===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = LanaiAsmParser -parent = Lanai -required_libraries = MC MCParser Support LanaiDesc LanaiInfo -add_to_library_groups = Lanai Index: llvm/lib/Target/Lanai/Disassembler/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/Lanai/Disassembler/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME LanaiDisassembler + PARENT Lanai + REQUIRED_LIBRARIES LanaiDesc LanaiInfo MC MCDisassembler Support + ADD_TO_LIBRARY_GROUPS Lanai +) Index: llvm/lib/Target/Lanai/Disassembler/LLVMBuild.txt =================================================================== --- llvm/lib/Target/Lanai/Disassembler/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===-- ./lib/Target/Lanai/Disassembler/LLVMBuild.txt -----------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = LanaiDisassembler -parent = Lanai -required_libraries = LanaiDesc LanaiInfo MC MCDisassembler Support -add_to_library_groups = Lanai Index: llvm/lib/Target/Lanai/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/Lanai/LLVMBuild.cmake @@ -0,0 +1,16 @@ +LLVMBuildCommon( + SUBDIRECTORIES AsmParser Disassembler MCTargetDesc TargetInfo +) +LLVMBuildComponent( + TYPE TargetGroup + NAME Lanai + PARENT Target + HAS_ASMPRINTER 1 +) +LLVMBuildComponent( + TYPE Library + NAME LanaiCodeGen + PARENT Lanai + REQUIRED_LIBRARIES Analysis AsmPrinter CodeGen Core LanaiAsmParser LanaiDesc LanaiInfo MC SelectionDAG Support Target TransformUtils + ADD_TO_LIBRARY_GROUPS Lanai +) Index: llvm/lib/Target/Lanai/LLVMBuild.txt =================================================================== --- llvm/lib/Target/Lanai/LLVMBuild.txt +++ /dev/null @@ -1,43 +0,0 @@ -;===- ./lib/Target/Lanai/LLVMBuild.txt -------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[common] -subdirectories = AsmParser Disassembler MCTargetDesc TargetInfo - -[component_0] -type = TargetGroup -name = Lanai -parent = Target -has_asmprinter = 1 - -[component_1] -type = Library -name = LanaiCodeGen -parent = Lanai -required_libraries = - Analysis - AsmPrinter - CodeGen - Core - LanaiAsmParser - LanaiDesc - LanaiInfo - MC - SelectionDAG - Support - Target - TransformUtils -add_to_library_groups = Lanai Index: llvm/lib/Target/Lanai/MCTargetDesc/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/Lanai/MCTargetDesc/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME LanaiDesc + PARENT Lanai + REQUIRED_LIBRARIES LanaiInfo MC MCDisassembler Support + ADD_TO_LIBRARY_GROUPS Lanai +) Index: llvm/lib/Target/Lanai/MCTargetDesc/LLVMBuild.txt =================================================================== --- llvm/lib/Target/Lanai/MCTargetDesc/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===-- ./lib/Target/Lanai/MCTargetDesc/LLVMBuild.txt -----------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = LanaiDesc -parent = Lanai -required_libraries = LanaiInfo MC MCDisassembler Support -add_to_library_groups = Lanai Index: llvm/lib/Target/Lanai/TargetInfo/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/Lanai/TargetInfo/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME LanaiInfo + PARENT Lanai + REQUIRED_LIBRARIES Support + ADD_TO_LIBRARY_GROUPS Lanai +) Index: llvm/lib/Target/Lanai/TargetInfo/LLVMBuild.txt =================================================================== --- llvm/lib/Target/Lanai/TargetInfo/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/Lanai/TargetInfo/LLVMBuild.txt --------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = LanaiInfo -parent = Lanai -required_libraries = Support -add_to_library_groups = Lanai Index: llvm/lib/Target/MSP430/AsmParser/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/MSP430/AsmParser/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME MSP430AsmParser + PARENT MSP430 + REQUIRED_LIBRARIES MC MCParser MSP430Desc MSP430Info Support + ADD_TO_LIBRARY_GROUPS MSP430 +) Index: llvm/lib/Target/MSP430/AsmParser/LLVMBuild.txt =================================================================== --- llvm/lib/Target/MSP430/AsmParser/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- lib/Target/MSP430/AsmParser/LLVMBuild.txt ----------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = MSP430AsmParser -parent = MSP430 -required_libraries = MC MCParser MSP430Desc MSP430Info Support -add_to_library_groups = MSP430 Index: llvm/lib/Target/MSP430/Disassembler/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/MSP430/Disassembler/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME MSP430Disassembler + PARENT MSP430 + REQUIRED_LIBRARIES MCDisassembler MSP430Info Support + ADD_TO_LIBRARY_GROUPS MSP430 +) Index: llvm/lib/Target/MSP430/Disassembler/LLVMBuild.txt =================================================================== --- llvm/lib/Target/MSP430/Disassembler/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;====- lib/Target/MSP430/Disassembler/LLVMBuild.txt ------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = MSP430Disassembler -parent = MSP430 -required_libraries = MCDisassembler MSP430Info Support -add_to_library_groups = MSP430 Index: llvm/lib/Target/MSP430/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/MSP430/LLVMBuild.cmake @@ -0,0 +1,15 @@ +LLVMBuildCommon( + SUBDIRECTORIES AsmParser Disassembler MCTargetDesc TargetInfo +) +LLVMBuildComponent( + TYPE TargetGroup + NAME MSP430 + PARENT Target +) +LLVMBuildComponent( + TYPE Library + NAME MSP430CodeGen + PARENT MSP430 + REQUIRED_LIBRARIES AsmPrinter CodeGen Core MC MSP430Desc MSP430Info SelectionDAG Support Target + ADD_TO_LIBRARY_GROUPS MSP430 +) Index: llvm/lib/Target/MSP430/LLVMBuild.txt =================================================================== --- llvm/lib/Target/MSP430/LLVMBuild.txt +++ /dev/null @@ -1,33 +0,0 @@ -;===- ./lib/Target/MSP430/LLVMBuild.txt ------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[common] -subdirectories = AsmParser Disassembler MCTargetDesc TargetInfo - -[component_0] -type = TargetGroup -name = MSP430 -parent = Target -has_asmparser = 1 -has_asmprinter = 1 -has_disassembler = 1 - -[component_1] -type = Library -name = MSP430CodeGen -parent = MSP430 -required_libraries = AsmPrinter CodeGen Core MC MSP430Desc MSP430Info SelectionDAG Support Target -add_to_library_groups = MSP430 Index: llvm/lib/Target/MSP430/MCTargetDesc/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/MSP430/MCTargetDesc/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME MSP430Desc + PARENT MSP430 + REQUIRED_LIBRARIES MC MSP430Info Support + ADD_TO_LIBRARY_GROUPS MSP430 +) Index: llvm/lib/Target/MSP430/MCTargetDesc/LLVMBuild.txt =================================================================== --- llvm/lib/Target/MSP430/MCTargetDesc/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/MSP430/MCTargetDesc/LLVMBuild.txt -----------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = MSP430Desc -parent = MSP430 -required_libraries = MC MSP430Info Support -add_to_library_groups = MSP430 Index: llvm/lib/Target/MSP430/TargetInfo/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/MSP430/TargetInfo/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME MSP430Info + PARENT MSP430 + REQUIRED_LIBRARIES Support + ADD_TO_LIBRARY_GROUPS MSP430 +) Index: llvm/lib/Target/MSP430/TargetInfo/LLVMBuild.txt =================================================================== --- llvm/lib/Target/MSP430/TargetInfo/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/MSP430/TargetInfo/LLVMBuild.txt -------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = MSP430Info -parent = MSP430 -required_libraries = Support -add_to_library_groups = MSP430 Index: llvm/lib/Target/Mips/AsmParser/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/Mips/AsmParser/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME MipsAsmParser + PARENT Mips + REQUIRED_LIBRARIES MC MCParser MipsDesc MipsInfo Support + ADD_TO_LIBRARY_GROUPS Mips +) Index: llvm/lib/Target/Mips/AsmParser/LLVMBuild.txt =================================================================== --- llvm/lib/Target/Mips/AsmParser/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/Mips/AsmParser/LLVMBuild.txt ----------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = MipsAsmParser -parent = Mips -required_libraries = MC MCParser MipsDesc MipsInfo Support -add_to_library_groups = Mips Index: llvm/lib/Target/Mips/Disassembler/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/Mips/Disassembler/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME MipsDisassembler + PARENT Mips + REQUIRED_LIBRARIES MCDisassembler MipsInfo Support + ADD_TO_LIBRARY_GROUPS Mips +) Index: llvm/lib/Target/Mips/Disassembler/LLVMBuild.txt =================================================================== --- llvm/lib/Target/Mips/Disassembler/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/Mips/Disassembler/LLVMBuild.txt -------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = MipsDisassembler -parent = Mips -required_libraries = MCDisassembler MipsInfo Support -add_to_library_groups = Mips Index: llvm/lib/Target/Mips/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/Mips/LLVMBuild.cmake @@ -0,0 +1,16 @@ +LLVMBuildCommon( + SUBDIRECTORIES AsmParser Disassembler MCTargetDesc TargetInfo +) +LLVMBuildComponent( + TYPE TargetGroup + NAME Mips + PARENT Target + HAS_JIT 1 +) +LLVMBuildComponent( + TYPE Library + NAME MipsCodeGen + PARENT Mips + REQUIRED_LIBRARIES Analysis AsmPrinter CodeGen Core MC MipsDesc MipsInfo SelectionDAG Support Target GlobalISel + ADD_TO_LIBRARY_GROUPS Mips +) Index: llvm/lib/Target/Mips/LLVMBuild.txt =================================================================== --- llvm/lib/Target/Mips/LLVMBuild.txt +++ /dev/null @@ -1,45 +0,0 @@ -;===- ./lib/Target/Mips/LLVMBuild.txt --------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[common] -subdirectories = AsmParser Disassembler MCTargetDesc TargetInfo - -[component_0] -type = TargetGroup -name = Mips -parent = Target -has_asmparser = 1 -has_asmprinter = 1 -has_disassembler = 1 -has_jit = 1 - -[component_1] -type = Library -name = MipsCodeGen -parent = Mips -required_libraries = - Analysis - AsmPrinter - CodeGen - Core - MC - MipsDesc - MipsInfo - SelectionDAG - Support - Target - GlobalISel -add_to_library_groups = Mips Index: llvm/lib/Target/Mips/MCTargetDesc/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/Mips/MCTargetDesc/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME MipsDesc + PARENT Mips + REQUIRED_LIBRARIES MC MipsInfo Support + ADD_TO_LIBRARY_GROUPS Mips +) Index: llvm/lib/Target/Mips/MCTargetDesc/LLVMBuild.txt =================================================================== --- llvm/lib/Target/Mips/MCTargetDesc/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/Mips/MCTargetDesc/LLVMBuild.txt -------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = MipsDesc -parent = Mips -required_libraries = MC MipsInfo Support -add_to_library_groups = Mips Index: llvm/lib/Target/Mips/TargetInfo/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/Mips/TargetInfo/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME MipsInfo + PARENT Mips + REQUIRED_LIBRARIES Support + ADD_TO_LIBRARY_GROUPS Mips +) Index: llvm/lib/Target/Mips/TargetInfo/LLVMBuild.txt =================================================================== --- llvm/lib/Target/Mips/TargetInfo/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/Mips/TargetInfo/LLVMBuild.txt ---------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = MipsInfo -parent = Mips -required_libraries = Support -add_to_library_groups = Mips Index: llvm/lib/Target/NVPTX/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/NVPTX/LLVMBuild.cmake @@ -0,0 +1,16 @@ +LLVMBuildCommon( + SUBDIRECTORIES MCTargetDesc TargetInfo +) +LLVMBuildComponent( + TYPE TargetGroup + NAME NVPTX + PARENT Target + HAS_ASMPRINTER 1 +) +LLVMBuildComponent( + TYPE Library + NAME NVPTXCodeGen + PARENT NVPTX + REQUIRED_LIBRARIES Analysis AsmPrinter CodeGen Core IPO MC NVPTXDesc NVPTXInfo Scalar SelectionDAG Support Target TransformUtils Vectorize + ADD_TO_LIBRARY_GROUPS NVPTX +) Index: llvm/lib/Target/NVPTX/LLVMBuild.txt =================================================================== --- llvm/lib/Target/NVPTX/LLVMBuild.txt +++ /dev/null @@ -1,31 +0,0 @@ -;===- ./lib/Target/NVPTX/LLVMBuild.txt -------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[common] -subdirectories = MCTargetDesc TargetInfo - -[component_0] -type = TargetGroup -name = NVPTX -parent = Target -has_asmprinter = 1 - -[component_1] -type = Library -name = NVPTXCodeGen -parent = NVPTX -required_libraries = Analysis AsmPrinter CodeGen Core IPO MC NVPTXDesc NVPTXInfo Scalar SelectionDAG Support Target TransformUtils Vectorize -add_to_library_groups = NVPTX Index: llvm/lib/Target/NVPTX/MCTargetDesc/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/NVPTX/MCTargetDesc/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME NVPTXDesc + PARENT NVPTX + REQUIRED_LIBRARIES MC NVPTXInfo Support + ADD_TO_LIBRARY_GROUPS NVPTX +) Index: llvm/lib/Target/NVPTX/MCTargetDesc/LLVMBuild.txt =================================================================== --- llvm/lib/Target/NVPTX/MCTargetDesc/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/NVPTX/MCTargetDesc/LLVMBuild.txt ------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = NVPTXDesc -parent = NVPTX -required_libraries = MC NVPTXInfo Support -add_to_library_groups = NVPTX Index: llvm/lib/Target/NVPTX/TargetInfo/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/NVPTX/TargetInfo/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME NVPTXInfo + PARENT NVPTX + REQUIRED_LIBRARIES Support + ADD_TO_LIBRARY_GROUPS NVPTX +) Index: llvm/lib/Target/NVPTX/TargetInfo/LLVMBuild.txt =================================================================== --- llvm/lib/Target/NVPTX/TargetInfo/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/NVPTX/TargetInfo/LLVMBuild.txt --------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = NVPTXInfo -parent = NVPTX -required_libraries = Support -add_to_library_groups = NVPTX Index: llvm/lib/Target/PowerPC/AsmParser/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/PowerPC/AsmParser/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME PowerPCAsmParser + PARENT PowerPC + REQUIRED_LIBRARIES MC MCParser PowerPCDesc PowerPCInfo Support + ADD_TO_LIBRARY_GROUPS PowerPC +) Index: llvm/lib/Target/PowerPC/AsmParser/LLVMBuild.txt =================================================================== --- llvm/lib/Target/PowerPC/AsmParser/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/PowerPC/AsmParser/LLVMBuild.txt -------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = PowerPCAsmParser -parent = PowerPC -required_libraries = MC MCParser PowerPCDesc PowerPCInfo Support -add_to_library_groups = PowerPC Index: llvm/lib/Target/PowerPC/Disassembler/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/PowerPC/Disassembler/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME PowerPCDisassembler + PARENT PowerPC + REQUIRED_LIBRARIES MCDisassembler PowerPCInfo Support + ADD_TO_LIBRARY_GROUPS PowerPC +) Index: llvm/lib/Target/PowerPC/Disassembler/LLVMBuild.txt =================================================================== --- llvm/lib/Target/PowerPC/Disassembler/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===-- ./lib/Target/PowerPC/Disassembler/LLVMBuild.txt ---------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = PowerPCDisassembler -parent = PowerPC -required_libraries = MCDisassembler PowerPCInfo Support -add_to_library_groups = PowerPC Index: llvm/lib/Target/PowerPC/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/PowerPC/LLVMBuild.cmake @@ -0,0 +1,16 @@ +LLVMBuildCommon( + SUBDIRECTORIES AsmParser Disassembler MCTargetDesc TargetInfo +) +LLVMBuildComponent( + TYPE TargetGroup + NAME PowerPC + PARENT Target + HAS_JIT 1 +) +LLVMBuildComponent( + TYPE Library + NAME PowerPCCodeGen + PARENT PowerPC + REQUIRED_LIBRARIES Analysis AsmPrinter CodeGen Core MC PowerPCDesc PowerPCInfo Scalar SelectionDAG Support Target TransformUtils GlobalISel + ADD_TO_LIBRARY_GROUPS PowerPC +) Index: llvm/lib/Target/PowerPC/LLVMBuild.txt =================================================================== --- llvm/lib/Target/PowerPC/LLVMBuild.txt +++ /dev/null @@ -1,34 +0,0 @@ -;===- ./lib/Target/PowerPC/LLVMBuild.txt -----------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[common] -subdirectories = AsmParser Disassembler MCTargetDesc TargetInfo - -[component_0] -type = TargetGroup -name = PowerPC -parent = Target -has_asmparser = 1 -has_asmprinter = 1 -has_disassembler = 1 -has_jit = 1 - -[component_1] -type = Library -name = PowerPCCodeGen -parent = PowerPC -required_libraries = Analysis AsmPrinter CodeGen Core MC PowerPCDesc PowerPCInfo Scalar SelectionDAG Support Target TransformUtils GlobalISel -add_to_library_groups = PowerPC Index: llvm/lib/Target/PowerPC/MCTargetDesc/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/PowerPC/MCTargetDesc/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME PowerPCDesc + PARENT PowerPC + REQUIRED_LIBRARIES MC PowerPCInfo Support BinaryFormat + ADD_TO_LIBRARY_GROUPS PowerPC +) Index: llvm/lib/Target/PowerPC/MCTargetDesc/LLVMBuild.txt =================================================================== --- llvm/lib/Target/PowerPC/MCTargetDesc/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/PowerPC/MCTargetDesc/LLVMBuild.txt ----------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = PowerPCDesc -parent = PowerPC -required_libraries = MC PowerPCInfo Support BinaryFormat -add_to_library_groups = PowerPC Index: llvm/lib/Target/PowerPC/TargetInfo/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/PowerPC/TargetInfo/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME PowerPCInfo + PARENT PowerPC + REQUIRED_LIBRARIES Support + ADD_TO_LIBRARY_GROUPS PowerPC +) Index: llvm/lib/Target/PowerPC/TargetInfo/LLVMBuild.txt =================================================================== --- llvm/lib/Target/PowerPC/TargetInfo/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/PowerPC/TargetInfo/LLVMBuild.txt ------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = PowerPCInfo -parent = PowerPC -required_libraries = Support -add_to_library_groups = PowerPC Index: llvm/lib/Target/RISCV/AsmParser/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/RISCV/AsmParser/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME RISCVAsmParser + PARENT RISCV + REQUIRED_LIBRARIES MC MCParser RISCVDesc RISCVInfo RISCVUtils Support + ADD_TO_LIBRARY_GROUPS RISCV +) Index: llvm/lib/Target/RISCV/AsmParser/LLVMBuild.txt =================================================================== --- llvm/lib/Target/RISCV/AsmParser/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/RISCV/AsmParser/LLVMBuild.txt ---------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = RISCVAsmParser -parent = RISCV -required_libraries = MC MCParser RISCVDesc RISCVInfo RISCVUtils Support -add_to_library_groups = RISCV Index: llvm/lib/Target/RISCV/Disassembler/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/RISCV/Disassembler/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME RISCVDisassembler + PARENT RISCV + REQUIRED_LIBRARIES MCDisassembler RISCVInfo Support + ADD_TO_LIBRARY_GROUPS RISCV +) Index: llvm/lib/Target/RISCV/Disassembler/LLVMBuild.txt =================================================================== --- llvm/lib/Target/RISCV/Disassembler/LLVMBuild.txt +++ /dev/null @@ -1,23 +0,0 @@ -;===- ./lib/Target/RISCV/Disassembler/LLVMBuild.txt ------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = RISCVDisassembler -parent = RISCV -required_libraries = MCDisassembler RISCVInfo Support -add_to_library_groups = RISCV - Index: llvm/lib/Target/RISCV/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/RISCV/LLVMBuild.cmake @@ -0,0 +1,15 @@ +LLVMBuildCommon( + SUBDIRECTORIES AsmParser Disassembler TargetInfo MCTargetDesc Utils +) +LLVMBuildComponent( + TYPE TargetGroup + NAME RISCV + PARENT Target +) +LLVMBuildComponent( + TYPE Library + NAME RISCVCodeGen + PARENT RISCV + REQUIRED_LIBRARIES Analysis AsmPrinter Core CodeGen MC RISCVDesc RISCVInfo RISCVUtils SelectionDAG Support Target GlobalISel + ADD_TO_LIBRARY_GROUPS RISCV +) Index: llvm/lib/Target/RISCV/LLVMBuild.txt =================================================================== --- llvm/lib/Target/RISCV/LLVMBuild.txt +++ /dev/null @@ -1,34 +0,0 @@ -;===- ./lib/Target/RISCV/LLVMBuild.txt -------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[common] -subdirectories = AsmParser Disassembler TargetInfo MCTargetDesc Utils - -[component_0] -type = TargetGroup -name = RISCV -parent = Target -has_asmparser = 1 -has_asmprinter = 1 -has_disassembler = 1 - -[component_1] -type = Library -name = RISCVCodeGen -parent = RISCV -required_libraries = Analysis AsmPrinter Core CodeGen MC RISCVDesc - RISCVInfo RISCVUtils SelectionDAG Support Target GlobalISel -add_to_library_groups = RISCV Index: llvm/lib/Target/RISCV/MCTargetDesc/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/RISCV/MCTargetDesc/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME RISCVDesc + PARENT RISCV + REQUIRED_LIBRARIES MC RISCVInfo RISCVUtils Support + ADD_TO_LIBRARY_GROUPS RISCV +) Index: llvm/lib/Target/RISCV/MCTargetDesc/LLVMBuild.txt =================================================================== --- llvm/lib/Target/RISCV/MCTargetDesc/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/RISCV/MCTargetDesc/LLVMBuild.txt ------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = RISCVDesc -parent = RISCV -required_libraries = MC RISCVInfo RISCVUtils Support -add_to_library_groups = RISCV Index: llvm/lib/Target/RISCV/TargetInfo/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/RISCV/TargetInfo/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME RISCVInfo + PARENT RISCV + REQUIRED_LIBRARIES Support + ADD_TO_LIBRARY_GROUPS RISCV +) Index: llvm/lib/Target/RISCV/TargetInfo/LLVMBuild.txt =================================================================== --- llvm/lib/Target/RISCV/TargetInfo/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/RISCV/TargetInfo/LLVMBuild.txt --------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = RISCVInfo -parent = RISCV -required_libraries = Support -add_to_library_groups = RISCV Index: llvm/lib/Target/RISCV/Utils/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/RISCV/Utils/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME RISCVUtils + PARENT RISCV + REQUIRED_LIBRARIES Support + ADD_TO_LIBRARY_GROUPS RISCV +) Index: llvm/lib/Target/RISCV/Utils/LLVMBuild.txt =================================================================== --- llvm/lib/Target/RISCV/Utils/LLVMBuild.txt +++ /dev/null @@ -1,23 +0,0 @@ -;===- ./lib/Target/RISCV/Utils/LLVMBuild.txt ----------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = RISCVUtils -parent = RISCV -required_libraries = Support -add_to_library_groups = RISCV - Index: llvm/lib/Target/Sparc/AsmParser/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/Sparc/AsmParser/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME SparcAsmParser + PARENT Sparc + REQUIRED_LIBRARIES MC MCParser SparcDesc SparcInfo Support + ADD_TO_LIBRARY_GROUPS Sparc +) Index: llvm/lib/Target/Sparc/AsmParser/LLVMBuild.txt =================================================================== --- llvm/lib/Target/Sparc/AsmParser/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/Sparc/AsmParser/LLVMBuild.txt ---------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = SparcAsmParser -parent = Sparc -required_libraries = MC MCParser SparcDesc SparcInfo Support -add_to_library_groups = Sparc Index: llvm/lib/Target/Sparc/Disassembler/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/Sparc/Disassembler/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME SparcDisassembler + PARENT Sparc + REQUIRED_LIBRARIES MCDisassembler SparcInfo Support + ADD_TO_LIBRARY_GROUPS Sparc +) Index: llvm/lib/Target/Sparc/Disassembler/LLVMBuild.txt =================================================================== --- llvm/lib/Target/Sparc/Disassembler/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/Sparc/Disassembler/LLVMBuild.txt ------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = SparcDisassembler -parent = Sparc -required_libraries = MCDisassembler SparcInfo Support -add_to_library_groups = Sparc Index: llvm/lib/Target/Sparc/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/Sparc/LLVMBuild.cmake @@ -0,0 +1,16 @@ +LLVMBuildCommon( + SUBDIRECTORIES AsmParser Disassembler MCTargetDesc TargetInfo +) +LLVMBuildComponent( + TYPE TargetGroup + NAME Sparc + PARENT Target + HAS_JIT 1 +) +LLVMBuildComponent( + TYPE Library + NAME SparcCodeGen + PARENT Sparc + REQUIRED_LIBRARIES AsmPrinter CodeGen Core MC SelectionDAG SparcDesc SparcInfo Support Target + ADD_TO_LIBRARY_GROUPS Sparc +) Index: llvm/lib/Target/Sparc/LLVMBuild.txt =================================================================== --- llvm/lib/Target/Sparc/LLVMBuild.txt +++ /dev/null @@ -1,35 +0,0 @@ -;===- ./lib/Target/Sparc/LLVMBuild.txt -------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[common] -subdirectories = AsmParser Disassembler MCTargetDesc TargetInfo - -[component_0] -type = TargetGroup -name = Sparc -parent = Target -has_asmparser = 1 -has_asmprinter = 1 -has_disassembler = 1 -has_jit = 1 - -[component_1] -type = Library -name = SparcCodeGen -parent = Sparc -required_libraries = AsmPrinter CodeGen Core MC SelectionDAG - SparcDesc SparcInfo Support Target -add_to_library_groups = Sparc Index: llvm/lib/Target/Sparc/MCTargetDesc/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/Sparc/MCTargetDesc/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME SparcDesc + PARENT Sparc + REQUIRED_LIBRARIES MC SparcInfo Support + ADD_TO_LIBRARY_GROUPS Sparc +) Index: llvm/lib/Target/Sparc/MCTargetDesc/LLVMBuild.txt =================================================================== --- llvm/lib/Target/Sparc/MCTargetDesc/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/Sparc/MCTargetDesc/LLVMBuild.txt ------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = SparcDesc -parent = Sparc -required_libraries = MC SparcInfo Support -add_to_library_groups = Sparc Index: llvm/lib/Target/Sparc/TargetInfo/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/Sparc/TargetInfo/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME SparcInfo + PARENT Sparc + REQUIRED_LIBRARIES Support + ADD_TO_LIBRARY_GROUPS Sparc +) Index: llvm/lib/Target/Sparc/TargetInfo/LLVMBuild.txt =================================================================== --- llvm/lib/Target/Sparc/TargetInfo/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/Sparc/TargetInfo/LLVMBuild.txt --------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = SparcInfo -parent = Sparc -required_libraries = Support -add_to_library_groups = Sparc Index: llvm/lib/Target/SystemZ/AsmParser/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/SystemZ/AsmParser/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME SystemZAsmParser + PARENT SystemZ + REQUIRED_LIBRARIES MC MCParser Support SystemZDesc SystemZInfo + ADD_TO_LIBRARY_GROUPS SystemZ +) Index: llvm/lib/Target/SystemZ/AsmParser/LLVMBuild.txt =================================================================== --- llvm/lib/Target/SystemZ/AsmParser/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/SystemZ/AsmParser/LLVMBuild.txt -------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = SystemZAsmParser -parent = SystemZ -required_libraries = MC MCParser Support SystemZDesc SystemZInfo -add_to_library_groups = SystemZ Index: llvm/lib/Target/SystemZ/Disassembler/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/SystemZ/Disassembler/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME SystemZDisassembler + PARENT SystemZ + REQUIRED_LIBRARIES MC MCDisassembler Support SystemZDesc SystemZInfo + ADD_TO_LIBRARY_GROUPS SystemZ +) Index: llvm/lib/Target/SystemZ/Disassembler/LLVMBuild.txt =================================================================== --- llvm/lib/Target/SystemZ/Disassembler/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===-- ./lib/Target/SystemZ/Disassembler/LLVMBuild.txt ---------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = SystemZDisassembler -parent = SystemZ -required_libraries = MC MCDisassembler Support SystemZDesc SystemZInfo -add_to_library_groups = SystemZ Index: llvm/lib/Target/SystemZ/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/SystemZ/LLVMBuild.cmake @@ -0,0 +1,16 @@ +LLVMBuildCommon( + SUBDIRECTORIES AsmParser Disassembler MCTargetDesc TargetInfo +) +LLVMBuildComponent( + TYPE TargetGroup + NAME SystemZ + PARENT Target + HAS_JIT 1 +) +LLVMBuildComponent( + TYPE Library + NAME SystemZCodeGen + PARENT SystemZ + REQUIRED_LIBRARIES Analysis AsmPrinter CodeGen Core MC Scalar SelectionDAG Support SystemZDesc SystemZInfo Target + ADD_TO_LIBRARY_GROUPS SystemZ +) Index: llvm/lib/Target/SystemZ/LLVMBuild.txt =================================================================== --- llvm/lib/Target/SystemZ/LLVMBuild.txt +++ /dev/null @@ -1,34 +0,0 @@ -;===- ./lib/Target/SystemZ/LLVMBuild.txt -----------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[common] -subdirectories = AsmParser Disassembler MCTargetDesc TargetInfo - -[component_0] -type = TargetGroup -name = SystemZ -parent = Target -has_asmparser = 1 -has_asmprinter = 1 -has_disassembler = 1 -has_jit = 1 - -[component_1] -type = Library -name = SystemZCodeGen -parent = SystemZ -required_libraries = Analysis AsmPrinter CodeGen Core MC Scalar SelectionDAG Support SystemZDesc SystemZInfo Target -add_to_library_groups = SystemZ Index: llvm/lib/Target/SystemZ/MCTargetDesc/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/SystemZ/MCTargetDesc/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME SystemZDesc + PARENT SystemZ + REQUIRED_LIBRARIES MC Support SystemZInfo + ADD_TO_LIBRARY_GROUPS SystemZ +) Index: llvm/lib/Target/SystemZ/MCTargetDesc/LLVMBuild.txt =================================================================== --- llvm/lib/Target/SystemZ/MCTargetDesc/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/SystemZ/MCTargetDesc/LLVMBuild.txt ----------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = SystemZDesc -parent = SystemZ -required_libraries = MC Support SystemZInfo -add_to_library_groups = SystemZ Index: llvm/lib/Target/SystemZ/TargetInfo/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/SystemZ/TargetInfo/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME SystemZInfo + PARENT SystemZ + REQUIRED_LIBRARIES Support + ADD_TO_LIBRARY_GROUPS SystemZ +) Index: llvm/lib/Target/SystemZ/TargetInfo/LLVMBuild.txt =================================================================== --- llvm/lib/Target/SystemZ/TargetInfo/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/SystemZ/TargetInfo/LLVMBuild.txt ------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = SystemZInfo -parent = SystemZ -required_libraries = Support -add_to_library_groups = SystemZ Index: llvm/lib/Target/VE/AsmParser/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/VE/AsmParser/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME VEAsmParser + PARENT VE + REQUIRED_LIBRARIES MC MCParser VEDesc VEInfo Support + ADD_TO_LIBRARY_GROUPS VE +) Index: llvm/lib/Target/VE/AsmParser/LLVMBuild.txt =================================================================== --- llvm/lib/Target/VE/AsmParser/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/VE/AsmParser/LLVMBuild.txt ------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = VEAsmParser -parent = VE -required_libraries = MC MCParser VEDesc VEInfo Support -add_to_library_groups = VE Index: llvm/lib/Target/VE/Disassembler/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/VE/Disassembler/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME VEDisassembler + PARENT VE + REQUIRED_LIBRARIES MCDisassembler VEInfo Support + ADD_TO_LIBRARY_GROUPS VE +) Index: llvm/lib/Target/VE/Disassembler/LLVMBuild.txt =================================================================== --- llvm/lib/Target/VE/Disassembler/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/VE/Disassembler/LLVMBuild.txt ---------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = VEDisassembler -parent = VE -required_libraries = MCDisassembler VEInfo Support -add_to_library_groups = VE Index: llvm/lib/Target/VE/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/VE/LLVMBuild.cmake @@ -0,0 +1,15 @@ +LLVMBuildCommon( + SUBDIRECTORIES AsmParser Disassembler MCTargetDesc TargetInfo +) +LLVMBuildComponent( + TYPE TargetGroup + NAME VE + PARENT Target +) +LLVMBuildComponent( + TYPE Library + NAME VECodeGen + PARENT VE + REQUIRED_LIBRARIES Analysis AsmPrinter CodeGen Core MC SelectionDAG VEDesc VEInfo Support Target + ADD_TO_LIBRARY_GROUPS VE +) Index: llvm/lib/Target/VE/LLVMBuild.txt =================================================================== --- llvm/lib/Target/VE/LLVMBuild.txt +++ /dev/null @@ -1,34 +0,0 @@ -;===- ./lib/Target/VE/LLVMBuild.txt ----------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[common] -subdirectories = AsmParser Disassembler MCTargetDesc TargetInfo - -[component_0] -type = TargetGroup -name = VE -parent = Target -has_asmparser = 1 -has_asmprinter = 1 -has_disassembler = 1 - -[component_1] -type = Library -name = VECodeGen -parent = VE -required_libraries = Analysis AsmPrinter CodeGen Core - MC SelectionDAG VEDesc VEInfo Support Target -add_to_library_groups = VE Index: llvm/lib/Target/VE/MCTargetDesc/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/VE/MCTargetDesc/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME VEDesc + PARENT VE + REQUIRED_LIBRARIES MC VEInfo Support + ADD_TO_LIBRARY_GROUPS VE +) Index: llvm/lib/Target/VE/MCTargetDesc/LLVMBuild.txt =================================================================== --- llvm/lib/Target/VE/MCTargetDesc/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/VE/MCTargetDesc/LLVMBuild.txt ---------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = VEDesc -parent = VE -required_libraries = MC VEInfo Support -add_to_library_groups = VE Index: llvm/lib/Target/VE/TargetInfo/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/VE/TargetInfo/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME VEInfo + PARENT VE + REQUIRED_LIBRARIES Support + ADD_TO_LIBRARY_GROUPS VE +) Index: llvm/lib/Target/VE/TargetInfo/LLVMBuild.txt =================================================================== --- llvm/lib/Target/VE/TargetInfo/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/VE/TargetInfo/LLVMBuild.txt -----------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = VEInfo -parent = VE -required_libraries = Support -add_to_library_groups = VE Index: llvm/lib/Target/WebAssembly/AsmParser/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/WebAssembly/AsmParser/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME WebAssemblyAsmParser + PARENT WebAssembly + REQUIRED_LIBRARIES MC MCParser WebAssemblyInfo Support + ADD_TO_LIBRARY_GROUPS WebAssembly +) Index: llvm/lib/Target/WebAssembly/AsmParser/LLVMBuild.txt =================================================================== --- llvm/lib/Target/WebAssembly/AsmParser/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===-- ./lib/Target/WebAssembly/Disassembler/LLVMBuild.txt -----*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = WebAssemblyAsmParser -parent = WebAssembly -required_libraries = MC MCParser WebAssemblyInfo Support -add_to_library_groups = WebAssembly Index: llvm/lib/Target/WebAssembly/Disassembler/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/WebAssembly/Disassembler/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME WebAssemblyDisassembler + PARENT WebAssembly + REQUIRED_LIBRARIES WebAssemblyDesc MCDisassembler WebAssemblyInfo Support MC + ADD_TO_LIBRARY_GROUPS WebAssembly +) Index: llvm/lib/Target/WebAssembly/Disassembler/LLVMBuild.txt =================================================================== --- llvm/lib/Target/WebAssembly/Disassembler/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===-- ./lib/Target/WebAssembly/Disassembler/LLVMBuild.txt -----*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = WebAssemblyDisassembler -parent = WebAssembly -required_libraries = WebAssemblyDesc MCDisassembler WebAssemblyInfo Support MC -add_to_library_groups = WebAssembly Index: llvm/lib/Target/WebAssembly/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/WebAssembly/LLVMBuild.cmake @@ -0,0 +1,15 @@ +LLVMBuildCommon( + SUBDIRECTORIES AsmParser Disassembler MCTargetDesc TargetInfo +) +LLVMBuildComponent( + TYPE TargetGroup + NAME WebAssembly + PARENT Target +) +LLVMBuildComponent( + TYPE Library + NAME WebAssemblyCodeGen + PARENT WebAssembly + REQUIRED_LIBRARIES Analysis AsmPrinter BinaryFormat CodeGen Core MC Scalar SelectionDAG Support Target TransformUtils WebAssemblyDesc WebAssemblyInfo + ADD_TO_LIBRARY_GROUPS WebAssembly +) Index: llvm/lib/Target/WebAssembly/LLVMBuild.txt =================================================================== --- llvm/lib/Target/WebAssembly/LLVMBuild.txt +++ /dev/null @@ -1,33 +0,0 @@ -;===- ./lib/Target/WebAssembly/LLVMBuild.txt -------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[common] -subdirectories = AsmParser Disassembler MCTargetDesc TargetInfo - -[component_0] -type = TargetGroup -name = WebAssembly -parent = Target -has_asmparser = 1 -has_asmprinter = 1 -has_disassembler = 1 - -[component_1] -type = Library -name = WebAssemblyCodeGen -parent = WebAssembly -required_libraries = Analysis AsmPrinter BinaryFormat CodeGen Core MC Scalar SelectionDAG Support Target TransformUtils WebAssemblyDesc WebAssemblyInfo -add_to_library_groups = WebAssembly Index: llvm/lib/Target/WebAssembly/MCTargetDesc/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/WebAssembly/MCTargetDesc/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME WebAssemblyDesc + PARENT WebAssembly + REQUIRED_LIBRARIES MC Support WebAssemblyInfo + ADD_TO_LIBRARY_GROUPS WebAssembly +) Index: llvm/lib/Target/WebAssembly/MCTargetDesc/LLVMBuild.txt =================================================================== --- llvm/lib/Target/WebAssembly/MCTargetDesc/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/WebAssembly/MCTargetDesc/LLVMBuild.txt ------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = WebAssemblyDesc -parent = WebAssembly -required_libraries = MC Support WebAssemblyInfo -add_to_library_groups = WebAssembly Index: llvm/lib/Target/WebAssembly/TargetInfo/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/WebAssembly/TargetInfo/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME WebAssemblyInfo + PARENT WebAssembly + REQUIRED_LIBRARIES Support + ADD_TO_LIBRARY_GROUPS WebAssembly +) Index: llvm/lib/Target/WebAssembly/TargetInfo/LLVMBuild.txt =================================================================== --- llvm/lib/Target/WebAssembly/TargetInfo/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/WebAssembly/TargetInfo/LLVMBuild.txt --------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = WebAssemblyInfo -parent = WebAssembly -required_libraries = Support -add_to_library_groups = WebAssembly Index: llvm/lib/Target/X86/AsmParser/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/X86/AsmParser/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME X86AsmParser + PARENT X86 + REQUIRED_LIBRARIES MC MCParser Support X86Desc X86Info + ADD_TO_LIBRARY_GROUPS X86 +) Index: llvm/lib/Target/X86/AsmParser/LLVMBuild.txt =================================================================== --- llvm/lib/Target/X86/AsmParser/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/X86/AsmParser/LLVMBuild.txt -----------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = X86AsmParser -parent = X86 -required_libraries = MC MCParser Support X86Desc X86Info -add_to_library_groups = X86 Index: llvm/lib/Target/X86/Disassembler/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/X86/Disassembler/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME X86Disassembler + PARENT X86 + REQUIRED_LIBRARIES MCDisassembler Support X86Info + ADD_TO_LIBRARY_GROUPS X86 +) Index: llvm/lib/Target/X86/Disassembler/LLVMBuild.txt =================================================================== --- llvm/lib/Target/X86/Disassembler/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/X86/Disassembler/LLVMBuild.txt --------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = X86Disassembler -parent = X86 -required_libraries = MCDisassembler Support X86Info -add_to_library_groups = X86 Index: llvm/lib/Target/X86/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/X86/LLVMBuild.cmake @@ -0,0 +1,16 @@ +LLVMBuildCommon( + SUBDIRECTORIES AsmParser Disassembler MCTargetDesc TargetInfo +) +LLVMBuildComponent( + TYPE TargetGroup + NAME X86 + PARENT Target + HAS_JIT 1 +) +LLVMBuildComponent( + TYPE Library + NAME X86CodeGen + PARENT X86 + REQUIRED_LIBRARIES Analysis AsmPrinter CodeGen Core MC SelectionDAG Support Target X86Desc X86Info GlobalISel ProfileData CFGuard + ADD_TO_LIBRARY_GROUPS X86 +) Index: llvm/lib/Target/X86/LLVMBuild.txt =================================================================== --- llvm/lib/Target/X86/LLVMBuild.txt +++ /dev/null @@ -1,34 +0,0 @@ -;===- ./lib/Target/X86/LLVMBuild.txt ---------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[common] -subdirectories = AsmParser Disassembler MCTargetDesc TargetInfo - -[component_0] -type = TargetGroup -name = X86 -parent = Target -has_asmparser = 1 -has_asmprinter = 1 -has_disassembler = 1 -has_jit = 1 - -[component_1] -type = Library -name = X86CodeGen -parent = X86 -required_libraries = Analysis AsmPrinter CodeGen Core MC SelectionDAG Support Target X86Desc X86Info GlobalISel ProfileData CFGuard -add_to_library_groups = X86 Index: llvm/lib/Target/X86/MCTargetDesc/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/X86/MCTargetDesc/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME X86Desc + PARENT X86 + REQUIRED_LIBRARIES MC MCDisassembler Support X86Info BinaryFormat + ADD_TO_LIBRARY_GROUPS X86 +) Index: llvm/lib/Target/X86/MCTargetDesc/LLVMBuild.txt =================================================================== --- llvm/lib/Target/X86/MCTargetDesc/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/X86/MCTargetDesc/LLVMBuild.txt --------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = X86Desc -parent = X86 -required_libraries = MC MCDisassembler Support X86Info BinaryFormat -add_to_library_groups = X86 Index: llvm/lib/Target/X86/TargetInfo/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/X86/TargetInfo/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME X86Info + PARENT X86 + REQUIRED_LIBRARIES Support + ADD_TO_LIBRARY_GROUPS X86 +) Index: llvm/lib/Target/X86/TargetInfo/LLVMBuild.txt =================================================================== --- llvm/lib/Target/X86/TargetInfo/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/X86/TargetInfo/LLVMBuild.txt ----------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = X86Info -parent = X86 -required_libraries = Support -add_to_library_groups = X86 Index: llvm/lib/Target/XCore/Disassembler/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/XCore/Disassembler/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME XCoreDisassembler + PARENT XCore + REQUIRED_LIBRARIES MCDisassembler Support XCoreInfo + ADD_TO_LIBRARY_GROUPS XCore +) Index: llvm/lib/Target/XCore/Disassembler/LLVMBuild.txt =================================================================== --- llvm/lib/Target/XCore/Disassembler/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/XCore/Disassembler/LLVMBuild.txt ------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = XCoreDisassembler -parent = XCore -required_libraries = MCDisassembler Support XCoreInfo -add_to_library_groups = XCore Index: llvm/lib/Target/XCore/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/XCore/LLVMBuild.cmake @@ -0,0 +1,17 @@ +LLVMBuildCommon( + SUBDIRECTORIES Disassembler MCTargetDesc TargetInfo +) +LLVMBuildComponent( + TYPE TargetGroup + NAME XCore + PARENT Target + HAS_ASMPRINTER 1 + HAS_DISASSEMBLER 1 +) +LLVMBuildComponent( + TYPE Library + NAME XCoreCodeGen + PARENT XCore + REQUIRED_LIBRARIES Analysis AsmPrinter CodeGen Core MC SelectionDAG Support Target TransformUtils XCoreDesc XCoreInfo + ADD_TO_LIBRARY_GROUPS XCore +) Index: llvm/lib/Target/XCore/LLVMBuild.txt =================================================================== --- llvm/lib/Target/XCore/LLVMBuild.txt +++ /dev/null @@ -1,43 +0,0 @@ -;===- ./lib/Target/XCore/LLVMBuild.txt -------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[common] -subdirectories = Disassembler MCTargetDesc TargetInfo - -[component_0] -type = TargetGroup -name = XCore -parent = Target -has_asmprinter = 1 -has_disassembler = 1 - -[component_1] -type = Library -name = XCoreCodeGen -parent = XCore -required_libraries = - Analysis - AsmPrinter - CodeGen - Core - MC - SelectionDAG - Support - Target - TransformUtils - XCoreDesc - XCoreInfo -add_to_library_groups = XCore Index: llvm/lib/Target/XCore/MCTargetDesc/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/XCore/MCTargetDesc/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME XCoreDesc + PARENT XCore + REQUIRED_LIBRARIES MC Support XCoreInfo + ADD_TO_LIBRARY_GROUPS XCore +) Index: llvm/lib/Target/XCore/MCTargetDesc/LLVMBuild.txt =================================================================== --- llvm/lib/Target/XCore/MCTargetDesc/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/XCore/MCTargetDesc/LLVMBuild.txt ------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = XCoreDesc -parent = XCore -required_libraries = MC Support XCoreInfo -add_to_library_groups = XCore Index: llvm/lib/Target/XCore/TargetInfo/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Target/XCore/TargetInfo/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME XCoreInfo + PARENT XCore + REQUIRED_LIBRARIES Support + ADD_TO_LIBRARY_GROUPS XCore +) Index: llvm/lib/Target/XCore/TargetInfo/LLVMBuild.txt =================================================================== --- llvm/lib/Target/XCore/TargetInfo/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Target/XCore/TargetInfo/LLVMBuild.txt --------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = XCoreInfo -parent = XCore -required_libraries = Support -add_to_library_groups = XCore Index: llvm/lib/Testing/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Testing/LLVMBuild.cmake @@ -0,0 +1,3 @@ +LLVMBuildCommon( + SUBDIRECTORIES Support +) Index: llvm/lib/Testing/LLVMBuild.txt =================================================================== --- llvm/lib/Testing/LLVMBuild.txt +++ /dev/null @@ -1,18 +0,0 @@ -;===- ./lib/Testing/LLVMBuild.txt ------------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[common] -subdirectories = Support Index: llvm/lib/Testing/Support/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Testing/Support/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME TestingSupport + PARENT Libraries + REQUIRED_LIBRARIES Support + INSTALLED 0 +) Index: llvm/lib/Testing/Support/LLVMBuild.txt =================================================================== --- llvm/lib/Testing/Support/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./Testing/Support/LLVMBuild.txt --------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = TestingSupport -parent = Libraries -required_libraries = Support -installed = 0 Index: llvm/lib/TextAPI/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/TextAPI/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE Library + NAME TextAPI + PARENT Libraries + REQUIRED_LIBRARIES Support BinaryFormat +) Index: llvm/lib/TextAPI/LLVMBuild.txt =================================================================== --- llvm/lib/TextAPI/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./lib/TextAPI/LLVMBuild.txt ------------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = TextAPI -parent = Libraries -required_libraries = Support BinaryFormat Index: llvm/lib/ToolDrivers/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/ToolDrivers/LLVMBuild.cmake @@ -0,0 +1,8 @@ +LLVMBuildCommon( + SUBDIRECTORIES llvm-dlltool llvm-lib +) +LLVMBuildComponent( + TYPE Group + NAME ToolDrivers + PARENT Libraries +) Index: llvm/lib/ToolDrivers/LLVMBuild.txt =================================================================== --- llvm/lib/ToolDrivers/LLVMBuild.txt +++ /dev/null @@ -1,23 +0,0 @@ -;===- ./lib/ToolDrivers/LLVMBuild.txt --------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[common] -subdirectories = llvm-dlltool llvm-lib - -[component_0] -type = Group -name = ToolDrivers -parent = Libraries Index: llvm/lib/ToolDrivers/llvm-dlltool/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/ToolDrivers/llvm-dlltool/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE Library + NAME DlltoolDriver + PARENT Libraries + REQUIRED_LIBRARIES Object Option Support +) Index: llvm/lib/ToolDrivers/llvm-dlltool/LLVMBuild.txt =================================================================== --- llvm/lib/ToolDrivers/llvm-dlltool/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./lib/ToolDrivers/llvm-dlltool/LLVMBuild.txt -------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = DlltoolDriver -parent = Libraries -required_libraries = Object Option Support Index: llvm/lib/ToolDrivers/llvm-lib/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/ToolDrivers/llvm-lib/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE Library + NAME LibDriver + PARENT Libraries + REQUIRED_LIBRARIES BinaryFormat BitReader Object Option Support +) Index: llvm/lib/ToolDrivers/llvm-lib/LLVMBuild.txt =================================================================== --- llvm/lib/ToolDrivers/llvm-lib/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./lib/LibDriver/LLVMBuild.txt ----------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = LibDriver -parent = Libraries -required_libraries = BinaryFormat BitReader Object Option Support Index: llvm/lib/Transforms/AggressiveInstCombine/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Transforms/AggressiveInstCombine/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE Library + NAME AggressiveInstCombine + PARENT Transforms + REQUIRED_LIBRARIES Analysis Core Support TransformUtils +) Index: llvm/lib/Transforms/AggressiveInstCombine/LLVMBuild.txt =================================================================== --- llvm/lib/Transforms/AggressiveInstCombine/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./lib/Transforms/AggressiveInstCombine/LLVMBuild.txt -----*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = AggressiveInstCombine -parent = Transforms -required_libraries = Analysis Core Support TransformUtils Index: llvm/lib/Transforms/CFGuard/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Transforms/CFGuard/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE Library + NAME CFGuard + PARENT Transforms + REQUIRED_LIBRARIES Core Support +) Index: llvm/lib/Transforms/CFGuard/LLVMBuild.txt =================================================================== --- llvm/lib/Transforms/CFGuard/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./lib/Transforms/CFGuard/LLVMBuild.txt -------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = CFGuard -parent = Transforms -required_libraries = Core Support Index: llvm/lib/Transforms/Coroutines/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Transforms/Coroutines/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE Library + NAME Coroutines + PARENT Transforms + REQUIRED_LIBRARIES Analysis Core IPO Scalar Support TransformUtils +) Index: llvm/lib/Transforms/Coroutines/LLVMBuild.txt =================================================================== --- llvm/lib/Transforms/Coroutines/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./lib/Transforms/Coroutines/LLVMBuild.txt ----------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = Coroutines -parent = Transforms -required_libraries = Analysis Core IPO Scalar Support TransformUtils Index: llvm/lib/Transforms/HelloNew/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Transforms/HelloNew/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME HelloNew + PARENT Transforms + LIBRARY_NAME HelloNew + REQUIRED_LIBRARIES Core Support +) Index: llvm/lib/Transforms/HelloNew/LLVMBuild.txt =================================================================== --- llvm/lib/Transforms/HelloNew/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Transforms/HelloNew/LLVMBuild.txt ------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = HelloNew -parent = Transforms -library_name = HelloNew -required_libraries = Core Support Index: llvm/lib/Transforms/IPO/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Transforms/IPO/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME IPO + PARENT Transforms + LIBRARY_NAME ipo + REQUIRED_LIBRARIES AggressiveInstCombine Analysis BitReader BitWriter Core FrontendOpenMP InstCombine IRReader Linker Object ProfileData Scalar Support TransformUtils Vectorize Instrumentation +) Index: llvm/lib/Transforms/IPO/LLVMBuild.txt =================================================================== --- llvm/lib/Transforms/IPO/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Transforms/IPO/LLVMBuild.txt -----------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = IPO -parent = Transforms -library_name = ipo -required_libraries = AggressiveInstCombine Analysis BitReader BitWriter Core FrontendOpenMP InstCombine IRReader Linker Object ProfileData Scalar Support TransformUtils Vectorize Instrumentation Index: llvm/lib/Transforms/InstCombine/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Transforms/InstCombine/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE Library + NAME InstCombine + PARENT Transforms + REQUIRED_LIBRARIES Analysis Core Support TransformUtils +) Index: llvm/lib/Transforms/InstCombine/LLVMBuild.txt =================================================================== --- llvm/lib/Transforms/InstCombine/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./lib/Transforms/InstCombine/LLVMBuild.txt ---------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = InstCombine -parent = Transforms -required_libraries = Analysis Core Support TransformUtils Index: llvm/lib/Transforms/Instrumentation/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Transforms/Instrumentation/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE Library + NAME Instrumentation + PARENT Transforms + REQUIRED_LIBRARIES Analysis Core MC Support TransformUtils ProfileData +) Index: llvm/lib/Transforms/Instrumentation/LLVMBuild.txt =================================================================== --- llvm/lib/Transforms/Instrumentation/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./lib/Transforms/Instrumentation/LLVMBuild.txt -----------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = Instrumentation -parent = Transforms -required_libraries = Analysis Core MC Support TransformUtils ProfileData Index: llvm/lib/Transforms/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Transforms/LLVMBuild.cmake @@ -0,0 +1,8 @@ +LLVMBuildCommon( + SUBDIRECTORIES AggressiveInstCombine Coroutines HelloNew IPO InstCombine Instrumentation Scalar Utils Vectorize ObjCARC CFGuard +) +LLVMBuildComponent( + TYPE Group + NAME Transforms + PARENT Libraries +) Index: llvm/lib/Transforms/LLVMBuild.txt =================================================================== --- llvm/lib/Transforms/LLVMBuild.txt +++ /dev/null @@ -1,23 +0,0 @@ -;===- ./lib/Transforms/LLVMBuild.txt ---------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[common] -subdirectories = AggressiveInstCombine Coroutines HelloNew IPO InstCombine Instrumentation Scalar Utils Vectorize ObjCARC CFGuard - -[component_0] -type = Group -name = Transforms -parent = Libraries Index: llvm/lib/Transforms/ObjCARC/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Transforms/ObjCARC/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME ObjCARC + PARENT Transforms + LIBRARY_NAME ObjCARCOpts + REQUIRED_LIBRARIES Analysis Core Support TransformUtils +) Index: llvm/lib/Transforms/ObjCARC/LLVMBuild.txt =================================================================== --- llvm/lib/Transforms/ObjCARC/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Transforms/ObjCARC/LLVMBuild.txt -------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = ObjCARC -parent = Transforms -library_name = ObjCARCOpts -required_libraries = Analysis Core Support TransformUtils Index: llvm/lib/Transforms/Scalar/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Transforms/Scalar/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME Scalar + PARENT Transforms + LIBRARY_NAME ScalarOpts + REQUIRED_LIBRARIES AggressiveInstCombine Analysis Core InstCombine Support TransformUtils +) Index: llvm/lib/Transforms/Scalar/LLVMBuild.txt =================================================================== --- llvm/lib/Transforms/Scalar/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Transforms/Scalar/LLVMBuild.txt --------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = Scalar -parent = Transforms -library_name = ScalarOpts -required_libraries = AggressiveInstCombine Analysis Core InstCombine Support TransformUtils Index: llvm/lib/Transforms/Utils/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Transforms/Utils/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE Library + NAME TransformUtils + PARENT Transforms + REQUIRED_LIBRARIES Analysis Core Support +) Index: llvm/lib/Transforms/Utils/LLVMBuild.txt =================================================================== --- llvm/lib/Transforms/Utils/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./lib/Transforms/Utils/LLVMBuild.txt ---------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = TransformUtils -parent = Transforms -required_libraries = Analysis Core Support Index: llvm/lib/Transforms/Vectorize/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/Transforms/Vectorize/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME Vectorize + PARENT Transforms + LIBRARY_NAME Vectorize + REQUIRED_LIBRARIES Analysis Core Support TransformUtils +) Index: llvm/lib/Transforms/Vectorize/LLVMBuild.txt =================================================================== --- llvm/lib/Transforms/Vectorize/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/Transforms/Scalar/LLVMBuild.txt --------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = Vectorize -parent = Transforms -library_name = Vectorize -required_libraries = Analysis Core Support TransformUtils Index: llvm/lib/WindowsManifest/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/WindowsManifest/LLVMBuild.cmake @@ -0,0 +1,6 @@ +LLVMBuildComponent( + TYPE Library + NAME WindowsManifest + PARENT Libraries + REQUIRED_LIBRARIES Support +) Index: llvm/lib/WindowsManifest/LLVMBuild.txt =================================================================== --- llvm/lib/WindowsManifest/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./lib/WindowsManifest/LLVMBuild.txt ----------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = WindowsManifest -parent = Libraries -required_libraries = Support Index: llvm/lib/XRay/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/lib/XRay/LLVMBuild.cmake @@ -0,0 +1,7 @@ +LLVMBuildComponent( + TYPE Library + NAME XRay + PARENT Libraries + REQUIRED_LIBRARIES Support Object + INSTALLED 1 +) Index: llvm/lib/XRay/LLVMBuild.txt =================================================================== --- llvm/lib/XRay/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./lib/XRay/LLVMBuild.txt ---------------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = XRay -parent = Libraries -required_libraries = Support Object -installed = 1 Index: llvm/projects/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/projects/LLVMBuild.cmake @@ -0,0 +1,5 @@ +LLVMBuildComponent( + TYPE Group + NAME Projects + PARENT $ROOT +) Index: llvm/projects/LLVMBuild.txt =================================================================== --- llvm/projects/LLVMBuild.txt +++ /dev/null @@ -1,20 +0,0 @@ -;===- ./projects/LLVMBuild.txt ---------------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Group -name = Projects -parent = $ROOT Index: llvm/tools/LLVMBuild.txt =================================================================== --- llvm/tools/LLVMBuild.txt +++ /dev/null @@ -1,63 +0,0 @@ -;===- ./tools/LLVMBuild.txt ------------------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[common] -subdirectories = - bugpoint - dsymutil - llc - lli - llvm-ar - llvm-as - llvm-bcanalyzer - llvm-cat - llvm-cfi-verify - llvm-cov - llvm-cvtres - llvm-diff - llvm-dis - llvm-dwarfdump - llvm-dwp - llvm-elfabi - llvm-ifs - llvm-exegesis - llvm-extract - llvm-jitlistener - llvm-jitlink - llvm-link - llvm-lto - llvm-mc - llvm-mca - llvm-modextract - llvm-mt - llvm-nm - llvm-objcopy - llvm-objdump - llvm-pdbutil - llvm-profdata - llvm-rc - llvm-reduce - llvm-rtdyld - llvm-size - llvm-split - llvm-undname - opt - verify-uselistorder - -[component_0] -type = Group -name = Tools -parent = $ROOT Index: llvm/tools/bugpoint/LLVMBuild.txt =================================================================== --- llvm/tools/bugpoint/LLVMBuild.txt +++ /dev/null @@ -1,32 +0,0 @@ -;===- ./tools/bugpoint/LLVMBuild.txt ---------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Tool -name = bugpoint -parent = Tools -required_libraries = - AsmParser - BitReader - BitWriter - CodeGen - IRReader - IPO - Instrumentation - Linker - ObjCARC - Scalar - all-targets Index: llvm/tools/dsymutil/LLVMBuild.txt =================================================================== --- llvm/tools/dsymutil/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./tools/dsymutil/LLVMBuild.txt ---------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Tool -name = dsymutil -parent = Tools -required_libraries = AsmPrinter DebugInfoDWARF DWARFLinker MC Object CodeGen Support all-targets Index: llvm/tools/llc/LLVMBuild.txt =================================================================== --- llvm/tools/llc/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./tools/llc/LLVMBuild.txt --------------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Tool -name = llc -parent = Tools -required_libraries = AsmParser BitReader IRReader MIRParser TransformUtils Scalar Vectorize all-targets Index: llvm/tools/lli/ChildTarget/LLVMBuild.txt =================================================================== --- llvm/tools/lli/ChildTarget/LLVMBuild.txt +++ /dev/null @@ -1,20 +0,0 @@ -;===- ./tools/lli/ChildTarget/LLVMBuild.txt --------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Tool -name = lli-child-target -parent = lli Index: llvm/tools/lli/LLVMBuild.txt =================================================================== --- llvm/tools/lli/LLVMBuild.txt +++ /dev/null @@ -1,34 +0,0 @@ -;===- ./tools/lli/LLVMBuild.txt --------------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[common] -subdirectories = ChildTarget - -[component_0] -type = Tool -name = lli -parent = Tools -required_libraries = - AsmParser - BitReader - IRReader - Instrumentation - Interpreter - MCJIT - Native - NativeCodeGen - SelectionDAG - TransformUtils Index: llvm/tools/llvm-ar/LLVMBuild.txt =================================================================== --- llvm/tools/llvm-ar/LLVMBuild.txt +++ /dev/null @@ -1,20 +0,0 @@ -;===- ./tools/llvm-ar/LLVMBuild.txt ----------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Tool -name = llvm-ar -parent = Tools Index: llvm/tools/llvm-as/LLVMBuild.txt =================================================================== --- llvm/tools/llvm-as/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./tools/llvm-as/LLVMBuild.txt ----------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Tool -name = llvm-as -parent = Tools -required_libraries = AsmParser BitWriter Index: llvm/tools/llvm-bcanalyzer/LLVMBuild.txt =================================================================== --- llvm/tools/llvm-bcanalyzer/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./tools/llvm-bcanalyzer/LLVMBuild.txt --------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Tool -name = llvm-bcanalyzer -parent = Tools -required_libraries = BitReader BitstreamReader Support Index: llvm/tools/llvm-cat/LLVMBuild.txt =================================================================== --- llvm/tools/llvm-cat/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./tools/llvm-cat/LLVMBuild.txt ---------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Tool -name = llvm-cat -parent = Tools -required_libraries = AsmParser BitReader BitWriter Index: llvm/tools/llvm-cfi-verify/LLVMBuild.txt =================================================================== --- llvm/tools/llvm-cfi-verify/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./tools/llvm-cfi-verify/LLVMBuild.txt --------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Tool -name = llvm-cfi-verify -parent = Tools -required_libraries = all-targets MC MCDisassembler MCParser Support Symbolize Index: llvm/tools/llvm-cfi-verify/lib/LLVMBuild.txt =================================================================== --- llvm/tools/llvm-cfi-verify/lib/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./tools/llvm-cfi-verify/lib/LLVMBuild.txt ----------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = CFIVerify -parent = Libraries -required_libraries = DebugInfoDWARF MC MCDisassembler MCParser Support Symbolize Index: llvm/tools/llvm-cov/LLVMBuild.txt =================================================================== --- llvm/tools/llvm-cov/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./tools/llvm-cov/LLVMBuild.txt ---------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Tool -name = llvm-cov -parent = Tools -required_libraries = Coverage Support Instrumentation Index: llvm/tools/llvm-cvtres/LLVMBuild.txt =================================================================== --- llvm/tools/llvm-cvtres/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./tools/llvm-cvtres/LLVMBuild.txt ------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Tool -name = llvm-cvtres -parent = Tools -required_libraries = Object Option Support Index: llvm/tools/llvm-cxxdump/LLVMBuild.txt =================================================================== --- llvm/tools/llvm-cxxdump/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./tools/llvm-cxxdump/LLVMBuild.txt -----------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Tool -name = llvm-cxxdump -parent = Tools -required_libraries = all-targets BitReader Object Index: llvm/tools/llvm-cxxmap/LLVMBuild.txt =================================================================== --- llvm/tools/llvm-cxxmap/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./tools/llvm-cxxmap/LLVMBuild.txt ------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Tool -name = llvm-cxxmap -parent = Tools -required_libraries = Support Index: llvm/tools/llvm-diff/LLVMBuild.txt =================================================================== --- llvm/tools/llvm-diff/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./tools/llvm-diff/LLVMBuild.txt --------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Tool -name = llvm-diff -parent = Tools -required_libraries = AsmParser BitReader IRReader Index: llvm/tools/llvm-dis/LLVMBuild.txt =================================================================== --- llvm/tools/llvm-dis/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./tools/llvm-dis/LLVMBuild.txt ---------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Tool -name = llvm-dis -parent = Tools -required_libraries = Analysis BitReader Index: llvm/tools/llvm-dwarfdump/LLVMBuild.txt =================================================================== --- llvm/tools/llvm-dwarfdump/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./tools/llvm-dwarfdump/LLVMBuild.txt ---------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Tool -name = llvm-dwarfdump -parent = Tools -required_libraries = DebugInfoDWARF Object Index: llvm/tools/llvm-dwp/LLVMBuild.txt =================================================================== --- llvm/tools/llvm-dwp/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./tools/llvm-dwp/LLVMBuild.txt ---------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Tool -name = llvm-dwp -parent = Tools -required_libraries = AsmPrinter DebugInfoDWARF MC Object Support all-targets - Index: llvm/tools/llvm-elfabi/LLVMBuild.txt =================================================================== --- llvm/tools/llvm-elfabi/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./tools/llvm-elfabi/LLVMBuild.txt ------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Tool -name = llvm-elfabi -parent = Tools -required_libraries = InterfaceStub Object Support TextAPI Index: llvm/tools/llvm-exegesis/LLVMBuild.txt =================================================================== --- llvm/tools/llvm-exegesis/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./tools/llvm-exegesis/LLVMBuild.txt ----------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Tool -name = llvm-exegesis -parent = Tools -required_libraries = CodeGen ExecutionEngine MC MCJIT Native NativeCodeGen Object Support Index: llvm/tools/llvm-exegesis/lib/AArch64/LLVMBuild.txt =================================================================== --- llvm/tools/llvm-exegesis/lib/AArch64/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./tools/llvm-exegesis/lib/AArch64/LLVMBuild.txt ----------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = ExegesisAArch64 -parent = Libraries -required_libraries = AArch64 Index: llvm/tools/llvm-exegesis/lib/LLVMBuild.txt =================================================================== --- llvm/tools/llvm-exegesis/lib/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./tools/llvm-exegesis/lib/LLVMBuild.txt ------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = Exegesis -parent = Libraries -required_libraries = CodeGen ExecutionEngine MC MCDisassembler MCJIT Object ObjectYAML Support Index: llvm/tools/llvm-exegesis/lib/Mips/LLVMBuild.txt =================================================================== --- llvm/tools/llvm-exegesis/lib/Mips/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./tools/llvm-exegesis/lib/Mips/LLVMBuild.txt -------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = ExegesisMips -parent = Libraries -required_libraries = Mips Index: llvm/tools/llvm-exegesis/lib/PowerPC/LLVMBuild.txt =================================================================== --- llvm/tools/llvm-exegesis/lib/PowerPC/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./tools/llvm-exegesis/lib/PowerPC/LLVMBuild.txt ---------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = ExegesisPowerPC -parent = Libraries -required_libraries = PowerPC Index: llvm/tools/llvm-exegesis/lib/X86/LLVMBuild.txt =================================================================== --- llvm/tools/llvm-exegesis/lib/X86/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./tools/llvm-exegesis/lib/X86LLVMBuild.txt ---------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = ExegesisX86 -parent = Libraries -required_libraries = X86 Index: llvm/tools/llvm-extract/LLVMBuild.txt =================================================================== --- llvm/tools/llvm-extract/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./tools/llvm-extract/LLVMBuild.txt -----------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Tool -name = llvm-extract -parent = Tools -required_libraries = AsmParser BitReader BitWriter IRReader IPO Index: llvm/tools/llvm-ifs/LLVMBuild.txt =================================================================== --- llvm/tools/llvm-ifs/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./tools/llvm-ifs/LLVMBuild.txt ---------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Tool -name = llvm-ifs -parent = Tools -required_libraries = Object Support TextAPI Index: llvm/tools/llvm-jitlink/LLVMBuild.txt =================================================================== --- llvm/tools/llvm-jitlink/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./tools/llvm-jitlink/LLVMBuild.txt -----------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Tool -name = llvm-jitlink -parent = Tools -required_libraries = JITLink BinaryFormat MC Object RuntimeDyld Support - all-targets Index: llvm/tools/llvm-jitlistener/LLVMBuild.txt =================================================================== --- llvm/tools/llvm-jitlistener/LLVMBuild.txt +++ /dev/null @@ -1,30 +0,0 @@ -;===- ./tools/llvm-jitlistener/LLVMBuild.txt -------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Tool -name = llvm-jitlistener -parent = Tools -required_libraries = - AsmParser - BitReader - IRReader - Interpreter - MCJIT - NativeCodeGen - Object - SelectionDAG - Native Index: llvm/tools/llvm-libtool-darwin/LLVMBuild.txt =================================================================== --- llvm/tools/llvm-libtool-darwin/LLVMBuild.txt +++ /dev/null @@ -1,20 +0,0 @@ -;===- ./tools/llvm-libtool-darwin/LVMBuild.txt -----------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; -[component_0] -type = Tool -name = llvm-libtool-darwin -parent = Tools -required_libraries = BinaryFormat Object Support TextAPI Index: llvm/tools/llvm-link/LLVMBuild.txt =================================================================== --- llvm/tools/llvm-link/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./tools/llvm-link/LLVMBuild.txt --------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Tool -name = llvm-link -parent = Tools -required_libraries = AsmParser BitReader BitWriter IRReader Linker Object TransformUtils IPO Index: llvm/tools/llvm-lipo/LLVMBuild.txt =================================================================== --- llvm/tools/llvm-lipo/LLVMBuild.txt +++ /dev/null @@ -1,20 +0,0 @@ -;===- ./tools/llvm-lipo/LLVMBuild.txt --------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; -[component_0] -type = Tool -name = llvm-lipo -parent = Tools -required_libraries = Object Option Support BinaryFormat Index: llvm/tools/llvm-lto/LLVMBuild.txt =================================================================== --- llvm/tools/llvm-lto/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./tools/llvm-lto/LLVMBuild.txt ----------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Tool -name = llvm-lto -parent = Tools -required_libraries = BitWriter Core IRReader LTO Object Support all-targets Index: llvm/tools/llvm-lto2/LLVMBuild.txt =================================================================== --- llvm/tools/llvm-lto2/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./tools/llvm-lto2/LLVMBuild.txt --------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Tool -name = llvm-lto2 -parent = Tools -required_libraries = BitReader Core Linker LTO MC Object Support all-targets Index: llvm/tools/llvm-mc/LLVMBuild.txt =================================================================== --- llvm/tools/llvm-mc/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./tools/llvm-mc/LLVMBuild.txt ----------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Tool -name = llvm-mc -parent = Tools -required_libraries = MC MCDisassembler MCParser Support all-targets Index: llvm/tools/llvm-mca/LLVMBuild.txt =================================================================== --- llvm/tools/llvm-mca/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./tools/llvm-mc/LLVMBuild.txt ----------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Tool -name = llvm-mca -parent = Tools -required_libraries = MC MCA MCParser Support all-targets Index: llvm/tools/llvm-modextract/LLVMBuild.txt =================================================================== --- llvm/tools/llvm-modextract/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./tools/llvm-modextract/LLVMBuild.txt --------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Tool -name = llvm-modextract -parent = Tools -required_libraries = BitReader BitWriter Index: llvm/tools/llvm-mt/LLVMBuild.txt =================================================================== --- llvm/tools/llvm-mt/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./tools/llvm-mt/LLVMBuild.txt ---------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Tool -name = llvm-mt -parent = Tools -required_libraries = Option Support WindowsManifest Index: llvm/tools/llvm-nm/LLVMBuild.txt =================================================================== --- llvm/tools/llvm-nm/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./tools/llvm-nm/LLVMBuild.txt ----------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Tool -name = llvm-nm -parent = Tools -required_libraries = BitReader Object Index: llvm/tools/llvm-objcopy/LLVMBuild.txt =================================================================== --- llvm/tools/llvm-objcopy/LLVMBuild.txt +++ /dev/null @@ -1,20 +0,0 @@ -;===- ./tools/llvm-objcopy/LLVMBuild.txt -----------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; -[component_0] -type = Tool -name = llvm-objcopy -parent = Tools -required_libraries = Object Option Support MC Index: llvm/tools/llvm-objdump/LLVMBuild.txt =================================================================== --- llvm/tools/llvm-objdump/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./tools/llvm-objdump/LLVMBuild.txt -----------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Tool -name = llvm-objdump -parent = Tools -required_libraries = DebugInfoDWARF MC MCDisassembler MCParser Object all-targets Demangle Index: llvm/tools/llvm-pdbutil/LLVMBuild.txt =================================================================== --- llvm/tools/llvm-pdbutil/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./tools/llvm-pdbutil/LLVMBuild.txt -----------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Tool -name = llvm-pdbutil -parent = Tools -required_libraries = DebugInfoMSF DebugInfoPDB - Index: llvm/tools/llvm-profdata/LLVMBuild.txt =================================================================== --- llvm/tools/llvm-profdata/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./tools/llvm-profdata/LLVMBuild.txt ----------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Tool -name = llvm-profdata -parent = Tools -required_libraries = ProfileData Support Index: llvm/tools/llvm-rc/LLVMBuild.txt =================================================================== --- llvm/tools/llvm-rc/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./tools/llvm-rc/LLVMBuild.txt ----------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Tool -name = llvm-rc -parent = Tools -required_libraries = Option Index: llvm/tools/llvm-readobj/LLVMBuild.txt =================================================================== --- llvm/tools/llvm-readobj/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./tools/llvm-readobj/LLVMBuild.txt ---------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Tool -name = llvm-readobj -parent = Tools -required_libraries = all-targets BitReader Object BinaryFormat DebugInfoCodeView DebugInfoPDB DebugInfoMSF Index: llvm/tools/llvm-reduce/LLVMBuild.txt =================================================================== --- llvm/tools/llvm-reduce/LLVMBuild.txt +++ /dev/null @@ -1,24 +0,0 @@ -;===- ./tools/llvm-reduce/LLVMBuild.txt ------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Tool -name = llvm-reduce -parent = Tools -required_libraries = - BitReader - IRReader - all-targets Index: llvm/tools/llvm-rtdyld/LLVMBuild.txt =================================================================== --- llvm/tools/llvm-rtdyld/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./tools/llvm-rtdyld/LLVMBuild.txt ------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Tool -name = llvm-rtdyld -parent = Tools -required_libraries = MC Object RuntimeDyld Support all-targets Index: llvm/tools/llvm-size/LLVMBuild.txt =================================================================== --- llvm/tools/llvm-size/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./tools/llvm-size/LLVMBuild.txt --------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Tool -name = llvm-size -parent = Tools -required_libraries = Object Index: llvm/tools/llvm-split/LLVMBuild.txt =================================================================== --- llvm/tools/llvm-split/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./tools/llvm-split/LLVMBuild.txt -------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Tool -name = llvm-split -parent = Tools -required_libraries = TransformUtils BitWriter Core IRReader Support Index: llvm/tools/llvm-stress/LLVMBuild.txt =================================================================== --- llvm/tools/llvm-stress/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./tools/llvm-stress/LLVMBuild.txt -------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Tool -name = llvm-stress -parent = Tools -required_libraries = AsmParser BitReader BitWriter IPO Instrumentation Scalar Index: llvm/tools/llvm-strings/LLVMBuild.txt =================================================================== --- llvm/tools/llvm-strings/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./tools/llvm-strings/LLVMBuild.txt -----------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Tool -name = llvm-strings -parent = Tools -required_libraries = Archive Object Index: llvm/tools/llvm-undname/LLVMBuild.txt =================================================================== --- llvm/tools/llvm-undname/LLVMBuild.txt +++ /dev/null @@ -1,22 +0,0 @@ -;===- ./tools/llvm-undname/LLVMBuild.txt -----------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Tool -name = llvm-undname -parent = Tools -required_libraries = Demangle Support - Index: llvm/tools/opt/LLVMBuild.txt =================================================================== --- llvm/tools/opt/LLVMBuild.txt +++ /dev/null @@ -1,32 +0,0 @@ -;===- ./tools/opt/LLVMBuild.txt --------------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Tool -name = opt -parent = Tools -required_libraries = - AsmParser - BitReader - BitWriter - CodeGen - IRReader - IPO - Instrumentation - Scalar - ObjCARC - Passes - all-targets Index: llvm/tools/verify-uselistorder/LLVMBuild.txt =================================================================== --- llvm/tools/verify-uselistorder/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./tools/verify-uselistorder/LLVMBuild.txt ----------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Tool -name = verify-uselistorder -parent = Tools -required_libraries = IRReader BitWriter Support Index: llvm/utils/LLVMBuild.txt =================================================================== --- llvm/utils/LLVMBuild.txt +++ /dev/null @@ -1,28 +0,0 @@ -;===- ./utils/LLVMBuild.txt ------------------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[common] -subdirectories = TableGen unittest - -[component_0] -type = Group -name = BuildTools -parent = $ROOT - -[component_1] -type = Group -name = UtilityTools -parent = $ROOT Index: llvm/utils/TableGen/LLVMBuild.txt =================================================================== --- llvm/utils/TableGen/LLVMBuild.txt +++ /dev/null @@ -1,21 +0,0 @@ -;===- ./utils/TableGen/LLVMBuild.txt ---------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = BuildTool -name = tblgen -parent = BuildTools -required_libraries = Support TableGen Index: llvm/utils/llvm-build/README.txt =================================================================== --- llvm/utils/llvm-build/README.txt +++ /dev/null @@ -1,5 +0,0 @@ -============================== - llvm-build - LLVM Build Tool -============================== - -`llvm-build` is a tool for helping build the LLVM project. Index: llvm/utils/llvm-build/llvm-build =================================================================== --- llvm/utils/llvm-build/llvm-build +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env python - -import llvmbuild - -if __name__ == '__main__': - llvmbuild.main() Index: llvm/utils/llvm-build/llvmbuild/__init__.py =================================================================== --- llvm/utils/llvm-build/llvmbuild/__init__.py +++ /dev/null @@ -1 +0,0 @@ -from llvmbuild.main import main Index: llvm/utils/llvm-build/llvmbuild/componentinfo.py =================================================================== --- llvm/utils/llvm-build/llvmbuild/componentinfo.py +++ /dev/null @@ -1,475 +0,0 @@ -""" -Descriptor objects for entities that are part of the LLVM project. -""" - -from __future__ import absolute_import, print_function -try: - import configparser -except: - import ConfigParser as configparser -import sys - -from llvmbuild.util import fatal, warning - -class ParseError(Exception): - pass - -class ComponentInfo(object): - """ - Base class for component descriptions. - """ - - type_name = None - - @staticmethod - def parse_items(items, has_dependencies = True): - kwargs = {} - kwargs['name'] = items.get_string('name') - kwargs['parent'] = items.get_optional_string('parent') - if has_dependencies: - kwargs['dependencies'] = items.get_list('dependencies') - return kwargs - - def __init__(self, subpath, name, dependencies, parent): - if not subpath.startswith('/'): - raise ValueError("invalid subpath: %r" % subpath) - self.subpath = subpath - self.name = name - self.dependencies = list(dependencies) - - # The name of the parent component to logically group this component - # under. - self.parent = parent - - # The parent instance, once loaded. - self.parent_instance = None - self.children = [] - - # The original source path. - self._source_path = None - - # A flag to mark "special" components which have some amount of magic - # handling (generally based on command line options). - self._is_special_group = False - - def set_parent_instance(self, parent): - assert parent.name == self.parent, "Unexpected parent!" - self.parent_instance = parent - self.parent_instance.children.append(self) - - def get_component_references(self): - """get_component_references() -> iter - - Return an iterator over the named references to other components from - this object. Items are of the form (reference-type, component-name). - """ - - # Parent references are handled specially. - for r in self.dependencies: - yield ('dependency', r) - - def get_llvmbuild_fragment(self): - abstract - - def get_parent_target_group(self): - """get_parent_target_group() -> ComponentInfo or None - - Return the nearest parent target group (if any), or None if the - component is not part of any target group. - """ - - # If this is a target group, return it. - if self.type_name == 'TargetGroup': - return self - - # Otherwise recurse on the parent, if any. - if self.parent_instance: - return self.parent_instance.get_parent_target_group() - -class GroupComponentInfo(ComponentInfo): - """ - Group components have no semantics as far as the build system are concerned, - but exist to help organize other components into a logical tree structure. - """ - - type_name = 'Group' - - @staticmethod - def parse(subpath, items): - kwargs = ComponentInfo.parse_items(items, has_dependencies = False) - return GroupComponentInfo(subpath, **kwargs) - - def __init__(self, subpath, name, parent): - ComponentInfo.__init__(self, subpath, name, [], parent) - - def get_llvmbuild_fragment(self): - return """\ -type = %s -name = %s -parent = %s -""" % (self.type_name, self.name, self.parent) - -class LibraryComponentInfo(ComponentInfo): - type_name = 'Library' - - @staticmethod - def parse_items(items): - kwargs = ComponentInfo.parse_items(items) - kwargs['library_name'] = items.get_optional_string('library_name') - kwargs['required_libraries'] = items.get_list('required_libraries') - kwargs['add_to_library_groups'] = items.get_list( - 'add_to_library_groups') - kwargs['installed'] = items.get_optional_bool('installed', True) - return kwargs - - @staticmethod - def parse(subpath, items): - kwargs = LibraryComponentInfo.parse_items(items) - return LibraryComponentInfo(subpath, **kwargs) - - def __init__(self, subpath, name, dependencies, parent, library_name, - required_libraries, add_to_library_groups, installed): - ComponentInfo.__init__(self, subpath, name, dependencies, parent) - - # If given, the name to use for the library instead of deriving it from - # the component name. - self.library_name = library_name - - # The names of the library components which are required when linking - # with this component. - self.required_libraries = list(required_libraries) - - # The names of the library group components this component should be - # considered part of. - self.add_to_library_groups = list(add_to_library_groups) - - # Whether or not this library is installed. - self.installed = installed - - def get_component_references(self): - for r in ComponentInfo.get_component_references(self): - yield r - for r in self.required_libraries: - yield ('required library', r) - for r in self.add_to_library_groups: - yield ('library group', r) - - def get_llvmbuild_fragment(self): - result = """\ -type = %s -name = %s -parent = %s -""" % (self.type_name, self.name, self.parent) - if self.library_name is not None: - result += 'library_name = %s\n' % self.library_name - if self.required_libraries: - result += 'required_libraries = %s\n' % ' '.join( - self.required_libraries) - if self.add_to_library_groups: - result += 'add_to_library_groups = %s\n' % ' '.join( - self.add_to_library_groups) - if not self.installed: - result += 'installed = 0\n' - return result - - def get_library_name(self): - return self.library_name or self.name - - def get_prefixed_library_name(self): - """ - get_prefixed_library_name() -> str - - Return the library name prefixed by the project name. This is generally - what the library name will be on disk. - """ - - basename = self.get_library_name() - - # FIXME: We need to get the prefix information from an explicit project - # object, or something. - if basename in ('gtest', 'gtest_main'): - return basename - - return 'LLVM%s' % basename - - def get_llvmconfig_component_name(self): - return self.get_library_name().lower() - -class OptionalLibraryComponentInfo(LibraryComponentInfo): - type_name = "OptionalLibrary" - - @staticmethod - def parse(subpath, items): - kwargs = LibraryComponentInfo.parse_items(items) - return OptionalLibraryComponentInfo(subpath, **kwargs) - - def __init__(self, subpath, name, dependencies, parent, library_name, - required_libraries, add_to_library_groups, installed): - LibraryComponentInfo.__init__(self, subpath, name, dependencies, parent, - library_name, required_libraries, - add_to_library_groups, installed) - -class LibraryGroupComponentInfo(ComponentInfo): - type_name = 'LibraryGroup' - - @staticmethod - def parse(subpath, items): - kwargs = ComponentInfo.parse_items(items, has_dependencies = False) - kwargs['required_libraries'] = items.get_list('required_libraries') - kwargs['add_to_library_groups'] = items.get_list( - 'add_to_library_groups') - return LibraryGroupComponentInfo(subpath, **kwargs) - - def __init__(self, subpath, name, parent, required_libraries = [], - add_to_library_groups = []): - ComponentInfo.__init__(self, subpath, name, [], parent) - - # The names of the library components which are required when linking - # with this component. - self.required_libraries = list(required_libraries) - - # The names of the library group components this component should be - # considered part of. - self.add_to_library_groups = list(add_to_library_groups) - - def get_component_references(self): - for r in ComponentInfo.get_component_references(self): - yield r - for r in self.required_libraries: - yield ('required library', r) - for r in self.add_to_library_groups: - yield ('library group', r) - - def get_llvmbuild_fragment(self): - result = """\ -type = %s -name = %s -parent = %s -""" % (self.type_name, self.name, self.parent) - if self.required_libraries and not self._is_special_group: - result += 'required_libraries = %s\n' % ' '.join( - self.required_libraries) - if self.add_to_library_groups: - result += 'add_to_library_groups = %s\n' % ' '.join( - self.add_to_library_groups) - return result - - def get_llvmconfig_component_name(self): - return self.name.lower() - -class TargetGroupComponentInfo(ComponentInfo): - type_name = 'TargetGroup' - - @staticmethod - def parse(subpath, items): - kwargs = ComponentInfo.parse_items(items, has_dependencies = False) - kwargs['required_libraries'] = items.get_list('required_libraries') - kwargs['add_to_library_groups'] = items.get_list( - 'add_to_library_groups') - kwargs['has_jit'] = items.get_optional_bool('has_jit', False) - kwargs['has_asmprinter'] = items.get_optional_bool('has_asmprinter', - False) - kwargs['has_asmparser'] = items.get_optional_bool('has_asmparser', - False) - kwargs['has_disassembler'] = items.get_optional_bool('has_disassembler', - False) - return TargetGroupComponentInfo(subpath, **kwargs) - - def __init__(self, subpath, name, parent, required_libraries = [], - add_to_library_groups = [], has_jit = False, - has_asmprinter = False, has_asmparser = False, - has_disassembler = False): - ComponentInfo.__init__(self, subpath, name, [], parent) - - # The names of the library components which are required when linking - # with this component. - self.required_libraries = list(required_libraries) - - # The names of the library group components this component should be - # considered part of. - self.add_to_library_groups = list(add_to_library_groups) - - # Whether or not this target supports the JIT. - self.has_jit = bool(has_jit) - - # Whether or not this target defines an assembly printer. - self.has_asmprinter = bool(has_asmprinter) - - # Whether or not this target defines an assembly parser. - self.has_asmparser = bool(has_asmparser) - - # Whether or not this target defines an disassembler. - self.has_disassembler = bool(has_disassembler) - - # Whether or not this target is enabled. This is set in response to - # configuration parameters. - self.enabled = False - - def get_component_references(self): - for r in ComponentInfo.get_component_references(self): - yield r - for r in self.required_libraries: - yield ('required library', r) - for r in self.add_to_library_groups: - yield ('library group', r) - - def get_llvmbuild_fragment(self): - result = """\ -type = %s -name = %s -parent = %s -""" % (self.type_name, self.name, self.parent) - if self.required_libraries: - result += 'required_libraries = %s\n' % ' '.join( - self.required_libraries) - if self.add_to_library_groups: - result += 'add_to_library_groups = %s\n' % ' '.join( - self.add_to_library_groups) - for bool_key in ('has_asmparser', 'has_asmprinter', 'has_disassembler', - 'has_jit'): - if getattr(self, bool_key): - result += '%s = 1\n' % (bool_key,) - return result - - def get_llvmconfig_component_name(self): - return self.name.lower() - -class ToolComponentInfo(ComponentInfo): - type_name = 'Tool' - - @staticmethod - def parse(subpath, items): - kwargs = ComponentInfo.parse_items(items) - kwargs['required_libraries'] = items.get_list('required_libraries') - return ToolComponentInfo(subpath, **kwargs) - - def __init__(self, subpath, name, dependencies, parent, - required_libraries): - ComponentInfo.__init__(self, subpath, name, dependencies, parent) - - # The names of the library components which are required to link this - # tool. - self.required_libraries = list(required_libraries) - - def get_component_references(self): - for r in ComponentInfo.get_component_references(self): - yield r - for r in self.required_libraries: - yield ('required library', r) - - def get_llvmbuild_fragment(self): - return """\ -type = %s -name = %s -parent = %s -required_libraries = %s -""" % (self.type_name, self.name, self.parent, - ' '.join(self.required_libraries)) - -class BuildToolComponentInfo(ToolComponentInfo): - type_name = 'BuildTool' - - @staticmethod - def parse(subpath, items): - kwargs = ComponentInfo.parse_items(items) - kwargs['required_libraries'] = items.get_list('required_libraries') - return BuildToolComponentInfo(subpath, **kwargs) - -### - -class IniFormatParser(dict): - def get_list(self, key): - # Check if the value is defined. - value = self.get(key) - if value is None: - return [] - - # Lists are just whitespace separated strings. - return value.split() - - def get_optional_string(self, key): - value = self.get_list(key) - if not value: - return None - if len(value) > 1: - raise ParseError("multiple values for scalar key: %r" % key) - return value[0] - - def get_string(self, key): - value = self.get_optional_string(key) - if not value: - raise ParseError("missing value for required string: %r" % key) - return value - - def get_optional_bool(self, key, default = None): - value = self.get_optional_string(key) - if not value: - return default - if value not in ('0', '1'): - raise ParseError("invalid value(%r) for boolean property: %r" % ( - value, key)) - return bool(int(value)) - - def get_bool(self, key): - value = self.get_optional_bool(key) - if value is None: - raise ParseError("missing value for required boolean: %r" % key) - return value - -_component_type_map = dict( - (t.type_name, t) - for t in (GroupComponentInfo, - LibraryComponentInfo, LibraryGroupComponentInfo, - ToolComponentInfo, BuildToolComponentInfo, - TargetGroupComponentInfo, OptionalLibraryComponentInfo)) -def load_from_path(path, subpath): - # Load the LLVMBuild.txt file as an .ini format file. - parser = configparser.RawConfigParser() - parser.read(path) - - # Extract the common section. - if parser.has_section("common"): - common = IniFormatParser(parser.items("common")) - parser.remove_section("common") - else: - common = IniFormatParser({}) - - return common, _read_components_from_parser(parser, path, subpath) - -def _read_components_from_parser(parser, path, subpath): - # We load each section which starts with 'component' as a distinct component - # description (so multiple components can be described in one file). - for section in parser.sections(): - if not section.startswith('component'): - # We don't expect arbitrary sections currently, warn the user. - warning("ignoring unknown section %r in %r" % (section, path)) - continue - - # Determine the type of the component to instantiate. - if not parser.has_option(section, 'type'): - fatal("invalid component %r in %r: %s" % ( - section, path, "no component type")) - - type_name = parser.get(section, 'type') - type_class = _component_type_map.get(type_name) - if type_class is None: - fatal("invalid component %r in %r: %s" % ( - section, path, "invalid component type: %r" % type_name)) - - # Instantiate the component based on the remaining values. - try: - info = type_class.parse(subpath, - IniFormatParser(parser.items(section))) - except TypeError: - print("error: invalid component %r in %r: %s" % ( - section, path, "unable to instantiate: %r" % type_name), file=sys.stderr) - import traceback - traceback.print_exc() - raise SystemExit(1) - except ParseError: - e = sys.exc_info()[1] - fatal("unable to load component %r in %r: %s" % ( - section, path, e.message)) - - info._source_path = path - yield info Index: llvm/utils/llvm-build/llvmbuild/main.py =================================================================== --- llvm/utils/llvm-build/llvmbuild/main.py +++ /dev/null @@ -1,844 +0,0 @@ -from __future__ import absolute_import -import filecmp -import os -import sys - -import llvmbuild.componentinfo as componentinfo - -from llvmbuild.util import fatal, note - -### - -def cmake_quote_string(value): - """ - cmake_quote_string(value) -> str - - Return a quoted form of the given value that is suitable for use in CMake - language files. - """ - - # Currently, we only handle escaping backslashes. - value = value.replace("\\", "\\\\") - - return value - -def cmake_quote_path(value): - """ - cmake_quote_path(value) -> str - - Return a quoted form of the given value that is suitable for use in CMake - language files. - """ - - # CMake has a bug in it's Makefile generator that doesn't properly quote - # strings it generates. So instead of using proper quoting, we just use "/" - # style paths. Currently, we only handle escaping backslashes. - value = value.replace("\\", "/") - - return value - -def make_install_dir(path): - """ - make_install_dir(path) -> None - - Create the given directory path for installation, including any parents. - """ - - # os.makedirs considers it an error to be called with an existent path. - if not os.path.exists(path): - os.makedirs(path) - -### - -class LLVMProjectInfo(object): - @staticmethod - def load_infos_from_path(llvmbuild_source_root): - def recurse(subpath): - # Load the LLVMBuild file. - llvmbuild_path = os.path.join(llvmbuild_source_root + subpath, - 'LLVMBuild.txt') - if not os.path.exists(llvmbuild_path): - fatal("missing LLVMBuild.txt file at: %r" % (llvmbuild_path,)) - - # Parse the components from it. - common,info_iter = componentinfo.load_from_path(llvmbuild_path, - subpath) - for info in info_iter: - yield info - - # Recurse into the specified subdirectories. - for subdir in common.get_list("subdirectories"): - for item in recurse(os.path.join(subpath, subdir)): - yield item - - return recurse("/") - - @staticmethod - def load_from_path(source_root, llvmbuild_source_root): - infos = list( - LLVMProjectInfo.load_infos_from_path(llvmbuild_source_root)) - - return LLVMProjectInfo(source_root, infos) - - def __init__(self, source_root, component_infos): - # Store our simple ivars. - self.source_root = source_root - self.component_infos = list(component_infos) - self.component_info_map = None - self.ordered_component_infos = None - - def validate_components(self): - """validate_components() -> None - - Validate that the project components are well-defined. Among other - things, this checks that: - - Components have valid references. - - Components references do not form cycles. - - We also construct the map from component names to info, and the - topological ordering of components. - """ - - # Create the component info map and validate that component names are - # unique. - self.component_info_map = {} - for ci in self.component_infos: - existing = self.component_info_map.get(ci.name) - if existing is not None: - # We found a duplicate component name, report it and error out. - fatal("found duplicate component %r (at %r and %r)" % ( - ci.name, ci.subpath, existing.subpath)) - self.component_info_map[ci.name] = ci - - # Disallow 'all' as a component name, which is a special case. - if 'all' in self.component_info_map: - fatal("project is not allowed to define 'all' component") - - # Add the root component. - if '$ROOT' in self.component_info_map: - fatal("project is not allowed to define $ROOT component") - self.component_info_map['$ROOT'] = componentinfo.GroupComponentInfo( - '/', '$ROOT', None) - self.component_infos.append(self.component_info_map['$ROOT']) - - # Topologically order the component information according to their - # component references. - def visit_component_info(ci, current_stack, current_set): - # Check for a cycles. - if ci in current_set: - # We found a cycle, report it and error out. - cycle_description = ' -> '.join( - '%r (%s)' % (ci.name, relation) - for relation,ci in current_stack) - fatal("found cycle to %r after following: %s -> %s" % ( - ci.name, cycle_description, ci.name)) - - # If we have already visited this item, we are done. - if ci not in components_to_visit: - return - - # Otherwise, mark the component info as visited and traverse. - components_to_visit.remove(ci) - - # Validate the parent reference, which we treat specially. - if ci.parent is not None: - parent = self.component_info_map.get(ci.parent) - if parent is None: - fatal("component %r has invalid reference %r (via %r)" % ( - ci.name, ci.parent, 'parent')) - ci.set_parent_instance(parent) - - for relation,referent_name in ci.get_component_references(): - # Validate that the reference is ok. - referent = self.component_info_map.get(referent_name) - if referent is None: - fatal("component %r has invalid reference %r (via %r)" % ( - ci.name, referent_name, relation)) - - # Visit the reference. - current_stack.append((relation,ci)) - current_set.add(ci) - visit_component_info(referent, current_stack, current_set) - current_set.remove(ci) - current_stack.pop() - - # Finally, add the component info to the ordered list. - self.ordered_component_infos.append(ci) - - # FIXME: We aren't actually correctly checking for cycles along the - # parent edges. Haven't decided how I want to handle this -- I thought - # about only checking cycles by relation type. If we do that, it falls - # out easily. If we don't, we should special case the check. - - self.ordered_component_infos = [] - components_to_visit = sorted( - set(self.component_infos), - key = lambda c: c.name) - while components_to_visit: - visit_component_info(components_to_visit[0], [], set()) - - # Canonicalize children lists. - for c in self.ordered_component_infos: - c.children.sort(key = lambda c: c.name) - - def print_tree(self): - def visit(node, depth = 0): - print('%s%-40s (%s)' % (' '*depth, node.name, node.type_name)) - for c in node.children: - visit(c, depth + 1) - visit(self.component_info_map['$ROOT']) - - def write_components(self, output_path): - # Organize all the components by the directory their LLVMBuild file - # should go in. - info_basedir = {} - for ci in self.component_infos: - # Ignore the $ROOT component. - if ci.parent is None: - continue - - info_basedir[ci.subpath] = info_basedir.get(ci.subpath, []) + [ci] - - # Compute the list of subdirectories to scan. - subpath_subdirs = {} - for ci in self.component_infos: - # Ignore root components. - if ci.subpath == '/': - continue - - # Otherwise, append this subpath to the parent list. - parent_path = os.path.dirname(ci.subpath) - subpath_subdirs[parent_path] = parent_list = subpath_subdirs.get( - parent_path, set()) - parent_list.add(os.path.basename(ci.subpath)) - - # Generate the build files. - for subpath, infos in info_basedir.items(): - # Order the components by name to have a canonical ordering. - infos.sort(key = lambda ci: ci.name) - - # Format the components into llvmbuild fragments. - fragments = [] - - # Add the common fragments. - subdirectories = subpath_subdirs.get(subpath) - if subdirectories: - fragment = """\ -subdirectories = %s -""" % (" ".join(sorted(subdirectories)),) - fragments.append(("common", fragment)) - - # Add the component fragments. - num_common_fragments = len(fragments) - for ci in infos: - fragment = ci.get_llvmbuild_fragment() - if fragment is None: - continue - - name = "component_%d" % (len(fragments) - num_common_fragments) - fragments.append((name, fragment)) - - if not fragments: - continue - - assert subpath.startswith('/') - directory_path = os.path.join(output_path, subpath[1:]) - - # Create the directory if it does not already exist. - if not os.path.exists(directory_path): - os.makedirs(directory_path) - - # In an effort to preserve comments (which aren't parsed), read in - # the original file and extract the comments. We only know how to - # associate comments that prefix a section name. - f = open(infos[0]._source_path) - comments_map = {} - comment_block = "" - for ln in f: - if ln.startswith(';'): - comment_block += ln - elif ln.startswith('[') and ln.endswith(']\n'): - comments_map[ln[1:-2]] = comment_block - else: - comment_block = "" - f.close() - - # Create the LLVMBuild fil[e. - file_path = os.path.join(directory_path, 'LLVMBuild.txt') - f = open(file_path, "w") - - # Write the header. - header_fmt = ';===- %s %s-*- Conf -*--===;' - header_name = '.' + os.path.join(subpath, 'LLVMBuild.txt') - header_pad = '-' * (80 - len(header_fmt % (header_name, ''))) - header_string = header_fmt % (header_name, header_pad) - f.write("""\ -%s -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -""" % header_string) - - # Write out each fragment.each component fragment. - for name,fragment in fragments: - comment = comments_map.get(name) - if comment is not None: - f.write(comment) - f.write("[%s]\n" % name) - f.write(fragment) - if fragment is not fragments[-1][1]: - f.write('\n') - - f.close() - - def write_library_table(self, output_path, enabled_optional_components): - # Write out the mapping from component names to required libraries. - # - # We do this in topological order so that we know we can append the - # dependencies for added library groups. - entries = {} - for c in self.ordered_component_infos: - # Skip optional components which are not enabled. - if c.type_name == 'OptionalLibrary' \ - and c.name not in enabled_optional_components: - continue - - # Skip target groups which are not enabled. - tg = c.get_parent_target_group() - if tg and not tg.enabled: - continue - - # Only certain components are in the table. - if c.type_name not in ('Library', 'OptionalLibrary', \ - 'LibraryGroup', 'TargetGroup'): - continue - - # Compute the llvm-config "component name". For historical reasons, - # this is lowercased based on the library name. - llvmconfig_component_name = c.get_llvmconfig_component_name() - - # Get the library name, or None for LibraryGroups. - if c.type_name == 'Library' or c.type_name == 'OptionalLibrary': - library_name = c.get_prefixed_library_name() - is_installed = c.installed - else: - library_name = None - is_installed = True - - # Get the component names of all the required libraries. - required_llvmconfig_component_names = [ - self.component_info_map[dep].get_llvmconfig_component_name() - for dep in c.required_libraries] - - # Insert the entries for library groups we should add to. - for dep in c.add_to_library_groups: - entries[dep][2].append(llvmconfig_component_name) - - # Add the entry. - entries[c.name] = (llvmconfig_component_name, library_name, - required_llvmconfig_component_names, - is_installed) - - # Convert to a list of entries and sort by name. - entries = list(entries.values()) - - # Create an 'all' pseudo component. We keep the dependency list small by - # only listing entries that have no other dependents. - root_entries = set(e[0] for e in entries) - for _,_,deps,_ in entries: - root_entries -= set(deps) - entries.append(('all', None, sorted(root_entries), True)) - - entries.sort() - - # Compute the maximum number of required libraries, plus one so there is - # always a sentinel. - max_required_libraries = max(len(deps) - for _,_,deps,_ in entries) + 1 - - # Write out the library table. - make_install_dir(os.path.dirname(output_path)) - f = open(output_path+'.new', 'w') - f.write("""\ -//===- llvm-build generated file --------------------------------*- C++ -*-===// -// -// Component Library Dependency Table -// -// Automatically generated file, do not edit! -// -//===----------------------------------------------------------------------===// - -""") - f.write('struct AvailableComponent {\n') - f.write(' /// The name of the component.\n') - f.write(' const char *Name;\n') - f.write('\n') - f.write(' /// The name of the library for this component (or NULL).\n') - f.write(' const char *Library;\n') - f.write('\n') - f.write(' /// Whether the component is installed.\n') - f.write(' bool IsInstalled;\n') - f.write('\n') - f.write('\ - /// The list of libraries required when linking this component.\n') - f.write(' const char *RequiredLibraries[%d];\n' % ( - max_required_libraries)) - f.write('} AvailableComponents[%d] = {\n' % len(entries)) - for name,library_name,required_names,is_installed in entries: - if library_name is None: - library_name_as_cstr = 'nullptr' - else: - library_name_as_cstr = '"%s"' % library_name - if is_installed: - is_installed_as_cstr = 'true' - else: - is_installed_as_cstr = 'false' - f.write(' { "%s", %s, %s, { %s } },\n' % ( - name, library_name_as_cstr, is_installed_as_cstr, - ', '.join('"%s"' % dep - for dep in required_names))) - f.write('};\n') - f.close() - - if not os.path.isfile(output_path): - os.rename(output_path+'.new', output_path) - elif filecmp.cmp(output_path, output_path+'.new'): - os.remove(output_path+'.new') - else: - os.remove(output_path) - os.rename(output_path+'.new', output_path) - - def get_required_libraries_for_component(self, ci, traverse_groups = False): - """ - get_required_libraries_for_component(component_info) -> iter - - Given a Library component info descriptor, return an iterator over all - of the directly required libraries for linking with this component. If - traverse_groups is True, then library and target groups will be - traversed to include their required libraries. - """ - - assert ci.type_name in ('Library', 'OptionalLibrary', 'LibraryGroup', 'TargetGroup') - - for name in ci.required_libraries: - # Get the dependency info. - dep = self.component_info_map[name] - - # If it is a library, yield it. - if dep.type_name == 'Library' or dep.type_name == 'OptionalLibrary': - yield dep - continue - - # Otherwise if it is a group, yield or traverse depending on what - # was requested. - if dep.type_name in ('LibraryGroup', 'TargetGroup'): - if not traverse_groups: - yield dep - continue - - for res in self.get_required_libraries_for_component(dep, True): - yield res - - def get_fragment_dependencies(self): - """ - get_fragment_dependencies() -> iter - - Compute the list of files (as absolute paths) on which the output - fragments depend (i.e., files for which a modification should trigger a - rebuild of the fragment). - """ - - # Construct a list of all the dependencies of the Makefile fragment - # itself. These include all the LLVMBuild files themselves, as well as - # all of our own sources. - # - # Many components may come from the same file, so we make sure to unique - # these. - build_paths = set() - for ci in self.component_infos: - p = os.path.join(self.source_root, ci.subpath[1:], 'LLVMBuild.txt') - if p not in build_paths: - yield p - build_paths.add(p) - - # Gather the list of necessary sources by just finding all loaded - # modules that are inside the LLVM source tree. - for module in sys.modules.values(): - # Find the module path. - if not hasattr(module, '__file__'): - continue - path = getattr(module, '__file__') - if not path: - continue - - # Strip off any compiled suffix. - if os.path.splitext(path)[1] in ['.pyc', '.pyo', '.pyd']: - path = path[:-1] - - # If the path exists and is in the source tree, consider it a - # dependency. - if (path.startswith(self.source_root) and os.path.exists(path)): - yield path - - def foreach_cmake_library(self, f, - enabled_optional_components, - skip_disabled, - skip_not_installed): - for ci in self.ordered_component_infos: - # Skip optional components which are not enabled. - if ci.type_name == 'OptionalLibrary' \ - and ci.name not in enabled_optional_components: - continue - - # We only write the information for libraries currently. - if ci.type_name not in ('Library', 'OptionalLibrary'): - continue - - # Skip disabled targets. - if skip_disabled: - tg = ci.get_parent_target_group() - if tg and not tg.enabled: - continue - - # Skip targets that will not be installed - if skip_not_installed and not ci.installed: - continue - - f(ci) - - - def write_cmake_fragment(self, output_path, enabled_optional_components): - """ - write_cmake_fragment(output_path) -> None - - Generate a CMake fragment which includes all of the collated LLVMBuild - information in a format that is easily digestible by a CMake. The exact - contents of this are closely tied to how the CMake configuration - integrates LLVMBuild, see CMakeLists.txt in the top-level. - """ - - dependencies = list(self.get_fragment_dependencies()) - - # Write out the CMake fragment. - make_install_dir(os.path.dirname(output_path)) - f = open(output_path, 'w') - - # Write the header. - header_fmt = '\ -#===-- %s - LLVMBuild Configuration for LLVM %s-*- CMake -*--===#' - header_name = os.path.basename(output_path) - header_pad = '-' * (80 - len(header_fmt % (header_name, ''))) - header_string = header_fmt % (header_name, header_pad) - f.write("""\ -%s -# -# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -# See https://llvm.org/LICENSE.txt for license information. -# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -# -#===------------------------------------------------------------------------===# -# -# This file contains the LLVMBuild project information in a format easily -# consumed by the CMake based build system. -# -# This file is autogenerated by llvm-build, do not edit! -# -#===------------------------------------------------------------------------===# - -""" % header_string) - - # Write the dependency information in the best way we can. - f.write(""" -# LLVMBuild CMake fragment dependencies. -# -""") - for dep in dependencies: - f.write("""\ -set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS \"%s\")\n""" % ( - cmake_quote_path(dep),)) - - # Write the properties we use to encode the required library dependency - # information in a form CMake can easily use directly. - f.write(""" -# Explicit library dependency information. -# -# The following property assignments effectively create a map from component -# names to required libraries, in a way that is easily accessed from CMake. -""") - self.foreach_cmake_library( - lambda ci: - f.write("""\ -set_property(GLOBAL PROPERTY LLVMBUILD_LIB_DEPS_%s %s)\n""" % ( - ci.get_prefixed_library_name(), " ".join(sorted( - dep.get_prefixed_library_name() - for dep in self.get_required_libraries_for_component(ci))))) - , - enabled_optional_components, - skip_disabled = False, - skip_not_installed = False # Dependency info must be emitted for internals libs too - ) - - f.close() - - def write_cmake_exports_fragment(self, output_path, enabled_optional_components): - """ - write_cmake_exports_fragment(output_path) -> None - - Generate a CMake fragment which includes LLVMBuild library - dependencies expressed similarly to how CMake would write - them via install(EXPORT). - """ - - dependencies = list(self.get_fragment_dependencies()) - - # Write out the CMake exports fragment. - make_install_dir(os.path.dirname(output_path)) - f = open(output_path, 'w') - - f.write("""\ -# Explicit library dependency information. -# -# The following property assignments tell CMake about link -# dependencies of libraries imported from LLVM. -""") - self.foreach_cmake_library( - lambda ci: - f.write("""\ -set_property(TARGET %s PROPERTY IMPORTED_LINK_INTERFACE_LIBRARIES %s)\n""" % ( - ci.get_prefixed_library_name(), " ".join(sorted( - dep.get_prefixed_library_name() - for dep in self.get_required_libraries_for_component(ci))))) - , - enabled_optional_components, - skip_disabled = True, - skip_not_installed = True # Do not export internal libraries like gtest - ) - - f.close() - -def add_magic_target_components(parser, project, opts): - """add_magic_target_components(project, opts) -> None - - Add the "magic" target based components to the project, which can only be - determined based on the target configuration options. - - This currently is responsible for populating the required_libraries list of - the "all-targets", "Native", "NativeCodeGen", and "Engine" components. - """ - - # Determine the available targets. - available_targets = dict((ci.name,ci) - for ci in project.component_infos - if ci.type_name == 'TargetGroup') - - # Find the configured native target. - - # We handle a few special cases of target names here for historical - # reasons, as these are the names configure currently comes up with. - native_target_name = { 'x86' : 'X86', - 'x86_64' : 'X86', - 'Unknown' : None }.get(opts.native_target, - opts.native_target) - if native_target_name is None: - native_target = None - else: - native_target = available_targets.get(native_target_name) - if native_target is None: - parser.error("invalid native target: %r (not in project)" % ( - opts.native_target,)) - if native_target.type_name != 'TargetGroup': - parser.error("invalid native target: %r (not a target)" % ( - opts.native_target,)) - - # Find the list of targets to enable. - if opts.enable_targets is None: - enable_targets = available_targets.values() - else: - # We support both space separated and semi-colon separated lists. - if opts.enable_targets == '': - enable_target_names = [] - elif ' ' in opts.enable_targets: - enable_target_names = opts.enable_targets.split() - else: - enable_target_names = opts.enable_targets.split(';') - - enable_targets = [] - for name in enable_target_names: - target = available_targets.get(name) - if target is None: - parser.error("invalid target to enable: %r (not in project)" % ( - name,)) - if target.type_name != 'TargetGroup': - parser.error("invalid target to enable: %r (not a target)" % ( - name,)) - enable_targets.append(target) - - # Find the special library groups we are going to populate. We enforce that - # these appear in the project (instead of just adding them) so that they at - # least have an explicit representation in the project LLVMBuild files (and - # comments explaining how they are populated). - def find_special_group(name): - info = info_map.get(name) - if info is None: - fatal("expected project to contain special %r component" % ( - name,)) - - if info.type_name != 'LibraryGroup': - fatal("special component %r should be a LibraryGroup" % ( - name,)) - - if info.required_libraries: - fatal("special component %r must have empty %r list" % ( - name, 'required_libraries')) - if info.add_to_library_groups: - fatal("special component %r must have empty %r list" % ( - name, 'add_to_library_groups')) - - info._is_special_group = True - return info - - info_map = dict((ci.name, ci) for ci in project.component_infos) - all_targets = find_special_group('all-targets') - native_group = find_special_group('Native') - native_codegen_group = find_special_group('NativeCodeGen') - engine_group = find_special_group('Engine') - - # Set the enabled bit in all the target groups, and append to the - # all-targets list. - for ci in enable_targets: - all_targets.required_libraries.append(ci.name) - ci.enabled = True - - # If we have a native target, then that defines the native and - # native_codegen libraries. - if native_target and native_target.enabled: - native_group.required_libraries.append(native_target.name) - native_codegen_group.required_libraries.append( - '%sCodeGen' % native_target.name) - - # If we have a native target with a JIT, use that for the engine. Otherwise, - # use the interpreter. - if native_target and native_target.enabled and native_target.has_jit: - engine_group.required_libraries.append('MCJIT') - engine_group.required_libraries.append(native_group.name) - else: - engine_group.required_libraries.append('Interpreter') - -def main(): - from optparse import OptionParser, OptionGroup - parser = OptionParser("usage: %prog [options]") - - group = OptionGroup(parser, "Input Options") - group.add_option("", "--source-root", dest="source_root", metavar="PATH", - help="Path to the LLVM source (inferred if not given)", - action="store", default=None) - group.add_option("", "--llvmbuild-source-root", - dest="llvmbuild_source_root", - help=( - "If given, an alternate path to search for LLVMBuild.txt files"), - action="store", default=None, metavar="PATH") - parser.add_option_group(group) - - group = OptionGroup(parser, "Output Options") - group.add_option("", "--print-tree", dest="print_tree", - help="Print out the project component tree [%default]", - action="store_true", default=False) - group.add_option("", "--write-llvmbuild", dest="write_llvmbuild", - help="Write out the LLVMBuild.txt files to PATH", - action="store", default=None, metavar="PATH") - group.add_option("", "--write-library-table", - dest="write_library_table", metavar="PATH", - help="Write the C++ library dependency table to PATH", - action="store", default=None) - group.add_option("", "--write-cmake-fragment", - dest="write_cmake_fragment", metavar="PATH", - help="Write the CMake project information to PATH", - action="store", default=None) - group.add_option("", "--write-cmake-exports-fragment", - dest="write_cmake_exports_fragment", metavar="PATH", - help="Write the CMake exports information to PATH", - action="store", default=None) - parser.add_option_group(group) - - group = OptionGroup(parser, "Configuration Options") - group.add_option("", "--native-target", - dest="native_target", metavar="NAME", - help=("Treat the named target as the 'native' one, if " - "given [%default]"), - action="store", default=None) - group.add_option("", "--enable-targets", - dest="enable_targets", metavar="NAMES", - help=("Enable the given space or semi-colon separated " - "list of targets, or all targets if not present"), - action="store", default=None) - group.add_option("", "--enable-optional-components", - dest="optional_components", metavar="NAMES", - help=("Enable the given space or semi-colon separated " - "list of optional components"), - action="store", default="") - parser.add_option_group(group) - - (opts, args) = parser.parse_args() - - # Determine the LLVM source path, if not given. - source_root = opts.source_root - if source_root: - if not os.path.exists(os.path.join(source_root, 'lib', 'IR', - 'Function.cpp')): - parser.error('invalid LLVM source root: %r' % source_root) - else: - llvmbuild_path = os.path.dirname(__file__) - llvm_build_path = os.path.dirname(llvmbuild_path) - utils_path = os.path.dirname(llvm_build_path) - source_root = os.path.dirname(utils_path) - if not os.path.exists(os.path.join(source_root, 'lib', 'IR', - 'Function.cpp')): - parser.error('unable to infer LLVM source root, please specify') - - # Construct the LLVM project information. - llvmbuild_source_root = opts.llvmbuild_source_root or source_root - project_info = LLVMProjectInfo.load_from_path( - source_root, llvmbuild_source_root) - - # Add the magic target based components. - add_magic_target_components(parser, project_info, opts) - - # Validate the project component info. - project_info.validate_components() - - # Print the component tree, if requested. - if opts.print_tree: - project_info.print_tree() - - # Write out the components, if requested. This is useful for auto-upgrading - # the schema. - if opts.write_llvmbuild: - project_info.write_components(opts.write_llvmbuild) - - # Write out the required library table, if requested. - if opts.write_library_table: - project_info.write_library_table(opts.write_library_table, - opts.optional_components) - - # Write out the cmake fragment, if requested. - if opts.write_cmake_fragment: - project_info.write_cmake_fragment(opts.write_cmake_fragment, - opts.optional_components) - if opts.write_cmake_exports_fragment: - project_info.write_cmake_exports_fragment(opts.write_cmake_exports_fragment, - opts.optional_components) - -if __name__=='__main__': - main() Index: llvm/utils/llvm-build/llvmbuild/util.py =================================================================== --- llvm/utils/llvm-build/llvmbuild/util.py +++ /dev/null @@ -1,13 +0,0 @@ -import os -import sys - -def _write_message(kind, message): - program = os.path.basename(sys.argv[0]) - sys.stderr.write('%s: %s: %s\n' % (program, kind, message)) - -note = lambda message: _write_message('note', message) -warning = lambda message: _write_message('warning', message) -error = lambda message: _write_message('error', message) -fatal = lambda message: (_write_message('fatal error', message), sys.exit(1)) - -__all__ = ['note', 'warning', 'error', 'fatal'] Index: llvm/utils/unittest/LLVMBuild.cmake =================================================================== --- /dev/null +++ llvm/utils/unittest/LLVMBuild.cmake @@ -0,0 +1,14 @@ +LLVMBuildComponent( + TYPE Library + NAME gtest + PARENT Libraries + REQUIRED_LIBRARIES Support + INSTALLED 0 +) +LLVMBuildComponent( + TYPE Library + NAME gtest_main + PARENT Libraries + REQUIRED_LIBRARIES gtest + INSTALLED 0 +) Index: llvm/utils/unittest/LLVMBuild.txt =================================================================== --- llvm/utils/unittest/LLVMBuild.txt +++ /dev/null @@ -1,29 +0,0 @@ -;===- ./utils/unittest/LLVMBuild.txt ---------------------------*- Conf -*--===; -; -; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -; See https://llvm.org/LICENSE.txt for license information. -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; -;===------------------------------------------------------------------------===; -; -; This is an LLVMBuild description file for the components in this subdirectory. -; -; For more information on the LLVMBuild system, please see: -; -; http://llvm.org/docs/LLVMBuild.html -; -;===------------------------------------------------------------------------===; - -[component_0] -type = Library -name = gtest -parent = Libraries -required_libraries = Support -installed = 0 - -[component_1] -type = Library -name = gtest_main -parent = Libraries -required_libraries = gtest -installed = 0