diff options
author | Pascal Stumpf <pascal@cvs.openbsd.org> | 2016-09-05 10:56:51 +0000 |
---|---|---|
committer | Pascal Stumpf <pascal@cvs.openbsd.org> | 2016-09-05 10:56:51 +0000 |
commit | 6f21278d355d1e07210d0f880d6add03b9a8f160 (patch) | |
tree | e21e5e1d0abc2575321be9402a9b1fdb7942389c /gnu/usr.bin/clang | |
parent | 36dba4aba143bc3fa88bf954dab1795bb6d0073a (diff) |
LLVM/Clang build system. This only builds the bare minimum of what is needed
to get a working "clang" binary.
Note that you need GCC from ports to bootstrap clang.
looks good to patrick@, ok jsg@ kettenis@
Diffstat (limited to 'gnu/usr.bin/clang')
76 files changed, 3661 insertions, 0 deletions
diff --git a/gnu/usr.bin/clang/Makefile.arch b/gnu/usr.bin/clang/Makefile.arch new file mode 100644 index 00000000000..b372b686309 --- /dev/null +++ b/gnu/usr.bin/clang/Makefile.arch @@ -0,0 +1,33 @@ +# $OpenBSD: Makefile.arch,v 1.1 2016/09/05 10:56:48 pascal Exp $ + +.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386" +LLVM_ARCH= X86 +.elif ${MACHINE_ARCH} == "powerpc" +LLVM_ARCH= PowerPC +.elif ${MACHINE_ARCH} == "sparc64" +LLVM_ARCH= Sparc +.elif ${MACHINE_ARCH} == "arm" +LLVM_ARCH= ARM +.elif ${MACHINE_ARCH} == "mips64" || ${MACHINE_ARCH} == "mips64el" +LLVM_ARCH= Mips +.endif + +.if !(${LLVM_ARCH} == "X86") +BACKEND_UTILS= +.endif + +BACKEND_ASMPARSER?= LLVM${LLVM_ARCH}AsmParser +BACKEND_ASMPRINTER?= LLVM${LLVM_ARCH}AsmPrinter +BACKEND_CODEGEN?= LLVM${LLVM_ARCH}CodeGen +BACKEND_DESC?= LLVM${LLVM_ARCH}Desc +BACKEND_DISASSEMBLER?= LLVM${LLVM_ARCH}Disassembler +BACKEND_INFO?= LLVM${LLVM_ARCH}Info +BACKEND_UTILS?= LLVM${LLVM_ARCH}Utils + +BACKEND_LIBS+= ${BACKEND_ASMPARSER} +BACKEND_LIBS+= ${BACKEND_ASMPRINTER} +BACKEND_LIBS+= ${BACKEND_CODEGEN} +BACKEND_LIBS+= ${BACKEND_DESC} +BACKEND_LIBS+= ${BACKEND_DISASSEMBLER} +BACKEND_LIBS+= ${BACKEND_INFO} +BACKEND_LIBS+= ${BACKEND_UTILS} diff --git a/gnu/usr.bin/clang/Makefile.inc b/gnu/usr.bin/clang/Makefile.inc new file mode 100644 index 00000000000..53733da93dd --- /dev/null +++ b/gnu/usr.bin/clang/Makefile.inc @@ -0,0 +1,48 @@ +# $OpenBSD: Makefile.inc,v 1.1 2016/09/05 10:56:48 pascal Exp $ + +LLVM_SRCS?= ${.CURDIR}/../../../llvm + +CC= egcc +CXX= eg++ + +DEBUG= +NOPIE= + +CLANG_INCLUDES= -I${LLVM_SRCS}/tools/clang/include +CPPFLAGS+= -I${LLVM_SRCS}/include -I${.CURDIR}/../include -I${.OBJDIR} \ + -I${.OBJDIR}/../include +CPPFLAGS+= -DNDEBUG +CPPFLAGS+= -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS \ + -D__STDC_FORMAT_MACROS + +TRIPLE= ${MACHINE_ARCH}-unknown-openbsd${OSREV} +CPPFLAGS+= -DLLVM_DEFAULT_TARGET_TRIPLE=\"${TRIPLE}\" +CPPFLAGS+= -DLLVM_HOST_TRIPLE=\"${TRIPLE}\" +CPPFLAGS+= -DLLVM_PREFIX=\"/usr\" +.include "Makefile.arch" +CPPFLAGS+=-DLLVM_NATIVE_ARCH=\"${LLVM_ARCH}\" +CPPFLAGS+=-DLLVM_NATIVE_ASMPARSER=LLVMInitialize${LLVM_ARCH}AsmParser +CPPFLAGS+=-DLLVM_NATIVE_ASMPRINTER=LLVMInitialize${LLVM_ARCH}AsmPrinter +CPPFLAGS+=-DLLVM_NATIVE_DISASSEMBLER=LLVMInitialize${LLVM_ARCH}Disassembler +CPPFLAGS+=-DLLVM_NATIVE_TARGET=LLVMInitialize${LLVM_ARCH}Target +CPPFLAGS+=-DLLVM_NATIVE_TARGETINFO=LLVMInitialize${LLVM_ARCH}TargetInfo +CPPFLAGS+=-DLLVM_NATIVE_TARGETMC=LLVMInitialize${LLVM_ARCH}TargetMC + +# upstream defaults +CFLAGS+= -ffunction-sections +.if ${MACHINE_ARCH} != "powerpc" +# XXX +CFLAGS+= -fdata-sections +.endif +CXXFLAGS+= -std=c++11 +CXXFLAGS+= -fvisibility-inlines-hidden +CXXFLAGS+= -fno-exceptions -fno-rtti +# warnings (from upstream) +CXXFLAGS+= -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual \ + -Wno-missing-field-initializers -pedantic -Wno-long-long \ + -Wdelete-non-virtual-dtor -Wno-comment + +.for lib in ${LLVM_LIBDEPS} +DPADD+= ${.OBJDIR}/../lib${lib}/lib${lib}.a +LDADD+= ${.OBJDIR}/../lib${lib}/lib${lib}.a +.endfor diff --git a/gnu/usr.bin/clang/clang-tblgen/Makefile b/gnu/usr.bin/clang/clang-tblgen/Makefile new file mode 100644 index 00000000000..c862da54bdf --- /dev/null +++ b/gnu/usr.bin/clang/clang-tblgen/Makefile @@ -0,0 +1,29 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:48 pascal Exp $ + +PROG= clang-tblgen +NOMAN= + +LDADD+= -ltermlib +DPADD+= ${LIBTERMLIB} + +SRCS= ClangASTNodesEmitter.cpp \ + ClangAttrEmitter.cpp \ + ClangCommentCommandInfoEmitter.cpp \ + ClangCommentHTMLNamedCharacterReferenceEmitter.cpp \ + ClangCommentHTMLTagsEmitter.cpp \ + ClangDiagnosticsEmitter.cpp \ + ClangSACheckersEmitter.cpp \ + NeonEmitter.cpp \ + TableGen.cpp + +.PATH: ${.CURDIR}/../../../llvm/tools/clang/utils/TableGen + +LLVM_LIBDEPS= LLVMTableGen LLVMSupport + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.prog.mk> diff --git a/gnu/usr.bin/clang/clang/Makefile b/gnu/usr.bin/clang/clang/Makefile new file mode 100644 index 00000000000..353a54d9682 --- /dev/null +++ b/gnu/usr.bin/clang/clang/Makefile @@ -0,0 +1,70 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:48 pascal Exp $ + +PROG= clang +BINDIR= /usr/bin +SRCS= driver.cpp \ + cc1_main.cpp \ + cc1as_main.cpp + +LDADD+= -ltermlib +DPADD+= ${LIBTERMLIB} + +LINKS= ${BINDIR}/clang ${BINDIR}/clang++ \ + ${BINDIR}/clang ${BINDIR}/clang-cpp +MLINKS= clang.1 clang++.1 \ + clang.1 clang-cpp.1 + +CPPFLAGS+= -I${.CURDIR}/../../../llvm/tools/clang/include + +.PATH: ${.CURDIR}/../../../llvm/tools/clang/tools/driver + +depend: + # Nothing here so far ... + +LLVM_LIBDEPS= clangFrontendTool \ + clangFrontend \ + clangDriver \ + clangSerialization \ + clangCodeGen \ + clangParse \ + clangSema \ + clangRewriteFrontend \ + clangRewrite \ + clangAnalysis \ + clangEdit \ + clangAST \ + clangLex \ + clangBasic \ + LLVMOption \ + LLVMObjCARCOpts \ + LLVMipo \ + LLVMVectorize \ + LLVMLinker \ + LLVMIRReader \ + LLVMAsmParser \ + ${BACKEND_ASMPARSER} \ + ${BACKEND_CODEGEN} \ + LLVMSelectionDAG \ + LLVMAsmPrinter \ + LLVMCodeGen \ + LLVMTarget \ + LLVMScalarOpts \ + LLVMInstCombine \ + LLVMInstrumentation \ + LLVMProfileData \ + LLVMTransformUtils \ + LLVMBitWriter \ + LLVMAnalysis \ + ${BACKEND_DESC} \ + LLVMObject \ + LLVMMCParser \ + LLVMBitReader \ + LLVMMCDisassembler \ + ${BACKEND_INFO} \ + ${BACKEND_ASMPRINTER} \ + LLVMMC \ + ${BACKEND_UTILS} \ + LLVMCore \ + LLVMSupport + +.include <bsd.prog.mk> diff --git a/gnu/usr.bin/clang/include/clang/AST/Makefile b/gnu/usr.bin/clang/include/clang/AST/Makefile new file mode 100644 index 00000000000..97f6c27e15c --- /dev/null +++ b/gnu/usr.bin/clang/include/clang/AST/Makefile @@ -0,0 +1,73 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:48 pascal Exp $ + +.include <bsd.own.mk> + +TBLGEN= ${.OBJDIR}/../../../clang-tblgen/clang-tblgen +CLANG_INC=${.CURDIR}/../../../../../llvm/tools/clang/include + +GEN= AttrDump.inc AttrImpl.inc AttrVisitor.inc Attrs.inc +GEN+=CommentCommandInfo.inc CommentCommandList.inc +GEN+=CommentHTMLNamedCharacterReferences.inc CommentHTMLTags.inc +GEN+=CommentHTMLTagsProperties.inc CommentNodes.inc DeclNodes.inc StmtNodes.inc + +all: ${GEN} + +install: + # Nothing here so far ... + +depend: + # Nothing here so far ... + +clean: + rm -f ${GEN} + +AttrDump.inc: ${CLANG_INC}/clang/Basic/Attr.td + ${TBLGEN} -I${CLANG_INC} -gen-clang-attr-dump \ + -o ${.TARGET} ${.ALLSRC} + +AttrImpl.inc: ${CLANG_INC}/clang/Basic/Attr.td + ${TBLGEN} -I${CLANG_INC} -gen-clang-attr-impl \ + -o ${.TARGET} ${.ALLSRC} + +AttrVisitor.inc: ${CLANG_INC}/clang/Basic/Attr.td + ${TBLGEN} -I${CLANG_INC} -gen-clang-attr-ast-visitor \ + -o ${.TARGET} ${.ALLSRC} + +Attrs.inc: ${CLANG_INC}/clang/Basic/Attr.td + ${TBLGEN} -I${CLANG_INC} -gen-clang-attr-classes \ + -o ${.TARGET} ${.ALLSRC} + +CommentCommandInfo.inc: ${CLANG_INC}/clang/AST/CommentCommands.td + ${TBLGEN} -gen-clang-comment-command-info \ + -o ${.TARGET} ${.ALLSRC} + +CommentCommandList.inc: ${CLANG_INC}/clang/AST/CommentCommands.td + ${TBLGEN} -gen-clang-comment-command-list \ + -o ${.TARGET} ${.ALLSRC} + +CommentHTMLNamedCharacterReferences.inc: \ + ${CLANG_INC}/clang/AST/CommentHTMLNamedCharacterReferences.td + ${TBLGEN} -gen-clang-comment-html-named-character-references \ + -o ${.TARGET} ${.ALLSRC} + +CommentHTMLTags.inc: ${CLANG_INC}/clang/AST/CommentHTMLTags.td + ${TBLGEN} -gen-clang-comment-html-tags \ + -o ${.TARGET} ${.ALLSRC} + +CommentHTMLTagsProperties.inc: ${CLANG_INC}/clang/AST/CommentHTMLTags.td + ${TBLGEN} -gen-clang-comment-html-tags-properties \ + -o ${.TARGET} ${.ALLSRC} + +CommentNodes.inc: ${CLANG_INC}/clang/Basic/CommentNodes.td + ${TBLGEN} -gen-clang-comment-nodes \ + -o ${.TARGET} ${.ALLSRC} + +DeclNodes.inc: ${CLANG_INC}/clang/Basic/DeclNodes.td + ${TBLGEN} -gen-clang-decl-nodes \ + -o ${.TARGET} ${.ALLSRC} + +StmtNodes.inc: ${CLANG_INC}/clang/Basic/StmtNodes.td + ${TBLGEN} -gen-clang-stmt-nodes \ + -o ${.TARGET} ${.ALLSRC} + +.include <bsd.obj.mk> diff --git a/gnu/usr.bin/clang/include/clang/Basic/Makefile b/gnu/usr.bin/clang/include/clang/Basic/Makefile new file mode 100644 index 00000000000..537be127e34 --- /dev/null +++ b/gnu/usr.bin/clang/include/clang/Basic/Makefile @@ -0,0 +1,50 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:48 pascal Exp $ + +.include <bsd.own.mk> + +TBLGEN= ${.OBJDIR}/../../../clang-tblgen/clang-tblgen +CLANG_INC=${.CURDIR}/../../../../../llvm/tools/clang/include + +GEN= AttrList.inc DiagnosticASTKinds.inc DiagnosticAnalysisKinds.inc +GEN+=DiagnosticCommentKinds.inc DiagnosticCommonKinds.inc +GEN+=DiagnosticDriverKinds.inc DiagnosticFrontendKinds.inc DiagnosticGroups.inc +GEN+=DiagnosticIndexName.inc DiagnosticLexKinds.inc DiagnosticParseKinds.inc +GEN+=DiagnosticSemaKinds.inc DiagnosticSerializationKinds.inc arm_neon.inc +GEN+=AttrHasAttributeImpl.inc + +all: ${GEN} + +install: + # Nothing here so far ... + +depend: + # Nothing here so far ... + +clean: + rm -f ${GEN} + +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 +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 + ${TBLGEN} -I${CLANG_INC}/clang/Basic -gen-clang-diag-groups \ + -o ${.TARGET} ${.ALLSRC} + +DiagnosticIndexName.inc: ${CLANG_INC}/clang/Basic/Diagnostic.td + ${TBLGEN} -I${CLANG_INC}/clang/Basic -gen-clang-diags-index-name \ + -o ${.TARGET} ${.ALLSRC} + +AttrHasAttributeImpl.inc: ${CLANG_INC}/clang/Basic/Attr.td + ${TBLGEN} -I${CLANG_INC} \ + -gen-clang-attr-has-attribute-impl -o ${.TARGET} ${.ALLSRC} + +arm_neon.inc: ${CLANG_INC}/clang/Basic/arm_neon.td + ${TBLGEN} -gen-arm-neon-sema -o ${.TARGET} ${.ALLSRC} + +.include <bsd.obj.mk> diff --git a/gnu/usr.bin/clang/include/clang/Basic/Version.inc b/gnu/usr.bin/clang/include/clang/Basic/Version.inc new file mode 100644 index 00000000000..f0b416867a0 --- /dev/null +++ b/gnu/usr.bin/clang/include/clang/Basic/Version.inc @@ -0,0 +1,8 @@ +/* $OpenBSD: Version.inc,v 1.1 2016/09/05 10:56:48 pascal Exp $ */ + +#define CLANG_VERSION 3.8.1 +#define CLANG_VERSION_MAJOR 3 +#define CLANG_VERSION_MINOR 8 +#define CLANG_VERSION_PATCHLEVEL 1 + +#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 new file mode 100644 index 00000000000..15c8a00dccd --- /dev/null +++ b/gnu/usr.bin/clang/include/clang/Config/config.h @@ -0,0 +1,38 @@ +/* This generated file is for internal use. Do not include it from headers. */ + +#ifdef CLANG_CONFIG_H +#error config.h can only be included once +#else +#define CLANG_CONFIG_H + +/* Bug report URL. */ +#define BUG_REPORT_URL "http://llvm.org/bugs/" + +/* Default OpenMP runtime used by -fopenmp. */ +#define CLANG_DEFAULT_OPENMP_RUNTIME "libomp" + +/* Multilib suffix for libdir. */ +#define CLANG_LIBDIR_SUFFIX "" + +/* Relative directory for resource files */ +#define CLANG_RESOURCE_DIR "" + +/* Directories clang will search for headers */ +#define C_INCLUDE_DIRS "" + +/* Default <path> to all compiler invocations for --sysroot=<path>. */ +#define DEFAULT_SYSROOT "" + +/* Directory where gcc is installed. */ +#define GCC_INSTALL_PREFIX "" + +/* Define if we have libxml2 */ +/* #undef CLANG_HAVE_LIBXML */ + +/* The LLVM product name and version */ +#define BACKEND_PACKAGE_STRING "LLVM 3.8.1" + +/* Linker version detected at compile time. */ +/* #undef HOST_LINK_VERSION */ + +#endif diff --git a/gnu/usr.bin/clang/include/clang/Driver/Makefile b/gnu/usr.bin/clang/include/clang/Driver/Makefile new file mode 100644 index 00000000000..dc4684871e1 --- /dev/null +++ b/gnu/usr.bin/clang/include/clang/Driver/Makefile @@ -0,0 +1,26 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:48 pascal Exp $ + +.include <bsd.own.mk> + +TBLGEN= ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen +CLANG_INC=${.CURDIR}/../../../../../llvm/tools/clang/include + +GEN= Options.inc + +all: ${GEN} + +install: + # Nothing here so far ... + +depend: + # Nothing here so far ... + +clean: + rm -f ${GEN} + +Options.inc: ${CLANG_INC}/clang/Driver/Options.td + ${TBLGEN} -I${CLANG_INC}/clang/Driver \ + -I${.CURDIR}/../../../../../llvm/include -gen-opt-parser-defs \ + -o ${.TARGET} ${.ALLSRC} + +.include <bsd.obj.mk> diff --git a/gnu/usr.bin/clang/include/clang/Makefile b/gnu/usr.bin/clang/include/clang/Makefile new file mode 100644 index 00000000000..aa81fb65c79 --- /dev/null +++ b/gnu/usr.bin/clang/include/clang/Makefile @@ -0,0 +1,11 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:48 pascal Exp $ + +SUBDIR+=AST +SUBDIR+=Basic +SUBDIR+=Driver +SUBDIR+=Parse +SUBDIR+=Sema +SUBDIR+=Serialization +SUBDIR+=intrin + +.include <bsd.subdir.mk> diff --git a/gnu/usr.bin/clang/include/clang/Parse/Makefile b/gnu/usr.bin/clang/include/clang/Parse/Makefile new file mode 100644 index 00000000000..6aa63a83977 --- /dev/null +++ b/gnu/usr.bin/clang/include/clang/Parse/Makefile @@ -0,0 +1,25 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:48 pascal Exp $ + +.include <bsd.own.mk> + +TBLGEN= ${.OBJDIR}/../../../clang-tblgen/clang-tblgen +CLANG_INC=${.CURDIR}/../../../../../llvm/tools/clang/include + +GEN= AttrParserStringSwitches.inc + +all: ${GEN} + +install: + # Nothing here so far ... + +depend: + # Nothing here so far ... + +clean: + rm -f ${GEN} + +AttrParserStringSwitches.inc: ${CLANG_INC}/clang/Basic/Attr.td + ${TBLGEN} -I${CLANG_INC} -gen-clang-attr-parser-string-switches \ + -o ${.TARGET} ${.ALLSRC} + +.include <bsd.obj.mk> diff --git a/gnu/usr.bin/clang/include/clang/Sema/Makefile b/gnu/usr.bin/clang/include/clang/Sema/Makefile new file mode 100644 index 00000000000..1b9383dac8b --- /dev/null +++ b/gnu/usr.bin/clang/include/clang/Sema/Makefile @@ -0,0 +1,42 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:48 pascal Exp $ + +.include <bsd.own.mk> + +TBLGEN= ${.OBJDIR}/../../../clang-tblgen/clang-tblgen +CLANG_INC=${.CURDIR}/../../../../../llvm/tools/clang/include + +GEN= AttrParsedAttrImpl.inc AttrParsedAttrKinds.inc AttrParsedAttrList.inc +GEN+=AttrSpellingListIndex.inc AttrTemplateInstantiate.inc + +all: ${GEN} + +install: + # Nothing here so far ... + +depend: + # Nothing here so far ... + +clean: + rm -f ${GEN} + +AttrParsedAttrImpl.inc: ${CLANG_INC}/clang/Basic/Attr.td + ${TBLGEN} -I${CLANG_INC} -gen-clang-attr-parsed-attr-impl \ + -o ${.TARGET} ${.ALLSRC} + +AttrParsedAttrKinds.inc: ${CLANG_INC}/clang/Basic/Attr.td + ${TBLGEN} -I${CLANG_INC} -gen-clang-attr-parsed-attr-kinds \ + -o ${.TARGET} ${.ALLSRC} + +AttrParsedAttrList.inc: ${CLANG_INC}/clang/Basic/Attr.td + ${TBLGEN} -I${CLANG_INC} -gen-clang-attr-parsed-attr-list \ + -o ${.TARGET} ${.ALLSRC} + +AttrSpellingListIndex.inc: ${CLANG_INC}/clang/Basic/Attr.td + ${TBLGEN} -I${CLANG_INC} -gen-clang-attr-spelling-index \ + -o ${.TARGET} ${.ALLSRC} + +AttrTemplateInstantiate.inc: ${CLANG_INC}/clang/Basic/Attr.td + ${TBLGEN} -I${CLANG_INC} -gen-clang-attr-template-instantiate \ + -o ${.TARGET} ${.ALLSRC} + +.include <bsd.obj.mk> diff --git a/gnu/usr.bin/clang/include/clang/Serialization/Makefile b/gnu/usr.bin/clang/include/clang/Serialization/Makefile new file mode 100644 index 00000000000..7e3a310e20f --- /dev/null +++ b/gnu/usr.bin/clang/include/clang/Serialization/Makefile @@ -0,0 +1,29 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:48 pascal Exp $ + +.include <bsd.own.mk> + +TBLGEN= ${.OBJDIR}/../../../clang-tblgen/clang-tblgen +CLANG_INC=${.CURDIR}/../../../../../llvm/tools/clang/include + +GEN= AttrPCHRead.inc AttrPCHWrite.inc + +all: ${GEN} + +install: + # Nothing here so far ... + +depend: + # Nothing here so far ... + +clean: + rm -f ${GEN} + +AttrPCHRead.inc: ${CLANG_INC}/clang/Basic/Attr.td + ${TBLGEN} -I${CLANG_INC} -gen-clang-attr-pch-read \ + -o ${.TARGET} ${.ALLSRC} + +AttrPCHWrite.inc: ${CLANG_INC}/clang/Basic/Attr.td + ${TBLGEN} -I${CLANG_INC} -gen-clang-attr-pch-write \ + -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 new file mode 100644 index 00000000000..ec21c2e149d --- /dev/null +++ b/gnu/usr.bin/clang/include/clang/intrin/Makefile @@ -0,0 +1,99 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:48 pascal Exp $ + +.include <bsd.own.mk> + +LLVM_V= 3.8.1 +CLANG_INTR_INCDIR= /usr/lib/clang/${LLVM_V}/include + +.PATH: ${.CURDIR}/../../../../../llvm/tools/clang/lib/Headers + +HEADERS=adxintrin.h \ + altivec.h \ + ammintrin.h \ + arm_acle.h \ + avx2intrin.h \ + avx512bwintrin.h \ + avx512cdintrin.h \ + avx512erintrin.h \ + avx512fintrin.h \ + avx512vlbwintrin.h \ + avx512vlintrin.h \ + avx512dqintrin.h \ + avx512vldqintrin.h \ + pkuintrin.h \ + avxintrin.h \ + bmi2intrin.h \ + bmiintrin.h \ + __clang_cuda_runtime_wrapper.h \ + cpuid.h \ + cuda_builtin_vars.h \ + emmintrin.h \ + f16cintrin.h \ + float.h \ + fma4intrin.h \ + fmaintrin.h \ + fxsrintrin.h \ + htmintrin.h \ + htmxlintrin.h \ + ia32intrin.h \ + immintrin.h \ + Intrin.h \ + inttypes.h \ + iso646.h \ + limits.h \ + lzcntintrin.h \ + mm3dnow.h \ + mmintrin.h \ + mm_malloc.h \ + module.modulemap \ + nmmintrin.h \ + pmmintrin.h \ + popcntintrin.h \ + prfchwintrin.h \ + rdseedintrin.h \ + rtmintrin.h \ + s390intrin.h \ + shaintrin.h \ + smmintrin.h \ + stdalign.h \ + stdarg.h \ + stdatomic.h \ + stdbool.h \ + stddef.h \ + __stddef_max_align_t.h \ + stdint.h \ + stdnoreturn.h \ + tbmintrin.h \ + tgmath.h \ + tmmintrin.h \ + unwind.h \ + vadefs.h \ + varargs.h \ + vecintrin.h \ + __wmmintrin_aes.h \ + wmmintrin.h \ + __wmmintrin_pclmul.h \ + x86intrin.h \ + xmmintrin.h \ + xopintrin.h \ + xsaveintrin.h \ + xsaveoptintrin.h \ + xsavecintrin.h \ + xsavesintrin.h \ + xtestintrin.h + +all: ${HEADERS} + +depend: + # Nothing here so far ... + +clean: + # Nothing here so far ... + +install includes: ${HEADERS} + ${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m ${DIRMODE} \ + ${DESTDIR}${CLANG_INTR_INCDIR} + ${INSTALL} ${INSTALL_COPY} -m 444 ${.ALLSRC} \ + ${DESTDIR}${CLANG_INTR_INCDIR} + +.include <bsd.obj.mk> diff --git a/gnu/usr.bin/clang/include/llvm/Config/Makefile b/gnu/usr.bin/clang/include/llvm/Config/Makefile new file mode 100644 index 00000000000..e5de261bf41 --- /dev/null +++ b/gnu/usr.bin/clang/include/llvm/Config/Makefile @@ -0,0 +1,29 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:48 pascal Exp $ + +.include <bsd.own.mk> + +.include "../../../Makefile.arch" + +DEFS= AsmParsers.def AsmPrinters.def Disassemblers.def Targets.def + +all: ${DEFS} + +install: + # Nothing here so far ... + +depend: + # Nothing here so far ... + +clean: + rm -f ${DEFS} + +AsmParsers.def: + printf "LLVM_ASM_PARSER(${LLVM_ARCH})\n#undef LLVM_ASM_PARSER\n" >$@ +AsmPrinters.def: + printf "LLVM_ASM_PRINTER(${LLVM_ARCH})\n#undef LLVM_ASM_PRINTER\n" >$@ +Disassemblers.def: + printf "LLVM_DISASSEMBLER(${LLVM_ARCH})\n#undef LLVM_DISASSEMBLER\n" >$@ +Targets.def: + printf "LLVM_TARGET(${LLVM_ARCH})\n#undef LLVM_TARGET\n" >$@ + +.include <bsd.obj.mk> diff --git a/gnu/usr.bin/clang/include/llvm/Config/config.h b/gnu/usr.bin/clang/include/llvm/Config/config.h new file mode 100644 index 00000000000..3385ebbf91f --- /dev/null +++ b/gnu/usr.bin/clang/include/llvm/Config/config.h @@ -0,0 +1,584 @@ +/* include/llvm/Config/config.h.cmake corresponding to config.h.in. */ + +#ifndef CONFIG_H +#define CONFIG_H + +/* Exported configuration */ +#include "llvm/Config/llvm-config.h" + +/* Bug report URL. */ +#define BUG_REPORT_URL "http://llvm.org/bugs/" + +/* Define if you want backtraces on crash */ +#define ENABLE_BACKTRACES + +/* Define to enable crash overrides */ +#define ENABLE_CRASH_OVERRIDES + +/* Define to disable C++ atexit */ +#define DISABLE_LLVM_DYLIB_ATEXIT + +/* Define if position independent code is enabled */ +#define ENABLE_PIC + +/* Define if timestamp information (e.g., __DATE__) is allowed */ +#define ENABLE_TIMESTAMPS 1 + +/* Define to 1 if you have the `arc4random' function. */ +#define HAVE_DECL_ARC4RANDOM 1 + +/* Define to 1 if you have the `backtrace' function. */ +/* #undef HAVE_BACKTRACE */ + +/* Define to 1 if you have the `bcopy' function. */ +#undef HAVE_BCOPY + +/* Define to 1 if you have the `closedir' function. */ +#define HAVE_CLOSEDIR 1 + +/* Define to 1 if you have the <cxxabi.h> header file. */ +#define HAVE_CXXABI_H 1 + +/* Define to 1 if you have the <CrashReporterClient.h> header file. */ +#undef HAVE_CRASHREPORTERCLIENT_H + +/* can use __crashreporter_info__ */ +#undef HAVE_CRASHREPORTER_INFO + +/* Define to 1 if you have the declaration of `strerror_s', and to 0 if you + don't. */ +#define HAVE_DECL_STRERROR_S 0 + +/* Define to 1 if you have the DIA SDK installed, and to 0 if you don't. */ +/* #undef HAVE_DIA_SDK */ + +/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'. + */ +#define HAVE_DIRENT_H 1 + +/* Define if you have the GNU dld library. */ +#undef HAVE_DLD + +/* Define to 1 if you have the `dlerror' function. */ +#define HAVE_DLERROR 1 + +/* Define to 1 if you have the <dlfcn.h> header file. */ +#define HAVE_DLFCN_H 1 + +/* Define if dlopen() is available on this platform. */ +#define HAVE_DLOPEN 1 + +/* Define if you have the _dyld_func_lookup function. */ +#undef HAVE_DYLD + +/* Define to 1 if you have the <errno.h> header file. */ +#define HAVE_ERRNO_H 1 + +/* Define to 1 if you have the <execinfo.h> header file. */ +/* #define HAVE_EXECINFO_H 1 */ + +/* Define to 1 if you have the <fcntl.h> header file. */ +#define HAVE_FCNTL_H 1 + +/* Define to 1 if you have the <fenv.h> header file. */ +#define HAVE_FENV_H 1 + +/* Define if libffi is available on this platform. */ +/* #undef HAVE_FFI_CALL */ + +/* Define to 1 if you have the <ffi/ffi.h> header file. */ +/* #undef HAVE_FFI_FFI_H */ + +/* Define to 1 if you have the <ffi.h> header file. */ +/* #undef HAVE_FFI_H */ + +/* Define to 1 if you have the `futimes' function. */ +#define HAVE_FUTIMES 1 + +/* Define to 1 if you have the `futimens' function */ +#define HAVE_FUTIMENS 1 + +/* Define to 1 if you have the `getcwd' function. */ +#define HAVE_GETCWD 1 + +/* Define to 1 if you have the `getpagesize' function. */ +#define HAVE_GETPAGESIZE 1 + +/* Define to 1 if you have the `getrlimit' function. */ +#define HAVE_GETRLIMIT 1 + +/* Define to 1 if you have the `getrusage' function. */ +#define HAVE_GETRUSAGE 1 + +/* Define to 1 if you have the `gettimeofday' function. */ +#define HAVE_GETTIMEOFDAY 1 + +/* Define to 1 if the system has the type `int64_t'. */ +#define HAVE_INT64_T 1 + +/* Define to 1 if you have the <inttypes.h> header file. */ +#define HAVE_INTTYPES_H 1 + +/* Define to 1 if you have the `isatty' function. */ +#define HAVE_ISATTY 1 + +/* Define if you have the libdl library or equivalent. */ +/* #undef HAVE_LIBDL */ + +/* Define to 1 if you have the `m' library (-lm). */ +#undef HAVE_LIBM + +/* Define to 1 if you have the `ole32' library (-lole32). */ +#undef HAVE_LIBOLE32 + +/* Define to 1 if you have the `psapi' library (-lpsapi). */ +/* #undef HAVE_LIBPSAPI */ + +/* Define to 1 if you have the `pthread' library (-lpthread). */ +#define HAVE_LIBPTHREAD 1 + +/* Define to 1 if you have the `shell32' library (-lshell32). */ +/* #undef HAVE_LIBSHELL32 */ + +/* Define to 1 if you have the 'z' library (-lz). */ +#define HAVE_LIBZ 1 + +/* Define to 1 if you have the 'edit' library (-ledit). */ +/* #undef HAVE_LIBEDIT */ + +/* Define to 1 if you have the <limits.h> header file. */ +#define HAVE_LIMITS_H 1 + +/* Define to 1 if you have the <link.h> header file. */ +/* #undef HAVE_LINK_H */ + +/* Define if you can use -rdynamic. */ +#define HAVE_LINK_EXPORT_DYNAMIC 1 + +/* Define if you can use -Wl,-R. to pass -R. to the linker, in order to add + the current directory to the dynamic linker search path. */ +#undef HAVE_LINK_R + +/* Define to 1 if you have the `longjmp' function. */ +/* #undef HAVE_LONGJMP */ + +/* Define to 1 if you have the <mach/mach.h> header file. */ +/* #undef HAVE_MACH_MACH_H */ + +/* Define to 1 if you have the <mach-o/dyld.h> header file. */ +/* #undef HAVE_MACH_O_DYLD_H */ + +/* Define if mallinfo() is available on this platform. */ +/* #undef HAVE_MALLINFO */ + +/* Define to 1 if you have the <malloc.h> header file. */ +#define HAVE_MALLOC_H 1 + +/* Define to 1 if you have the <malloc/malloc.h> header file. */ +/* #undef HAVE_MALLOC_MALLOC_H */ + +/* Define to 1 if you have the `malloc_zone_statistics' function. */ +/* #undef HAVE_MALLOC_ZONE_STATISTICS */ + +/* Define to 1 if you have the `mallctl` function. */ +/* #undef HAVE_MALLCTL */ + +/* Define to 1 if you have the `mkdtemp' function. */ +#define HAVE_MKDTEMP 1 + +/* Define to 1 if you have the `mkstemp' function. */ +#define HAVE_MKSTEMP 1 + +/* Define to 1 if you have the `mktemp' function. */ +#define HAVE_MKTEMP 1 + +/* Define to 1 if you have a working `mmap' system call. */ +#undef HAVE_MMAP + +/* Define if mmap() uses MAP_ANONYMOUS to map anonymous pages, or undefine if + it uses MAP_ANON */ +#undef HAVE_MMAP_ANONYMOUS + +/* Define if mmap() can map files into memory */ +#undef HAVE_MMAP_FILE + +/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */ +/* #undef HAVE_NDIR_H */ + +/* Define to 1 if you have the `opendir' function. */ +#define HAVE_OPENDIR 1 + +/* Define to 1 if you have the `posix_spawn' function. */ +#define HAVE_POSIX_SPAWN 1 + +/* Define to 1 if you have the `pread' function. */ +#define HAVE_PREAD 1 + +/* Define if libtool can extract symbol lists from object files. */ +#undef HAVE_PRELOADED_SYMBOLS + +/* Define to have the %a format string */ +#undef HAVE_PRINTF_A + +/* Have pthread_getspecific */ +#define HAVE_PTHREAD_GETSPECIFIC 1 + +/* Define to 1 if you have the <pthread.h> header file. */ +#define HAVE_PTHREAD_H 1 + +/* Have pthread_mutex_lock */ +#define HAVE_PTHREAD_MUTEX_LOCK 1 + +/* Have pthread_rwlock_init */ +#define HAVE_PTHREAD_RWLOCK_INIT 1 + +/* Define to 1 if srand48/lrand48/drand48 exist in <stdlib.h> */ +#define HAVE_RAND48 1 + +/* Define to 1 if you have the `readdir' function. */ +#define HAVE_READDIR 1 + +/* Define to 1 if you have the `realpath' function. */ +#define HAVE_REALPATH 1 + +/* Define to 1 if you have the `sbrk' function. */ +#define HAVE_SBRK 1 + +/* Define to 1 if you have the `setenv' function. */ +#define HAVE_SETENV 1 + +/* Define to 1 if you have the `setjmp' function. */ +/* #undef HAVE_SETJMP */ + +/* Define to 1 if you have the `setrlimit' function. */ +#define HAVE_SETRLIMIT 1 + +/* Define if you have the shl_load function. */ +#undef HAVE_SHL_LOAD + +/* Define to 1 if you have the `siglongjmp' function. */ +/* #undef HAVE_SIGLONGJMP */ + +/* Define to 1 if you have the <signal.h> header file. */ +#define HAVE_SIGNAL_H 1 + +/* Define to 1 if you have the `sigsetjmp' function. */ +/* #undef HAVE_SIGSETJMP */ + +/* Define to 1 if you have the <stdint.h> header file. */ +#define HAVE_STDINT_H 1 + +/* Set to 1 if the std::isinf function is found in <cmath> */ +#undef HAVE_STD_ISINF_IN_CMATH + +/* Set to 1 if the std::isnan function is found in <cmath> */ +#undef HAVE_STD_ISNAN_IN_CMATH + +/* Define to 1 if you have the `strdup' function. */ +/* #undef HAVE_STRDUP */ + +/* Define to 1 if you have the `strerror' function. */ +#define HAVE_STRERROR 1 + +/* Define to 1 if you have the `strerror_r' function. */ +#define HAVE_STRERROR_R 1 + +/* Define to 1 if you have the `strtoll' function. */ +#define HAVE_STRTOLL 1 + +/* Define to 1 if you have the `strtoq' function. */ +#define HAVE_STRTOQ 1 + +/* Define to 1 if you have the `sysconf' function. */ +#undef HAVE_SYSCONF + +/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'. + */ +#define HAVE_SYS_DIR_H 1 + +/* Define to 1 if you have the <sys/ioctl.h> header file. */ +#define HAVE_SYS_IOCTL_H 1 + +/* Define to 1 if you have the <sys/mman.h> header file. */ +#define HAVE_SYS_MMAN_H + +/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'. + */ +/* #undef HAVE_SYS_NDIR_H */ + +/* Define to 1 if you have the <sys/param.h> header file. */ +#define HAVE_SYS_PARAM_H 1 + +/* Define to 1 if you have the <sys/resource.h> header file. */ +#define HAVE_SYS_RESOURCE_H 1 + +/* Define to 1 if you have the <sys/stat.h> header file. */ +#define HAVE_SYS_STAT_H 1 + +/* Define to 1 if you have the <sys/time.h> header file. */ +#define HAVE_SYS_TIME_H 1 + +/* Define to 1 if you have the <sys/types.h> header file. */ +/* #undef HAVE_SYS_TYPES_H */ + +/* Define to 1 if you have the <sys/uio.h> header file. */ +#define HAVE_SYS_UIO_H 1 + +/* Define if the setupterm() function is supported this platform. */ +#define HAVE_TERMINFO 1 + +/* Define to 1 if you have the <termios.h> header file. */ +#define HAVE_TERMIOS_H 1 + +/* Define to 1 if the system has the type `uint64_t'. */ +#define HAVE_UINT64_T 1 + +/* Define to 1 if you have the <unistd.h> header file. */ +#define HAVE_UNISTD_H 1 + +/* Define to 1 if you have the <utime.h> header file. */ +#define HAVE_UTIME_H 1 + +/* Define to 1 if the system has the type `u_int64_t'. */ +#define HAVE_U_INT64_T 1 + +/* Define to 1 if you have the <valgrind/valgrind.h> header file. */ +/* #define HAVE_VALGRIND_VALGRIND_H 1 */ + +/* Define to 1 if you have the `writev' function. */ +#define HAVE_WRITEV 1 + +/* Define to 1 if you have the <zlib.h> header file. */ +#define HAVE_ZLIB_H 1 + +/* Have host's _alloca */ +/* #undef HAVE__ALLOCA */ + +/* Have host's __alloca */ +/* #undef HAVE___ALLOCA */ + +/* Have host's __ashldi3 */ +/* #undef HAVE___ASHLDI3 */ + +/* Have host's __ashrdi3 */ +/* #undef HAVE___ASHRDI3 */ + +/* Have host's __chkstk */ +/* #undef HAVE___CHKSTK */ + +/* Have host's __chkstk_ms */ +/* #undef HAVE___CHKSTK_MS */ + +/* Have host's __cmpdi2 */ +/* #undef HAVE___CMPDI2 */ + +/* Have host's __divdi3 */ +/* #undef HAVE___DIVDI3 */ + +/* Define to 1 if you have the `__dso_handle' function. */ +#undef HAVE___DSO_HANDLE + +/* Have host's __fixdfdi */ +/* #undef HAVE___FIXDFDI */ + +/* Have host's __fixsfdi */ +/* #undef HAVE___FIXSFDI */ + +/* Have host's __floatdidf */ +/* #undef HAVE___FLOATDIDF */ + +/* Have host's __lshrdi3 */ +/* #undef HAVE___LSHRDI3 */ + +/* Have host's __main */ +/* #undef HAVE___MAIN */ + +/* Have host's __moddi3 */ +/* #undef HAVE___MODDI3 */ + +/* Have host's __udivdi3 */ +/* #undef HAVE___UDIVDI3 */ + +/* Have host's __umoddi3 */ +/* #undef HAVE___UMODDI3 */ + +/* Have host's ___chkstk */ +/* #undef HAVE____CHKSTK */ + +/* Have host's ___chkstk_ms */ +/* #undef HAVE____CHKSTK_MS */ + +/* Linker version detected at compile time. */ +#undef HOST_LINK_VERSION + +/* Installation directory for binary executables */ +/* #undef LLVM_BINDIR */ + +/* Time at which LLVM was configured */ +/* #undef LLVM_CONFIGTIME */ + +/* Installation directory for data files */ +/* #undef LLVM_DATADIR */ + +/* Target triple LLVM will generate code for by default + * Doesn't use `cmakedefine` because it is allowed to be empty. + */ +/* #define LLVM_DEFAULT_TARGET_TRIPLE "amd64-unknown-openbsd6.0" */ + +/* Installation directory for documentation */ +/* #undef LLVM_DOCSDIR */ + +/* Define if LLVM is built with asserts and checks that change the layout of + client-visible data structures. */ +/* #undef LLVM_ENABLE_ABI_BREAKING_CHECKS */ + +/* Define if threads enabled */ +/* #define LLVM_ENABLE_THREADS 1 */ + +/* Define if zlib compression is available */ +/* #define LLVM_ENABLE_ZLIB 1 */ + +/* Installation directory for config files */ +/* #undef LLVM_ETCDIR */ + +/* Has gcc/MSVC atomic intrinsics */ +/* #define LLVM_HAS_ATOMICS 1 */ + +/* Host triple LLVM will be executed on */ +/* #define LLVM_HOST_TRIPLE "amd64-unknown-openbsd6.0" */ + +/* Installation directory for include files */ +/* #undef LLVM_INCLUDEDIR */ + +/* Installation directory for .info files */ +/* #undef LLVM_INFODIR */ + +/* Installation directory for man pages */ +/* #undef LLVM_MANDIR */ + +/* LLVM architecture name for the native architecture, if available */ +/* #define LLVM_NATIVE_ARCH X86 */ + +/* LLVM name for the native AsmParser init function, if available */ +/* #define LLVM_NATIVE_ASMPARSER LLVMInitializeX86AsmParser */ + +/* LLVM name for the native AsmPrinter init function, if available */ +/* #define LLVM_NATIVE_ASMPRINTER LLVMInitializeX86AsmPrinter */ + +/* LLVM name for the native Disassembler init function, if available */ +/* #define LLVM_NATIVE_DISASSEMBLER LLVMInitializeX86Disassembler */ + +/* LLVM name for the native Target init function, if available */ +/* #define LLVM_NATIVE_TARGET LLVMInitializeX86Target */ + +/* LLVM name for the native TargetInfo init function, if available */ +/* #define LLVM_NATIVE_TARGETINFO LLVMInitializeX86TargetInfo */ + +/* LLVM name for the native target MC init function, if available */ +/* #define LLVM_NATIVE_TARGETMC LLVMInitializeX86TargetMC */ + +/* Define if this is Unixish platform */ +#define LLVM_ON_UNIX 1 + +/* Define if this is Win32ish platform */ +/* #undef LLVM_ON_WIN32 */ + +/* Installation prefix directory */ +/* #define LLVM_PREFIX "/usr/local" */ + +/* Define if we have the Intel JIT API runtime support library */ +/* #undef LLVM_USE_INTEL_JITEVENTS */ + +/* Define if we have the oprofile JIT-support library */ +/* #undef LLVM_USE_OPROFILE */ + +/* Major version of the LLVM API */ +#define LLVM_VERSION_MAJOR 3 + +/* Minor version of the LLVM API */ +#define LLVM_VERSION_MINOR 8 + +/* Patch version of the LLVM API */ +#define LLVM_VERSION_PATCH 1 + +/* LLVM version string */ +#define LLVM_VERSION_STRING "3.8.1" + +/* Define if we link Polly to the tools */ +/* #undef LINK_POLLY_INTO_TOOLS */ + +/* Define if the OS needs help to load dependent libraries for dlopen(). */ +/* #undef LTDL_DLOPEN_DEPLIBS */ + +/* Define to the sub-directory in which libtool stores uninstalled libraries. + */ +#undef LTDL_OBJDIR + +/* Define to the extension used for shared libraries, say, ".so". */ +#define LTDL_SHLIB_EXT ".so" + +/* Define to the system default library search path. */ +/* #undef LTDL_SYSSEARCHPATH */ + +/* Define if /dev/zero should be used when mapping RWX memory, or undefine if + its not necessary */ +#undef NEED_DEV_ZERO_FOR_MMAP + +/* Define if dlsym() requires a leading underscore in symbol names. */ +#undef NEED_USCORE + +/* Define to the address where bug reports for this package should be sent. */ +#define PACKAGE_BUGREPORT "http://llvm.org/bugs/" + +/* Define to the full name of this package. */ +#define PACKAGE_NAME "LLVM" + +/* Define to the full name and version of this package. */ +#define PACKAGE_STRING "LLVM 3.8.1" + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the version of this package. */ +#define PACKAGE_VERSION "3.8.1" + +/* Define as the return type of signal handlers (`int' or `void'). */ +#define RETSIGTYPE void + +/* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */ +#undef STAT_MACROS_BROKEN + +/* Define to 1 if you have the ANSI C header files. */ +#undef STDC_HEADERS + +/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */ +#undef TIME_WITH_SYS_TIME + +/* Define to 1 if your <sys/time.h> declares `struct tm'. */ +#undef TM_IN_SYS_TIME + +/* Type of 1st arg on ELM Callback */ +/* #undef WIN32_ELMCB_PCSTR */ + +/* Define to `int' if <sys/types.h> does not define. */ +#undef pid_t + +/* Define to `unsigned int' if <sys/types.h> does not define. */ +#undef size_t + +/* Define to a function replacing strtoll */ +/* #undef strtoll */ + +/* Define to a function implementing strtoull */ +/* #undef strtoull */ + +/* Define to a function implementing stricmp */ +/* #undef stricmp */ + +/* Define to a function implementing strdup */ +/* #undef strdup */ + +/* Define to 1 if you have the `_chsize_s' function. */ +/* #undef HAVE__CHSIZE_S */ + +#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 new file mode 100644 index 00000000000..1278273a904 --- /dev/null +++ b/gnu/usr.bin/clang/include/llvm/Config/llvm-config.h @@ -0,0 +1,108 @@ +/*===------- llvm/Config/llvm-config.h - llvm configuration -------*- C -*-===*/ +/* */ +/* The LLVM Compiler Infrastructure */ +/* */ +/* This file is distributed under the University of Illinois Open Source */ +/* License. See LICENSE.TXT for details. */ +/* */ +/*===----------------------------------------------------------------------===*/ + +/* This file enumerates variables from the LLVM configuration so that they + can be in exported headers and won't override package specific directives. + This is a C header that can be included in the llvm-c headers. */ + +#ifndef LLVM_CONFIG_H +#define LLVM_CONFIG_H + +/* Installation directory for binary executables */ +/* #undef LLVM_BINDIR */ + +/* Time at which LLVM was configured */ +/* #undef LLVM_CONFIGTIME */ + +/* Installation directory for data files */ +/* #undef LLVM_DATADIR */ + +/* Target triple LLVM will generate code for by default */ +/* #define LLVM_DEFAULT_TARGET_TRIPLE "amd64-unknown-openbsd6.0" */ + +/* Installation directory for documentation */ +/* #undef LLVM_DOCSDIR */ + +/* Define if LLVM is built with asserts and checks that change the layout of + client-visible data structures. */ +/* #undef LLVM_ENABLE_ABI_BREAKING_CHECKS */ + +/* Define if threads enabled */ +/* #define LLVM_ENABLE_THREADS 1 */ + +/* Installation directory for config files */ +/* #undef LLVM_ETCDIR */ + +/* Has gcc/MSVC atomic intrinsics */ +/* #define LLVM_HAS_ATOMICS 1 */ + +/* Host triple LLVM will be executed on */ +/* #define LLVM_HOST_TRIPLE "amd64-unknown-openbsd6.0" */ + +/* Installation directory for include files */ +/* #undef LLVM_INCLUDEDIR */ + +/* Installation directory for .info files */ +/* #undef LLVM_INFODIR */ + +/* Installation directory for man pages */ +/* #undef LLVM_MANDIR */ + +/* LLVM architecture name for the native architecture, if available */ +/* #define LLVM_NATIVE_ARCH X86 */ + +/* LLVM name for the native AsmParser init function, if available */ +/* #define LLVM_NATIVE_ASMPARSER LLVMInitializeX86AsmParser */ + +/* LLVM name for the native AsmPrinter init function, if available */ +/* #define LLVM_NATIVE_ASMPRINTER LLVMInitializeX86AsmPrinter */ + +/* LLVM name for the native Disassembler init function, if available */ +/* #define LLVM_NATIVE_DISASSEMBLER LLVMInitializeX86Disassembler */ + +/* LLVM name for the native Target init function, if available */ +/* #define LLVM_NATIVE_TARGET LLVMInitializeX86Target */ + +/* LLVM name for the native TargetInfo init function, if available */ +/* #define LLVM_NATIVE_TARGETINFO LLVMInitializeX86TargetInfo */ + +/* LLVM name for the native target MC init function, if available */ +/* #define LLVM_NATIVE_TARGETMC LLVMInitializeX86TargetMC */ + +/* Define if this is Unixish platform */ +#define LLVM_ON_UNIX 1 + +/* Define if this is Win32ish platform */ +/* #undef LLVM_ON_WIN32 */ + +/* Installation prefix directory */ +/* #define LLVM_PREFIX "/usr/local" */ + +/* Define if we have the Intel JIT API runtime support library */ +/* #undef LLVM_USE_INTEL_JITEVENTS */ + +/* Define if we have the oprofile JIT-support library */ +/* #undef LLVM_USE_OPROFILE */ + +/* Major version of the LLVM API */ +#define LLVM_VERSION_MAJOR 3 + +/* Minor version of the LLVM API */ +#define LLVM_VERSION_MINOR 8 + +/* Patch version of the LLVM API */ +#define LLVM_VERSION_PATCH 1 + +/* LLVM version string */ +#define LLVM_VERSION_STRING "3.8.1" + +/* Define if we link Polly to the tools */ +/* #undef LINK_POLLY_INTO_TOOLS */ + +#endif diff --git a/gnu/usr.bin/clang/include/llvm/IR/Makefile b/gnu/usr.bin/clang/include/llvm/IR/Makefile new file mode 100644 index 00000000000..5aedf87f20d --- /dev/null +++ b/gnu/usr.bin/clang/include/llvm/IR/Makefile @@ -0,0 +1,32 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:48 pascal Exp $ + +.include <bsd.own.mk> + +LLVM_SRCS= ${.CURDIR}/../../../../../llvm + +DEFS= Attributes.inc Intrinsics.gen + +all: ${DEFS} + +install: + # Nothing here so far ... + +depend: + # Nothing here so far ... + +clean: + rm -f ${DEFS} + +Attributes.inc: ${LLVM_SRCS}/include/llvm/IR/Attributes.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-attrs \ + -I${LLVM_SRCS}/include/llvm/IR -I${LLVM_SRCS}/lib/Target \ + -I${LLVM_SRCS}/include \ + -o ${.TARGET} ${.ALLSRC} + +Intrinsics.gen: ${LLVM_SRCS}/include/llvm/IR/Intrinsics.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-intrinsic \ + -I${LLVM_SRCS}/include/llvm/IR -I${LLVM_SRCS}/lib/Target \ + -I${LLVM_SRCS}/include \ + -o ${.TARGET} ${.ALLSRC} + +.include <bsd.obj.mk> diff --git a/gnu/usr.bin/clang/include/llvm/Sparc/Makefile b/gnu/usr.bin/clang/include/llvm/Sparc/Makefile new file mode 100644 index 00000000000..b3b1069fa67 --- /dev/null +++ b/gnu/usr.bin/clang/include/llvm/Sparc/Makefile @@ -0,0 +1,80 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:48 pascal Exp $ + +.include <bsd.own.mk> + +LLVM_SRCS= ${.CURDIR}/../../../../../llvm + +HDRS= SparcGenAsmMatcher.inc SparcGenAsmWriter.inc \ + SparcGenCodeEmitter.inc SparcGenCallingConv.inc \ + SparcGenDAGISel.inc SparcGenDisassemblerTables.inc \ + SparcGenFastISel.inc SparcGenInstrInfo.inc \ + SparcGenRegisterInfo.inc SparcGenSubtargetInfo.inc \ + SparcGenMCCodeEmitter.inc + +all: ${HDRS} + +install: + # Nothing here so far ... + +depend: + # Nothing here so far ... + +clean: + rm -f ${HDRS} + +SparcGenAsmMatcher.inc: ${LLVM_SRCS}/lib/Target/Sparc/Sparc.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-asm-matcher \ + -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/Sparc \ + -o ${.TARGET} ${.ALLSRC} + +SparcGenAsmWriter.inc: ${LLVM_SRCS}/lib/Target/Sparc/Sparc.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-asm-writer \ + -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/Sparc \ + -o ${.TARGET} ${.ALLSRC} + +SparcGenCallingConv.inc: ${LLVM_SRCS}/lib/Target/Sparc/Sparc.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-callingconv \ + -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/Sparc \ + -o ${.TARGET} ${.ALLSRC} + +SparcGenCodeEmitter.inc: ${LLVM_SRCS}/lib/Target/Sparc/Sparc.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-emitter \ + -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/Sparc \ + -o ${.TARGET} ${.ALLSRC} + +SparcGenDAGISel.inc: ${LLVM_SRCS}/lib/Target/Sparc/Sparc.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-dag-isel \ + -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/Sparc \ + -o ${.TARGET} ${.ALLSRC} + +SparcGenDisassemblerTables.inc: ${LLVM_SRCS}/lib/Target/Sparc/Sparc.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-disassembler \ + -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/Sparc \ + -o ${.TARGET} ${.ALLSRC} + +SparcGenFastISel.inc: ${LLVM_SRCS}/lib/Target/Sparc/Sparc.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-fast-isel \ + -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/Sparc \ + -o ${.TARGET} ${.ALLSRC} + +SparcGenInstrInfo.inc: ${LLVM_SRCS}/lib/Target/Sparc/Sparc.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-instr-info \ + -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/Sparc \ + -o ${.TARGET} ${.ALLSRC} + +SparcGenMCCodeEmitter.inc: ${LLVM_SRCS}/lib/Target/Sparc/Sparc.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-emitter \ + -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/Sparc \ + -o ${.TARGET} ${.ALLSRC} + +SparcGenRegisterInfo.inc: ${LLVM_SRCS}/lib/Target/Sparc/Sparc.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-register-info \ + -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/Sparc \ + -o ${.TARGET} ${.ALLSRC} + +SparcGenSubtargetInfo.inc: ${LLVM_SRCS}/lib/Target/Sparc/Sparc.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-subtarget \ + -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/Sparc \ + -o ${.TARGET} ${.ALLSRC} + +.include <bsd.obj.mk> diff --git a/gnu/usr.bin/clang/include/llvm/X86/Makefile b/gnu/usr.bin/clang/include/llvm/X86/Makefile new file mode 100644 index 00000000000..9e778277399 --- /dev/null +++ b/gnu/usr.bin/clang/include/llvm/X86/Makefile @@ -0,0 +1,73 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:48 pascal Exp $ + +.include <bsd.own.mk> + +LLVM_SRCS= ${.CURDIR}/../../../../../llvm + +HDRS= X86GenAsmMatcher.inc X86GenAsmWriter.inc X86GenAsmWriter1.inc \ + X86GenCallingConv.inc X86GenDAGISel.inc X86GenDisassemblerTables.inc \ + X86GenFastISel.inc X86GenInstrInfo.inc X86GenRegisterInfo.inc \ + X86GenSubtargetInfo.inc + +all: ${HDRS} + +install: + # Nothing here so far ... + +depend: + # Nothing here so far ... + +clean: + rm -f ${HDRS} + +X86GenRegisterInfo.inc: ${LLVM_SRCS}/lib/Target/X86/X86.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-register-info \ + -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/X86 \ + -o ${.TARGET} ${.ALLSRC} + +X86GenDisassemblerTables.inc: ${LLVM_SRCS}/lib/Target/X86/X86.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-disassembler \ + -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/X86 \ + -o ${.TARGET} ${.ALLSRC} + +X86GenInstrInfo.inc: ${LLVM_SRCS}/lib/Target/X86/X86.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-instr-info \ + -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/X86 \ + -o ${.TARGET} ${.ALLSRC} + +X86GenAsmWriter.inc: ${LLVM_SRCS}/lib/Target/X86/X86.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-asm-writer \ + -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/X86 \ + -o ${.TARGET} ${.ALLSRC} + +X86GenAsmWriter1.inc: ${LLVM_SRCS}/lib/Target/X86/X86.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-asm-writer -asmwriternum=1 \ + -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/X86 \ + -o ${.TARGET} ${.ALLSRC} + +X86GenAsmMatcher.inc: ${LLVM_SRCS}/lib/Target/X86/X86.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-asm-matcher \ + -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/X86 \ + -o ${.TARGET} ${.ALLSRC} + +X86GenDAGISel.inc: ${LLVM_SRCS}/lib/Target/X86/X86.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-dag-isel \ + -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/X86 \ + -o ${.TARGET} ${.ALLSRC} + +X86GenFastISel.inc: ${LLVM_SRCS}/lib/Target/X86/X86.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-fast-isel \ + -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/X86 \ + -o ${.TARGET} ${.ALLSRC} + +X86GenCallingConv.inc: ${LLVM_SRCS}/lib/Target/X86/X86.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-callingconv \ + -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/X86 \ + -o ${.TARGET} ${.ALLSRC} + +X86GenSubtargetInfo.inc: ${LLVM_SRCS}/lib/Target/X86/X86.td + ${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-subtarget \ + -I${LLVM_SRCS}/include -I${LLVM_SRCS}/lib/Target/X86 \ + -o ${.TARGET} ${.ALLSRC} + +.include <bsd.obj.mk> diff --git a/gnu/usr.bin/clang/libLLVMAnalysis/Makefile b/gnu/usr.bin/clang/libLLVMAnalysis/Makefile new file mode 100644 index 00000000000..ab3ac88f4f4 --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMAnalysis/Makefile @@ -0,0 +1,89 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:48 pascal Exp $ + +LIB= LLVMAnalysis +NOPIC= +NOPROFILE= + +CPPFLAGS+= -I${LLVM_SRCS}/include/llvm/Analysis + +.include <bsd.own.mk> +SRCS= AliasAnalysis.cpp \ + AliasAnalysisEvaluator.cpp \ + AliasSetTracker.cpp \ + Analysis.cpp \ + AssumptionCache.cpp \ + BasicAliasAnalysis.cpp \ + BlockFrequencyInfo.cpp \ + BlockFrequencyInfoImpl.cpp \ + BranchProbabilityInfo.cpp \ + CFG.cpp \ + CFGPrinter.cpp \ + CFLAliasAnalysis.cpp \ + CGSCCPassManager.cpp \ + CallGraph.cpp \ + CallGraphSCCPass.cpp \ + CallPrinter.cpp \ + CaptureTracking.cpp \ + CostModel.cpp \ + CodeMetrics.cpp \ + ConstantFolding.cpp \ + Delinearization.cpp \ + DemandedBits.cpp \ + DependenceAnalysis.cpp \ + DivergenceAnalysis.cpp \ + DomPrinter.cpp \ + DominanceFrontier.cpp \ + EHPersonalities.cpp \ + GlobalsModRef.cpp \ + IVUsers.cpp \ + InlineCost.cpp \ + InstCount.cpp \ + InstructionSimplify.cpp \ + Interval.cpp \ + IntervalPartition.cpp \ + IteratedDominanceFrontier.cpp \ + LazyCallGraph.cpp \ + LazyValueInfo.cpp \ + Lint.cpp \ + Loads.cpp \ + LoopAccessAnalysis.cpp \ + LoopInfo.cpp \ + LoopPass.cpp \ + MemDepPrinter.cpp \ + MemDerefPrinter.cpp \ + MemoryBuiltins.cpp \ + MemoryDependenceAnalysis.cpp \ + MemoryLocation.cpp \ + ModuleDebugInfoPrinter.cpp \ + ObjCARCAliasAnalysis.cpp \ + ObjCARCAnalysisUtils.cpp \ + ObjCARCInstKind.cpp \ + OrderedBasicBlock.cpp \ + PHITransAddr.cpp \ + PostDominators.cpp \ + PtrUseVisitor.cpp \ + RegionInfo.cpp \ + RegionPass.cpp \ + RegionPrinter.cpp \ + ScalarEvolution.cpp \ + ScalarEvolutionAliasAnalysis.cpp \ + ScalarEvolutionExpander.cpp \ + ScalarEvolutionNormalization.cpp \ + SparsePropagation.cpp \ + TargetLibraryInfo.cpp \ + TargetTransformInfo.cpp \ + Trace.cpp \ + TypeBasedAliasAnalysis.cpp \ + ScopedNoAliasAA.cpp \ + ValueTracking.cpp \ + VectorUtils.cpp + +.PATH: ${.CURDIR}/../../../llvm/lib/Analysis + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libLLVMAsmParser/Makefile b/gnu/usr.bin/clang/libLLVMAsmParser/Makefile new file mode 100644 index 00000000000..60057672a1a --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMAsmParser/Makefile @@ -0,0 +1,22 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:49 pascal Exp $ + +LIB= LLVMAsmParser +NOPIC= +NOPROFILE= + +CPPFLAGS+= -I${LLVM_SRCS}/include/llvm/Analysis + +.include <bsd.own.mk> +SRCS= LLLexer.cpp \ + LLParser.cpp \ + Parser.cpp + +.PATH: ${.CURDIR}/../../../llvm/lib/AsmParser + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libLLVMAsmPrinter/Makefile b/gnu/usr.bin/clang/libLLVMAsmPrinter/Makefile new file mode 100644 index 00000000000..62fa1a5bca4 --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMAsmPrinter/Makefile @@ -0,0 +1,39 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:49 pascal Exp $ + +LIB= LLVMAsmPrinter +NOPIC= +NOPROFILE= + +.include <bsd.own.mk> +SRCS= AddressPool.cpp \ + ARMException.cpp \ + AsmPrinter.cpp \ + AsmPrinterDwarf.cpp \ + AsmPrinterInlineAsm.cpp \ + DbgValueHistoryCalculator.cpp \ + DebugLocStream.cpp \ + DIE.cpp \ + DIEHash.cpp \ + DwarfAccelTable.cpp \ + DwarfCFIException.cpp \ + DwarfCompileUnit.cpp \ + DwarfDebug.cpp \ + DwarfExpression.cpp \ + DwarfFile.cpp \ + DwarfStringPool.cpp \ + DwarfUnit.cpp \ + EHStreamer.cpp \ + ErlangGCPrinter.cpp \ + OcamlGCPrinter.cpp \ + WinException.cpp \ + WinCodeViewLineTables.cpp + +.PATH: ${.CURDIR}/../../../llvm/lib/CodeGen/AsmPrinter + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libLLVMBitReader/Makefile b/gnu/usr.bin/clang/libLLVMBitReader/Makefile new file mode 100644 index 00000000000..1a5e413f58c --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMBitReader/Makefile @@ -0,0 +1,22 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:49 pascal Exp $ + +LIB= LLVMBitReader +NOPIC= +NOPROFILE= + +CPPFLAGS+= -I${LLVM_SRCS}/include/llvm/Bitcode + +.include <bsd.own.mk> +SRCS= BitReader.cpp \ + BitcodeReader.cpp \ + BitstreamReader.cpp + +.PATH: ${.CURDIR}/../../../llvm/lib/Bitcode/Reader + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libLLVMBitWriter/Makefile b/gnu/usr.bin/clang/libLLVMBitWriter/Makefile new file mode 100644 index 00000000000..cef4f203791 --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMBitWriter/Makefile @@ -0,0 +1,21 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:49 pascal Exp $ + +LIB= LLVMBitWriter +NOPIC= +NOPROFILE= + +.include <bsd.own.mk> +SRCS= BitWriter.cpp \ + BitcodeWriter.cpp \ + BitcodeWriterPass.cpp \ + ValueEnumerator.cpp + +.PATH: ${.CURDIR}/../../../llvm/lib/Bitcode/Writer + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libLLVMCodeGen/Makefile b/gnu/usr.bin/clang/libLLVMCodeGen/Makefile new file mode 100644 index 00000000000..a7a5c4c3768 --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMCodeGen/Makefile @@ -0,0 +1,148 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:49 pascal Exp $ + +LIB= LLVMCodeGen +NOPIC= +NOPROFILE= + +CPPFLAGS+=-I${LLVM_SRC}/include/llvm/CodeGen +CPPFLAGS+=-I${LLVM_SRC}/include/llvm/CodeGen/PBQP + +.include <bsd.own.mk> +SRCS= AggressiveAntiDepBreaker.cpp \ + AllocationOrder.cpp \ + Analysis.cpp \ + AtomicExpandPass.cpp \ + BasicTargetTransformInfo.cpp \ + BranchFolding.cpp \ + CalcSpillWeights.cpp \ + CallingConvLower.cpp \ + CodeGen.cpp \ + CodeGenPrepare.cpp \ + CoreCLRGC.cpp \ + CriticalAntiDepBreaker.cpp \ + DFAPacketizer.cpp \ + DeadMachineInstructionElim.cpp \ + DwarfEHPrepare.cpp \ + EarlyIfConversion.cpp \ + EdgeBundles.cpp \ + ErlangGC.cpp \ + ExecutionDepsFix.cpp \ + ExpandISelPseudos.cpp \ + ExpandPostRAPseudos.cpp \ + LiveDebugValues.cpp \ + FaultMaps.cpp \ + FuncletLayout.cpp \ + GCMetadata.cpp \ + GCMetadataPrinter.cpp \ + GCRootLowering.cpp \ + GCStrategy.cpp \ + GlobalMerge.cpp \ + IfConversion.cpp \ + ImplicitNullChecks.cpp \ + InlineSpiller.cpp \ + InterferenceCache.cpp \ + InterleavedAccessPass.cpp \ + IntrinsicLowering.cpp \ + LLVMTargetMachine.cpp \ + LatencyPriorityQueue.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 \ + MachineBasicBlock.cpp \ + MachineBlockFrequencyInfo.cpp \ + MachineBlockPlacement.cpp \ + MachineBranchProbabilityInfo.cpp \ + MachineCSE.cpp \ + MachineCombiner.cpp \ + MachineCopyPropagation.cpp \ + MachineDominators.cpp \ + MachineDominanceFrontier.cpp \ + MachineFunction.cpp \ + MachineFunctionAnalysis.cpp \ + MachineFunctionPass.cpp \ + MachineFunctionPrinterPass.cpp \ + MachineInstr.cpp \ + MachineInstrBundle.cpp \ + MachineLICM.cpp \ + MachineLoopInfo.cpp \ + MachineModuleInfo.cpp \ + MachineModuleInfoImpls.cpp \ + MachinePassRegistry.cpp \ + MachinePostDominators.cpp \ + MachineRegisterInfo.cpp \ + MachineRegionInfo.cpp \ + MachineSSAUpdater.cpp \ + MachineScheduler.cpp \ + MachineSink.cpp \ + MachineTraceMetrics.cpp \ + MachineVerifier.cpp \ + MIRPrinter.cpp \ + MIRPrintingPass.cpp \ + OcamlGC.cpp \ + OptimizePHIs.cpp \ + PHIElimination.cpp \ + PHIEliminationUtils.cpp \ + ParallelCG.cpp \ + Passes.cpp \ + PeepholeOptimizer.cpp \ + PostRASchedulerList.cpp \ + ProcessImplicitDefs.cpp \ + PrologEpilogInserter.cpp \ + PseudoSourceValue.cpp \ + RegAllocBase.cpp \ + RegAllocBasic.cpp \ + RegAllocFast.cpp \ + RegAllocGreedy.cpp \ + RegAllocPBQP.cpp \ + RegisterClassInfo.cpp \ + RegisterCoalescer.cpp \ + RegisterPressure.cpp \ + RegisterScavenging.cpp \ + ScheduleDAG.cpp \ + ScheduleDAGInstrs.cpp \ + ScheduleDAGPrinter.cpp \ + ScoreboardHazardRecognizer.cpp \ + ShrinkWrap.cpp \ + ShadowStackGC.cpp \ + ShadowStackGCLowering.cpp \ + SjLjEHPrepare.cpp \ + SlotIndexes.cpp \ + SpillPlacement.cpp \ + SplitKit.cpp \ + StackColoring.cpp \ + StackProtector.cpp \ + StackSlotColoring.cpp \ + StackMapLivenessAnalysis.cpp \ + StackMaps.cpp \ + StatepointExampleGC.cpp \ + TailDuplication.cpp \ + TargetFrameLoweringImpl.cpp \ + TargetInstrInfo.cpp \ + TargetLoweringBase.cpp \ + TargetLoweringObjectFileImpl.cpp \ + TargetOptionsImpl.cpp \ + TargetRegisterInfo.cpp \ + TargetSchedule.cpp \ + TwoAddressInstructionPass.cpp \ + UnreachableBlockElim.cpp \ + VirtRegMap.cpp \ + WinEHPrepare.cpp + +.PATH: ${.CURDIR}/../../../llvm/lib/CodeGen + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libLLVMCore/Makefile b/gnu/usr.bin/clang/libLLVMCore/Makefile new file mode 100644 index 00000000000..207bbb9c465 --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMCore/Makefile @@ -0,0 +1,75 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:49 pascal Exp $ + +LIB= LLVMCore +NOPIC= +NOPROFILE= + +CPPFLAGS+= -I${LLVM_SRCS}/include/llvm/IR + +.include <bsd.own.mk> +SRCS= AsmWriter.cpp \ + Attributes.cpp \ + AutoUpgrade.cpp \ + BasicBlock.cpp \ + Comdat.cpp \ + ConstantFold.cpp \ + ConstantRange.cpp \ + Constants.cpp \ + Core.cpp \ + DIBuilder.cpp \ + DataLayout.cpp \ + DebugInfo.cpp \ + DebugInfoMetadata.cpp \ + DebugLoc.cpp \ + DiagnosticInfo.cpp \ + DiagnosticPrinter.cpp \ + Dominators.cpp \ + Function.cpp \ + GCOV.cpp \ + GVMaterializer.cpp \ + Globals.cpp \ + IRBuilder.cpp \ + IRPrintingPasses.cpp \ + InlineAsm.cpp \ + Instruction.cpp \ + Instructions.cpp \ + IntrinsicInst.cpp \ + LLVMContext.cpp \ + LLVMContextImpl.cpp \ + LegacyPassManager.cpp \ + MDBuilder.cpp \ + Mangler.cpp \ + Metadata.cpp \ + Module.cpp \ + Operator.cpp \ + Pass.cpp \ + PassManager.cpp \ + PassRegistry.cpp \ + Statepoint.cpp \ + FunctionInfo.cpp \ + Type.cpp \ + TypeFinder.cpp \ + Use.cpp \ + User.cpp \ + Value.cpp \ + ValueSymbolTable.cpp \ + ValueTypes.cpp \ + Verifier.cpp + +.PATH: ${.CURDIR}/../../../llvm/lib/IR + +Attributes.o: AttributesCompatFunc.inc + +AttributesCompatFunc.inc: AttributesCompatFunc.td + ${.OBJDIR}/../llvm-tblgen/llvm-tblgen -gen-attrs \ + -I${LLVM_SRCS}/include/llvm/IR -I${LLVM_SRCS}/lib/Target \ + -I${LLVM_SRCS}/include \ + -o ${.TARGET} ${.ALLSRC} + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libLLVMIRReader/Makefile b/gnu/usr.bin/clang/libLLVMIRReader/Makefile new file mode 100644 index 00000000000..d8fef8d9873 --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMIRReader/Makefile @@ -0,0 +1,20 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:49 pascal Exp $ + +LIB= LLVMIRReader +NOPIC= +NOPROFILE= + +CPPFLAGS+= -I${LLVM_SRCS}/include/llvm/IRReader + +.include <bsd.own.mk> +SRCS= IRReader.cpp + +.PATH: ${.CURDIR}/../../../llvm/lib/IRReader + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libLLVMInstCombine/Makefile b/gnu/usr.bin/clang/libLLVMInstCombine/Makefile new file mode 100644 index 00000000000..5d194a55fcb --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMInstCombine/Makefile @@ -0,0 +1,33 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:49 pascal Exp $ + +LIB= LLVMInstCombine +NOPIC= +NOPROFILE= + +CPPFLAGS+= -I${LLVM_SRCS}/include/llvm/Transforms +CPPFLAGS+= -I${LLVM_SRCS}/include/llvm/Transforms/InstCombine + +.include <bsd.own.mk> +SRCS= InstructionCombining.cpp \ + InstCombineAddSub.cpp \ + InstCombineAndOrXor.cpp \ + InstCombineCalls.cpp \ + InstCombineCasts.cpp \ + InstCombineCompares.cpp \ + InstCombineLoadStoreAlloca.cpp \ + InstCombineMulDivRem.cpp \ + InstCombinePHI.cpp \ + InstCombineSelect.cpp \ + InstCombineShifts.cpp \ + InstCombineSimplifyDemanded.cpp \ + InstCombineVectorOps.cpp + +.PATH: ${.CURDIR}/../../../llvm/lib/Transforms/InstCombine + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libLLVMInstrumentation/Makefile b/gnu/usr.bin/clang/libLLVMInstrumentation/Makefile new file mode 100644 index 00000000000..427b74be50d --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMInstrumentation/Makefile @@ -0,0 +1,30 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:49 pascal Exp $ + +LIB= LLVMInstrumentation +NOPIC= +NOPROFILE= + +CPPFLAGS+= -I${LLVM_SRCS}/include/llvm/Transforms + +.include <bsd.own.mk> +SRCS= AddressSanitizer.cpp \ + BoundsChecking.cpp \ + DataFlowSanitizer.cpp \ + GCOVProfiling.cpp \ + MemorySanitizer.cpp \ + Instrumentation.cpp \ + InstrProfiling.cpp \ + PGOInstrumentation.cpp \ + SafeStack.cpp \ + SanitizerCoverage.cpp \ + ThreadSanitizer.cpp + +.PATH: ${.CURDIR}/../../../llvm/lib/Transforms/Instrumentation + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libLLVMLinker/Makefile b/gnu/usr.bin/clang/libLLVMLinker/Makefile new file mode 100644 index 00000000000..5d739ad2909 --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMLinker/Makefile @@ -0,0 +1,21 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:49 pascal Exp $ + +LIB= LLVMLinker +NOPIC= +NOPROFILE= + +CPPFLAGS+= -I${LLVM_SRCS}/include/llvm/Linker + +.include <bsd.own.mk> +SRCS= IRMover.cpp \ + LinkModules.cpp + +.PATH: ${.CURDIR}/../../../llvm/lib/Linker + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libLLVMMC/Makefile b/gnu/usr.bin/clang/libLLVMMC/Makefile new file mode 100644 index 00000000000..d3a85d044f9 --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMMC/Makefile @@ -0,0 +1,69 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:49 pascal Exp $ + +LIB= LLVMMC +NOPIC= +NOPROFILE= + +CPPFLAGS+= -I${LLVM_SRCS}/include/llvm/MC + +.include <bsd.own.mk> +SRCS= ConstantPools.cpp \ + ELFObjectWriter.cpp \ + MCAsmBackend.cpp \ + MCAsmInfo.cpp \ + MCAsmInfoCOFF.cpp \ + MCAsmInfoDarwin.cpp \ + MCAsmInfoELF.cpp \ + MCAsmStreamer.cpp \ + MCAssembler.cpp \ + MCCodeEmitter.cpp \ + MCCodeGenInfo.cpp \ + MCContext.cpp \ + MCDwarf.cpp \ + MCELFObjectTargetWriter.cpp \ + MCELFStreamer.cpp \ + MCExpr.cpp \ + MCFragment.cpp \ + MCInst.cpp \ + MCInstPrinter.cpp \ + MCInstrAnalysis.cpp \ + MCInstrDesc.cpp \ + MCLabel.cpp \ + MCLinkerOptimizationHint.cpp \ + MCMachOStreamer.cpp \ + MCMachObjectTargetWriter.cpp \ + MCNullStreamer.cpp \ + MCObjectFileInfo.cpp \ + MCObjectStreamer.cpp \ + MCObjectWriter.cpp \ + MCRegisterInfo.cpp \ + MCSchedule.cpp \ + MCSection.cpp \ + MCSectionCOFF.cpp \ + MCSectionELF.cpp \ + MCSectionMachO.cpp \ + MCStreamer.cpp \ + MCSubtargetInfo.cpp \ + MCSymbol.cpp \ + MCSymbolELF.cpp \ + MCSymbolizer.cpp \ + MCTargetOptions.cpp \ + MCValue.cpp \ + MCWin64EH.cpp \ + MCWinEH.cpp \ + MachObjectWriter.cpp \ + StringTableBuilder.cpp \ + SubtargetFeature.cpp \ + WinCOFFObjectWriter.cpp \ + WinCOFFStreamer.cpp \ + YAML.cpp + +.PATH: ${.CURDIR}/../../../llvm/lib/MC + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libLLVMMCDisassembler/Makefile b/gnu/usr.bin/clang/libLLVMMCDisassembler/Makefile new file mode 100644 index 00000000000..fc49eda8fd2 --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMMCDisassembler/Makefile @@ -0,0 +1,21 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:49 pascal Exp $ + +LIB= LLVMMCDisassembler +NOPIC= +NOPROFILE= + +.include <bsd.own.mk> +SRCS= Disassembler.cpp \ + MCRelocationInfo.cpp \ + MCExternalSymbolizer.cpp \ + MCDisassembler.cpp + +.PATH: ${.CURDIR}/../../../llvm/lib/MC/MCDisassembler + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libLLVMMCParser/Makefile b/gnu/usr.bin/clang/libLLVMMCParser/Makefile new file mode 100644 index 00000000000..d3fc3a159c2 --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMMCParser/Makefile @@ -0,0 +1,28 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:49 pascal Exp $ + +LIB= LLVMMCParser +NOPIC= +NOPROFILE= + +CPPFLAGS+= -I${LLVM_SRCS}/include/llvm/MC/MCParser + +.include <bsd.own.mk> +SRCS= AsmLexer.cpp \ + AsmParser.cpp \ + COFFAsmParser.cpp \ + DarwinAsmParser.cpp \ + ELFAsmParser.cpp \ + MCAsmLexer.cpp \ + MCAsmParser.cpp \ + MCAsmParserExtension.cpp \ + MCTargetAsmParser.cpp + +.PATH: ${.CURDIR}/../../../llvm/lib/MC/MCParser + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libLLVMMIRParser/Makefile b/gnu/usr.bin/clang/libLLVMMIRParser/Makefile new file mode 100644 index 00000000000..9a44206c5e0 --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMMIRParser/Makefile @@ -0,0 +1,20 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:49 pascal Exp $ + +LIB= LLVMMIRParser +NOPIC= +NOPROFILE= + +.include <bsd.own.mk> +SRCS= MILexer.cpp \ + MIParser.cpp \ + MIRParser.cpp + +.PATH: ${.CURDIR}/../../../llvm/lib/CodeGen/MIRParser + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libLLVMObjCARCOpts/Makefile b/gnu/usr.bin/clang/libLLVMObjCARCOpts/Makefile new file mode 100644 index 00000000000..7e282767847 --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMObjCARCOpts/Makefile @@ -0,0 +1,28 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:49 pascal Exp $ + +LIB= LLVMObjCARCOpts +NOPIC= +NOPROFILE= + +CPPFLAGS+= -I${LLVM_SRCS}/include/llvm/Transforms + +.include <bsd.own.mk> +SRCS= ObjCARC.cpp \ + ObjCARCOpts.cpp \ + ObjCARCExpand.cpp \ + ObjCARCAPElim.cpp \ + ObjCARCContract.cpp \ + DependencyAnalysis.cpp \ + ProvenanceAnalysis.cpp \ + ProvenanceAnalysisEvaluator.cpp \ + PtrState.cpp + +.PATH: ${.CURDIR}/../../../llvm/lib/Transforms/ObjCARC + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libLLVMObject/Makefile b/gnu/usr.bin/clang/libLLVMObject/Makefile new file mode 100644 index 00000000000..2bf4c50204d --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMObject/Makefile @@ -0,0 +1,37 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:49 pascal Exp $ + +LIB= LLVMObject +NOPIC= +NOPROFILE= + +CPPFLAGS+= -I${LLVM_SRCS}/include/llvm/Object + +.include <bsd.own.mk> +SRCS= Archive.cpp \ + ArchiveWriter.cpp \ + Binary.cpp \ + COFFObjectFile.cpp \ + COFFYAML.cpp \ + ELF.cpp \ + ELFObjectFile.cpp \ + ELFYAML.cpp \ + Error.cpp \ + IRObjectFile.cpp \ + MachOObjectFile.cpp \ + MachOUniversal.cpp \ + Object.cpp \ + ObjectFile.cpp \ + RecordStreamer.cpp \ + SymbolicFile.cpp \ + SymbolSize.cpp \ + FunctionIndexObjectFile.cpp + +.PATH: ${.CURDIR}/../../../llvm/lib/Object + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libLLVMOption/Makefile b/gnu/usr.bin/clang/libLLVMOption/Makefile new file mode 100644 index 00000000000..ef02af84326 --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMOption/Makefile @@ -0,0 +1,23 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:49 pascal Exp $ + +LIB= LLVMOption +NOPIC= +NOPROFILE= + +CPPFLAGS+= -I${LLVM_SRCS}/include/llvm/Option + +.include <bsd.own.mk> +SRCS= Arg.cpp \ + ArgList.cpp \ + Option.cpp \ + OptTable.cpp + +.PATH: ${.CURDIR}/../../../llvm/lib/Option + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libLLVMProfileData/Makefile b/gnu/usr.bin/clang/libLLVMProfileData/Makefile new file mode 100644 index 00000000000..60ee4ca0a5e --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMProfileData/Makefile @@ -0,0 +1,28 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:49 pascal Exp $ + +LIB= LLVMProfileData +NOPIC= +NOPROFILE= + +CPPFLAGS+= -I${LLVM_SRCS}/include/llvm/ProfileData + +.include <bsd.own.mk> +SRCS= InstrProf.cpp \ + InstrProfReader.cpp \ + InstrProfWriter.cpp \ + CoverageMapping.cpp \ + CoverageMappingWriter.cpp \ + CoverageMappingReader.cpp \ + SampleProf.cpp \ + SampleProfReader.cpp \ + SampleProfWriter.cpp + +.PATH: ${.CURDIR}/../../../llvm/lib/ProfileData + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libLLVMScalarOpts/Makefile b/gnu/usr.bin/clang/libLLVMScalarOpts/Makefile new file mode 100644 index 00000000000..a74c95635ac --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMScalarOpts/Makefile @@ -0,0 +1,70 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:49 pascal Exp $ + +LIB= LLVMScalarOpts +NOPIC= +NOPROFILE= + +CPPFLAGS+= -I${LLVM_SRCS}/include/llvm/Transforms +CPPFLAGS+= -I${LLVM_SRCS}/include/llvm/Transforms/Scalar + +.include <bsd.own.mk> +SRCS= ADCE.cpp \ + AlignmentFromAssumptions.cpp \ + BDCE.cpp \ + ConstantHoisting.cpp \ + ConstantProp.cpp \ + CorrelatedValuePropagation.cpp \ + DCE.cpp \ + DeadStoreElimination.cpp \ + EarlyCSE.cpp \ + FlattenCFGPass.cpp \ + Float2Int.cpp \ + GVN.cpp \ + InductiveRangeCheckElimination.cpp \ + IndVarSimplify.cpp \ + JumpThreading.cpp \ + LICM.cpp \ + LoadCombine.cpp \ + LoopDeletion.cpp \ + LoopDistribute.cpp \ + LoopIdiomRecognize.cpp \ + LoopInstSimplify.cpp \ + LoopInterchange.cpp \ + LoopLoadElimination.cpp \ + LoopRerollPass.cpp \ + LoopRotation.cpp \ + LoopStrengthReduce.cpp \ + LoopUnrollPass.cpp \ + LoopUnswitch.cpp \ + LowerAtomic.cpp \ + LowerExpectIntrinsic.cpp \ + MemCpyOptimizer.cpp \ + MergedLoadStoreMotion.cpp \ + NaryReassociate.cpp \ + PartiallyInlineLibCalls.cpp \ + PlaceSafepoints.cpp \ + Reassociate.cpp \ + Reg2Mem.cpp \ + RewriteStatepointsForGC.cpp \ + SCCP.cpp \ + SROA.cpp \ + Scalar.cpp \ + ScalarReplAggregates.cpp \ + Scalarizer.cpp \ + SeparateConstOffsetFromGEP.cpp \ + SimplifyCFGPass.cpp \ + Sink.cpp \ + SpeculativeExecution.cpp \ + StraightLineStrengthReduce.cpp \ + StructurizeCFG.cpp \ + TailRecursionElimination.cpp + +.PATH: ${.CURDIR}/../../../llvm/lib/Transforms/Scalar + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libLLVMSelectionDAG/Makefile b/gnu/usr.bin/clang/libLLVMSelectionDAG/Makefile new file mode 100644 index 00000000000..65753f6a26c --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMSelectionDAG/Makefile @@ -0,0 +1,41 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:49 pascal Exp $ + +LIB= LLVMSelectionDAG +NOPIC= +NOPROFILE= + +.include <bsd.own.mk> +SRCS= DAGCombiner.cpp \ + FastISel.cpp \ + FunctionLoweringInfo.cpp \ + InstrEmitter.cpp \ + LegalizeDAG.cpp \ + LegalizeFloatTypes.cpp \ + LegalizeIntegerTypes.cpp \ + LegalizeTypes.cpp \ + LegalizeTypesGeneric.cpp \ + LegalizeVectorOps.cpp \ + LegalizeVectorTypes.cpp \ + ResourcePriorityQueue.cpp \ + ScheduleDAGFast.cpp \ + ScheduleDAGRRList.cpp \ + ScheduleDAGSDNodes.cpp \ + SelectionDAG.cpp \ + SelectionDAGBuilder.cpp \ + SelectionDAGDumper.cpp \ + SelectionDAGISel.cpp \ + SelectionDAGPrinter.cpp \ + StatepointLowering.cpp \ + ScheduleDAGVLIW.cpp \ + TargetLowering.cpp \ + TargetSelectionDAGInfo.cpp + +.PATH: ${.CURDIR}/../../../llvm/lib/CodeGen/SelectionDAG + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libLLVMSparcAsmParser/Makefile b/gnu/usr.bin/clang/libLLVMSparcAsmParser/Makefile new file mode 100644 index 00000000000..a3b847eeab7 --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMSparcAsmParser/Makefile @@ -0,0 +1,21 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:49 pascal Exp $ + +LIB= LLVMSparcAsmParser +NOPIC= +NOPROFILE= + +CPPFLAGS+= -I${.OBJDIR}/../include/llvm/Sparc \ + -I${LLVM_SRCS}/lib/Target/Sparc + +.include <bsd.own.mk> +SRCS= SparcAsmParser.cpp + +.PATH: ${.CURDIR}/../../../llvm/lib/Target/Sparc/AsmParser + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libLLVMSparcAsmPrinter/Makefile b/gnu/usr.bin/clang/libLLVMSparcAsmPrinter/Makefile new file mode 100644 index 00000000000..9f14aa344ec --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMSparcAsmPrinter/Makefile @@ -0,0 +1,21 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:49 pascal Exp $ + +LIB= LLVMSparcAsmPrinter +NOPIC= +NOPROFILE= + +CPPFLAGS+= -I${.OBJDIR}/../include/llvm/Sparc \ + -I${LLVM_SRCS}/lib/Target/Sparc + +.include <bsd.own.mk> +SRCS= SparcInstPrinter.cpp + +.PATH: ${.CURDIR}/../../../llvm/lib/Target/Sparc/InstPrinter + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libLLVMSparcCodeGen/Makefile b/gnu/usr.bin/clang/libLLVMSparcCodeGen/Makefile new file mode 100644 index 00000000000..c1d21bd24a2 --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMSparcCodeGen/Makefile @@ -0,0 +1,32 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:49 pascal Exp $ + +LIB= LLVMSparcCodeGen +NOPIC= +NOPROFILE= + +CPPFLAGS+= -I${.OBJDIR}/../include/llvm/Sparc \ + -I${LLVM_SRCS}/lib/Target/Sparc + +.include <bsd.own.mk> +SRCS= DelaySlotFiller.cpp \ + SparcAsmPrinter.cpp \ + SparcInstrInfo.cpp \ + SparcISelDAGToDAG.cpp \ + SparcISelLowering.cpp \ + SparcFrameLowering.cpp \ + SparcMachineFunctionInfo.cpp \ + SparcRegisterInfo.cpp \ + SparcSubtarget.cpp \ + SparcTargetMachine.cpp \ + SparcMCInstLower.cpp \ + SparcTargetObjectFile.cpp + +.PATH: ${.CURDIR}/../../../llvm/lib/Target/Sparc + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libLLVMSparcDesc/Makefile b/gnu/usr.bin/clang/libLLVMSparcDesc/Makefile new file mode 100644 index 00000000000..c3a8bc1e7ff --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMSparcDesc/Makefile @@ -0,0 +1,27 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:49 pascal Exp $ + +LIB= LLVMSparcDesc +NOPIC= +NOPROFILE= + +CPPFLAGS+= -I${.OBJDIR}/../include/llvm/Sparc \ + -I${LLVM_SRCS}/lib/Target/Sparc + +.include <bsd.own.mk> +SRCS= SparcAsmBackend.cpp \ + SparcELFObjectWriter.cpp \ + SparcMCAsmInfo.cpp \ + SparcMCCodeEmitter.cpp \ + SparcMCTargetDesc.cpp \ + SparcMCExpr.cpp \ + SparcTargetStreamer.cpp + +.PATH: ${.CURDIR}/../../../llvm/lib/Target/Sparc/MCTargetDesc + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libLLVMSparcDisassembler/Makefile b/gnu/usr.bin/clang/libLLVMSparcDisassembler/Makefile new file mode 100644 index 00000000000..cdd9358bdbf --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMSparcDisassembler/Makefile @@ -0,0 +1,21 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:49 pascal Exp $ + +LIB= LLVMSparcDisassembler +NOPIC= +NOPROFILE= + +CPPFLAGS+= -I${.OBJDIR}/../include/llvm/Sparc \ + -I${LLVM_SRCS}/lib/Target/Sparc + +.include <bsd.own.mk> +SRCS= SparcDisassembler.cpp + +.PATH: ${.CURDIR}/../../../llvm/lib/Target/Sparc/Disassembler + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libLLVMSparcInfo/Makefile b/gnu/usr.bin/clang/libLLVMSparcInfo/Makefile new file mode 100644 index 00000000000..74262587834 --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMSparcInfo/Makefile @@ -0,0 +1,21 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:49 pascal Exp $ + +LIB= LLVMSparcInfo +NOPIC= +NOPROFILE= + +CPPFLAGS+= -I${.OBJDIR}/../include/llvm/Sparc \ + -I${LLVM_SRCS}/lib/Target/Sparc + +.include <bsd.own.mk> +SRCS= SparcTargetInfo.cpp + +.PATH: ${.CURDIR}/../../../llvm/lib/Target/Sparc/TargetInfo + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libLLVMSupport/Makefile b/gnu/usr.bin/clang/libLLVMSupport/Makefile new file mode 100644 index 00000000000..66599b02978 --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMSupport/Makefile @@ -0,0 +1,112 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:49 pascal Exp $ + +LIB= LLVMSupport +NOPIC= +NOPROFILE= + +CPPFLAGS+= -I${LLVM_SRCS}/include/llvm/Support + +.include <bsd.own.mk> +SRCS= APFloat.cpp \ + APInt.cpp \ + APSInt.cpp \ + ARMBuildAttrs.cpp \ + ARMWinEH.cpp \ + Allocator.cpp \ + BlockFrequency.cpp \ + BranchProbability.cpp \ + circular_raw_ostream.cpp \ + COM.cpp \ + CommandLine.cpp \ + Compression.cpp \ + ConvertUTF.c \ + ConvertUTFWrapper.cpp \ + CrashRecoveryContext.cpp \ + DataExtractor.cpp \ + DataStream.cpp \ + Debug.cpp \ + DeltaAlgorithm.cpp \ + DAGDeltaAlgorithm.cpp \ + Dwarf.cpp \ + ErrorHandling.cpp \ + FileUtilities.cpp \ + FileOutputBuffer.cpp \ + FoldingSet.cpp \ + FormattedStream.cpp \ + GraphWriter.cpp \ + Hashing.cpp \ + IntEqClasses.cpp \ + IntervalMap.cpp \ + IntrusiveRefCntPtr.cpp \ + JamCRC.cpp \ + LEB128.cpp \ + LineIterator.cpp \ + Locale.cpp \ + LockFileManager.cpp \ + ManagedStatic.cpp \ + MathExtras.cpp \ + MemoryBuffer.cpp \ + MemoryObject.cpp \ + MD5.cpp \ + Options.cpp \ + PluginLoader.cpp \ + PrettyStackTrace.cpp \ + RandomNumberGenerator.cpp \ + Regex.cpp \ + ScaledNumber.cpp \ + SmallPtrSet.cpp \ + SmallVector.cpp \ + SourceMgr.cpp \ + SpecialCaseList.cpp \ + Statistic.cpp \ + StreamingMemoryObject.cpp \ + StringExtras.cpp \ + StringMap.cpp \ + StringPool.cpp \ + StringSaver.cpp \ + StringRef.cpp \ + SystemUtils.cpp \ + TargetParser.cpp \ + ThreadPool.cpp \ + Timer.cpp \ + ToolOutputFile.cpp \ + Triple.cpp \ + Twine.cpp \ + Unicode.cpp \ + YAMLParser.cpp \ + YAMLTraits.cpp \ + raw_os_ostream.cpp \ + raw_ostream.cpp \ + regcomp.c \ + regerror.c \ + regexec.c \ + regfree.c \ + regstrlcpy.c \ + Atomic.cpp \ + DynamicLibrary.cpp \ + Errno.cpp \ + Host.cpp \ + Memory.cpp \ + Mutex.cpp \ + Path.cpp \ + Process.cpp \ + Program.cpp \ + RWMutex.cpp \ + SearchForAddressOfSpecialSymbol.cpp \ + Signals.cpp \ + TargetRegistry.cpp \ + ThreadLocal.cpp \ + Threading.cpp \ + TimeValue.cpp \ + Valgrind.cpp \ + Watchdog.cpp + +.PATH: ${.CURDIR}/../../../llvm/lib/Support + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libLLVMTableGen/Makefile b/gnu/usr.bin/clang/libLLVMTableGen/Makefile new file mode 100644 index 00000000000..dee6c74360c --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMTableGen/Makefile @@ -0,0 +1,27 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:49 pascal Exp $ + +LIB= LLVMTableGen +NOPIC= +NOPROFILE= + +CPPFLAGS+= -I${LLVM_SRCS}/include/llvm/TableGen + +.include <bsd.own.mk> +SRCS= Error.cpp \ + Main.cpp \ + Record.cpp \ + SetTheory.cpp \ + StringMatcher.cpp \ + TableGenBackend.cpp \ + TGLexer.cpp \ + TGParser.cpp + +.PATH: ${.CURDIR}/../../../llvm/lib/TableGen + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libLLVMTarget/Makefile b/gnu/usr.bin/clang/libLLVMTarget/Makefile new file mode 100644 index 00000000000..9794e614dc1 --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMTarget/Makefile @@ -0,0 +1,26 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:50 pascal Exp $ + +LIB= LLVMTarget +NOPIC= +NOPROFILE= + +CPPFLAGS+= -I${LLVM_SRCS}/include/llvm/Target + +.include <bsd.own.mk> +SRCS= Target.cpp \ + TargetIntrinsicInfo.cpp \ + TargetLoweringObjectFile.cpp \ + TargetMachine.cpp \ + TargetMachineC.cpp \ + TargetRecip.cpp \ + TargetSubtargetInfo.cpp + +.PATH: ${.CURDIR}/../../../llvm/lib/Target + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libLLVMTransformUtils/Makefile b/gnu/usr.bin/clang/libLLVMTransformUtils/Makefile new file mode 100644 index 00000000000..e69fcfde7bb --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMTransformUtils/Makefile @@ -0,0 +1,60 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:50 pascal Exp $ + +LIB= LLVMTransformUtils +NOPIC= +NOPROFILE= + +CPPFLAGS+= -I${LLVM_SRCS}/include/llvm/Transforms +CPPFLAGS+= -I${LLVM_SRCS}/include/llvm/Transforms/Utils + +.include <bsd.own.mk> +SRCS= ASanStackFrameLayout.cpp \ + AddDiscriminators.cpp \ + BasicBlockUtils.cpp \ + BreakCriticalEdges.cpp \ + BuildLibCalls.cpp \ + BypassSlowDivision.cpp \ + CloneFunction.cpp \ + CloneModule.cpp \ + CmpInstAnalysis.cpp \ + CodeExtractor.cpp \ + CtorUtils.cpp \ + DemoteRegToStack.cpp \ + FlattenCFG.cpp \ + GlobalStatus.cpp \ + InlineFunction.cpp \ + InstructionNamer.cpp \ + IntegerDivision.cpp \ + LCSSA.cpp \ + Local.cpp \ + LoopSimplify.cpp \ + LoopUnroll.cpp \ + LoopUnrollRuntime.cpp \ + LoopUtils.cpp \ + LoopVersioning.cpp \ + LowerInvoke.cpp \ + LowerSwitch.cpp \ + Mem2Reg.cpp \ + MetaRenamer.cpp \ + ModuleUtils.cpp \ + PromoteMemoryToRegister.cpp \ + SSAUpdater.cpp \ + SimplifyCFG.cpp \ + SimplifyIndVar.cpp \ + SimplifyInstructions.cpp \ + SimplifyLibCalls.cpp \ + SplitModule.cpp \ + SymbolRewriter.cpp \ + UnifyFunctionExitNodes.cpp \ + Utils.cpp \ + ValueMapper.cpp + +.PATH: ${.CURDIR}/../../../llvm/lib/Transforms/Utils + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libLLVMVectorize/Makefile b/gnu/usr.bin/clang/libLLVMVectorize/Makefile new file mode 100644 index 00000000000..d9c322d5611 --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMVectorize/Makefile @@ -0,0 +1,23 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:50 pascal Exp $ + +LIB= LLVMVectorize +NOPIC= +NOPROFILE= + +CPPFLAGS+= -I${LLVM_SRCS}/include/llvm/Transforms + +.include <bsd.own.mk> +SRCS= BBVectorize.cpp \ + Vectorize.cpp \ + LoopVectorize.cpp \ + SLPVectorizer.cpp + +.PATH: ${.CURDIR}/../../../llvm/lib/Transforms/Vectorize + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libLLVMX86AsmParser/Makefile b/gnu/usr.bin/clang/libLLVMX86AsmParser/Makefile new file mode 100644 index 00000000000..1f22415d9d9 --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMX86AsmParser/Makefile @@ -0,0 +1,21 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:50 pascal Exp $ + +LIB= LLVMX86AsmParser +NOPIC= +NOPROFILE= + +CPPFLAGS+= -I${.OBJDIR}/../include/llvm/X86 -I${LLVM_SRCS}/lib/Target/X86 + +.include <bsd.own.mk> +SRCS= X86AsmInstrumentation.cpp \ + X86AsmParser.cpp + +.PATH: ${.CURDIR}/../../../llvm/lib/Target/X86/AsmParser + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libLLVMX86AsmPrinter/Makefile b/gnu/usr.bin/clang/libLLVMX86AsmPrinter/Makefile new file mode 100644 index 00000000000..c964ac4d861 --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMX86AsmPrinter/Makefile @@ -0,0 +1,22 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:50 pascal Exp $ + +LIB= LLVMX86AsmPrinter +NOPIC= +NOPROFILE= + +CPPFLAGS+= -I${.OBJDIR}/../include/llvm/X86 -I${LLVM_SRCS}/lib/Target/X86 + +.include <bsd.own.mk> +SRCS= X86ATTInstPrinter.cpp \ + X86IntelInstPrinter.cpp \ + X86InstComments.cpp + +.PATH: ${.CURDIR}/../../../llvm/lib/Target/X86/InstPrinter + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libLLVMX86CodeGen/Makefile b/gnu/usr.bin/clang/libLLVMX86CodeGen/Makefile new file mode 100644 index 00000000000..a8db7629a0d --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMX86CodeGen/Makefile @@ -0,0 +1,42 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:50 pascal Exp $ + +LIB= LLVMX86CodeGen +NOPIC= +NOPROFILE= + +CPPFLAGS+= -I${.OBJDIR}/../include/llvm/X86 -I${LLVM_SRCS}/lib/Target/X86 + +.include <bsd.own.mk> +SRCS= X86AsmPrinter.cpp \ + X86CallFrameOptimization.cpp \ + X86ExpandPseudo.cpp \ + X86FastISel.cpp \ + X86FloatingPoint.cpp \ + X86FrameLowering.cpp \ + X86ISelDAGToDAG.cpp \ + X86ISelLowering.cpp \ + X86InstrInfo.cpp \ + X86MCInstLower.cpp \ + X86MachineFunctionInfo.cpp \ + X86PadShortFunction.cpp \ + X86RegisterInfo.cpp \ + X86SelectionDAGInfo.cpp \ + X86ShuffleDecodeConstantPool.cpp \ + X86Subtarget.cpp \ + X86TargetMachine.cpp \ + X86TargetObjectFile.cpp \ + X86TargetTransformInfo.cpp \ + X86VZeroUpper.cpp \ + X86FixupLEAs.cpp \ + X86WinEHState.cpp \ + X86OptimizeLEAs.cpp + +.PATH: ${.CURDIR}/../../../llvm/lib/Target/X86 + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libLLVMX86Desc/Makefile b/gnu/usr.bin/clang/libLLVMX86Desc/Makefile new file mode 100644 index 00000000000..6071ef357f1 --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMX86Desc/Makefile @@ -0,0 +1,29 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:50 pascal Exp $ + +LIB= LLVMX86Desc +NOPIC= +NOPROFILE= + +CPPFLAGS+= -I${.OBJDIR}/../include/llvm/X86 -I${LLVM_SRCS}/lib/Target/X86 + +.include <bsd.own.mk> +SRCS= X86AsmBackend.cpp \ + X86MCTargetDesc.cpp \ + X86MCAsmInfo.cpp \ + X86MCCodeEmitter.cpp \ + X86MachObjectWriter.cpp \ + X86ELFObjectWriter.cpp \ + X86WinCOFFStreamer.cpp \ + X86WinCOFFObjectWriter.cpp \ + X86MachORelocationInfo.cpp \ + X86ELFRelocationInfo.cpp + +.PATH: ${.CURDIR}/../../../llvm/lib/Target/X86/MCTargetDesc + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libLLVMX86Disassembler/Makefile b/gnu/usr.bin/clang/libLLVMX86Disassembler/Makefile new file mode 100644 index 00000000000..51e11e903fc --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMX86Disassembler/Makefile @@ -0,0 +1,21 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:50 pascal Exp $ + +LIB= LLVMX86Disassembler +NOPIC= +NOPROFILE= + +CPPFLAGS+= -I${.OBJDIR}/../include/llvm/X86 -I${LLVM_SRCS}/lib/Target/X86 + +.include <bsd.own.mk> +SRCS= X86Disassembler.cpp \ + X86DisassemblerDecoder.cpp + +.PATH: ${.CURDIR}/../../../llvm/lib/Target/X86/Disassembler + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libLLVMX86Info/Makefile b/gnu/usr.bin/clang/libLLVMX86Info/Makefile new file mode 100644 index 00000000000..6f4e1b7a9f3 --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMX86Info/Makefile @@ -0,0 +1,20 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:50 pascal Exp $ + +LIB= LLVMX86Info +NOPIC= +NOPROFILE= + +CPPFLAGS+= -I${.OBJDIR}/../include/llvm/X86 -I${LLVM_SRCS}/lib/Target/X86 + +.include <bsd.own.mk> +SRCS= X86TargetInfo.cpp + +.PATH: ${.CURDIR}/../../../llvm/lib/Target/X86/TargetInfo + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libLLVMX86Utils/Makefile b/gnu/usr.bin/clang/libLLVMX86Utils/Makefile new file mode 100644 index 00000000000..d9c7dab5bdb --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMX86Utils/Makefile @@ -0,0 +1,20 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:50 pascal Exp $ + +LIB= LLVMX86Utils +NOPIC= +NOPROFILE= + +CPPFLAGS+= -I${.OBJDIR}/../include/llvm/X86 -I${LLVM_SRCS}/lib/Target/X86 + +.include <bsd.own.mk> +SRCS= X86ShuffleDecode.cpp + +.PATH: ${.CURDIR}/../../../llvm/lib/Target/X86/Utils + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libLLVMipo/Makefile b/gnu/usr.bin/clang/libLLVMipo/Makefile new file mode 100644 index 00000000000..41d6a273d1b --- /dev/null +++ b/gnu/usr.bin/clang/libLLVMipo/Makefile @@ -0,0 +1,48 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:50 pascal Exp $ + +LIB= LLVMipo +NOPIC= +NOPROFILE= + +CPPFLAGS+= -I${LLVM_SRCS}/include/llvm/Transforms +CPPFLAGS+= -I${LLVM_SRCS}/include/llvm/Transforms/IPO + +.include <bsd.own.mk> +SRCS= ArgumentPromotion.cpp \ + BarrierNoopPass.cpp \ + ConstantMerge.cpp \ + CrossDSOCFI.cpp \ + DeadArgumentElimination.cpp \ + ElimAvailExtern.cpp \ + ExtractGV.cpp \ + ForceFunctionAttrs.cpp \ + FunctionAttrs.cpp \ + FunctionImport.cpp \ + GlobalDCE.cpp \ + GlobalOpt.cpp \ + IPConstantPropagation.cpp \ + IPO.cpp \ + InferFunctionAttrs.cpp \ + InlineAlways.cpp \ + InlineSimple.cpp \ + Inliner.cpp \ + Internalize.cpp \ + LoopExtractor.cpp \ + LowerBitSets.cpp \ + MergeFunctions.cpp \ + PartialInlining.cpp \ + PassManagerBuilder.cpp \ + PruneEH.cpp \ + SampleProfile.cpp \ + StripDeadPrototypes.cpp \ + StripSymbols.cpp + +.PATH: ${.CURDIR}/../../../llvm/lib/Transforms/IPO + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libclangAST/Makefile b/gnu/usr.bin/clang/libclangAST/Makefile new file mode 100644 index 00000000000..d5e30520c68 --- /dev/null +++ b/gnu/usr.bin/clang/libclangAST/Makefile @@ -0,0 +1,79 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:50 pascal Exp $ + +LIB= clangAST +NOPIC= +NOPROFILE= + +CPPFLAGS+= ${CLANG_INCLUDES} + +.include <bsd.own.mk> +SRCS= APValue.cpp \ + ASTConsumer.cpp \ + ASTContext.cpp \ + ASTDiagnostic.cpp \ + ASTDumper.cpp \ + ASTImporter.cpp \ + ASTTypeTraits.cpp \ + AttrImpl.cpp \ + CXXInheritance.cpp \ + Comment.cpp \ + CommentBriefParser.cpp \ + CommentCommandTraits.cpp \ + CommentLexer.cpp \ + CommentParser.cpp \ + CommentSema.cpp \ + Decl.cpp \ + DeclarationName.cpp \ + DeclBase.cpp \ + DeclCXX.cpp \ + DeclFriend.cpp \ + DeclGroup.cpp \ + DeclObjC.cpp \ + DeclOpenMP.cpp \ + DeclPrinter.cpp \ + DeclTemplate.cpp \ + Expr.cpp \ + ExprClassification.cpp \ + ExprConstant.cpp \ + ExprCXX.cpp \ + ExprObjC.cpp \ + ExternalASTSource.cpp \ + InheritViz.cpp \ + ItaniumCXXABI.cpp \ + ItaniumMangle.cpp \ + Mangle.cpp \ + MicrosoftCXXABI.cpp \ + MicrosoftMangle.cpp \ + NestedNameSpecifier.cpp \ + NSAPI.cpp \ + OpenMPClause.cpp \ + ParentMap.cpp \ + RawCommentList.cpp \ + RecordLayout.cpp \ + RecordLayoutBuilder.cpp \ + SelectorLocationsKind.cpp \ + Stmt.cpp \ + StmtCXX.cpp \ + StmtIterator.cpp \ + StmtObjC.cpp \ + StmtOpenMP.cpp \ + StmtPrinter.cpp \ + StmtProfile.cpp \ + StmtViz.cpp \ + TemplateBase.cpp \ + TemplateName.cpp \ + Type.cpp \ + TypeLoc.cpp \ + TypePrinter.cpp \ + VTableBuilder.cpp \ + VTTBuilder.cpp + +.PATH: ${.CURDIR}/../../../llvm/tools/clang/lib/AST + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libclangAnalysis/Makefile b/gnu/usr.bin/clang/libclangAnalysis/Makefile new file mode 100644 index 00000000000..87fc110a976 --- /dev/null +++ b/gnu/usr.bin/clang/libclangAnalysis/Makefile @@ -0,0 +1,43 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:50 pascal Exp $ + +LIB= clangAnalysis +NOPIC= +NOPROFILE= + +CPPFLAGS+= ${CLANG_INCLUDES} + +.include <bsd.own.mk> +SRCS= AnalysisDeclContext.cpp \ + BodyFarm.cpp \ + CFG.cpp \ + CFGReachabilityAnalysis.cpp \ + CFGStmtMap.cpp \ + CallGraph.cpp \ + CocoaConventions.cpp \ + Consumed.cpp \ + CodeInjector.cpp \ + Dominators.cpp \ + FormatString.cpp \ + LiveVariables.cpp \ + ObjCNoReturn.cpp \ + PostOrderCFGView.cpp \ + PrintfFormatString.cpp \ + ProgramPoint.cpp \ + PseudoConstantAnalysis.cpp \ + ReachableCode.cpp \ + ScanfFormatString.cpp \ + ThreadSafety.cpp \ + ThreadSafetyCommon.cpp \ + ThreadSafetyLogical.cpp \ + ThreadSafetyTIL.cpp \ + UninitializedValues.cpp + +.PATH: ${.CURDIR}/../../../llvm/tools/clang/lib/Analysis + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libclangBasic/Makefile b/gnu/usr.bin/clang/libclangBasic/Makefile new file mode 100644 index 00000000000..4a0a6a8eca6 --- /dev/null +++ b/gnu/usr.bin/clang/libclangBasic/Makefile @@ -0,0 +1,44 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:50 pascal Exp $ + +LIB= clangBasic +NOPIC= +NOPROFILE= + +CPPFLAGS+= ${CLANG_INCLUDES} + +.include <bsd.own.mk> +SRCS= Attributes.cpp \ + Builtins.cpp \ + CharInfo.cpp \ + Diagnostic.cpp \ + DiagnosticIDs.cpp \ + DiagnosticOptions.cpp \ + FileManager.cpp \ + FileSystemStatCache.cpp \ + IdentifierTable.cpp \ + LangOptions.cpp \ + Module.cpp \ + ObjCRuntime.cpp \ + OpenMPKinds.cpp \ + OperatorPrecedence.cpp \ + SanitizerBlacklist.cpp \ + Sanitizers.cpp \ + SourceLocation.cpp \ + SourceManager.cpp \ + TargetInfo.cpp \ + Targets.cpp \ + TokenKinds.cpp \ + Version.cpp \ + VersionTuple.cpp \ + VirtualFileSystem.cpp \ + Warnings.cpp + +.PATH: ${.CURDIR}/../../../llvm/tools/clang/lib/Basic + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libclangCodeGen/Makefile b/gnu/usr.bin/clang/libclangCodeGen/Makefile new file mode 100644 index 00000000000..e2010b4549d --- /dev/null +++ b/gnu/usr.bin/clang/libclangCodeGen/Makefile @@ -0,0 +1,66 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:50 pascal Exp $ + +LIB= clangCodeGen +NOPIC= +NOPROFILE= + +CPPFLAGS+= ${CLANG_INCLUDES} + +.include <bsd.own.mk> +SRCS= BackendUtil.cpp \ + CGAtomic.cpp \ + CGBlocks.cpp \ + CGBuiltin.cpp \ + CGCUDANV.cpp \ + CGCUDARuntime.cpp \ + CGCXX.cpp \ + CGCXXABI.cpp \ + CGCall.cpp \ + CGClass.cpp \ + CGCleanup.cpp \ + CGDebugInfo.cpp \ + CGDecl.cpp \ + CGDeclCXX.cpp \ + CGException.cpp \ + CGExpr.cpp \ + CGExprAgg.cpp \ + CGExprCXX.cpp \ + CGExprComplex.cpp \ + CGExprConstant.cpp \ + CGExprScalar.cpp \ + CGLoopInfo.cpp \ + CGObjC.cpp \ + CGObjCGNU.cpp \ + CGObjCMac.cpp \ + CGObjCRuntime.cpp \ + CGOpenCLRuntime.cpp \ + CGOpenMPRuntime.cpp \ + CGRecordLayoutBuilder.cpp \ + CGStmt.cpp \ + CGStmtOpenMP.cpp \ + CGVTT.cpp \ + CGVTables.cpp \ + CodeGenABITypes.cpp \ + CodeGenAction.cpp \ + CodeGenFunction.cpp \ + CodeGenModule.cpp \ + CodeGenPGO.cpp \ + CodeGenTBAA.cpp \ + CodeGenTypes.cpp \ + CoverageMappingGen.cpp \ + ItaniumCXXABI.cpp \ + MicrosoftCXXABI.cpp \ + ModuleBuilder.cpp \ + ObjectFilePCHContainerOperations.cpp \ + SanitizerMetadata.cpp \ + TargetInfo.cpp + +.PATH: ${.CURDIR}/../../../llvm/tools/clang/lib/CodeGen + +depend: + # Nothing here so far ... + +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 new file mode 100644 index 00000000000..2029c51f66b --- /dev/null +++ b/gnu/usr.bin/clang/libclangDriver/Makefile @@ -0,0 +1,35 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:50 pascal Exp $ + +LIB= clangDriver +NOPIC= +NOPROFILE= + +CPPFLAGS+= ${CLANG_INCLUDES} + +.include <bsd.own.mk> +SRCS= Action.cpp \ + Compilation.cpp \ + CrossWindowsToolChain.cpp \ + Driver.cpp \ + DriverOptions.cpp \ + Job.cpp \ + MinGWToolChain.cpp \ + Multilib.cpp \ + MSVCToolChain.cpp \ + Phases.cpp \ + SanitizerArgs.cpp \ + Tool.cpp \ + ToolChain.cpp \ + ToolChains.cpp \ + Tools.cpp \ + Types.cpp + +.PATH: ${.CURDIR}/../../../llvm/tools/clang/lib/Driver + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libclangEdit/Makefile b/gnu/usr.bin/clang/libclangEdit/Makefile new file mode 100644 index 00000000000..8a3179a9721 --- /dev/null +++ b/gnu/usr.bin/clang/libclangEdit/Makefile @@ -0,0 +1,22 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:50 pascal Exp $ + +LIB= clangEdit +NOPIC= +NOPROFILE= + +CPPFLAGS+= ${CLANG_INCLUDES} + +.include <bsd.own.mk> +SRCS= Commit.cpp \ + EditedSource.cpp \ + RewriteObjCFoundationAPI.cpp + +.PATH: ${.CURDIR}/../../../llvm/tools/clang/lib/Edit + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libclangFrontend/Makefile b/gnu/usr.bin/clang/libclangFrontend/Makefile new file mode 100644 index 00000000000..19bc2466336 --- /dev/null +++ b/gnu/usr.bin/clang/libclangFrontend/Makefile @@ -0,0 +1,52 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:50 pascal Exp $ + +LIB= clangFrontend +NOPIC= +NOPROFILE= + +CPPFLAGS+= ${CLANG_INCLUDES} + +.include <bsd.own.mk> +SRCS= ASTConsumers.cpp \ + ASTMerge.cpp \ + ASTUnit.cpp \ + CacheTokens.cpp \ + ChainedDiagnosticConsumer.cpp \ + ChainedIncludesSource.cpp \ + CodeGenOptions.cpp \ + CompilerInstance.cpp \ + CompilerInvocation.cpp \ + CreateInvocationFromCommandLine.cpp \ + DependencyFile.cpp \ + DependencyGraph.cpp \ + DiagnosticRenderer.cpp \ + FrontendAction.cpp \ + FrontendActions.cpp \ + FrontendOptions.cpp \ + HeaderIncludeGen.cpp \ + InitHeaderSearch.cpp \ + InitPreprocessor.cpp \ + LangStandards.cpp \ + LayoutOverrideSource.cpp \ + LogDiagnosticPrinter.cpp \ + ModuleDependencyCollector.cpp \ + MultiplexConsumer.cpp \ + PCHContainerOperations.cpp \ + PrintPreprocessedOutput.cpp \ + SerializedDiagnosticPrinter.cpp \ + SerializedDiagnosticReader.cpp \ + TestModuleFileExtension.cpp \ + TextDiagnostic.cpp \ + TextDiagnosticBuffer.cpp \ + TextDiagnosticPrinter.cpp \ + VerifyDiagnosticConsumer.cpp + +.PATH: ${.CURDIR}/../../../llvm/tools/clang/lib/Frontend + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libclangFrontendTool/Makefile b/gnu/usr.bin/clang/libclangFrontendTool/Makefile new file mode 100644 index 00000000000..08beca8e810 --- /dev/null +++ b/gnu/usr.bin/clang/libclangFrontendTool/Makefile @@ -0,0 +1,20 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:50 pascal Exp $ + +LIB= clangFrontendTool +NOPIC= +NOPROFILE= + +CPPFLAGS+= ${CLANG_INCLUDES} + +.include <bsd.own.mk> +SRCS= ExecuteCompilerInvocation.cpp + +.PATH: ${.CURDIR}/../../../llvm/tools/clang/lib/FrontendTool + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libclangLex/Makefile b/gnu/usr.bin/clang/libclangLex/Makefile new file mode 100644 index 00000000000..1585ec6c19d --- /dev/null +++ b/gnu/usr.bin/clang/libclangLex/Makefile @@ -0,0 +1,41 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:50 pascal Exp $ + +LIB= clangLex +NOPIC= +NOPROFILE= + +CPPFLAGS+= ${CLANG_INCLUDES} + +.include <bsd.own.mk> +SRCS= HeaderMap.cpp \ + HeaderSearch.cpp \ + Lexer.cpp \ + LiteralSupport.cpp \ + MacroArgs.cpp \ + MacroInfo.cpp \ + ModuleMap.cpp \ + PPCaching.cpp \ + PPCallbacks.cpp \ + PPConditionalDirectiveRecord.cpp \ + PPDirectives.cpp \ + PPExpressions.cpp \ + PPLexerChange.cpp \ + PPMacroExpansion.cpp \ + PTHLexer.cpp \ + Pragma.cpp \ + PreprocessingRecord.cpp \ + Preprocessor.cpp \ + PreprocessorLexer.cpp \ + ScratchBuffer.cpp \ + TokenConcatenation.cpp \ + TokenLexer.cpp + +.PATH: ${.CURDIR}/../../../llvm/tools/clang/lib/Lex + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libclangParse/Makefile b/gnu/usr.bin/clang/libclangParse/Makefile new file mode 100644 index 00000000000..d7562807401 --- /dev/null +++ b/gnu/usr.bin/clang/libclangParse/Makefile @@ -0,0 +1,34 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:50 pascal Exp $ + +LIB= clangParse +NOPIC= +NOPROFILE= + +CPPFLAGS+= ${CLANG_INCLUDES} + +.include <bsd.own.mk> +SRCS= ParseAST.cpp \ + ParseCXXInlineMethods.cpp \ + ParseDecl.cpp \ + ParseDeclCXX.cpp \ + ParseExpr.cpp \ + ParseExprCXX.cpp \ + ParseInit.cpp \ + ParseObjc.cpp \ + ParseOpenMP.cpp \ + ParsePragma.cpp \ + ParseStmt.cpp \ + ParseStmtAsm.cpp \ + ParseTemplate.cpp \ + ParseTentative.cpp \ + Parser.cpp + +.PATH: ${.CURDIR}/../../../llvm/tools/clang/lib/Parse + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libclangRewrite/Makefile b/gnu/usr.bin/clang/libclangRewrite/Makefile new file mode 100644 index 00000000000..19fef70356e --- /dev/null +++ b/gnu/usr.bin/clang/libclangRewrite/Makefile @@ -0,0 +1,21 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:50 pascal Exp $ + +LIB= clangRewrite +NOPIC= +NOPROFILE= + +CPPFLAGS+= ${CLANG_INCLUDES} + +.include <bsd.own.mk> +SRCS= DeltaTree.cpp \ + HTMLRewrite.cpp \ + RewriteRope.cpp \ + Rewriter.cpp \ + TokenRewriter.cpp + +.PATH: ${.CURDIR}/../../../llvm/tools/clang/lib/Rewrite + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libclangRewriteFrontend/Makefile b/gnu/usr.bin/clang/libclangRewriteFrontend/Makefile new file mode 100644 index 00000000000..d8197c70f49 --- /dev/null +++ b/gnu/usr.bin/clang/libclangRewriteFrontend/Makefile @@ -0,0 +1,27 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:50 pascal Exp $ + +LIB= clangRewriteFrontend +NOPIC= +NOPROFILE= + +CPPFLAGS+= ${CLANG_INCLUDES} + +.include <bsd.own.mk> +SRCS= FixItRewriter.cpp \ + FrontendActions.cpp \ + HTMLPrint.cpp \ + InclusionRewriter.cpp \ + RewriteMacros.cpp \ + RewriteModernObjC.cpp \ + RewriteObjC.cpp \ + RewriteTest.cpp + +.PATH: ${.CURDIR}/../../../llvm/tools/clang/lib/Frontend/Rewrite + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libclangSema/Makefile b/gnu/usr.bin/clang/libclangSema/Makefile new file mode 100644 index 00000000000..34aac80cafd --- /dev/null +++ b/gnu/usr.bin/clang/libclangSema/Makefile @@ -0,0 +1,66 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:50 pascal Exp $ + +LIB= clangSema +NOPIC= +NOPROFILE= + +CPPFLAGS+= ${CLANG_INCLUDES} + +.include <bsd.own.mk> +SRCS= AnalysisBasedWarnings.cpp \ + AttributeList.cpp \ + CodeCompleteConsumer.cpp \ + DeclSpec.cpp \ + DelayedDiagnostic.cpp \ + IdentifierResolver.cpp \ + JumpDiagnostics.cpp \ + MultiplexExternalSemaSource.cpp \ + Scope.cpp \ + ScopeInfo.cpp \ + Sema.cpp \ + SemaAccess.cpp \ + SemaAttr.cpp \ + SemaCXXScopeSpec.cpp \ + SemaCast.cpp \ + SemaChecking.cpp \ + SemaCodeComplete.cpp \ + SemaConsumer.cpp \ + SemaCoroutine.cpp \ + SemaCUDA.cpp \ + SemaDecl.cpp \ + SemaDeclAttr.cpp \ + SemaDeclCXX.cpp \ + SemaDeclObjC.cpp \ + SemaExceptionSpec.cpp \ + SemaExpr.cpp \ + SemaExprCXX.cpp \ + SemaExprMember.cpp \ + SemaExprObjC.cpp \ + SemaFixItUtils.cpp \ + SemaInit.cpp \ + SemaLambda.cpp \ + SemaLookup.cpp \ + SemaObjCProperty.cpp \ + SemaOpenMP.cpp \ + SemaOverload.cpp \ + SemaPseudoObject.cpp \ + SemaStmt.cpp \ + SemaStmtAsm.cpp \ + SemaStmtAttr.cpp \ + SemaTemplate.cpp \ + SemaTemplateDeduction.cpp \ + SemaTemplateInstantiate.cpp \ + SemaTemplateInstantiateDecl.cpp \ + SemaTemplateVariadic.cpp \ + SemaType.cpp \ + TypeLocBuilder.cpp + +.PATH: ${.CURDIR}/../../../llvm/tools/clang/lib/Sema + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/libclangSerialization/Makefile b/gnu/usr.bin/clang/libclangSerialization/Makefile new file mode 100644 index 00000000000..87e84401c13 --- /dev/null +++ b/gnu/usr.bin/clang/libclangSerialization/Makefile @@ -0,0 +1,31 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:50 pascal Exp $ + +LIB= clangSerialization +NOPIC= +NOPROFILE= + +CPPFLAGS+= ${CLANG_INCLUDES} + +.include <bsd.own.mk> +SRCS= ASTCommon.cpp \ + ASTReader.cpp \ + ASTReaderDecl.cpp \ + ASTReaderStmt.cpp \ + ASTWriter.cpp \ + ASTWriterDecl.cpp \ + ASTWriterStmt.cpp \ + GeneratePCH.cpp \ + GlobalModuleIndex.cpp \ + Module.cpp \ + ModuleFileExtension.cpp \ + ModuleManager.cpp + +.PATH: ${.CURDIR}/../../../llvm/tools/clang/lib/Serialization + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.lib.mk> diff --git a/gnu/usr.bin/clang/llc/Makefile b/gnu/usr.bin/clang/llc/Makefile new file mode 100644 index 00000000000..cd67d48e7ea --- /dev/null +++ b/gnu/usr.bin/clang/llc/Makefile @@ -0,0 +1,42 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:50 pascal Exp $ + +PROG= llc +NOMAN= + +LDADD+= -ltermlib +DPADD+= ${LIBTERMLIB} + +SRCS= llc.cpp + +.PATH: ${.CURDIR}/../../../llvm/tools/llc + +LLVM_LIBDEPS= LLVMMIRParser \ + LLVMIRReader \ + LLVMAsmParser \ + ${BACKEND_DISASSEMBLER} \ + ${BACKEND_ASMPARSER} \ + ${BACKEND_CODEGEN} \ + LLVMSelectionDAG \ + LLVMAsmPrinter \ + LLVMCodeGen \ + LLVMTarget \ + LLVMScalarOpts \ + LLVMInstCombine \ + LLVMInstrumentation \ + LLVMProfileData \ + LLVMTransformUtils \ + LLVMBitWriter \ + LLVMAnalysis \ + ${BACKEND_DESC} \ + LLVMObject \ + LLVMMCParser \ + LLVMBitReader \ + LLVMMCDisassembler \ + ${BACKEND_INFO} \ + ${BACKEND_ASMPRINTER} \ + LLVMMC \ + ${BACKEND_UTILS} \ + LLVMCore \ + LLVMSupport + +.include <bsd.prog.mk> diff --git a/gnu/usr.bin/clang/llvm-tblgen/Makefile b/gnu/usr.bin/clang/llvm-tblgen/Makefile new file mode 100644 index 00000000000..ae25e2c7fdb --- /dev/null +++ b/gnu/usr.bin/clang/llvm-tblgen/Makefile @@ -0,0 +1,52 @@ +# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:50 pascal Exp $ + +PROG= llvm-tblgen +NOMAN= + +LDADD+= -ltermlib +DPADD+= ${LIBTERMLIB} + +SRCS= AsmMatcherEmitter.cpp \ + AsmWriterEmitter.cpp \ + AsmWriterInst.cpp \ + Attributes.cpp \ + CallingConvEmitter.cpp \ + CodeEmitterGen.cpp \ + CodeGenDAGPatterns.cpp \ + CodeGenInstruction.cpp \ + CodeGenMapTable.cpp \ + CodeGenRegisters.cpp \ + CodeGenSchedule.cpp \ + CodeGenTarget.cpp \ + DAGISelEmitter.cpp \ + DAGISelMatcherEmitter.cpp \ + DAGISelMatcherGen.cpp \ + DAGISelMatcherOpt.cpp \ + DAGISelMatcher.cpp \ + DFAPacketizerEmitter.cpp \ + DisassemblerEmitter.cpp \ + FastISelEmitter.cpp \ + FixedLenDecoderEmitter.cpp \ + InstrInfoEmitter.cpp \ + IntrinsicEmitter.cpp \ + OptParserEmitter.cpp \ + PseudoLoweringEmitter.cpp \ + RegisterInfoEmitter.cpp \ + SubtargetEmitter.cpp \ + TableGen.cpp \ + X86DisassemblerTables.cpp \ + X86ModRMFilters.cpp \ + X86RecognizableInstr.cpp \ + CTagsEmitter.cpp + +.PATH: ${.CURDIR}/../../../llvm/utils/TableGen + +LLVM_LIBDEPS= LLVMTableGen LLVMSupport + +depend: + # Nothing here so far ... + +install: + # Nothing here so far ... + +.include <bsd.prog.mk> |