diff options
author | Patrick Wildt <patrick@cvs.openbsd.org> | 2018-04-06 14:44:05 +0000 |
---|---|---|
committer | Patrick Wildt <patrick@cvs.openbsd.org> | 2018-04-06 14:44:05 +0000 |
commit | 5d81a4b9ee340f6a84c6d4e4d02a8068ecd16805 (patch) | |
tree | 2ce60f4ce7a35db2374518cb3b2a477072fa25b0 /gnu/usr.bin/clang | |
parent | 236b1f8f3ca8e5331fe402807bf31fd0bac286ba (diff) |
Update clang build infrastructure for LLVM 6.0.0.
Diffstat (limited to 'gnu/usr.bin/clang')
46 files changed, 328 insertions, 103 deletions
diff --git a/gnu/usr.bin/clang/Makefile b/gnu/usr.bin/clang/Makefile index 32ac5a7b3c5..250fb1d64f5 100644 --- a/gnu/usr.bin/clang/Makefile +++ b/gnu/usr.bin/clang/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.6 2017/10/04 20:57:09 patrick Exp $ +# $OpenBSD: Makefile,v 1.7 2018/04/06 14:44:04 patrick Exp $ .include <bsd.own.mk> @@ -63,6 +63,7 @@ SUBDIR+=clang-tblgen SUBDIR+=include/clang SUBDIR+=libclangBasic +SUBDIR+=libclangBasicTargets SUBDIR+=libclangLex SUBDIR+=libclangParse SUBDIR+=libclangAST @@ -79,7 +80,7 @@ SUBDIR+=libclangFrontendTool SUBDIR+=clang -SUBDIR+=liblldConfig +SUBDIR+=liblldCommon SUBDIR+=liblldCore SUBDIR+=liblldELF diff --git a/gnu/usr.bin/clang/Makefile.arch b/gnu/usr.bin/clang/Makefile.arch index a8110eb8889..030cce62d2e 100644 --- a/gnu/usr.bin/clang/Makefile.arch +++ b/gnu/usr.bin/clang/Makefile.arch @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.arch,v 1.4 2017/01/25 19:24:33 patrick Exp $ +# $OpenBSD: Makefile.arch,v 1.5 2018/04/06 14:44:04 patrick Exp $ LLVM_ARCHS=AArch64 ARM Mips PowerPC Sparc X86 @@ -33,7 +33,7 @@ BACKEND_CODEGEN+= LLVM${arch}CodeGen BACKEND_DESC+= LLVM${arch}Desc BACKEND_DISASSEMBLER+= LLVM${arch}Disassembler BACKEND_INFO+= LLVM${arch}Info -.if "${arch}" == "X86" || "${arch}" == "AArch64" +.if "${arch}" == "X86" || "${arch}" == "AArch64" || "${arch}" == "ARM" BACKEND_UTILS+= LLVM${arch}Utils .endif .endif diff --git a/gnu/usr.bin/clang/clang-tblgen/Makefile b/gnu/usr.bin/clang/clang-tblgen/Makefile index 098967dc33f..a971aafd8ef 100644 --- a/gnu/usr.bin/clang/clang-tblgen/Makefile +++ b/gnu/usr.bin/clang/clang-tblgen/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.5 2017/10/04 20:57:09 patrick Exp $ +# $OpenBSD: Makefile,v 1.6 2018/04/06 14:44:04 patrick Exp $ PROG= clang-tblgen NOMAN= @@ -9,6 +9,7 @@ SRCS= ClangASTNodesEmitter.cpp \ ClangCommentCommandInfoEmitter.cpp \ ClangCommentHTMLNamedCharacterReferenceEmitter.cpp \ ClangCommentHTMLTagsEmitter.cpp \ + ClangDataCollectorsEmitter.cpp \ ClangDiagnosticsEmitter.cpp \ ClangOptionDocEmitter.cpp \ ClangSACheckersEmitter.cpp \ diff --git a/gnu/usr.bin/clang/clang/Makefile b/gnu/usr.bin/clang/clang/Makefile index 3a83708f96e..9d1a4bd4b30 100644 --- a/gnu/usr.bin/clang/clang/Makefile +++ b/gnu/usr.bin/clang/clang/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.10 2017/10/04 20:57:09 patrick Exp $ +# $OpenBSD: Makefile,v 1.11 2018/04/06 14:44:04 patrick Exp $ .include <bsd.own.mk> @@ -41,6 +41,7 @@ LLVM_LIBDEPS= clangFrontendTool \ clangAST \ clangLex \ clangBasic \ + clangBasicTargets \ LLVMLTO \ LLVMPasses \ LLVMOption \ diff --git a/gnu/usr.bin/clang/include/clang/Basic/Makefile b/gnu/usr.bin/clang/include/clang/Basic/Makefile index 281f43b8370..fbc40e32c10 100644 --- a/gnu/usr.bin/clang/include/clang/Basic/Makefile +++ b/gnu/usr.bin/clang/include/clang/Basic/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.4 2017/10/04 20:57:09 patrick Exp $ +# $OpenBSD: Makefile,v 1.5 2018/04/06 14:44:04 patrick Exp $ .include <bsd.own.mk> @@ -7,8 +7,10 @@ CLANG_INC=${.CURDIR}/../../../../../llvm/tools/clang/include GEN= AttrList.inc DiagnosticASTKinds.inc DiagnosticAnalysisKinds.inc GEN+=DiagnosticCommentKinds.inc DiagnosticCommonKinds.inc +GEN+=DiagnosticCrossTUKinds.inc GEN+=DiagnosticDriverKinds.inc DiagnosticFrontendKinds.inc DiagnosticGroups.inc GEN+=DiagnosticIndexName.inc DiagnosticLexKinds.inc DiagnosticParseKinds.inc +GEN+=DiagnosticRefactoringKinds.inc GEN+=DiagnosticSemaKinds.inc DiagnosticSerializationKinds.inc arm_neon.inc GEN+=AttrHasAttributeImpl.inc AttrSubMatchRulesList.inc @@ -23,10 +25,13 @@ clean cleandir: AttrList.inc: ${CLANG_INC}/clang/Basic/Attr.td ${TBLGEN} -I${CLANG_INC} -gen-clang-attr-list -o ${.TARGET} ${.ALLSRC} -.for _comp in AST Analysis Comment Common Driver Frontend Lex Parse Sema Serialization +.for _comp in AST Analysis Comment Common CrossTU Driver Frontend Lex Parse \ + Refactoring Sema Serialization + Diagnostic${_comp}Kinds.inc: ${CLANG_INC}/clang/Basic/Diagnostic.td ${TBLGEN} -I${CLANG_INC}/clang/Basic -gen-clang-diags-defs \ -clang-component=${_comp} -o ${.TARGET} ${.ALLSRC} + .endfor DiagnosticGroups.inc: ${CLANG_INC}/clang/Basic/Diagnostic.td diff --git a/gnu/usr.bin/clang/include/clang/Basic/Version.inc b/gnu/usr.bin/clang/include/clang/Basic/Version.inc index f67192c7476..94bf17ae4ca 100644 --- a/gnu/usr.bin/clang/include/clang/Basic/Version.inc +++ b/gnu/usr.bin/clang/include/clang/Basic/Version.inc @@ -1,9 +1,9 @@ -/* $OpenBSD: Version.inc,v 1.5 2017/12/24 23:29:52 patrick Exp $ */ +/* $OpenBSD: Version.inc,v 1.6 2018/04/06 14:44:04 patrick Exp $ */ -#define CLANG_VERSION 5.0.1 -#define CLANG_VERSION_STRING "5.0.1" -#define CLANG_VERSION_MAJOR 5 +#define CLANG_VERSION 6.0.0 +#define CLANG_VERSION_STRING "6.0.0" +#define CLANG_VERSION_MAJOR 6 #define CLANG_VERSION_MINOR 0 -#define CLANG_VERSION_PATCHLEVEL 1 +#define CLANG_VERSION_PATCHLEVEL 0 #define CLANG_VENDOR "OpenBSD " diff --git a/gnu/usr.bin/clang/include/clang/Config/config.h b/gnu/usr.bin/clang/include/clang/Config/config.h index 27ed491178e..f6d6c73be47 100644 --- a/gnu/usr.bin/clang/include/clang/Config/config.h +++ b/gnu/usr.bin/clang/include/clang/Config/config.h @@ -17,9 +17,15 @@ /* Default runtime library to use. */ #define CLANG_DEFAULT_RTLIB "" +/* Default objcopy to use */ +#define CLANG_DEFAULT_OBJCOPY "" + /* Default OpenMP runtime used by -fopenmp. */ #define CLANG_DEFAULT_OPENMP_RUNTIME "libomp" +/* Default architecture for OpenMP offloading to Nvidia GPUs. */ +#define CLANG_OPENMP_NVPTX_DEFAULT_ARCH "" + /* Multilib suffix for libdir. */ #define CLANG_LIBDIR_SUFFIX "" @@ -29,6 +35,10 @@ /* Directories clang will search for headers */ #define C_INCLUDE_DIRS "" +/* Directories clang will search for configuration files */ +#define CLANG_CONFIG_FILE_SYSTEM_DIR "" +#define CLANG_CONFIG_FILE_USER_DIR "" + /* Default <path> to all compiler invocations for --sysroot=<path>. */ #define DEFAULT_SYSROOT "" @@ -45,7 +55,7 @@ #define CLANG_HAVE_RLIMITS 1 /* The LLVM product name and version */ -#define BACKEND_PACKAGE_STRING "LLVM 5.0.1" +#define BACKEND_PACKAGE_STRING "LLVM 6.0.0" /* Linker version detected at compile time. */ /* #undef HOST_LINK_VERSION */ @@ -57,8 +67,8 @@ #define ENABLE_X86_RELAX_RELOCATIONS 0 /* Enable each functionality of modules */ -/* #undef CLANG_ENABLE_ARCMT */ -/* #undef CLANG_ENABLE_OBJC_REWRITER */ -/* #undef CLANG_ENABLE_STATIC_ANALYZER */ +#define CLANG_ENABLE_ARCMT 0 +#define CLANG_ENABLE_OBJC_REWRITER 0 +#define CLANG_ENABLE_STATIC_ANALYZER 0 #endif diff --git a/gnu/usr.bin/clang/include/clang/Makefile b/gnu/usr.bin/clang/include/clang/Makefile index aa81fb65c79..e2c518d95f7 100644 --- a/gnu/usr.bin/clang/include/clang/Makefile +++ b/gnu/usr.bin/clang/include/clang/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:48 pascal Exp $ +# $OpenBSD: Makefile,v 1.2 2018/04/06 14:44:04 patrick Exp $ SUBDIR+=AST SUBDIR+=Basic @@ -6,6 +6,7 @@ SUBDIR+=Driver SUBDIR+=Parse SUBDIR+=Sema SUBDIR+=Serialization +SUBDIR+=StaticAnalyzer/Checkers SUBDIR+=intrin .include <bsd.subdir.mk> diff --git a/gnu/usr.bin/clang/include/clang/StaticAnalyzer/Checkers/Makefile b/gnu/usr.bin/clang/include/clang/StaticAnalyzer/Checkers/Makefile new file mode 100644 index 00000000000..96b0e52d0f8 --- /dev/null +++ b/gnu/usr.bin/clang/include/clang/StaticAnalyzer/Checkers/Makefile @@ -0,0 +1,23 @@ +# $OpenBSD: Makefile,v 1.1 2018/04/06 14:44:04 patrick Exp $ + +.include <bsd.own.mk> + +TBLGEN= ${.OBJDIR}/../../../../clang-tblgen/clang-tblgen +CLANG_INC=${.CURDIR}/../../../../../../llvm/tools/clang/include + +GEN= Checkers.inc + +all: ${GEN} + +install: + @# Nothing here so far ... + +clean cleandir: + rm -f ${GEN} + +Checkers.inc: ${CLANG_INC}/clang/StaticAnalyzer/Checkers/Checkers.td + ${TBLGEN} -I${CLANG_INC}/clang/StaticAnalyzer/Checkers \ + -I${CLANG_INC} -gen-clang-sa-checkers \ + -o ${.TARGET} ${.ALLSRC} + +.include <bsd.obj.mk> diff --git a/gnu/usr.bin/clang/include/clang/intrin/Makefile b/gnu/usr.bin/clang/include/clang/intrin/Makefile index a4c709acc05..e32f5f743f7 100644 --- a/gnu/usr.bin/clang/include/clang/intrin/Makefile +++ b/gnu/usr.bin/clang/include/clang/intrin/Makefile @@ -1,8 +1,8 @@ -# $OpenBSD: Makefile,v 1.14 2017/12/24 23:29:52 patrick Exp $ +# $OpenBSD: Makefile,v 1.15 2018/04/06 14:44:04 patrick Exp $ .include <bsd.own.mk> -LLVM_V= 5.0.1 +LLVM_V= 6.0.0 CLANG_INTR_INCDIR= /usr/lib/clang/${LLVM_V}/include TBLGEN= ${.OBJDIR}/../../../clang-tblgen/clang-tblgen diff --git a/gnu/usr.bin/clang/include/lld/Config/Version.inc b/gnu/usr.bin/clang/include/lld/Config/Version.inc index 81f8c58d644..9423901b663 100644 --- a/gnu/usr.bin/clang/include/lld/Config/Version.inc +++ b/gnu/usr.bin/clang/include/lld/Config/Version.inc @@ -1,7 +1,7 @@ -/* $OpenBSD: Version.inc,v 1.4 2017/12/24 23:29:52 patrick Exp $ */ +/* $OpenBSD: Version.inc,v 1.5 2018/04/06 14:44:04 patrick Exp $ */ -#define LLD_VERSION 5.0.1 -#define LLD_VERSION_STRING "5.0.1" +#define LLD_VERSION 6.0.0 +#define LLD_VERSION_STRING "6.0.0" #define LLD_VERSION_MAJOR 0 #define LLD_VERSION_MINOR 0 #define LLD_REVISION_STRING "" diff --git a/gnu/usr.bin/clang/include/llvm/AArch64/Makefile b/gnu/usr.bin/clang/include/llvm/AArch64/Makefile index 95d05c2e286..400c639b424 100644 --- a/gnu/usr.bin/clang/include/llvm/AArch64/Makefile +++ b/gnu/usr.bin/clang/include/llvm/AArch64/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.3 2017/07/09 15:28:34 espie Exp $ +# $OpenBSD: Makefile,v 1.4 2018/04/06 14:44:04 patrick Exp $ .include <bsd.own.mk> @@ -11,7 +11,8 @@ HDRS= AArch64GenAsmMatcher.inc AArch64GenAsmWriter.inc \ AArch64GenInstrInfo.inc AArch64GenRegisterInfo.inc \ AArch64GenSubtargetInfo.inc \ AArch64GenMCCodeEmitter.inc AArch64GenMCPseudoLowering.inc \ - AArch64GenSystemOperands.inc + AArch64GenSystemOperands.inc AArch64GenRegisterBank.inc \ + AArch64GenGlobalISel.inc all: ${HDRS} @@ -86,4 +87,14 @@ AArch64GenSystemOperands.inc: ${LLVM_SRCS}/lib/Target/AArch64/AArch64.td -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/AArch64 \ -o ${.TARGET} ${.ALLSRC} +AArch64GenRegisterBank.inc: ${LLVM_SRCS}/lib/Target/AArch64/AArch64.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-register-bank \ + -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/AArch64 \ + -o ${.TARGET} ${.ALLSRC} + +AArch64GenGlobalISel.inc: ${LLVM_SRCS}/lib/Target/AArch64/AArch64.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-global-isel \ + -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/AArch64 \ + -o ${.TARGET} ${.ALLSRC} + .include <bsd.obj.mk> diff --git a/gnu/usr.bin/clang/include/llvm/ARM/Makefile b/gnu/usr.bin/clang/include/llvm/ARM/Makefile index f0dc848886f..133dcd213d5 100644 --- a/gnu/usr.bin/clang/include/llvm/ARM/Makefile +++ b/gnu/usr.bin/clang/include/llvm/ARM/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.2 2017/07/09 15:28:34 espie Exp $ +# $OpenBSD: Makefile,v 1.3 2018/04/06 14:44:04 patrick Exp $ .include <bsd.own.mk> @@ -9,7 +9,8 @@ HDRS= ARMGenAsmMatcher.inc ARMGenAsmWriter.inc \ ARMGenFastISel.inc ARMGenInstrInfo.inc ARMGenRegisterInfo.inc \ ARMGenSubtargetInfo.inc \ ARMGenMCCodeEmitter.inc ARMGenMCPseudoLowering.inc \ - ARMGenDisassemblerTables.inc + ARMGenDisassemblerTables.inc ARMGenSystemRegister.inc \ + ARMGenRegisterBank.inc ARMGenGlobalISel.inc all: ${HDRS} @@ -79,4 +80,19 @@ ARMGenDisassemblerTables.inc: ${LLVM_SRCS}/lib/Target/ARM/ARM.td -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/ARM \ -o ${.TARGET} ${.ALLSRC} +ARMGenSystemRegister.inc: ${LLVM_SRCS}/lib/Target/ARM/ARM.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-searchable-tables \ + -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/ARM \ + -o ${.TARGET} ${.ALLSRC} + +ARMGenRegisterBank.inc: ${LLVM_SRCS}/lib/Target/ARM/ARM.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-register-bank \ + -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/ARM \ + -o ${.TARGET} ${.ALLSRC} + +ARMGenGlobalISel.inc: ${LLVM_SRCS}/lib/Target/ARM/ARM.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-global-isel \ + -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/ARM \ + -o ${.TARGET} ${.ALLSRC} + .include <bsd.obj.mk> diff --git a/gnu/usr.bin/clang/include/llvm/Config/abi-breaking.h b/gnu/usr.bin/clang/include/llvm/Config/abi-breaking.h index ad6aecf7745..d7f82e1d0d2 100644 --- a/gnu/usr.bin/clang/include/llvm/Config/abi-breaking.h +++ b/gnu/usr.bin/clang/include/llvm/Config/abi-breaking.h @@ -19,7 +19,7 @@ #define LLVM_ENABLE_REVERSE_ITERATION 0 /* Allow selectively disabling link-time mismatch checking so that header-only -+ ADT content from LLVM can be used without linking libSupport. */ + ADT content from LLVM can be used without linking libSupport. */ #if !LLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING // ABI_BREAKING_CHECKS protection: provides link-time failure when clients build diff --git a/gnu/usr.bin/clang/include/llvm/Config/config.h b/gnu/usr.bin/clang/include/llvm/Config/config.h index 63c80b67c63..b7abde0f0af 100644 --- a/gnu/usr.bin/clang/include/llvm/Config/config.h +++ b/gnu/usr.bin/clang/include/llvm/Config/config.h @@ -115,6 +115,12 @@ /* Define to 1 if you have the `pthread' library (-lpthread). */ #define HAVE_LIBPTHREAD 1 +/* Define to 1 if you have the `pthread_getname_np' function. */ +/* #undef HAVE_PTHREAD_GETNAME_NP */ + +/* Define to 1 if you have the `pthread_setname_np' function. */ +/* #undef HAVE_PTHREAD_SETNAME_NP */ + /* Define to 1 if you have the `shell32' library (-lshell32). */ /* #undef HAVE_LIBSHELL32 */ @@ -187,6 +193,12 @@ /* Define to 1 if you have the `setenv' function. */ #define HAVE_SETENV 1 +/* Define to 1 if you have the `sched_getaffinity' function. */ +/* #undef HAVE_SCHED_GETAFFINITY */ + +/* Define to 1 if you have the `CPU_COUNT' macro. */ +/* #undef HAVE_CPU_COUNT */ + /* Define to 1 if you have the `setrlimit' function. */ #define HAVE_SETRLIMIT 1 @@ -374,16 +386,19 @@ #define LLVM_VERSION_PRINTER_SHOW_HOST_TARGET_INFO 1 /* Major version of the LLVM API */ -#define LLVM_VERSION_MAJOR 5 +#define LLVM_VERSION_MAJOR 6 /* Minor version of the LLVM API */ #define LLVM_VERSION_MINOR 0 /* Patch version of the LLVM API */ -#define LLVM_VERSION_PATCH 1 +#define LLVM_VERSION_PATCH 0 /* LLVM version string */ -#define LLVM_VERSION_STRING "5.0.1" +#define LLVM_VERSION_STRING "6.0.0" + +/* Define if libxml2 is supported on this platform. */ +/* #undef LLVM_LIBXML2_ENABLED */ /* Define to the extension used for shared libraries, say, ".so". */ #define LTDL_SHLIB_EXT ".so" @@ -395,13 +410,13 @@ #define PACKAGE_NAME "LLVM" /* Define to the full name and version of this package. */ -#define PACKAGE_STRING "LLVM 5.0.1" +#define PACKAGE_STRING "LLVM 6.0.0" /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME /* Define to the version of this package. */ -#define PACKAGE_VERSION "5.0.1" +#define PACKAGE_VERSION "6.0.0" /* Define to the vendor of this package. */ /* #undef PACKAGE_VENDOR */ @@ -421,4 +436,10 @@ /* Define to a function implementing strdup */ /* #undef strdup */ +/* Whether GlobalISel rule coverage is being collected */ +#define LLVM_GISEL_COV_ENABLED 0 + +/* Define to the default GlobalISel coverage file prefix */ +/* #undef LLVM_GISEL_COV_PREFIX */ + #endif diff --git a/gnu/usr.bin/clang/include/llvm/Config/llvm-config.h b/gnu/usr.bin/clang/include/llvm/Config/llvm-config.h index 42c0a221565..44ca3837477 100644 --- a/gnu/usr.bin/clang/include/llvm/Config/llvm-config.h +++ b/gnu/usr.bin/clang/include/llvm/Config/llvm-config.h @@ -14,6 +14,8 @@ #ifndef LLVM_CONFIG_H #define LLVM_CONFIG_H +/* Define if LLVM_ENABLE_DUMP is enabled */ +/* #undef LLVM_ENABLE_DUMP */ /* Define if we link Polly to the tools */ /* #undef LINK_POLLY_INTO_TOOLS */ @@ -64,16 +66,16 @@ #define LLVM_USE_OPROFILE 0 /* Major version of the LLVM API */ -#define LLVM_VERSION_MAJOR 5 +#define LLVM_VERSION_MAJOR 6 /* Minor version of the LLVM API */ #define LLVM_VERSION_MINOR 0 /* Patch version of the LLVM API */ -#define LLVM_VERSION_PATCH 1 +#define LLVM_VERSION_PATCH 0 /* LLVM version string */ -#define LLVM_VERSION_STRING "5.0.1" +#define LLVM_VERSION_STRING "6.0.0" /* Define if we link Polly to the tools */ /* #undef LINK_POLLY_INTO_TOOLS */ diff --git a/gnu/usr.bin/clang/include/llvm/X86/Makefile b/gnu/usr.bin/clang/include/llvm/X86/Makefile index da16456b013..b0626246589 100644 --- a/gnu/usr.bin/clang/include/llvm/X86/Makefile +++ b/gnu/usr.bin/clang/include/llvm/X86/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.4 2017/10/04 20:57:09 patrick Exp $ +# $OpenBSD: Makefile,v 1.5 2018/04/06 14:44:04 patrick Exp $ .include <bsd.own.mk> @@ -7,7 +7,8 @@ LLVM_SRCS= ${.CURDIR}/../../../../../llvm HDRS= X86GenAsmMatcher.inc X86GenAsmWriter.inc X86GenAsmWriter1.inc \ X86GenCallingConv.inc X86GenDAGISel.inc X86GenDisassemblerTables.inc \ X86GenEVEX2VEXTables.inc X86GenFastISel.inc X86GenInstrInfo.inc \ - X86GenRegisterInfo.inc X86GenSubtargetInfo.inc + X86GenRegisterInfo.inc X86GenSubtargetInfo.inc X86GenRegisterBank.inc \ + X86GenGlobalISel.inc all: ${HDRS} @@ -72,4 +73,14 @@ X86GenEVEX2VEXTables.inc: ${LLVM_SRCS}/lib/Target/X86/X86.td -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/X86 \ -o ${.TARGET} ${.ALLSRC} +X86GenRegisterBank.inc: ${LLVM_SRCS}/lib/Target/X86/X86.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-register-bank \ + -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/X86 \ + -o ${.TARGET} ${.ALLSRC} + +X86GenGlobalISel.inc: ${LLVM_SRCS}/lib/Target/X86/X86.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-global-isel \ + -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/X86 \ + -o ${.TARGET} ${.ALLSRC} + .include <bsd.obj.mk> diff --git a/gnu/usr.bin/clang/libLLVMAArch64CodeGen/Makefile b/gnu/usr.bin/clang/libLLVMAArch64CodeGen/Makefile index 4b547ef3bfe..059c87c027d 100644 --- a/gnu/usr.bin/clang/libLLVMAArch64CodeGen/Makefile +++ b/gnu/usr.bin/clang/libLLVMAArch64CodeGen/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.5 2017/10/04 20:57:09 patrick Exp $ +# $OpenBSD: Makefile,v 1.6 2018/04/06 14:44:04 patrick Exp $ LIB= LLVMAArch64CodeGen NOPIC= @@ -11,9 +11,11 @@ CPPFLAGS+= -I${.OBJDIR}/../include/llvm/AArch64 \ SRCS= AArch64A57FPLoadBalancing.cpp \ AArch64AdvSIMDScalarPass.cpp \ AArch64AsmPrinter.cpp \ + AArch64CallLowering.cpp \ AArch64CleanupLocalDynamicTLSPass.cpp \ AArch64CollectLOH.cpp \ AArch64CondBrTuning.cpp \ + AArch64ConditionOptimizer.cpp \ AArch64ConditionalCompares.cpp \ AArch64DeadRegisterDefinitionsPass.cpp \ AArch64ExpandPseudoInsts.cpp \ @@ -21,24 +23,26 @@ SRCS= AArch64A57FPLoadBalancing.cpp \ AArch64FastISel.cpp \ AArch64A53Fix835769.cpp \ AArch64FrameLowering.cpp \ - AArch64ConditionOptimizer.cpp \ AArch64ISelDAGToDAG.cpp \ AArch64ISelLowering.cpp \ AArch64InstrInfo.cpp \ + AArch64InstructionSelector.cpp \ + AArch64LegalizerInfo.cpp \ AArch64LoadStoreOptimizer.cpp \ AArch64MacroFusion.cpp \ AArch64MCInstLower.cpp \ AArch64PromoteConstant.cpp \ AArch64PBQPRegAlloc.cpp \ AArch64RedundantCopyElimination.cpp \ + AArch64RegisterBankInfo.cpp \ AArch64RegisterInfo.cpp \ + AArch64SIMDInstrOpt.cpp \ AArch64SelectionDAGInfo.cpp \ AArch64StorePairSuppress.cpp \ AArch64Subtarget.cpp \ AArch64TargetMachine.cpp \ AArch64TargetObjectFile.cpp \ - AArch64TargetTransformInfo.cpp \ - AArch64VectorByElementOpt.cpp + AArch64TargetTransformInfo.cpp .PATH: ${.CURDIR}/../../../llvm/lib/Target/AArch64 diff --git a/gnu/usr.bin/clang/libLLVMARMCodeGen/Makefile b/gnu/usr.bin/clang/libLLVMARMCodeGen/Makefile index 9c8b03361df..3576994dd64 100644 --- a/gnu/usr.bin/clang/libLLVMARMCodeGen/Makefile +++ b/gnu/usr.bin/clang/libLLVMARMCodeGen/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.4 2017/10/11 12:46:03 kettenis Exp $ +# $OpenBSD: Makefile,v 1.5 2018/04/06 14:44:04 patrick Exp $ LIB= LLVMARMCodeGen NOPIC= @@ -11,6 +11,7 @@ SRCS= A15SDOptimizer.cpp \ ARMAsmPrinter.cpp \ ARMBaseInstrInfo.cpp \ ARMBaseRegisterInfo.cpp \ + ARMCallLowering.cpp \ ARMComputeBlockSize.cpp \ ARMConstantIslandPass.cpp \ ARMConstantPoolValue.cpp \ @@ -21,10 +22,13 @@ SRCS= A15SDOptimizer.cpp \ ARMISelDAGToDAG.cpp \ ARMISelLowering.cpp \ ARMInstrInfo.cpp \ + ARMInstructionSelector.cpp \ + ARMLegalizerInfo.cpp \ ARMLoadStoreOptimizer.cpp \ ARMMCInstLower.cpp \ ARMMachineFunctionInfo.cpp \ ARMMacroFusion.cpp \ + ARMRegisterBankInfo.cpp \ ARMRegisterInfo.cpp \ ARMOptimizeBarriersPass.cpp \ ARMSelectionDAGInfo.cpp \ diff --git a/gnu/usr.bin/clang/libLLVMARMUtils/Makefile b/gnu/usr.bin/clang/libLLVMARMUtils/Makefile new file mode 100644 index 00000000000..2ed49611b85 --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMARMUtils/Makefile @@ -0,0 +1,17 @@ +# $OpenBSD: Makefile,v 1.1 2018/04/06 14:44:04 patrick Exp $ + +LIB= LLVMARMUtils +NOPIC= +NOPROFILE= + +CPPFLAGS+= -I${.OBJDIR}/../include/llvm/ARM -I${LLVM_SRCS}/lib/Target/ARM + +.include <bsd.own.mk> +SRCS= ARMBaseInfo.cpp + +.PATH: ${.CURDIR}/../../../llvm/lib/Target/ARM/Utils + +install: + @# Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libLLVMAnalysis/Makefile b/gnu/usr.bin/clang/libLLVMAnalysis/Makefile index 5d510de5202..d1baef5eed4 100644 --- a/gnu/usr.bin/clang/libLLVMAnalysis/Makefile +++ b/gnu/usr.bin/clang/libLLVMAnalysis/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.5 2017/10/04 20:57:09 patrick Exp $ +# $OpenBSD: Makefile,v 1.6 2018/04/06 14:44:04 patrick Exp $ LIB= LLVMAnalysis NOPIC= @@ -26,6 +26,7 @@ SRCS= AliasAnalysis.cpp \ CallGraphSCCPass.cpp \ CallPrinter.cpp \ CaptureTracking.cpp \ + CmpInstAnalysis.cpp \ CostModel.cpp \ CodeMetrics.cpp \ ConstantFolding.cpp \ @@ -68,7 +69,7 @@ SRCS= AliasAnalysis.cpp \ ObjCARCAliasAnalysis.cpp \ ObjCARCAnalysisUtils.cpp \ ObjCARCInstKind.cpp \ - OptimizationDiagnosticInfo.cpp \ + OptimizationRemarkEmitter.cpp \ OrderedBasicBlock.cpp \ PHITransAddr.cpp \ PostDominators.cpp \ @@ -81,13 +82,14 @@ SRCS= AliasAnalysis.cpp \ ScalarEvolutionAliasAnalysis.cpp \ ScalarEvolutionExpander.cpp \ ScalarEvolutionNormalization.cpp \ - SparsePropagation.cpp \ TargetLibraryInfo.cpp \ TargetTransformInfo.cpp \ Trace.cpp \ TypeBasedAliasAnalysis.cpp \ TypeMetadataUtils.cpp \ ScopedNoAliasAA.cpp \ + ValueLattice.cpp \ + ValueLatticeUtils.cpp \ ValueTracking.cpp \ VectorUtils.cpp diff --git a/gnu/usr.bin/clang/libLLVMCodeGen/Makefile b/gnu/usr.bin/clang/libLLVMCodeGen/Makefile index 9043190a4cf..ab2ed35d582 100644 --- a/gnu/usr.bin/clang/libLLVMCodeGen/Makefile +++ b/gnu/usr.bin/clang/libLLVMCodeGen/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.5 2017/10/04 20:57:09 patrick Exp $ +# $OpenBSD: Makefile,v 1.6 2018/04/06 14:44:04 patrick Exp $ LIB= LLVMCodeGen NOPIC= @@ -13,14 +13,12 @@ SRCS= AggressiveAntiDepBreaker.cpp \ Analysis.cpp \ AtomicExpandPass.cpp \ BasicTargetTransformInfo.cpp \ - BranchCoalescing.cpp \ BranchFolding.cpp \ BranchRelaxation.cpp \ CalcSpillWeights.cpp \ CallingConvLower.cpp \ CodeGen.cpp \ CodeGenPrepare.cpp \ - CountingFunctionInserter.cpp \ CriticalAntiDepBreaker.cpp \ DFAPacketizer.cpp \ DeadMachineInstructionElim.cpp \ @@ -30,13 +28,18 @@ SRCS= AggressiveAntiDepBreaker.cpp \ EdgeBundles.cpp \ ExecutionDepsFix.cpp \ ExpandISelPseudos.cpp \ + ExpandMemCmp.cpp \ ExpandPostRAPseudos.cpp \ ExpandReductions.cpp \ FEntryInserter.cpp \ + IndirectBrExpandPass.cpp \ LazyMachineBlockFrequencyInfo.cpp \ LiveDebugValues.cpp \ + LiveIntervals.cpp \ + LiveStacks.cpp \ LiveRangeShrink.cpp \ LiveRegUnits.cpp \ + LowLevelType.cpp \ FaultMaps.cpp \ FuncletLayout.cpp \ GCMetadata.cpp \ @@ -55,13 +58,11 @@ SRCS= AggressiveAntiDepBreaker.cpp \ LexicalScopes.cpp \ LiveDebugVariables.cpp \ LiveInterval.cpp \ - LiveIntervalAnalysis.cpp \ LiveIntervalUnion.cpp \ LiveRangeCalc.cpp \ LiveRangeEdit.cpp \ LiveRegMatrix.cpp \ LivePhysRegs.cpp \ - LiveStackAnalysis.cpp \ LiveVariables.cpp \ LocalStackSlotAllocation.cpp \ LowLevelType.cpp \ @@ -85,6 +86,7 @@ SRCS= AggressiveAntiDepBreaker.cpp \ MachineLoopInfo.cpp \ MachineModuleInfo.cpp \ MachineModuleInfoImpls.cpp \ + MachineOperand.cpp \ MachineOptimizationRemarkEmitter.cpp \ MachineOutliner.cpp \ MachinePassRegistry.cpp \ @@ -98,6 +100,7 @@ SRCS= AggressiveAntiDepBreaker.cpp \ MachineTraceMetrics.cpp \ MachineVerifier.cpp \ MacroFusion.cpp \ + MIRCanonicalizerPass.cpp \ MIRPrinter.cpp \ MIRPrintingPass.cpp \ OptimizePHIs.cpp \ diff --git a/gnu/usr.bin/clang/libLLVMCore/Makefile b/gnu/usr.bin/clang/libLLVMCore/Makefile index d8b6517642d..25afc926446 100644 --- a/gnu/usr.bin/clang/libLLVMCore/Makefile +++ b/gnu/usr.bin/clang/libLLVMCore/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.3 2017/07/09 15:28:35 espie Exp $ +# $OpenBSD: Makefile,v 1.4 2018/04/06 14:44:04 patrick Exp $ LIB= LLVMCore NOPIC= @@ -21,11 +21,11 @@ SRCS= AsmWriter.cpp \ DebugInfo.cpp \ DebugInfoMetadata.cpp \ DebugLoc.cpp \ + DiagnosticHandler.cpp \ DiagnosticInfo.cpp \ DiagnosticPrinter.cpp \ Dominators.cpp \ Function.cpp \ - GCOV.cpp \ GVMaterializer.cpp \ Globals.cpp \ IRBuilder.cpp \ diff --git a/gnu/usr.bin/clang/libLLVMDebugInfoCodeView/Makefile b/gnu/usr.bin/clang/libLLVMDebugInfoCodeView/Makefile index 307713f8a5c..fbd9cd29083 100644 --- a/gnu/usr.bin/clang/libLLVMDebugInfoCodeView/Makefile +++ b/gnu/usr.bin/clang/libLLVMDebugInfoCodeView/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.4 2017/10/04 20:57:09 patrick Exp $ +# $OpenBSD: Makefile,v 1.5 2018/04/06 14:44:04 patrick Exp $ LIB= LLVMDebugInfoCodeView NOPIC= @@ -10,15 +10,20 @@ CPPFLAGS+= -I${LLVM_SRCS}/include/llvm/DebugInfo/CodeView SRCS= CVTypeVisitor.cpp \ CodeViewError.cpp \ CodeViewRecordIO.cpp \ + ContinuationRecordBuilder.cpp \ Formatters.cpp \ + GlobalTypeTableBuilder.cpp \ Line.cpp \ + RecordName.cpp \ RecordSerialization.cpp \ + SimpleTypeSerializer.cpp \ SymbolDumper.cpp \ + SymbolRecordMapping.cpp \ TypeDumpVisitor.cpp \ + TypeHashing.cpp \ TypeIndex.cpp \ - TypeName.cpp \ + TypeIndexDiscovery.cpp \ TypeRecordMapping.cpp \ - TypeSerializer.cpp \ TypeStreamMerger.cpp \ TypeTableCollection.cpp diff --git a/gnu/usr.bin/clang/libLLVMDebugInfoDWARF/Makefile b/gnu/usr.bin/clang/libLLVMDebugInfoDWARF/Makefile index a4d9ac043e8..63df92116cf 100644 --- a/gnu/usr.bin/clang/libLLVMDebugInfoDWARF/Makefile +++ b/gnu/usr.bin/clang/libLLVMDebugInfoDWARF/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.3 2017/10/04 20:57:09 patrick Exp $ +# $OpenBSD: Makefile,v 1.4 2018/04/06 14:44:04 patrick Exp $ LIB= LLVMDebugInfoDWARF NOPIC= @@ -23,6 +23,7 @@ SRCS= DWARFAbbreviationDeclaration.cpp \ DWARFDebugPubTable.cpp \ DWARFDebugRangeList.cpp \ DWARFDie.cpp \ + DWARFExpression.cpp \ DWARFFormValue.cpp \ DWARFGdbIndex.cpp \ DWARFTypeUnit.cpp \ diff --git a/gnu/usr.bin/clang/libLLVMGlobalISel/Makefile b/gnu/usr.bin/clang/libLLVMGlobalISel/Makefile index e3d9f6075af..f8d98aeb71c 100644 --- a/gnu/usr.bin/clang/libLLVMGlobalISel/Makefile +++ b/gnu/usr.bin/clang/libLLVMGlobalISel/Makefile @@ -1,11 +1,24 @@ -# $OpenBSD: Makefile,v 1.2 2017/07/09 15:28:35 espie Exp $ +# $OpenBSD: Makefile,v 1.3 2018/04/06 14:44:04 patrick Exp $ LIB= LLVMGlobalISel NOPIC= NOPROFILE= .include <bsd.own.mk> -SRCS= GlobalISel.cpp +SRCS= CallLowering.cpp \ + GlobalISel.cpp \ + IRTranslator.cpp \ + InstructionSelect.cpp \ + InstructionSelector.cpp \ + Legalizer.cpp \ + LegalizerHelper.cpp \ + LegalizerInfo.cpp \ + Localizer.cpp \ + MachineIRBuilder.cpp \ + RegBankSelect.cpp \ + RegisterBank.cpp \ + RegisterBankInfo.cpp \ + Utils.cpp .PATH: ${.CURDIR}/../../../llvm/lib/CodeGen/GlobalISel diff --git a/gnu/usr.bin/clang/libLLVMInstrumentation/Makefile b/gnu/usr.bin/clang/libLLVMInstrumentation/Makefile index d02e4b6cb7b..ca545d8f204 100644 --- a/gnu/usr.bin/clang/libLLVMInstrumentation/Makefile +++ b/gnu/usr.bin/clang/libLLVMInstrumentation/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.4 2017/10/04 20:57:09 patrick Exp $ +# $OpenBSD: Makefile,v 1.5 2018/04/06 14:44:04 patrick Exp $ LIB= LLVMInstrumentation NOPIC= @@ -12,10 +12,11 @@ SRCS= AddressSanitizer.cpp \ DataFlowSanitizer.cpp \ EfficiencySanitizer.cpp \ GCOVProfiling.cpp \ - MemorySanitizer.cpp \ + HWAddressSanitizer.cpp \ IndirectCallPromotion.cpp \ Instrumentation.cpp \ InstrProfiling.cpp \ + MemorySanitizer.cpp \ PGOInstrumentation.cpp \ PGOMemOPSizeOpt.cpp \ SanitizerCoverage.cpp \ diff --git a/gnu/usr.bin/clang/libLLVMMC/Makefile b/gnu/usr.bin/clang/libLLVMMC/Makefile index a5148986feb..9feab465042 100644 --- a/gnu/usr.bin/clang/libLLVMMC/Makefile +++ b/gnu/usr.bin/clang/libLLVMMC/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.4 2017/10/04 20:57:09 patrick Exp $ +# $OpenBSD: Makefile,v 1.5 2018/04/06 14:44:04 patrick Exp $ LIB= LLVMMC NOPIC= @@ -18,6 +18,7 @@ SRCS= ConstantPools.cpp \ MCAssembler.cpp \ MCCodeEmitter.cpp \ MCCodeView.cpp \ + MCCodePadder.cpp \ MCContext.cpp \ MCDwarf.cpp \ MCELFObjectTargetWriter.cpp \ diff --git a/gnu/usr.bin/clang/libLLVMPowerPCCodeGen/Makefile b/gnu/usr.bin/clang/libLLVMPowerPCCodeGen/Makefile index 12a65b10eb5..da4f3f48d19 100644 --- a/gnu/usr.bin/clang/libLLVMPowerPCCodeGen/Makefile +++ b/gnu/usr.bin/clang/libLLVMPowerPCCodeGen/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.4 2017/10/04 20:57:09 patrick Exp $ +# $OpenBSD: Makefile,v 1.5 2018/04/06 14:44:04 patrick Exp $ LIB= LLVMPowerPCCodeGen NOPIC= @@ -10,6 +10,7 @@ CPPFLAGS+= -I${.OBJDIR}/../include/llvm/PowerPC \ .include <bsd.own.mk> SRCS= PPCBoolRetToInt.cpp \ PPCAsmPrinter.cpp \ + PPCBranchCoalescing.cpp \ PPCBranchSelector.cpp \ PPCCCState.cpp \ PPCCTRLoops.cpp \ @@ -25,7 +26,9 @@ SRCS= PPCBoolRetToInt.cpp \ PPCMCInstLower.cpp \ PPCMachineFunctionInfo.cpp \ PPCMIPeephole.cpp \ + PPCPreEmitPeephole.cpp \ PPCQPXLoadSplat.cpp \ + PPCReduceCRLogicals.cpp \ PPCRegisterInfo.cpp \ PPCSubtarget.cpp \ PPCTargetMachine.cpp \ diff --git a/gnu/usr.bin/clang/libLLVMScalarOpts/Makefile b/gnu/usr.bin/clang/libLLVMScalarOpts/Makefile index 69318ab0c84..96b2a705638 100644 --- a/gnu/usr.bin/clang/libLLVMScalarOpts/Makefile +++ b/gnu/usr.bin/clang/libLLVMScalarOpts/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.5 2017/10/04 20:57:09 patrick Exp $ +# $OpenBSD: Makefile,v 1.6 2018/04/06 14:44:04 patrick Exp $ LIB= LLVMScalarOpts NOPIC= @@ -11,11 +11,13 @@ CPPFLAGS+= -I${LLVM_SRCS}/include/llvm/Transforms/Scalar SRCS= ADCE.cpp \ AlignmentFromAssumptions.cpp \ BDCE.cpp \ + CallSiteSplitting.cpp \ ConstantHoisting.cpp \ ConstantProp.cpp \ CorrelatedValuePropagation.cpp \ DCE.cpp \ DeadStoreElimination.cpp \ + DivRemPairs.cpp \ EarlyCSE.cpp \ FlattenCFGPass.cpp \ Float2Int.cpp \ @@ -50,6 +52,7 @@ SRCS= ADCE.cpp \ LowerExpectIntrinsic.cpp \ LowerGuardIntrinsic.cpp \ MemCpyOptimizer.cpp \ + MergeICmps.cpp \ MergedLoadStoreMotion.cpp \ NaryReassociate.cpp \ NewGVN.cpp \ @@ -66,6 +69,7 @@ SRCS= ADCE.cpp \ SimpleLoopUnswitch.cpp \ SimplifyCFGPass.cpp \ Sink.cpp \ + SpeculateAroundPHIs.cpp \ SpeculativeExecution.cpp \ StraightLineStrengthReduce.cpp \ StructurizeCFG.cpp \ diff --git a/gnu/usr.bin/clang/libLLVMSupport/Makefile b/gnu/usr.bin/clang/libLLVMSupport/Makefile index 96c08a5d401..40d7d5986fc 100644 --- a/gnu/usr.bin/clang/libLLVMSupport/Makefile +++ b/gnu/usr.bin/clang/libLLVMSupport/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.5 2017/10/04 20:57:09 patrick Exp $ +# $OpenBSD: Makefile,v 1.6 2018/04/06 14:44:04 patrick Exp $ LIB= LLVMSupport NOPIC= @@ -24,6 +24,7 @@ SRCS= APFloat.cpp \ COM.cpp \ CachePruning.cpp \ Chrono.cpp \ + CodeGenCoverage.cpp \ CommandLine.cpp \ Compression.cpp \ ConvertUTF.cpp \ @@ -47,6 +48,7 @@ SRCS= APFloat.cpp \ IntEqClasses.cpp \ IntervalMap.cpp \ JamCRC.cpp \ + KnownBits.cpp \ LEB128.cpp \ LineIterator.cpp \ Locale.cpp \ diff --git a/gnu/usr.bin/clang/libLLVMTransformUtils/Makefile b/gnu/usr.bin/clang/libLLVMTransformUtils/Makefile index f95cd367fdf..6801a2b181d 100644 --- a/gnu/usr.bin/clang/libLLVMTransformUtils/Makefile +++ b/gnu/usr.bin/clang/libLLVMTransformUtils/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.5 2017/10/04 20:57:09 patrick Exp $ +# $OpenBSD: Makefile,v 1.6 2018/04/06 14:44:04 patrick Exp $ LIB= LLVMTransformUtils NOPIC= @@ -14,12 +14,13 @@ SRCS= ASanStackFrameLayout.cpp \ BreakCriticalEdges.cpp \ BuildLibCalls.cpp \ BypassSlowDivision.cpp \ + CallPromotionUtils.cpp \ CloneFunction.cpp \ CloneModule.cpp \ - CmpInstAnalysis.cpp \ CodeExtractor.cpp \ CtorUtils.cpp \ DemoteRegToStack.cpp \ + EntryExitInstrumenter.cpp \ EscapeEnumerator.cpp \ Evaluator.cpp \ FlattenCFG.cpp \ diff --git a/gnu/usr.bin/clang/libLLVMVectorize/Makefile b/gnu/usr.bin/clang/libLLVMVectorize/Makefile index a1e045e6d16..c217f22ac03 100644 --- a/gnu/usr.bin/clang/libLLVMVectorize/Makefile +++ b/gnu/usr.bin/clang/libLLVMVectorize/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.4 2017/10/04 20:57:09 patrick Exp $ +# $OpenBSD: Makefile,v 1.5 2018/04/06 14:44:04 patrick Exp $ LIB= LLVMVectorize NOPIC= @@ -7,10 +7,11 @@ NOPROFILE= CPPFLAGS+= -I${LLVM_SRCS}/include/llvm/Transforms .include <bsd.own.mk> -SRCS= Vectorize.cpp \ - LoadStoreVectorizer.cpp \ +SRCS= LoadStoreVectorizer.cpp \ LoopVectorize.cpp \ - SLPVectorizer.cpp + SLPVectorizer.cpp \ + VPlan.cpp \ + Vectorize.cpp .PATH: ${.CURDIR}/../../../llvm/lib/Transforms/Vectorize diff --git a/gnu/usr.bin/clang/libLLVMX86CodeGen/Makefile b/gnu/usr.bin/clang/libLLVMX86CodeGen/Makefile index 31dfe391494..68546f484ba 100644 --- a/gnu/usr.bin/clang/libLLVMX86CodeGen/Makefile +++ b/gnu/usr.bin/clang/libLLVMX86CodeGen/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.5 2017/10/04 20:57:09 patrick Exp $ +# $OpenBSD: Makefile,v 1.6 2018/04/06 14:44:04 patrick Exp $ LIB= LLVMX86CodeGen NOPIC= @@ -9,8 +9,10 @@ CPPFLAGS+= -I${.OBJDIR}/../include/llvm/X86 -I${LLVM_SRCS}/lib/Target/X86 .include <bsd.own.mk> SRCS= X86AsmPrinter.cpp \ X86CallFrameOptimization.cpp \ + X86CallLowering.cpp \ X86CallingConv.cpp \ X86CmovConversion.cpp \ + X86DomainReassignment.cpp \ X86EvexToVex.cpp \ X86ExpandPseudo.cpp \ X86FastISel.cpp \ @@ -23,12 +25,16 @@ SRCS= X86AsmPrinter.cpp \ X86ISelLowering.cpp \ X86InstrFMA3Info.cpp \ X86InstrInfo.cpp \ + X86InstructionSelector.cpp \ X86InterleavedAccess.cpp \ + X86LegalizerInfo.cpp \ X86MCInstLower.cpp \ X86MachineFunctionInfo.cpp \ X86MacroFusion.cpp \ X86PadShortFunction.cpp \ + X86RegisterBankInfo.cpp \ X86RegisterInfo.cpp \ + X86RetpolineThunks.cpp \ X86SelectionDAGInfo.cpp \ X86ShuffleDecodeConstantPool.cpp \ X86Subtarget.cpp \ diff --git a/gnu/usr.bin/clang/libLLVMX86Desc/Makefile b/gnu/usr.bin/clang/libLLVMX86Desc/Makefile index 9d3395a72a4..e49c41c34a5 100644 --- a/gnu/usr.bin/clang/libLLVMX86Desc/Makefile +++ b/gnu/usr.bin/clang/libLLVMX86Desc/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.3 2017/07/09 15:28:35 espie Exp $ +# $OpenBSD: Makefile,v 1.4 2018/04/06 14:44:04 patrick Exp $ LIB= LLVMX86Desc NOPIC= @@ -13,8 +13,9 @@ SRCS= X86AsmBackend.cpp \ X86MCCodeEmitter.cpp \ X86MachObjectWriter.cpp \ X86ELFObjectWriter.cpp \ + X86WinCOFFObjectWriter.cpp \ X86WinCOFFStreamer.cpp \ - X86WinCOFFObjectWriter.cpp + X86WinCOFFTargetStreamer.cpp .PATH: ${.CURDIR}/../../../llvm/lib/Target/X86/MCTargetDesc diff --git a/gnu/usr.bin/clang/libLLVMipo/Makefile b/gnu/usr.bin/clang/libLLVMipo/Makefile index 39a1ffd35fe..30a905eaa3d 100644 --- a/gnu/usr.bin/clang/libLLVMipo/Makefile +++ b/gnu/usr.bin/clang/libLLVMipo/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.5 2017/10/04 20:57:10 patrick Exp $ +# $OpenBSD: Makefile,v 1.6 2018/04/06 14:44:04 patrick Exp $ LIB= LLVMipo NOPIC= @@ -11,6 +11,7 @@ CPPFLAGS+= -I${LLVM_SRCS}/include/llvm/Transforms/IPO SRCS= ArgumentPromotion.cpp \ AlwaysInliner.cpp \ BarrierNoopPass.cpp \ + CalledValuePropagation.cpp \ ConstantMerge.cpp \ CrossDSOCFI.cpp \ DeadArgumentElimination.cpp \ diff --git a/gnu/usr.bin/clang/libclangAST/Makefile b/gnu/usr.bin/clang/libclangAST/Makefile index ac6b8b9acfc..849629f4e3c 100644 --- a/gnu/usr.bin/clang/libclangAST/Makefile +++ b/gnu/usr.bin/clang/libclangAST/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.3 2017/10/04 20:57:10 patrick Exp $ +# $OpenBSD: Makefile,v 1.4 2018/04/06 14:44:04 patrick Exp $ LIB= clangAST NOPIC= @@ -50,6 +50,7 @@ SRCS= APValue.cpp \ ODRHash.cpp \ OpenMPClause.cpp \ ParentMap.cpp \ + QualTypeNames.cpp \ RawCommentList.cpp \ RecordLayout.cpp \ RecordLayoutBuilder.cpp \ diff --git a/gnu/usr.bin/clang/libclangBasic/Makefile b/gnu/usr.bin/clang/libclangBasic/Makefile index 50381afbef1..94c9c054c7a 100644 --- a/gnu/usr.bin/clang/libclangBasic/Makefile +++ b/gnu/usr.bin/clang/libclangBasic/Makefile @@ -1,10 +1,11 @@ -# $OpenBSD: Makefile,v 1.4 2017/10/04 20:57:10 patrick Exp $ +# $OpenBSD: Makefile,v 1.5 2018/04/06 14:44:04 patrick Exp $ LIB= clangBasic NOPIC= NOPROFILE= CPPFLAGS+= ${CLANG_INCLUDES} +CPPFLAGS+= -I${LLVM_SRCS}/tools/clang/lib/Basic .include <bsd.own.mk> SRCS= Attributes.cpp \ @@ -24,6 +25,7 @@ SRCS= Attributes.cpp \ OpenMPKinds.cpp \ OperatorPrecedence.cpp \ SanitizerBlacklist.cpp \ + SanitizerSpecialCaseList.cpp \ Sanitizers.cpp \ SourceLocation.cpp \ SourceManager.cpp \ diff --git a/gnu/usr.bin/clang/libclangBasicTargets/Makefile b/gnu/usr.bin/clang/libclangBasicTargets/Makefile new file mode 100644 index 00000000000..46b34b1dc8b --- /dev/null +++ b/gnu/usr.bin/clang/libclangBasicTargets/Makefile @@ -0,0 +1,40 @@ +# $OpenBSD: Makefile,v 1.1 2018/04/06 14:44:04 patrick Exp $ + +LIB= clangBasicTargets +NOPIC= +NOPROFILE= + +CPPFLAGS+= ${CLANG_INCLUDES} +CPPFLAGS+= -I${LLVM_SRCS}/tools/clang/lib/Basic +CPPFLAGS+= -I${LLVM_SRCS}/tools/clang/lib/Basic/Targets + +.include <bsd.own.mk> +SRCS= AArch64.cpp \ + AMDGPU.cpp \ + ARM.cpp \ + AVR.cpp \ + BPF.cpp \ + Hexagon.cpp \ + Lanai.cpp \ + Le64.cpp \ + MSP430.cpp \ + Mips.cpp \ + NVPTX.cpp \ + Nios2.cpp \ + OSTargets.cpp \ + PNaCl.cpp \ + PPC.cpp \ + SPIR.cpp \ + Sparc.cpp \ + SystemZ.cpp \ + TCE.cpp \ + WebAssembly.cpp \ + X86.cpp \ + XCore.cpp + +.PATH: ${.CURDIR}/../../../llvm/tools/clang/lib/Basic/Targets + +install: + @# Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libclangDriver/Makefile b/gnu/usr.bin/clang/libclangDriver/Makefile index 2e9a268de36..633534190f4 100644 --- a/gnu/usr.bin/clang/libclangDriver/Makefile +++ b/gnu/usr.bin/clang/libclangDriver/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.4 2017/10/04 20:57:10 patrick Exp $ +# $OpenBSD: Makefile,v 1.5 2018/04/06 14:44:04 patrick Exp $ LIB= clangDriver NOPIC= @@ -15,7 +15,6 @@ SRCS= AArch64.cpp \ Action.cpp \ Ananas.cpp \ BareMetal.cpp \ - Bitrig.cpp \ Clang.cpp \ CloudABI.cpp \ CommonArgs.cpp \ diff --git a/gnu/usr.bin/clang/liblldCommon/Makefile b/gnu/usr.bin/clang/liblldCommon/Makefile new file mode 100644 index 00000000000..3b329ace8cd --- /dev/null +++ b/gnu/usr.bin/clang/liblldCommon/Makefile @@ -0,0 +1,23 @@ +# $OpenBSD: Makefile,v 1.1 2018/04/06 14:44:04 patrick Exp $ + +LIB= lldCommon +NOPROFILE= + +CPPFLAGS+= -I${LLVM_SRCS}/tools/lld/include + +.include <bsd.own.mk> +SRCS= Args.cpp \ + ErrorHandler.cpp \ + Memory.cpp \ + Reproduce.cpp \ + Strings.cpp \ + TargetOptionsCommandFlags.cpp \ + Threads.cpp \ + Version.cpp + +.PATH: ${.CURDIR}/../../../llvm/tools/lld/Common + +install: + @# Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/liblldConfig/Makefile b/gnu/usr.bin/clang/liblldConfig/Makefile deleted file mode 100644 index 9161890c484..00000000000 --- a/gnu/usr.bin/clang/liblldConfig/Makefile +++ /dev/null @@ -1,16 +0,0 @@ -# $OpenBSD: Makefile,v 1.2 2017/07/09 15:28:36 espie Exp $ - -LIB= lldConfig -NOPROFILE= - -CPPFLAGS+= -I${LLVM_SRCS}/tools/lld/include - -.include <bsd.own.mk> -SRCS= Version.cpp - -.PATH: ${.CURDIR}/../../../llvm/tools/lld/lib/Config - -install: - @# Nothing here so far ... - -.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/liblldCore/Makefile b/gnu/usr.bin/clang/liblldCore/Makefile index 8078d2d40f3..50beb291cc8 100644 --- a/gnu/usr.bin/clang/liblldCore/Makefile +++ b/gnu/usr.bin/clang/liblldCore/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.4 2017/10/04 20:57:10 patrick Exp $ +# $OpenBSD: Makefile,v 1.5 2018/04/06 14:44:04 patrick Exp $ LIB= lldCore NOPROFILE= @@ -11,10 +11,8 @@ SRCS= DefinedAtom.cpp \ File.cpp \ LinkingContext.cpp \ Reader.cpp \ - Reproduce.cpp \ Resolver.cpp \ SymbolTable.cpp \ - TargetOptionsCommandFlags.cpp \ Writer.cpp .PATH: ${.CURDIR}/../../../llvm/tools/lld/lib/Core diff --git a/gnu/usr.bin/clang/liblldELF/Makefile b/gnu/usr.bin/clang/liblldELF/Makefile index 197cc591b40..8ad6bd45230 100644 --- a/gnu/usr.bin/clang/liblldELF/Makefile +++ b/gnu/usr.bin/clang/liblldELF/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.4 2017/10/04 20:57:10 patrick Exp $ +# $OpenBSD: Makefile,v 1.5 2018/04/06 14:44:04 patrick Exp $ LIB= lldELF NOPROFILE= @@ -8,13 +8,13 @@ CPPFLAGS+= -I${LLVM_SRCS}/tools/lld/ELF .include <bsd.own.mk> SRCS= AArch64.cpp \ + AArch64ErrataFix.cpp \ AMDGPU.cpp \ ARM.cpp \ AVR.cpp \ Driver.cpp \ DriverUtils.cpp \ EhFrame.cpp \ - Error.cpp \ Filesystem.cpp \ GdbIndex.cpp \ ICF.cpp \ diff --git a/gnu/usr.bin/clang/lld/Makefile b/gnu/usr.bin/clang/lld/Makefile index e0c961950c5..d133133ae5e 100644 --- a/gnu/usr.bin/clang/lld/Makefile +++ b/gnu/usr.bin/clang/lld/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.12 2018/03/02 00:56:30 jsg Exp $ +# $OpenBSD: Makefile,v 1.13 2018/04/06 14:44:04 patrick Exp $ .include <bsd.own.mk> @@ -19,7 +19,7 @@ CPPFLAGS+= -I${.CURDIR}/../../../llvm/tools/lld/include .PATH: ${.CURDIR}/../../../llvm/tools/lld/docs LLVM_LIBDEPS= lldELF \ - lldConfig \ + lldCommon \ lldCore \ LLVMLTO \ LLVMPasses \ diff --git a/gnu/usr.bin/clang/llvm-tblgen/Makefile b/gnu/usr.bin/clang/llvm-tblgen/Makefile index 3715df65537..8ae2350fe87 100644 --- a/gnu/usr.bin/clang/llvm-tblgen/Makefile +++ b/gnu/usr.bin/clang/llvm-tblgen/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.7 2017/10/04 20:57:10 patrick Exp $ +# $OpenBSD: Makefile,v 1.8 2018/04/06 14:44:04 patrick Exp $ PROG= llvm-tblgen NOMAN= @@ -11,6 +11,7 @@ SRCS= AsmMatcherEmitter.cpp \ CallingConvEmitter.cpp \ CodeEmitterGen.cpp \ CodeGenDAGPatterns.cpp \ + CodeGenHwModes.cpp \ CodeGenInstruction.cpp \ CodeGenMapTable.cpp \ CodeGenRegisters.cpp \ @@ -26,12 +27,15 @@ SRCS= AsmMatcherEmitter.cpp \ FastISelEmitter.cpp \ FixedLenDecoderEmitter.cpp \ GlobalISelEmitter.cpp \ + InfoByHwMode.cpp \ + InstrDocsEmitter.cpp \ InstrInfoEmitter.cpp \ IntrinsicEmitter.cpp \ OptParserEmitter.cpp \ PseudoLoweringEmitter.cpp \ RegisterBankEmitter.cpp \ RegisterInfoEmitter.cpp \ + SDNodeProperties.cpp \ SearchableTableEmitter.cpp \ SubtargetEmitter.cpp \ SubtargetFeatureInfo.cpp \ @@ -39,6 +43,7 @@ SRCS= AsmMatcherEmitter.cpp \ Types.cpp \ X86DisassemblerTables.cpp \ X86EVEX2VEXTablesEmitter.cpp \ + X86FoldTablesEmitter.cpp \ X86ModRMFilters.cpp \ X86RecognizableInstr.cpp \ CTagsEmitter.cpp |