Import framework to build base clang (version 3.8.0)
authorJohn Marino <draco@marino.st>
Sun, 20 Mar 2016 21:07:44 +0000 (22:07 +0100)
committerJohn Marino <draco@marino.st>
Sun, 20 Mar 2016 21:09:27 +0000 (22:09 +0100)
This commit has two major components:

1) Set of tools to generate makefiles from LLVM's CMake data.
   It greatly assists upgrading base clang from release to release

2) A new directory <root>/llvm_clang that will build and install
   clang.  It is not hooked into the world build yet.

The process for building clang is described in
tools/tools/llvm_generator/README.  Basically the llvm source needs
to be symlinked to contrib/llvm after applying one patch, and then
it can be manually built and installed (and accessible via CCVER and
WORLD_CCVER).

It will not be hooked until the build until clang-built kernel modules
load properly (they load via kldload but not during boot).  This was
last tested a few months ago on an llvm-38 dev branch using the customcc
functionality.  clang-built worlds and kernels using clang 3.8.0 have
not been tested yet.  This commit is meant to facilitate testing and
resolution of any issues with clang.

It was necessary to temporarily modify objformat to enable
WORLD_CCVER=clang to build the world.  This modication will be removed
once clang officially replaces gcc47.

200 files changed:
Makefile.inc1
etc/mtree/BSD.usr.dist
llvm_clang/Makefile [new file with mode: 0644]
llvm_clang/block1/LLVMSupport/Makefile [new file with mode: 0644]
llvm_clang/block1/LLVMSupport/Makefile.sources [new file with mode: 0644]
llvm_clang/block1/LLVMTableGen/Makefile [new file with mode: 0644]
llvm_clang/block1/LLVMTableGen/Makefile.sources [new file with mode: 0644]
llvm_clang/block1/Makefile [new file with mode: 0644]
llvm_clang/block1/Makefile.generated [new file with mode: 0644]
llvm_clang/block1/Makefile.inc [new file with mode: 0644]
llvm_clang/block1/configuration/Version.inc [new file with mode: 0644]
llvm_clang/block1/configuration/config.h [new file with mode: 0644]
llvm_clang/block1/configuration/config.h.clang [new file with mode: 0644]
llvm_clang/block1/configuration/llvm-config.h [new file with mode: 0644]
llvm_clang/block2/Makefile [new file with mode: 0644]
llvm_clang/block2/Makefile.inc [new file with mode: 0644]
llvm_clang/block2/clang-tblgen/Makefile [new file with mode: 0644]
llvm_clang/block2/clang-tblgen/Makefile.sources [new file with mode: 0644]
llvm_clang/block2/llvm-tblgen/Makefile [new file with mode: 0644]
llvm_clang/block2/llvm-tblgen/Makefile.sources [new file with mode: 0644]
llvm_clang/block3/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMAArch64AsmParser/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMAArch64AsmParser/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMAArch64AsmPrinter/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMAArch64AsmPrinter/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMAArch64CodeGen/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMAArch64CodeGen/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMAArch64Desc/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMAArch64Desc/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMAArch64Disassembler/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMAArch64Disassembler/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMAArch64Info/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMAArch64Info/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMAArch64Utils/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMAArch64Utils/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMAMDGPUAsmParser/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMAMDGPUAsmParser/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMAMDGPUAsmPrinter/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMAMDGPUAsmPrinter/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMAMDGPUCodeGen/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMAMDGPUCodeGen/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMAMDGPUDesc/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMAMDGPUDesc/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMAMDGPUInfo/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMAMDGPUInfo/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMAMDGPUUtils/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMAMDGPUUtils/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMARMAsmParser/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMARMAsmParser/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMARMAsmPrinter/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMARMAsmPrinter/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMARMCodeGen/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMARMCodeGen/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMARMDesc/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMARMDesc/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMARMDisassembler/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMARMDisassembler/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMARMInfo/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMARMInfo/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMAnalysis/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMAnalysis/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMAsmParser/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMAsmParser/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMAsmPrinter/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMAsmPrinter/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMBitReader/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMBitReader/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMBitWriter/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMBitWriter/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMCodeGen/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMCodeGen/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMCore/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMCore/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMCppBackendCodeGen/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMCppBackendCodeGen/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMCppBackendInfo/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMCppBackendInfo/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMIRReader/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMIRReader/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMInstCombine/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMInstCombine/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMInstrumentation/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMInstrumentation/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMLinker/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMLinker/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMMC/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMMC/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMMCDisassembler/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMMCDisassembler/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMMCParser/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMMCParser/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMMipsAsmParser/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMMipsAsmParser/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMMipsAsmPrinter/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMMipsAsmPrinter/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMMipsCodeGen/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMMipsCodeGen/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMMipsDesc/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMMipsDesc/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMMipsDisassembler/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMMipsDisassembler/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMMipsInfo/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMMipsInfo/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMObjCARCOpts/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMObjCARCOpts/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMObject/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMObject/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMOption/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMOption/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMPowerPCAsmParser/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMPowerPCAsmParser/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMPowerPCAsmPrinter/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMPowerPCAsmPrinter/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMPowerPCCodeGen/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMPowerPCCodeGen/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMPowerPCDesc/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMPowerPCDesc/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMPowerPCDisassembler/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMPowerPCDisassembler/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMPowerPCInfo/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMPowerPCInfo/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMProfileData/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMProfileData/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMScalarOpts/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMScalarOpts/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMSelectionDAG/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMSelectionDAG/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMTarget/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMTarget/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMTransformUtils/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMTransformUtils/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMVectorize/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMVectorize/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMX86AsmParser/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMX86AsmParser/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMX86AsmPrinter/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMX86AsmPrinter/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMX86CodeGen/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMX86CodeGen/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMX86Desc/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMX86Desc/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMX86Disassembler/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMX86Disassembler/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMX86Info/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMX86Info/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMX86Utils/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMX86Utils/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/LLVMipo/Makefile [new file with mode: 0644]
llvm_clang/block4/LLVMipo/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/Makefile [new file with mode: 0644]
llvm_clang/block4/Makefile.inc [new file with mode: 0644]
llvm_clang/block4/clangARCMigrate/Makefile [new file with mode: 0644]
llvm_clang/block4/clangARCMigrate/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/clangAST/Makefile [new file with mode: 0644]
llvm_clang/block4/clangAST/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/clangAnalysis/Makefile [new file with mode: 0644]
llvm_clang/block4/clangAnalysis/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/clangBasic/Makefile [new file with mode: 0644]
llvm_clang/block4/clangBasic/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/clangCodeGen/Makefile [new file with mode: 0644]
llvm_clang/block4/clangCodeGen/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/clangDriver/Makefile [new file with mode: 0644]
llvm_clang/block4/clangDriver/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/clangEdit/Makefile [new file with mode: 0644]
llvm_clang/block4/clangEdit/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/clangFrontend/Makefile [new file with mode: 0644]
llvm_clang/block4/clangFrontend/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/clangFrontendTool/Makefile [new file with mode: 0644]
llvm_clang/block4/clangFrontendTool/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/clangLex/Makefile [new file with mode: 0644]
llvm_clang/block4/clangLex/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/clangParse/Makefile [new file with mode: 0644]
llvm_clang/block4/clangParse/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/clangRewrite/Makefile [new file with mode: 0644]
llvm_clang/block4/clangRewrite/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/clangRewriteFrontend/Makefile [new file with mode: 0644]
llvm_clang/block4/clangRewriteFrontend/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/clangSema/Makefile [new file with mode: 0644]
llvm_clang/block4/clangSema/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/clangSerialization/Makefile [new file with mode: 0644]
llvm_clang/block4/clangSerialization/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/clangStaticAnalyzerCheckers/Makefile [new file with mode: 0644]
llvm_clang/block4/clangStaticAnalyzerCheckers/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/clangStaticAnalyzerCore/Makefile [new file with mode: 0644]
llvm_clang/block4/clangStaticAnalyzerCore/Makefile.sources [new file with mode: 0644]
llvm_clang/block4/clangStaticAnalyzerFrontend/Makefile [new file with mode: 0644]
llvm_clang/block4/clangStaticAnalyzerFrontend/Makefile.sources [new file with mode: 0644]
llvm_clang/block5/Makefile [new file with mode: 0644]
llvm_clang/block5/Makefile.inc [new file with mode: 0644]
llvm_clang/block5/clang/Makefile [new file with mode: 0644]
llvm_clang/block5/clang/clang.1 [new file with mode: 0644]
llvm_clang/block5/include/Makefile [new file with mode: 0644]
llvm_clang/block5/include/Makefile.sources [new file with mode: 0644]
tools/tools/llvm_generator/Makefile [new file with mode: 0644]
tools/tools/llvm_generator/README [new file with mode: 0644]
tools/tools/llvm_generator/patches/patch-tools_clang_lib_Frontend_InitHeaderSearch.cpp [new file with mode: 0644]
tools/tools/llvm_generator/scrape_headers.awk [new file with mode: 0644]
tools/tools/llvm_generator/scrape_library.awk [new file with mode: 0644]
tools/tools/llvm_generator/scrape_tablegen.awk [new file with mode: 0644]
usr.bin/objformat/objformat.c

index 4c05462..5ea24ba 100644 (file)
@@ -77,6 +77,9 @@ SUBDIR+= usr.bin
 .if exists(${.CURDIR}/usr.sbin)
 SUBDIR+= usr.sbin
 .endif
+#.if exists(${.CURDIR}/llvm_clang)
+#SUBDIR+= llvm_clang
+#.endif
 
 .if exists(${.CURDIR}/etc)
 SUBDIR+= etc
index 323fa6f..9bbc1c9 100644 (file)
@@ -70,6 +70,8 @@
         ..
     ..
     libdata
+        clang
+        ..
         gcc47
             objc
             ..
             elf
             ..
         ..
+       clang
+       ..
         custom
         ..
         gcc47
diff --git a/llvm_clang/Makefile b/llvm_clang/Makefile
new file mode 100644 (file)
index 0000000..6ef58e0
--- /dev/null
@@ -0,0 +1,5 @@
+# Directories must be executed serially
+
+SUBDIR= block1 block2 block3 block4 block5
+
+.include <bsd.subdir.mk>
diff --git a/llvm_clang/block1/LLVMSupport/Makefile b/llvm_clang/block1/LLVMSupport/Makefile
new file mode 100644 (file)
index 0000000..b9a0366
--- /dev/null
@@ -0,0 +1,10 @@
+# Static makefile
+beforedepend: libLLVMSupport.a
+.include "${.CURDIR}/Makefile.sources"
+
+${SRCS}:       llvm/Config/Targets.def \
+               llvm/Config/AsmPrinters.def \
+               llvm/Config/AsmParsers.def \
+               llvm/Config/Disassemblers.def
+
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block1/LLVMSupport/Makefile.sources b/llvm_clang/block1/LLVMSupport/Makefile.sources
new file mode 100644 (file)
index 0000000..daebe28
--- /dev/null
@@ -0,0 +1,101 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMSupport
+
+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 \
+
+HDRDIR=        llvm/Support
+
+SRCDIR= lib/Support
diff --git a/llvm_clang/block1/LLVMTableGen/Makefile b/llvm_clang/block1/LLVMTableGen/Makefile
new file mode 100644 (file)
index 0000000..2ed2492
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+beforedepend: libLLVMTableGen.a
+.include "${.CURDIR}/Makefile.sources"
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block1/LLVMTableGen/Makefile.sources b/llvm_clang/block1/LLVMTableGen/Makefile.sources
new file mode 100644 (file)
index 0000000..a3e06c3
--- /dev/null
@@ -0,0 +1,16 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMTableGen
+
+SRCS=  Error.cpp \
+       Main.cpp \
+       Record.cpp \
+       SetTheory.cpp \
+       StringMatcher.cpp \
+       TableGenBackend.cpp \
+       TGLexer.cpp \
+       TGParser.cpp \
+
+HDRDIR=        llvm/TableGen
+
+SRCDIR= lib/TableGen
diff --git a/llvm_clang/block1/Makefile b/llvm_clang/block1/Makefile
new file mode 100644 (file)
index 0000000..0c9a7ed
--- /dev/null
@@ -0,0 +1,6 @@
+# maximum parallelism
+SUBDIR_ORDERED=
+
+SUBDIR=        LLVMSupport LLVMTableGen
+
+.include <bsd.subdir.mk>
diff --git a/llvm_clang/block1/Makefile.generated b/llvm_clang/block1/Makefile.generated
new file mode 100644 (file)
index 0000000..3aacc6e
--- /dev/null
@@ -0,0 +1,55 @@
+# Commonly used generation targets
+
+llvm/Support/DataTypes.h: ${TOP_LLVM}/include/llvm/Support/DataTypes.h.cmake
+       mkdir -p ${.TARGET:H}
+       sed -e 's|#cmakedefine|#define|' \
+               -e 's|$${HAVE_INTTYPES_H}|1|' \
+               -e 's|$${HAVE_STDINT_H}|1|' \
+               -e 's|$${HAVE_UINT64_T}|1|' \
+               -e 's|$${HAVE_U_INT64_T}|1|' ${.ALLSRC} > ${.TARGET}
+
+.for X in config.h llvm-config.h
+llvm/Config/${X}: ${.CURDIR}/../../block1/configuration/${X}
+       mkdir -p ${.TARGET:H}
+       cp ${.ALLSRC} ${.TARGET}
+.endfor
+
+DEFS=  Targets/LLVM_TARGET \
+       AsmPrinters/LLVM_ASM_PRINTER \
+       Disassemblers/LLVM_DISASSEMBLER \
+       AsmParsers/LLVM_ASM_PARSER
+
+.for D in ${DEFS}
+llvm/Config/${D:H}.def:
+       mkdir -p ${.TARGET:H}
+       @echo "#ifndef ${D:T}" > ${.TARGET}
+       @echo "#  error Please define the macro ${D:T}(TargetName)" >> ${.TARGET}
+       @echo "#endif" >> ${.TARGET}
+       @echo >> ${.TARGET}
+       @echo "${D:T}(X86)" >> ${.TARGET}
+.if "${D:H}" == "Targets"
+       @echo "${D:T}(CppBackend)" >> ${.TARGET}
+.endif
+.if defined(CLANG_EXTRA_TARGETS)
+.   if ${CLANG_EXTRA_TARGETS:MAArch64}
+       @echo "${D:T}(AArch64)" >> ${.TARGET}
+.   endif
+.   if ${CLANG_EXTRA_TARGETS:MAMDGPU}
+.      if "${D:H}" != "Disassemblers"
+       @echo "${D:T}(AMDGPU)" >> ${.TARGET}
+.      endif
+.   endif
+.   if ${CLANG_EXTRA_TARGETS:MARM}
+       @echo "${D:T}(ARM)" >> ${.TARGET}
+.   endif
+.   if ${CLANG_EXTRA_TARGETS:MMips}
+       @echo "${D:T}(Mips)" >> ${.TARGET}
+.   endif
+.   if ${CLANG_EXTRA_TARGETS:MPowerPC}
+       @echo "${D:T}(PowerPC)" >> ${.TARGET}
+.   endif
+.endif
+       @echo >> ${.TARGET}
+       @echo "#undef ${D:T}" >> ${.TARGET}
+       @echo "${D:H}.def created."
+.endfor
diff --git a/llvm_clang/block1/Makefile.inc b/llvm_clang/block1/Makefile.inc
new file mode 100644 (file)
index 0000000..58f3b17
--- /dev/null
@@ -0,0 +1,22 @@
+INTERNALLIB=   yes
+TOP_LLVM=      ${.CURDIR}/../../../contrib/llvm
+CFLAGS+=       -I${.OBJDIR} \
+               -I${TOP_LLVM}/include \
+               -I${TOP_LLVM}/include/${HDRDIR}
+
+CFLAGS+=       -DGTEST_HAS_RTTI=0 \
+               -D__STDC_CONSTANT_MACROS \
+               -D__STDC_FORMAT_MACROS \
+               -D__STDC_LIMIT_MACROS
+
+CXXFLAGS+=     -std=c++11 -fno-exceptions -fno-rtti
+
+${SRCS}:       llvm/Support/DataTypes.h \
+               llvm/Config/llvm-config.h \
+               llvm/Config/config.h
+
+CLEANDIRS=     llvm
+
+.PATH:         ${TOP_LLVM}/${SRCDIR}
+
+.include "${.CURDIR}/../Makefile.generated"
diff --git a/llvm_clang/block1/configuration/Version.inc b/llvm_clang/block1/configuration/Version.inc
new file mode 100644 (file)
index 0000000..86e4395
--- /dev/null
@@ -0,0 +1,4 @@
+#define CLANG_VERSION 3.8.0
+#define CLANG_VERSION_MAJOR 3
+#define CLANG_VERSION_MINOR 8
+#define CLANG_VERSION_PATCHLEVEL 0
diff --git a/llvm_clang/block1/configuration/config.h b/llvm_clang/block1/configuration/config.h
new file mode 100644 (file)
index 0000000..c6a308d
--- /dev/null
@@ -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. */
+#define HAVE_LIBDL 1
+
+/* 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. */
+#define HAVE_LINK_H 1
+
+/* 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. */
+/* #undef HAVE_MALLOC_H */
+
+/* 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. */
+/* #undef HAVE_TERMINFO */
+
+/* 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. */
+/* #undef HAVE_VALGRIND_VALGRIND_H */
+
+/* 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 "x86_64-pc-dragonfly"
+
+/* 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 "x86_64-pc-dragonfly"
+
+/* 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 0
+
+/* LLVM version string */
+#define LLVM_VERSION_STRING "3.8.0"
+
+/* 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.0"
+
+/* 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.0"
+
+/* 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/llvm_clang/block1/configuration/config.h.clang b/llvm_clang/block1/configuration/config.h.clang
new file mode 100644 (file)
index 0000000..5e6d58b
--- /dev/null
@@ -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.0"
+
+/* Linker version detected at compile time. */
+/* #undef HOST_LINK_VERSION */
+
+#endif
diff --git a/llvm_clang/block1/configuration/llvm-config.h b/llvm_clang/block1/configuration/llvm-config.h
new file mode 100644 (file)
index 0000000..58f98fe
--- /dev/null
@@ -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 "x86_64-pc-dragonfly"
+
+/* 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 "x86_64-pc-dragonfly"
+
+/* 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 0
+
+/* LLVM version string */
+#define LLVM_VERSION_STRING "3.8.0"
+
+/* Define if we link Polly to the tools */
+/* #undef LINK_POLLY_INTO_TOOLS */
+
+#endif
diff --git a/llvm_clang/block2/Makefile b/llvm_clang/block2/Makefile
new file mode 100644 (file)
index 0000000..95be7e0
--- /dev/null
@@ -0,0 +1,6 @@
+# maximum parallelism
+SUBDIR_ORDERED=
+
+SUBDIR=        llvm-tblgen clang-tblgen
+
+.include <bsd.subdir.mk>
diff --git a/llvm_clang/block2/Makefile.inc b/llvm_clang/block2/Makefile.inc
new file mode 100644 (file)
index 0000000..b75fd7d
--- /dev/null
@@ -0,0 +1,31 @@
+TOP_LLVM=      ${.CURDIR}/../../../contrib/llvm
+CFLAGS+=       -I${.OBJDIR} \
+               -I${TOP_LLVM}/include
+
+CFLAGS+=       -DGTEST_HAS_RTTI=0 \
+               -D__STDC_CONSTANT_MACROS \
+               -D__STDC_FORMAT_MACROS \
+               -D__STDC_LIMIT_MACROS
+
+CXXFLAGS+=     -std=c++11 -fno-exceptions -fno-rtti
+
+${SRCS}:       llvm/Support/DataTypes.h \
+               llvm/Config/llvm-config.h \
+               llvm/Config/config.h
+
+CLEANDIRS=     llvm
+
+LLVM_LIBS=     ${.OBJDIR}/../../block1/LLVMSupport/libLLVMSupport.a \
+               ${.OBJDIR}/../../block1/LLVMTableGen/libLLVMTableGen.a \
+               ${.OBJDIR}/../../block1/LLVMSupport/libLLVMSupport.a
+
+LDADD=         -lpthread -lz -lm ${LLVM_LIBS}
+
+NOMAN=         yes
+
+.PATH:         ${TOP_LLVM}/${SRCDIR}
+
+.include "${.CURDIR}/../../block1/Makefile.generated"
+
+install:
+       # don't install the table generators
diff --git a/llvm_clang/block2/clang-tblgen/Makefile b/llvm_clang/block2/clang-tblgen/Makefile
new file mode 100644 (file)
index 0000000..5c0532d
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+beforedepend: clang-tblgen
+.include "${.CURDIR}/Makefile.sources"
+.include <bsd.prog.mk>
diff --git a/llvm_clang/block2/clang-tblgen/Makefile.sources b/llvm_clang/block2/clang-tblgen/Makefile.sources
new file mode 100644 (file)
index 0000000..391e183
--- /dev/null
@@ -0,0 +1,15 @@
+# Automatically generated.  Do not edit!
+
+PROG_CXX=      clang-tblgen
+
+SRCS=  ClangASTNodesEmitter.cpp \
+       ClangAttrEmitter.cpp \
+       ClangCommentCommandInfoEmitter.cpp \
+       ClangCommentHTMLNamedCharacterReferenceEmitter.cpp \
+       ClangCommentHTMLTagsEmitter.cpp \
+       ClangDiagnosticsEmitter.cpp \
+       ClangSACheckersEmitter.cpp \
+       NeonEmitter.cpp \
+       TableGen.cpp \
+
+SRCDIR= tools/clang/utils/TableGen
diff --git a/llvm_clang/block2/llvm-tblgen/Makefile b/llvm_clang/block2/llvm-tblgen/Makefile
new file mode 100644 (file)
index 0000000..1b85d85
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+beforedepend: llvm-tblgen
+.include "${.CURDIR}/Makefile.sources"
+.include <bsd.prog.mk>
diff --git a/llvm_clang/block2/llvm-tblgen/Makefile.sources b/llvm_clang/block2/llvm-tblgen/Makefile.sources
new file mode 100644 (file)
index 0000000..53950fe
--- /dev/null
@@ -0,0 +1,38 @@
+# Automatically generated.  Do not edit!
+
+PROG_CXX=      llvm-tblgen
+
+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 \
+
+SRCDIR= utils/TableGen
diff --git a/llvm_clang/block3/Makefile b/llvm_clang/block3/Makefile
new file mode 100644 (file)
index 0000000..4fbb21d
--- /dev/null
@@ -0,0 +1,182 @@
+# This creates inc files generated by llvm-tblgen program
+#
+# Target intentionally left off: BPF, Hexagon, MSP430, NVPTX, Sparc, Xcore
+
+TOP_LLVM=      ${.CURDIR}/../../contrib/llvm
+
+.PATH:         ${TOP_LLVM}/include/llvm/IR
+.PATH:         ${TOP_LLVM}/lib/IR
+.PATH:         ${TOP_LLVM}/lib/Target/AArch64
+.PATH:         ${TOP_LLVM}/lib/Target/AMDGPU
+.PATH:         ${TOP_LLVM}/lib/Target/ARM
+.PATH:         ${TOP_LLVM}/lib/Target/PowerPC
+.PATH:         ${TOP_LLVM}/lib/Target/Mips
+.PATH:         ${TOP_LLVM}/lib/Target/X86
+
+CLEANDIRS=     lib llvm clang
+
+TGTS=  AArch64 AMDGPU ARM PowerPC Mips X86
+TINX=  GenAsmMatcher/-gen-asm-matcher \
+       GenAsmWriter/-gen-asm-writer \
+       GenCallingConv/-gen-callingconv \
+       GenDAGISel/-gen-dag-isel \
+       GenDisassemblerTables/-gen-disassembler \
+       GenFastISel/-gen-fast-isel \
+       GenInstrInfo/-gen-instr-info \
+       GenMCCodeEmitter/-gen-emitter \
+       GenRegisterInfo/-gen-register-info \
+       GenSubtargetInfo/-gen-subtarget
+TINX_AArch64=  \
+       ${TINX} \
+       GenAsmWriter1/-gen-asm-writer,-asmwriternum=1 \
+       GenMCPseudoLowering/-gen-pseudo-lowering
+TINX_AMDGPU=   \
+       ${TINX:NGenFastISel*:NGenDisassembler*} \
+       GenDFAPacketizer/-gen-dfa-packetizer \
+       GenIntrinsics/-gen-tgt-intrinsic
+TINX_ARM=      \
+       ${TINX} \
+       GenMCPseudoLowering/-gen-pseudo-lowering
+TINX_PowerPC=  \
+       ${TINX}
+TINX_Mips=     \
+       ${TINX} \
+       GenMCPseudoLowering/-gen-pseudo-lowering
+TINX_X86=      \
+       ${TINX:NGenMCCodeEmitter*} \
+       GenAsmWriter1/-gen-asm-writer,-asmwriternum=1
+
+SING1= clang/Driver/Options.inc \
+       llvm/IR/Attributes.inc \
+       llvm/IR/Intrinsics.gen \
+       lib/IR/AttributesCompatFunc.inc
+
+.for T in ${TGTS}
+.  for FX in ${TINX_${T}:H}
+beforedepend:  lib/Target/${T}/${T:S/PowerPC/PPC/}${FX}.inc
+all:           lib/Target/${T}/${T:S/PowerPC/PPC/}${FX}.inc
+.  endfor
+.endfor
+beforedepend:  ${SING1}
+all:           ${SING1}
+       @echo LLVM block3 complete
+
+TGEN=  ${.OBJDIR}/../block2/llvm-tblgen/llvm-tblgen
+TGINCS=        -I${TOP_LLVM}/include/llvm/IR \
+       -I${TOP_LLVM}/include \
+       -I${TOP_LLVM}/lib/Target
+TXINCS=        -I${TOP_LLVM}/include \
+       -I${TOP_LLVM}/lib/Target
+
+clang/Driver/Options.inc: Options.td ${TGEN}
+       mkdir -p ${.TARGET:H}
+       ${TGEN} -gen-opt-parser-defs ${CIOPT} ${.ALLSRC:M*.td} -o ${.TARGET}
+
+llvm/IR/Attributes.inc: Attributes.td ${TGEN}
+       mkdir -p ${.TARGET:H}
+       ${TGEN} -gen-attrs ${TGINCS} ${.ALLSRC:M*.td} -o ${.TARGET}
+
+llvm/IR/Intrinsics.gen: Intrinsics.td ${TGEN}
+       mkdir -p ${.TARGET:H}
+       ${TGEN} -gen-intrinsic ${TGINCS} ${.ALLSRC:M*.td} -o ${.TARGET}
+
+lib/IR/AttributesCompatFunc.inc: AttributesCompatFunc.td ${TGEN}
+       mkdir -p ${.TARGET:H}
+       ${TGEN} -gen-attrs ${TGINCS} ${.ALLSRC:M*.td} -o ${.TARGET}
+
+
+.for T in ${TGTS}
+.  for FX in ${TINX_${T}}
+lib/Target/${T}/${T:S/PowerPC/PPC/}${FX:H}.inc: ${T:S/PowerPC/PPC/}.td ${TGEN}
+       mkdir -p lib/Target/${T}
+       ${TGEN} ${FX:T:S|,| |} ${TXINCS} -I${TOP_LLVM}/lib/Target/${T} \
+               ${.ALLSRC:M*.td} -o ${.TARGET}
+.  endfor
+.endfor
+
+# CLANG Generations
+
+.PATH: ${TOP_LLVM}/tools/clang/include/clang/AST
+.PATH: ${TOP_LLVM}/tools/clang/include/clang/Basic
+.PATH: ${TOP_LLVM}/tools/clang/include/clang/Driver
+
+CGEN=  ${.OBJDIR}/../block2/clang-tblgen/clang-tblgen
+CXINCS=        -I${TOP_LLVM}/tools/clang/include \
+       -I${TOP_LLVM}/lib/Target
+CID1=  ${CXINCS} -I${TOP_LLVM}/tools/clang/include/clang/AST
+CID2=  ${CXINCS} -I${TOP_LLVM}/tools/clang/include/clang/Sema
+CID3=  ${CXINCS} -I${TOP_LLVM}/tools/clang/include/clang/Basic
+CID4=  ${CXINCS} -I${TOP_LLVM}/tools/clang/include/clang/Serialization
+CID5=  ${CXINCS} -I${TOP_LLVM}/tools/clang/include/clang/Parse
+CIOPT= ${CXINCS} -I${TOP_LLVM}/tools/clang/include/clang/Driver -I${TOP_LLVM}/include
+CXAST= -I${TOP_LLVM}/tools/clang/lib/Headers \
+        -I${TOP_LLVM}/lib/Target \
+        -I${TOP_LLVM}/include
+CLX1=  Attrs/-gen-clang-attr-classes/Attr.td \
+       AttrImpl/-gen-clang-attr-impl/Attr.td \
+       AttrDump/-gen-clang-attr-dump/Attr.td \
+       AttrVisitor/-gen-clang-attr-ast-visitor/Attr.td \
+       StmtNodes/-gen-clang-stmt-nodes/StmtNodes.td \
+       DeclNodes/-gen-clang-decl-nodes/DeclNodes.td \
+       CommentNodes/-gen-clang-comment-nodes/CommentNodes.td \
+       CommentHTMLTags/-gen-clang-comment-html-tags/CommentHTMLTags.td \
+       CommentHTMLTagsProperties/-gen-clang-comment-html-tags-properties/CommentHTMLTags.td \
+       CommentHTMLNamedCharacterReferences/-gen-clang-comment-html-named-character-references/CommentHTMLNamedCharacterReferences.td \
+       CommentCommandInfo/-gen-clang-comment-command-info/CommentCommands.td \
+       CommentCommandList/-gen-clang-comment-command-list/CommentCommands.td
+CLX2=  AttrTemplateInstantiate/-gen-clang-attr-template-instantiate/Attr.td \
+       AttrParsedAttrList/-gen-clang-attr-parsed-attr-list/Attr.td \
+       AttrParsedAttrKinds/-gen-clang-attr-parsed-attr-kinds/Attr.td \
+       AttrSpellingListIndex/-gen-clang-attr-spelling-index/Attr.td \
+       AttrParsedAttrImpl/-gen-clang-attr-parsed-attr-impl/Attr.td
+CLX3=  DiagnosticAnalysisKinds/-gen-clang-diags-defs,-clang-component=Analysis/Diagnostic.td \
+       DiagnosticASTKinds/-gen-clang-diags-defs,-clang-component=AST/Diagnostic.td \
+       DiagnosticCommentKinds/-gen-clang-diags-defs,-clang-component=Comment/Diagnostic.td \
+       DiagnosticCommonKinds/-gen-clang-diags-defs,-clang-component=Common/Diagnostic.td \
+       DiagnosticDriverKinds/-gen-clang-diags-defs,-clang-component=Driver/Diagnostic.td \
+       DiagnosticFrontendKinds/-gen-clang-diags-defs,-clang-component=Frontend/Diagnostic.td \
+       DiagnosticLexKinds/-gen-clang-diags-defs,-clang-component=Lex/Diagnostic.td \
+       DiagnosticParseKinds/-gen-clang-diags-defs,-clang-component=Parse/Diagnostic.td \
+       DiagnosticSemaKinds/-gen-clang-diags-defs,-clang-component=Sema/Diagnostic.td \
+       DiagnosticSerializationKinds/-gen-clang-diags-defs,-clang-component=Serialization/Diagnostic.td \
+       DiagnosticGroups/-gen-clang-diag-groups/Diagnostic.td \
+       DiagnosticIndexName/-gen-clang-diags-index-name/Diagnostic.td \
+       AttrList/-gen-clang-attr-list/Attr.td \
+       AttrHasAttributeImpl/-gen-clang-attr-has-attribute-impl/Attr.td \
+       arm_neon/-gen-arm-neon-sema/arm_neon.td
+CLX4=  AttrPCHRead/-gen-clang-attr-pch-read/Attr.td \
+       AttrPCHWrite/-gen-clang-attr-pch-write/Attr.td
+CLX5=  AttrParserStringSwitches/-gen-clang-attr-parser-string-switches/Attr.td
+
+SING2= clang/Basic/Version.inc \
+       clang/Config/config.h \
+       clang/Headers/arm_neon.h
+
+.for ZZ in 1/AST 2/Sema 3/Basic 4/Serialization 5/Parse
+.  for FX in ${CLX${ZZ:H}:H:H}
+beforedepend:  clang/${ZZ:T}/${FX}.inc
+all:           clang/${ZZ:T}/${FX}.inc
+.  endfor
+.  for FX in ${CLX${ZZ:H}}
+clang/${ZZ:T}/${FX:H:H}.inc: ${FX:T} ${CGEN}
+       mkdir -p ${.TARGET:H}
+       ${CGEN} ${FX:H:T:S|,| |} ${CID${ZZ:H}} ${.ALLSRC:M*.td} -o ${.TARGET}
+.  endfor
+.endfor
+
+beforedepend:  ${SING2}
+all:           ${SING2}
+
+clang/Basic/Version.inc: ${.CURDIR}/../block1/configuration/Version.inc
+       mkdir -p ${.TARGET:H}
+       cp ${.ALLSRC} ${.TARGET}
+
+clang/Config/config.h: ${.CURDIR}/../block1/configuration/config.h.clang
+       mkdir -p ${.TARGET:H}
+       cp ${.ALLSRC} ${.TARGET}
+
+clang/Headers/arm_neon.h: arm_neon.td ${CGEN}
+       mkdir -p ${.TARGET:H}
+       ${CGEN} -gen-arm-neon ${CXAST} ${.ALLSRC:M*.td} -o ${.TARGET}
+
+.include <bsd.prog.mk>
diff --git a/llvm_clang/block4/LLVMAArch64AsmParser/Makefile b/llvm_clang/block4/LLVMAArch64AsmParser/Makefile
new file mode 100644 (file)
index 0000000..3c353cc
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_ARM64}
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMAArch64AsmParser/Makefile.sources b/llvm_clang/block4/LLVMAArch64AsmParser/Makefile.sources
new file mode 100644 (file)
index 0000000..9eef8a4
--- /dev/null
@@ -0,0 +1,7 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMAArch64AsmParser
+
+SRCS=  AArch64AsmParser.cpp \
+
+SRCDIR= lib/Target/AArch64/AsmParser
diff --git a/llvm_clang/block4/LLVMAArch64AsmPrinter/Makefile b/llvm_clang/block4/LLVMAArch64AsmPrinter/Makefile
new file mode 100644 (file)
index 0000000..3c353cc
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_ARM64}
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMAArch64AsmPrinter/Makefile.sources b/llvm_clang/block4/LLVMAArch64AsmPrinter/Makefile.sources
new file mode 100644 (file)
index 0000000..91e7e18
--- /dev/null
@@ -0,0 +1,7 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMAArch64AsmPrinter
+
+SRCS=  AArch64InstPrinter.cpp \
+
+SRCDIR= lib/Target/AArch64/InstPrinter
diff --git a/llvm_clang/block4/LLVMAArch64CodeGen/Makefile b/llvm_clang/block4/LLVMAArch64CodeGen/Makefile
new file mode 100644 (file)
index 0000000..3c353cc
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_ARM64}
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMAArch64CodeGen/Makefile.sources b/llvm_clang/block4/LLVMAArch64CodeGen/Makefile.sources
new file mode 100644 (file)
index 0000000..262dfef
--- /dev/null
@@ -0,0 +1,34 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMAArch64CodeGen
+
+SRCS=  AArch64A57FPLoadBalancing.cpp \
+       AArch64AddressTypePromotion.cpp \
+       AArch64AdvSIMDScalarPass.cpp \
+       AArch64AsmPrinter.cpp \
+       AArch64BranchRelaxation.cpp \
+       AArch64CleanupLocalDynamicTLSPass.cpp \
+       AArch64CollectLOH.cpp \
+       AArch64ConditionalCompares.cpp \
+       AArch64DeadRegisterDefinitionsPass.cpp \
+       AArch64ExpandPseudoInsts.cpp \
+       AArch64FastISel.cpp \
+       AArch64A53Fix835769.cpp \
+       AArch64FrameLowering.cpp \
+       AArch64ConditionOptimizer.cpp \
+       AArch64ISelDAGToDAG.cpp \
+       AArch64ISelLowering.cpp \
+       AArch64InstrInfo.cpp \
+       AArch64LoadStoreOptimizer.cpp \
+       AArch64MCInstLower.cpp \
+       AArch64PromoteConstant.cpp \
+       AArch64PBQPRegAlloc.cpp \
+       AArch64RegisterInfo.cpp \
+       AArch64SelectionDAGInfo.cpp \
+       AArch64StorePairSuppress.cpp \
+       AArch64Subtarget.cpp \
+       AArch64TargetMachine.cpp \
+       AArch64TargetObjectFile.cpp \
+       AArch64TargetTransformInfo.cpp \
+
+SRCDIR= lib/Target/AArch64
diff --git a/llvm_clang/block4/LLVMAArch64Desc/Makefile b/llvm_clang/block4/LLVMAArch64Desc/Makefile
new file mode 100644 (file)
index 0000000..3c353cc
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_ARM64}
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMAArch64Desc/Makefile.sources b/llvm_clang/block4/LLVMAArch64Desc/Makefile.sources
new file mode 100644 (file)
index 0000000..7f8491f
--- /dev/null
@@ -0,0 +1,15 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMAArch64Desc
+
+SRCS=  AArch64AsmBackend.cpp \
+       AArch64ELFObjectWriter.cpp \
+       AArch64ELFStreamer.cpp \
+       AArch64MCAsmInfo.cpp \
+       AArch64MCCodeEmitter.cpp \
+       AArch64MCExpr.cpp \
+       AArch64MCTargetDesc.cpp \
+       AArch64MachObjectWriter.cpp \
+       AArch64TargetStreamer.cpp \
+
+SRCDIR= lib/Target/AArch64/MCTargetDesc
diff --git a/llvm_clang/block4/LLVMAArch64Disassembler/Makefile b/llvm_clang/block4/LLVMAArch64Disassembler/Makefile
new file mode 100644 (file)
index 0000000..3c353cc
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_ARM64}
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMAArch64Disassembler/Makefile.sources b/llvm_clang/block4/LLVMAArch64Disassembler/Makefile.sources
new file mode 100644 (file)
index 0000000..023c1fc
--- /dev/null
@@ -0,0 +1,8 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMAArch64Disassembler
+
+SRCS=  AArch64Disassembler.cpp \
+       AArch64ExternalSymbolizer.cpp \
+
+SRCDIR= lib/Target/AArch64/Disassembler
diff --git a/llvm_clang/block4/LLVMAArch64Info/Makefile b/llvm_clang/block4/LLVMAArch64Info/Makefile
new file mode 100644 (file)
index 0000000..3c353cc
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_ARM64}
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMAArch64Info/Makefile.sources b/llvm_clang/block4/LLVMAArch64Info/Makefile.sources
new file mode 100644 (file)
index 0000000..0649458
--- /dev/null
@@ -0,0 +1,7 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMAArch64Info
+
+SRCS=  AArch64TargetInfo.cpp \
+
+SRCDIR= lib/Target/AArch64/TargetInfo
diff --git a/llvm_clang/block4/LLVMAArch64Utils/Makefile b/llvm_clang/block4/LLVMAArch64Utils/Makefile
new file mode 100644 (file)
index 0000000..3c353cc
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_ARM64}
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMAArch64Utils/Makefile.sources b/llvm_clang/block4/LLVMAArch64Utils/Makefile.sources
new file mode 100644 (file)
index 0000000..f321102
--- /dev/null
@@ -0,0 +1,7 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMAArch64Utils
+
+SRCS=  AArch64BaseInfo.cpp \
+
+SRCDIR= lib/Target/AArch64/Utils
diff --git a/llvm_clang/block4/LLVMAMDGPUAsmParser/Makefile b/llvm_clang/block4/LLVMAMDGPUAsmParser/Makefile
new file mode 100644 (file)
index 0000000..798b8b9
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_AMDGPU}
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMAMDGPUAsmParser/Makefile.sources b/llvm_clang/block4/LLVMAMDGPUAsmParser/Makefile.sources
new file mode 100644 (file)
index 0000000..ff5f36f
--- /dev/null
@@ -0,0 +1,7 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMAMDGPUAsmParser
+
+SRCS=  AMDGPUAsmParser.cpp \
+
+SRCDIR= lib/Target/AMDGPU/AsmParser
diff --git a/llvm_clang/block4/LLVMAMDGPUAsmPrinter/Makefile b/llvm_clang/block4/LLVMAMDGPUAsmPrinter/Makefile
new file mode 100644 (file)
index 0000000..798b8b9
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_AMDGPU}
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMAMDGPUAsmPrinter/Makefile.sources b/llvm_clang/block4/LLVMAMDGPUAsmPrinter/Makefile.sources
new file mode 100644 (file)
index 0000000..c86d4a7
--- /dev/null
@@ -0,0 +1,7 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMAMDGPUAsmPrinter
+
+SRCS=  AMDGPUInstPrinter.cpp \
+
+SRCDIR= lib/Target/AMDGPU/InstPrinter
diff --git a/llvm_clang/block4/LLVMAMDGPUCodeGen/Makefile b/llvm_clang/block4/LLVMAMDGPUCodeGen/Makefile
new file mode 100644 (file)
index 0000000..798b8b9
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_AMDGPU}
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMAMDGPUCodeGen/Makefile.sources b/llvm_clang/block4/LLVMAMDGPUCodeGen/Makefile.sources
new file mode 100644 (file)
index 0000000..8c334fe
--- /dev/null
@@ -0,0 +1,55 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMAMDGPUCodeGen
+
+SRCS=  AMDILCFGStructurizer.cpp \
+       AMDGPUAlwaysInlinePass.cpp \
+       AMDGPUAnnotateKernelFeatures.cpp \
+       AMDGPUAnnotateUniformValues.cpp \
+       AMDGPUAsmPrinter.cpp \
+       AMDGPUDiagnosticInfoUnsupported.cpp \
+       AMDGPUFrameLowering.cpp \
+       AMDGPUTargetObjectFile.cpp \
+       AMDGPUIntrinsicInfo.cpp \
+       AMDGPUISelDAGToDAG.cpp \
+       AMDGPUMCInstLower.cpp \
+       AMDGPUMachineFunction.cpp \
+       AMDGPUOpenCLImageTypeLoweringPass.cpp \
+       AMDGPUSubtarget.cpp \
+       AMDGPUTargetMachine.cpp \
+       AMDGPUTargetTransformInfo.cpp \
+       AMDGPUISelLowering.cpp \
+       AMDGPUInstrInfo.cpp \
+       AMDGPUPromoteAlloca.cpp \
+       AMDGPURegisterInfo.cpp \
+       R600ClauseMergePass.cpp \
+       R600ControlFlowFinalizer.cpp \
+       R600EmitClauseMarkers.cpp \
+       R600ExpandSpecialInstrs.cpp \
+       R600InstrInfo.cpp \
+       R600ISelLowering.cpp \
+       R600MachineFunctionInfo.cpp \
+       R600MachineScheduler.cpp \
+       R600OptimizeVectorRegisters.cpp \
+       R600Packetizer.cpp \
+       R600RegisterInfo.cpp \
+       R600TextureIntrinsicsReplacer.cpp \
+       SIAnnotateControlFlow.cpp \
+       SIFixControlFlowLiveIntervals.cpp \
+       SIFixSGPRCopies.cpp \
+       SIFixSGPRLiveRanges.cpp \
+       SIFoldOperands.cpp \
+       SIFrameLowering.cpp \
+       SIInsertWaits.cpp \
+       SIInstrInfo.cpp \
+       SIISelLowering.cpp \
+       SILoadStoreOptimizer.cpp \
+       SILowerControlFlow.cpp \
+       SILowerI1Copies.cpp \
+       SIMachineFunctionInfo.cpp \
+       SIMachineScheduler.cpp \
+       SIRegisterInfo.cpp \
+       SIShrinkInstructions.cpp \
+       SITypeRewriter.cpp \
+
+SRCDIR= lib/Target/AMDGPU
diff --git a/llvm_clang/block4/LLVMAMDGPUDesc/Makefile b/llvm_clang/block4/LLVMAMDGPUDesc/Makefile
new file mode 100644 (file)
index 0000000..798b8b9
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_AMDGPU}
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMAMDGPUDesc/Makefile.sources b/llvm_clang/block4/LLVMAMDGPUDesc/Makefile.sources
new file mode 100644 (file)
index 0000000..29f7e11
--- /dev/null
@@ -0,0 +1,15 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMAMDGPUDesc
+
+SRCS=  AMDGPUAsmBackend.cpp \
+       AMDGPUELFObjectWriter.cpp \
+       AMDGPUELFStreamer.cpp \
+       AMDGPUMCCodeEmitter.cpp \
+       AMDGPUMCTargetDesc.cpp \
+       AMDGPUMCAsmInfo.cpp \
+       AMDGPUTargetStreamer.cpp \
+       R600MCCodeEmitter.cpp \
+       SIMCCodeEmitter.cpp \
+
+SRCDIR= lib/Target/AMDGPU/MCTargetDesc
diff --git a/llvm_clang/block4/LLVMAMDGPUInfo/Makefile b/llvm_clang/block4/LLVMAMDGPUInfo/Makefile
new file mode 100644 (file)
index 0000000..798b8b9
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_AMDGPU}
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMAMDGPUInfo/Makefile.sources b/llvm_clang/block4/LLVMAMDGPUInfo/Makefile.sources
new file mode 100644 (file)
index 0000000..2cacfb3
--- /dev/null
@@ -0,0 +1,7 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMAMDGPUInfo
+
+SRCS=  AMDGPUTargetInfo.cpp \
+
+SRCDIR= lib/Target/AMDGPU/TargetInfo
diff --git a/llvm_clang/block4/LLVMAMDGPUUtils/Makefile b/llvm_clang/block4/LLVMAMDGPUUtils/Makefile
new file mode 100644 (file)
index 0000000..798b8b9
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_AMDGPU}
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMAMDGPUUtils/Makefile.sources b/llvm_clang/block4/LLVMAMDGPUUtils/Makefile.sources
new file mode 100644 (file)
index 0000000..c58d322
--- /dev/null
@@ -0,0 +1,7 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMAMDGPUUtils
+
+SRCS=  AMDGPUBaseInfo.cpp \
+
+SRCDIR= lib/Target/AMDGPU/Utils
diff --git a/llvm_clang/block4/LLVMARMAsmParser/Makefile b/llvm_clang/block4/LLVMARMAsmParser/Makefile
new file mode 100644 (file)
index 0000000..12bbce3
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_ARM}
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMARMAsmParser/Makefile.sources b/llvm_clang/block4/LLVMARMAsmParser/Makefile.sources
new file mode 100644 (file)
index 0000000..38f6258
--- /dev/null
@@ -0,0 +1,7 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMARMAsmParser
+
+SRCS=  ARMAsmParser.cpp \
+
+SRCDIR= lib/Target/ARM/AsmParser
diff --git a/llvm_clang/block4/LLVMARMAsmPrinter/Makefile b/llvm_clang/block4/LLVMARMAsmPrinter/Makefile
new file mode 100644 (file)
index 0000000..12bbce3
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_ARM}
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMARMAsmPrinter/Makefile.sources b/llvm_clang/block4/LLVMARMAsmPrinter/Makefile.sources
new file mode 100644 (file)
index 0000000..9115e51
--- /dev/null
@@ -0,0 +1,7 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMARMAsmPrinter
+
+SRCS=  ARMInstPrinter.cpp \
+
+SRCDIR= lib/Target/ARM/InstPrinter
diff --git a/llvm_clang/block4/LLVMARMCodeGen/Makefile b/llvm_clang/block4/LLVMARMCodeGen/Makefile
new file mode 100644 (file)
index 0000000..12bbce3
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_ARM}
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMARMCodeGen/Makefile.sources b/llvm_clang/block4/LLVMARMCodeGen/Makefile.sources
new file mode 100644 (file)
index 0000000..3d664c0
--- /dev/null
@@ -0,0 +1,36 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMARMCodeGen
+
+SRCS=  A15SDOptimizer.cpp \
+       ARMAsmPrinter.cpp \
+       ARMBaseInstrInfo.cpp \
+       ARMBaseRegisterInfo.cpp \
+       ARMConstantIslandPass.cpp \
+       ARMConstantPoolValue.cpp \
+       ARMExpandPseudoInsts.cpp \
+       ARMFastISel.cpp \
+       ARMFrameLowering.cpp \
+       ARMHazardRecognizer.cpp \
+       ARMISelDAGToDAG.cpp \
+       ARMISelLowering.cpp \
+       ARMInstrInfo.cpp \
+       ARMLoadStoreOptimizer.cpp \
+       ARMMCInstLower.cpp \
+       ARMMachineFunctionInfo.cpp \
+       ARMRegisterInfo.cpp \
+       ARMOptimizeBarriersPass.cpp \
+       ARMSelectionDAGInfo.cpp \
+       ARMSubtarget.cpp \
+       ARMTargetMachine.cpp \
+       ARMTargetObjectFile.cpp \
+       ARMTargetTransformInfo.cpp \
+       MLxExpansionPass.cpp \
+       Thumb1FrameLowering.cpp \
+       Thumb1InstrInfo.cpp \
+       ThumbRegisterInfo.cpp \
+       Thumb2ITBlockPass.cpp \
+       Thumb2InstrInfo.cpp \
+       Thumb2SizeReduction.cpp \
+
+SRCDIR= lib/Target/ARM
diff --git a/llvm_clang/block4/LLVMARMDesc/Makefile b/llvm_clang/block4/LLVMARMDesc/Makefile
new file mode 100644 (file)
index 0000000..12bbce3
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_ARM}
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMARMDesc/Makefile.sources b/llvm_clang/block4/LLVMARMDesc/Makefile.sources
new file mode 100644 (file)
index 0000000..148811b
--- /dev/null
@@ -0,0 +1,20 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMARMDesc
+
+SRCS=  ARMAsmBackend.cpp \
+       ARMELFObjectWriter.cpp \
+       ARMELFObjectWriter.cpp \
+       ARMELFStreamer.cpp \
+       ARMMachObjectWriter.cpp \
+       ARMMachORelocationInfo.cpp \
+       ARMMCAsmInfo.cpp \
+       ARMMCCodeEmitter.cpp \
+       ARMMCExpr.cpp \
+       ARMMCTargetDesc.cpp \
+       ARMTargetStreamer.cpp \
+       ARMUnwindOpAsm.cpp \
+       ARMWinCOFFObjectWriter.cpp \
+       ARMWinCOFFStreamer.cpp \
+
+SRCDIR= lib/Target/ARM/MCTargetDesc
diff --git a/llvm_clang/block4/LLVMARMDisassembler/Makefile b/llvm_clang/block4/LLVMARMDisassembler/Makefile
new file mode 100644 (file)
index 0000000..12bbce3
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_ARM}
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMARMDisassembler/Makefile.sources b/llvm_clang/block4/LLVMARMDisassembler/Makefile.sources
new file mode 100644 (file)
index 0000000..66a5993
--- /dev/null
@@ -0,0 +1,7 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMARMDisassembler
+
+SRCS=  ARMDisassembler.cpp \
+
+SRCDIR= lib/Target/ARM/Disassembler
diff --git a/llvm_clang/block4/LLVMARMInfo/Makefile b/llvm_clang/block4/LLVMARMInfo/Makefile
new file mode 100644 (file)
index 0000000..12bbce3
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_ARM}
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMARMInfo/Makefile.sources b/llvm_clang/block4/LLVMARMInfo/Makefile.sources
new file mode 100644 (file)
index 0000000..4405ef4
--- /dev/null
@@ -0,0 +1,7 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMARMInfo
+
+SRCS=  ARMTargetInfo.cpp \
+
+SRCDIR= lib/Target/ARM/TargetInfo
diff --git a/llvm_clang/block4/LLVMAnalysis/Makefile b/llvm_clang/block4/LLVMAnalysis/Makefile
new file mode 100644 (file)
index 0000000..ff4869c
--- /dev/null
@@ -0,0 +1,3 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMAnalysis/Makefile.sources b/llvm_clang/block4/LLVMAnalysis/Makefile.sources
new file mode 100644 (file)
index 0000000..207ed73
--- /dev/null
@@ -0,0 +1,78 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMAnalysis
+
+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 \
+
+HDRDIR=        llvm/Analysis
+
+SRCDIR= lib/Analysis
diff --git a/llvm_clang/block4/LLVMAsmParser/Makefile b/llvm_clang/block4/LLVMAsmParser/Makefile
new file mode 100644 (file)
index 0000000..ff4869c
--- /dev/null
@@ -0,0 +1,3 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMAsmParser/Makefile.sources b/llvm_clang/block4/LLVMAsmParser/Makefile.sources
new file mode 100644 (file)
index 0000000..178abfc
--- /dev/null
@@ -0,0 +1,11 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMAsmParser
+
+SRCS=  LLLexer.cpp \
+       LLParser.cpp \
+       Parser.cpp \
+
+HDRDIR=        llvm/Analysis
+
+SRCDIR= lib/AsmParser
diff --git a/llvm_clang/block4/LLVMAsmPrinter/Makefile b/llvm_clang/block4/LLVMAsmPrinter/Makefile
new file mode 100644 (file)
index 0000000..ff4869c
--- /dev/null
@@ -0,0 +1,3 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMAsmPrinter/Makefile.sources b/llvm_clang/block4/LLVMAsmPrinter/Makefile.sources
new file mode 100644 (file)
index 0000000..39c34aa
--- /dev/null
@@ -0,0 +1,28 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMAsmPrinter
+
+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 \
+
+SRCDIR= lib/CodeGen/AsmPrinter
diff --git a/llvm_clang/block4/LLVMBitReader/Makefile b/llvm_clang/block4/LLVMBitReader/Makefile
new file mode 100644 (file)
index 0000000..ff4869c
--- /dev/null
@@ -0,0 +1,3 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMBitReader/Makefile.sources b/llvm_clang/block4/LLVMBitReader/Makefile.sources
new file mode 100644 (file)
index 0000000..0b33191
--- /dev/null
@@ -0,0 +1,11 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMBitReader
+
+SRCS=  BitReader.cpp \
+       BitcodeReader.cpp \
+       BitstreamReader.cpp \
+
+HDRDIR=        llvm/Bitcode
+
+SRCDIR= lib/Bitcode/Reader
diff --git a/llvm_clang/block4/LLVMBitWriter/Makefile b/llvm_clang/block4/LLVMBitWriter/Makefile
new file mode 100644 (file)
index 0000000..ff4869c
--- /dev/null
@@ -0,0 +1,3 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMBitWriter/Makefile.sources b/llvm_clang/block4/LLVMBitWriter/Makefile.sources
new file mode 100644 (file)
index 0000000..fa936be
--- /dev/null
@@ -0,0 +1,10 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMBitWriter
+
+SRCS=  BitWriter.cpp \
+       BitcodeWriter.cpp \
+       BitcodeWriterPass.cpp \
+       ValueEnumerator.cpp \
+
+SRCDIR= lib/Bitcode/Writer
diff --git a/llvm_clang/block4/LLVMCodeGen/Makefile b/llvm_clang/block4/LLVMCodeGen/Makefile
new file mode 100644 (file)
index 0000000..ff4869c
--- /dev/null
@@ -0,0 +1,3 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMCodeGen/Makefile.sources b/llvm_clang/block4/LLVMCodeGen/Makefile.sources
new file mode 100644 (file)
index 0000000..c740b64
--- /dev/null
@@ -0,0 +1,137 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMCodeGen
+
+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 \
+
+HDRDIR=        llvm/CodeGen
+HDRDIR=        llvm/CodeGen/PBQP
+
+SRCDIR= lib/CodeGen
diff --git a/llvm_clang/block4/LLVMCore/Makefile b/llvm_clang/block4/LLVMCore/Makefile
new file mode 100644 (file)
index 0000000..516a5c0
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+=       -I${.OBJDIR}/../../block3/lib/IR
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMCore/Makefile.sources b/llvm_clang/block4/LLVMCore/Makefile.sources
new file mode 100644 (file)
index 0000000..7bff741
--- /dev/null
@@ -0,0 +1,56 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMCore
+
+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 \
+
+HDRDIR=        llvm/IR
+
+SRCDIR= lib/IR
diff --git a/llvm_clang/block4/LLVMCppBackendCodeGen/Makefile b/llvm_clang/block4/LLVMCppBackendCodeGen/Makefile
new file mode 100644 (file)
index 0000000..ff4869c
--- /dev/null
@@ -0,0 +1,3 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMCppBackendCodeGen/Makefile.sources b/llvm_clang/block4/LLVMCppBackendCodeGen/Makefile.sources
new file mode 100644 (file)
index 0000000..20a7e97
--- /dev/null
@@ -0,0 +1,7 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMCppBackendCodeGen
+
+SRCS=  CPPBackend.cpp \
+
+SRCDIR= lib/Target/CppBackend
diff --git a/llvm_clang/block4/LLVMCppBackendInfo/Makefile b/llvm_clang/block4/LLVMCppBackendInfo/Makefile
new file mode 100644 (file)
index 0000000..40febfd
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= -I${TOP_LLVM}/lib/Target/CppBackend
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMCppBackendInfo/Makefile.sources b/llvm_clang/block4/LLVMCppBackendInfo/Makefile.sources
new file mode 100644 (file)
index 0000000..2f4a9d2
--- /dev/null
@@ -0,0 +1,7 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMCppBackendInfo
+
+SRCS=  CppBackendTargetInfo.cpp \
+
+SRCDIR= lib/Target/CppBackend/TargetInfo
diff --git a/llvm_clang/block4/LLVMIRReader/Makefile b/llvm_clang/block4/LLVMIRReader/Makefile
new file mode 100644 (file)
index 0000000..ff4869c
--- /dev/null
@@ -0,0 +1,3 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMIRReader/Makefile.sources b/llvm_clang/block4/LLVMIRReader/Makefile.sources
new file mode 100644 (file)
index 0000000..53a4ef2
--- /dev/null
@@ -0,0 +1,9 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMIRReader
+
+SRCS=  IRReader.cpp \
+
+HDRDIR=        llvm/IRReader
+
+SRCDIR= lib/IRReader
diff --git a/llvm_clang/block4/LLVMInstCombine/Makefile b/llvm_clang/block4/LLVMInstCombine/Makefile
new file mode 100644 (file)
index 0000000..ff4869c
--- /dev/null
@@ -0,0 +1,3 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMInstCombine/Makefile.sources b/llvm_clang/block4/LLVMInstCombine/Makefile.sources
new file mode 100644 (file)
index 0000000..1df200e
--- /dev/null
@@ -0,0 +1,22 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMInstCombine
+
+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 \
+
+HDRDIR=        llvm/Transforms
+HDRDIR=        llvm/Transforms/InstCombine
+
+SRCDIR= lib/Transforms/InstCombine
diff --git a/llvm_clang/block4/LLVMInstrumentation/Makefile b/llvm_clang/block4/LLVMInstrumentation/Makefile
new file mode 100644 (file)
index 0000000..ff4869c
--- /dev/null
@@ -0,0 +1,3 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMInstrumentation/Makefile.sources b/llvm_clang/block4/LLVMInstrumentation/Makefile.sources
new file mode 100644 (file)
index 0000000..e2aa853
--- /dev/null
@@ -0,0 +1,19 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMInstrumentation
+
+SRCS=  AddressSanitizer.cpp \
+       BoundsChecking.cpp \
+       DataFlowSanitizer.cpp \
+       GCOVProfiling.cpp \
+       MemorySanitizer.cpp \
+       Instrumentation.cpp \
+       InstrProfiling.cpp \
+       PGOInstrumentation.cpp \
+       SafeStack.cpp \
+       SanitizerCoverage.cpp \
+       ThreadSanitizer.cpp \
+
+HDRDIR=        llvm/Transforms
+
+SRCDIR= lib/Transforms/Instrumentation
diff --git a/llvm_clang/block4/LLVMLinker/Makefile b/llvm_clang/block4/LLVMLinker/Makefile
new file mode 100644 (file)
index 0000000..ff4869c
--- /dev/null
@@ -0,0 +1,3 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMLinker/Makefile.sources b/llvm_clang/block4/LLVMLinker/Makefile.sources
new file mode 100644 (file)
index 0000000..ba876ed
--- /dev/null
@@ -0,0 +1,10 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMLinker
+
+SRCS=  IRMover.cpp \
+       LinkModules.cpp \
+
+HDRDIR=        llvm/Linker
+
+SRCDIR= lib/Linker
diff --git a/llvm_clang/block4/LLVMMC/Makefile b/llvm_clang/block4/LLVMMC/Makefile
new file mode 100644 (file)
index 0000000..ff4869c
--- /dev/null
@@ -0,0 +1,3 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMMC/Makefile.sources b/llvm_clang/block4/LLVMMC/Makefile.sources
new file mode 100644 (file)
index 0000000..69dbef5
--- /dev/null
@@ -0,0 +1,58 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMMC
+
+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 \
+
+HDRDIR=        llvm/MC
+
+SRCDIR= lib/MC
diff --git a/llvm_clang/block4/LLVMMCDisassembler/Makefile b/llvm_clang/block4/LLVMMCDisassembler/Makefile
new file mode 100644 (file)
index 0000000..ff4869c
--- /dev/null
@@ -0,0 +1,3 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMMCDisassembler/Makefile.sources b/llvm_clang/block4/LLVMMCDisassembler/Makefile.sources
new file mode 100644 (file)
index 0000000..ddfbab0
--- /dev/null
@@ -0,0 +1,10 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMMCDisassembler
+
+SRCS=  Disassembler.cpp \
+       MCRelocationInfo.cpp \
+       MCExternalSymbolizer.cpp \
+       MCDisassembler.cpp \
+
+SRCDIR= lib/MC/MCDisassembler
diff --git a/llvm_clang/block4/LLVMMCParser/Makefile b/llvm_clang/block4/LLVMMCParser/Makefile
new file mode 100644 (file)
index 0000000..ff4869c
--- /dev/null
@@ -0,0 +1,3 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMMCParser/Makefile.sources b/llvm_clang/block4/LLVMMCParser/Makefile.sources
new file mode 100644 (file)
index 0000000..c66f784
--- /dev/null
@@ -0,0 +1,17 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMMCParser
+
+SRCS=  AsmLexer.cpp \
+       AsmParser.cpp \
+       COFFAsmParser.cpp \
+       DarwinAsmParser.cpp \
+       ELFAsmParser.cpp \
+       MCAsmLexer.cpp \
+       MCAsmParser.cpp \
+       MCAsmParserExtension.cpp \
+       MCTargetAsmParser.cpp \
+
+HDRDIR=        llvm/MC/MCParser
+
+SRCDIR= lib/MC/MCParser
diff --git a/llvm_clang/block4/LLVMMipsAsmParser/Makefile b/llvm_clang/block4/LLVMMipsAsmParser/Makefile
new file mode 100644 (file)
index 0000000..46afe77
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_MIPS}
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMMipsAsmParser/Makefile.sources b/llvm_clang/block4/LLVMMipsAsmParser/Makefile.sources
new file mode 100644 (file)
index 0000000..4ed6c4c
--- /dev/null
@@ -0,0 +1,7 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMMipsAsmParser
+
+SRCS=  MipsAsmParser.cpp \
+
+SRCDIR= lib/Target/Mips/AsmParser
diff --git a/llvm_clang/block4/LLVMMipsAsmPrinter/Makefile b/llvm_clang/block4/LLVMMipsAsmPrinter/Makefile
new file mode 100644 (file)
index 0000000..46afe77
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_MIPS}
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMMipsAsmPrinter/Makefile.sources b/llvm_clang/block4/LLVMMipsAsmPrinter/Makefile.sources
new file mode 100644 (file)
index 0000000..d042c1c
--- /dev/null
@@ -0,0 +1,7 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMMipsAsmPrinter
+
+SRCS=  MipsInstPrinter.cpp \
+
+SRCDIR= lib/Target/Mips/InstPrinter
diff --git a/llvm_clang/block4/LLVMMipsCodeGen/Makefile b/llvm_clang/block4/LLVMMipsCodeGen/Makefile
new file mode 100644 (file)
index 0000000..46afe77
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_MIPS}
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMMipsCodeGen/Makefile.sources b/llvm_clang/block4/LLVMMipsCodeGen/Makefile.sources
new file mode 100644 (file)
index 0000000..789d005
--- /dev/null
@@ -0,0 +1,38 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMMipsCodeGen
+
+SRCS=  Mips16FrameLowering.cpp \
+       Mips16HardFloat.cpp \
+       Mips16HardFloatInfo.cpp \
+       Mips16InstrInfo.cpp \
+       Mips16ISelDAGToDAG.cpp \
+       Mips16ISelLowering.cpp \
+       Mips16RegisterInfo.cpp \
+       MipsAnalyzeImmediate.cpp \
+       MipsAsmPrinter.cpp \
+       MipsCCState.cpp \
+       MipsConstantIslandPass.cpp \
+       MipsDelaySlotFiller.cpp \
+       MipsFastISel.cpp \
+       MipsInstrInfo.cpp \
+       MipsISelDAGToDAG.cpp \
+       MipsISelLowering.cpp \
+       MipsFrameLowering.cpp \
+       MipsLongBranch.cpp \
+       MipsMCInstLower.cpp \
+       MipsMachineFunction.cpp \
+       MipsModuleISelDAGToDAG.cpp \
+       MipsOptimizePICCall.cpp \
+       MipsOs16.cpp \
+       MipsRegisterInfo.cpp \
+       MipsSEFrameLowering.cpp \
+       MipsSEInstrInfo.cpp \
+       MipsSEISelDAGToDAG.cpp \
+       MipsSEISelLowering.cpp \
+       MipsSERegisterInfo.cpp \
+       MipsSubtarget.cpp \
+       MipsTargetMachine.cpp \
+       MipsTargetObjectFile.cpp \
+
+SRCDIR= lib/Target/Mips
diff --git a/llvm_clang/block4/LLVMMipsDesc/Makefile b/llvm_clang/block4/LLVMMipsDesc/Makefile
new file mode 100644 (file)
index 0000000..46afe77
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_MIPS}
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMMipsDesc/Makefile.sources b/llvm_clang/block4/LLVMMipsDesc/Makefile.sources
new file mode 100644 (file)
index 0000000..80657cd
--- /dev/null
@@ -0,0 +1,18 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMMipsDesc
+
+SRCS=  MipsABIInfo.cpp \
+       MipsABIFlagsSection.cpp \
+       MipsAsmBackend.cpp \
+       MipsELFObjectWriter.cpp \
+       MipsELFStreamer.cpp \
+       MipsMCAsmInfo.cpp \
+       MipsMCCodeEmitter.cpp \
+       MipsMCExpr.cpp \
+       MipsMCTargetDesc.cpp \
+       MipsNaClELFStreamer.cpp \
+       MipsOptionRecord.cpp \
+       MipsTargetStreamer.cpp \
+
+SRCDIR= lib/Target/Mips/MCTargetDesc
diff --git a/llvm_clang/block4/LLVMMipsDisassembler/Makefile b/llvm_clang/block4/LLVMMipsDisassembler/Makefile
new file mode 100644 (file)
index 0000000..46afe77
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_MIPS}
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMMipsDisassembler/Makefile.sources b/llvm_clang/block4/LLVMMipsDisassembler/Makefile.sources
new file mode 100644 (file)
index 0000000..41536dc
--- /dev/null
@@ -0,0 +1,7 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMMipsDisassembler
+
+SRCS=  MipsDisassembler.cpp \
+
+SRCDIR= lib/Target/Mips/Disassembler
diff --git a/llvm_clang/block4/LLVMMipsInfo/Makefile b/llvm_clang/block4/LLVMMipsInfo/Makefile
new file mode 100644 (file)
index 0000000..46afe77
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_MIPS}
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMMipsInfo/Makefile.sources b/llvm_clang/block4/LLVMMipsInfo/Makefile.sources
new file mode 100644 (file)
index 0000000..8ee9b93
--- /dev/null
@@ -0,0 +1,7 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMMipsInfo
+
+SRCS=  MipsTargetInfo.cpp \
+
+SRCDIR= lib/Target/Mips/TargetInfo
diff --git a/llvm_clang/block4/LLVMObjCARCOpts/Makefile b/llvm_clang/block4/LLVMObjCARCOpts/Makefile
new file mode 100644 (file)
index 0000000..ff4869c
--- /dev/null
@@ -0,0 +1,3 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMObjCARCOpts/Makefile.sources b/llvm_clang/block4/LLVMObjCARCOpts/Makefile.sources
new file mode 100644 (file)
index 0000000..cfda1d1
--- /dev/null
@@ -0,0 +1,17 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMObjCARCOpts
+
+SRCS=  ObjCARC.cpp \
+       ObjCARCOpts.cpp \
+       ObjCARCExpand.cpp \
+       ObjCARCAPElim.cpp \
+       ObjCARCContract.cpp \
+       DependencyAnalysis.cpp \
+       ProvenanceAnalysis.cpp \
+       ProvenanceAnalysisEvaluator.cpp \
+       PtrState.cpp \
+
+HDRDIR=        llvm/Transforms
+
+SRCDIR= lib/Transforms/ObjCARC
diff --git a/llvm_clang/block4/LLVMObject/Makefile b/llvm_clang/block4/LLVMObject/Makefile
new file mode 100644 (file)
index 0000000..ff4869c
--- /dev/null
@@ -0,0 +1,3 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMObject/Makefile.sources b/llvm_clang/block4/LLVMObject/Makefile.sources
new file mode 100644 (file)
index 0000000..376a849
--- /dev/null
@@ -0,0 +1,26 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMObject
+
+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 \
+
+HDRDIR=        llvm/Object
+
+SRCDIR= lib/Object
diff --git a/llvm_clang/block4/LLVMOption/Makefile b/llvm_clang/block4/LLVMOption/Makefile
new file mode 100644 (file)
index 0000000..ff4869c
--- /dev/null
@@ -0,0 +1,3 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMOption/Makefile.sources b/llvm_clang/block4/LLVMOption/Makefile.sources
new file mode 100644 (file)
index 0000000..c8a2b61
--- /dev/null
@@ -0,0 +1,12 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMOption
+
+SRCS=  Arg.cpp \
+       ArgList.cpp \
+       Option.cpp \
+       OptTable.cpp \
+
+HDRDIR=        llvm/Option
+
+SRCDIR= lib/Option
diff --git a/llvm_clang/block4/LLVMPowerPCAsmParser/Makefile b/llvm_clang/block4/LLVMPowerPCAsmParser/Makefile
new file mode 100644 (file)
index 0000000..33e9727
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_PPC}
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMPowerPCAsmParser/Makefile.sources b/llvm_clang/block4/LLVMPowerPCAsmParser/Makefile.sources
new file mode 100644 (file)
index 0000000..64d581c
--- /dev/null
@@ -0,0 +1,7 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMPowerPCAsmParser
+
+SRCS=  PPCAsmParser.cpp \
+
+SRCDIR= lib/Target/PowerPC/AsmParser
diff --git a/llvm_clang/block4/LLVMPowerPCAsmPrinter/Makefile b/llvm_clang/block4/LLVMPowerPCAsmPrinter/Makefile
new file mode 100644 (file)
index 0000000..33e9727
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_PPC}
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMPowerPCAsmPrinter/Makefile.sources b/llvm_clang/block4/LLVMPowerPCAsmPrinter/Makefile.sources
new file mode 100644 (file)
index 0000000..346005a
--- /dev/null
@@ -0,0 +1,7 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMPowerPCAsmPrinter
+
+SRCS=  PPCInstPrinter.cpp \
+
+SRCDIR= lib/Target/PowerPC/InstPrinter
diff --git a/llvm_clang/block4/LLVMPowerPCCodeGen/Makefile b/llvm_clang/block4/LLVMPowerPCCodeGen/Makefile
new file mode 100644 (file)
index 0000000..33e9727
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_PPC}
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMPowerPCCodeGen/Makefile.sources b/llvm_clang/block4/LLVMPowerPCCodeGen/Makefile.sources
new file mode 100644 (file)
index 0000000..369a79c
--- /dev/null
@@ -0,0 +1,32 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMPowerPCCodeGen
+
+SRCS=  PPCBoolRetToInt.cpp \
+       PPCAsmPrinter.cpp \
+       PPCBranchSelector.cpp \
+       PPCCTRLoops.cpp \
+       PPCHazardRecognizers.cpp \
+       PPCInstrInfo.cpp \
+       PPCISelDAGToDAG.cpp \
+       PPCISelLowering.cpp \
+       PPCEarlyReturn.cpp \
+       PPCFastISel.cpp \
+       PPCFrameLowering.cpp \
+       PPCLoopDataPrefetch.cpp \
+       PPCLoopPreIncPrep.cpp \
+       PPCMCInstLower.cpp \
+       PPCMachineFunctionInfo.cpp \
+       PPCMIPeephole.cpp \
+       PPCRegisterInfo.cpp \
+       PPCSubtarget.cpp \
+       PPCTargetMachine.cpp \
+       PPCTargetObjectFile.cpp \
+       PPCTargetTransformInfo.cpp \
+       PPCTOCRegDeps.cpp \
+       PPCTLSDynamicCall.cpp \
+       PPCVSXCopy.cpp \
+       PPCVSXFMAMutate.cpp \
+       PPCVSXSwapRemoval.cpp \
+
+SRCDIR= lib/Target/PowerPC
diff --git a/llvm_clang/block4/LLVMPowerPCDesc/Makefile b/llvm_clang/block4/LLVMPowerPCDesc/Makefile
new file mode 100644 (file)
index 0000000..33e9727
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_PPC}
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMPowerPCDesc/Makefile.sources b/llvm_clang/block4/LLVMPowerPCDesc/Makefile.sources
new file mode 100644 (file)
index 0000000..9696b6d
--- /dev/null
@@ -0,0 +1,14 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMPowerPCDesc
+
+SRCS=  PPCAsmBackend.cpp \
+       PPCMCTargetDesc.cpp \
+       PPCMCAsmInfo.cpp \
+       PPCMCCodeEmitter.cpp \
+       PPCMCExpr.cpp \
+       PPCPredicates.cpp \
+       PPCMachObjectWriter.cpp \
+       PPCELFObjectWriter.cpp \
+
+SRCDIR= lib/Target/PowerPC/MCTargetDesc
diff --git a/llvm_clang/block4/LLVMPowerPCDisassembler/Makefile b/llvm_clang/block4/LLVMPowerPCDisassembler/Makefile
new file mode 100644 (file)
index 0000000..33e9727
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_PPC}
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMPowerPCDisassembler/Makefile.sources b/llvm_clang/block4/LLVMPowerPCDisassembler/Makefile.sources
new file mode 100644 (file)
index 0000000..53808fb
--- /dev/null
@@ -0,0 +1,7 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMPowerPCDisassembler
+
+SRCS=  PPCDisassembler.cpp \
+
+SRCDIR= lib/Target/PowerPC/Disassembler
diff --git a/llvm_clang/block4/LLVMPowerPCInfo/Makefile b/llvm_clang/block4/LLVMPowerPCInfo/Makefile
new file mode 100644 (file)
index 0000000..33e9727
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_PPC}
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMPowerPCInfo/Makefile.sources b/llvm_clang/block4/LLVMPowerPCInfo/Makefile.sources
new file mode 100644 (file)
index 0000000..6b64e65
--- /dev/null
@@ -0,0 +1,7 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMPowerPCInfo
+
+SRCS=  PowerPCTargetInfo.cpp \
+
+SRCDIR= lib/Target/PowerPC/TargetInfo
diff --git a/llvm_clang/block4/LLVMProfileData/Makefile b/llvm_clang/block4/LLVMProfileData/Makefile
new file mode 100644 (file)
index 0000000..ff4869c
--- /dev/null
@@ -0,0 +1,3 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMProfileData/Makefile.sources b/llvm_clang/block4/LLVMProfileData/Makefile.sources
new file mode 100644 (file)
index 0000000..70aa241
--- /dev/null
@@ -0,0 +1,17 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMProfileData
+
+SRCS=  InstrProf.cpp \
+       InstrProfReader.cpp \
+       InstrProfWriter.cpp \
+       CoverageMapping.cpp \
+       CoverageMappingWriter.cpp \
+       CoverageMappingReader.cpp \
+       SampleProf.cpp \
+       SampleProfReader.cpp \
+       SampleProfWriter.cpp \
+
+HDRDIR=        llvm/ProfileData
+
+SRCDIR= lib/ProfileData
diff --git a/llvm_clang/block4/LLVMScalarOpts/Makefile b/llvm_clang/block4/LLVMScalarOpts/Makefile
new file mode 100644 (file)
index 0000000..ff4869c
--- /dev/null
@@ -0,0 +1,3 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMScalarOpts/Makefile.sources b/llvm_clang/block4/LLVMScalarOpts/Makefile.sources
new file mode 100644 (file)
index 0000000..0b1e134
--- /dev/null
@@ -0,0 +1,59 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMScalarOpts
+
+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 \
+
+HDRDIR=        llvm/Transforms
+HDRDIR=        llvm/Transforms/Scalar
+
+SRCDIR= lib/Transforms/Scalar
diff --git a/llvm_clang/block4/LLVMSelectionDAG/Makefile b/llvm_clang/block4/LLVMSelectionDAG/Makefile
new file mode 100644 (file)
index 0000000..ff4869c
--- /dev/null
@@ -0,0 +1,3 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMSelectionDAG/Makefile.sources b/llvm_clang/block4/LLVMSelectionDAG/Makefile.sources
new file mode 100644 (file)
index 0000000..95bfa95
--- /dev/null
@@ -0,0 +1,30 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMSelectionDAG
+
+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 \
+
+SRCDIR= lib/CodeGen/SelectionDAG
diff --git a/llvm_clang/block4/LLVMTarget/Makefile b/llvm_clang/block4/LLVMTarget/Makefile
new file mode 100644 (file)
index 0000000..ff4869c
--- /dev/null
@@ -0,0 +1,3 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMTarget/Makefile.sources b/llvm_clang/block4/LLVMTarget/Makefile.sources
new file mode 100644 (file)
index 0000000..71d7389
--- /dev/null
@@ -0,0 +1,15 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMTarget
+
+SRCS=  Target.cpp \
+       TargetIntrinsicInfo.cpp \
+       TargetLoweringObjectFile.cpp \
+       TargetMachine.cpp \
+       TargetMachineC.cpp \
+       TargetRecip.cpp \
+       TargetSubtargetInfo.cpp \
+
+HDRDIR=        llvm/Target
+
+SRCDIR= lib/Target
diff --git a/llvm_clang/block4/LLVMTransformUtils/Makefile b/llvm_clang/block4/LLVMTransformUtils/Makefile
new file mode 100644 (file)
index 0000000..ff4869c
--- /dev/null
@@ -0,0 +1,3 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMTransformUtils/Makefile.sources b/llvm_clang/block4/LLVMTransformUtils/Makefile.sources
new file mode 100644 (file)
index 0000000..0e363e5
--- /dev/null
@@ -0,0 +1,49 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMTransformUtils
+
+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 \
+
+HDRDIR=        llvm/Transforms
+HDRDIR=        llvm/Transforms/Utils
+
+SRCDIR= lib/Transforms/Utils
diff --git a/llvm_clang/block4/LLVMVectorize/Makefile b/llvm_clang/block4/LLVMVectorize/Makefile
new file mode 100644 (file)
index 0000000..ff4869c
--- /dev/null
@@ -0,0 +1,3 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMVectorize/Makefile.sources b/llvm_clang/block4/LLVMVectorize/Makefile.sources
new file mode 100644 (file)
index 0000000..9a134e1
--- /dev/null
@@ -0,0 +1,12 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMVectorize
+
+SRCS=  BBVectorize.cpp \
+       Vectorize.cpp \
+       LoopVectorize.cpp \
+       SLPVectorizer.cpp \
+
+HDRDIR=        llvm/Transforms
+
+SRCDIR= lib/Transforms/Vectorize
diff --git a/llvm_clang/block4/LLVMX86AsmParser/Makefile b/llvm_clang/block4/LLVMX86AsmParser/Makefile
new file mode 100644 (file)
index 0000000..7b48823
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_X86}
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMX86AsmParser/Makefile.sources b/llvm_clang/block4/LLVMX86AsmParser/Makefile.sources
new file mode 100644 (file)
index 0000000..dccd744
--- /dev/null
@@ -0,0 +1,8 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMX86AsmParser
+
+SRCS=  X86AsmInstrumentation.cpp \
+       X86AsmParser.cpp \
+
+SRCDIR= lib/Target/X86/AsmParser
diff --git a/llvm_clang/block4/LLVMX86AsmPrinter/Makefile b/llvm_clang/block4/LLVMX86AsmPrinter/Makefile
new file mode 100644 (file)
index 0000000..7b48823
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_X86}
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMX86AsmPrinter/Makefile.sources b/llvm_clang/block4/LLVMX86AsmPrinter/Makefile.sources
new file mode 100644 (file)
index 0000000..bd63955
--- /dev/null
@@ -0,0 +1,9 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMX86AsmPrinter
+
+SRCS=  X86ATTInstPrinter.cpp \
+       X86IntelInstPrinter.cpp \
+       X86InstComments.cpp \
+
+SRCDIR= lib/Target/X86/InstPrinter
diff --git a/llvm_clang/block4/LLVMX86CodeGen/Makefile b/llvm_clang/block4/LLVMX86CodeGen/Makefile
new file mode 100644 (file)
index 0000000..7b48823
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_X86}
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMX86CodeGen/Makefile.sources b/llvm_clang/block4/LLVMX86CodeGen/Makefile.sources
new file mode 100644 (file)
index 0000000..3678b12
--- /dev/null
@@ -0,0 +1,29 @@
+# Automatically generated.  Do not edit!
+
+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 \
+
+LIB=   LLVMX86CodeGen
+
+SRCDIR= lib/Target/X86
diff --git a/llvm_clang/block4/LLVMX86Desc/Makefile b/llvm_clang/block4/LLVMX86Desc/Makefile
new file mode 100644 (file)
index 0000000..7b48823
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_X86}
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMX86Desc/Makefile.sources b/llvm_clang/block4/LLVMX86Desc/Makefile.sources
new file mode 100644 (file)
index 0000000..af31a5e
--- /dev/null
@@ -0,0 +1,16 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMX86Desc
+
+SRCS=  X86AsmBackend.cpp \
+       X86MCTargetDesc.cpp \
+       X86MCAsmInfo.cpp \
+       X86MCCodeEmitter.cpp \
+       X86MachObjectWriter.cpp \
+       X86ELFObjectWriter.cpp \
+       X86WinCOFFStreamer.cpp \
+       X86WinCOFFObjectWriter.cpp \
+       X86MachORelocationInfo.cpp \
+       X86ELFRelocationInfo.cpp \
+
+SRCDIR= lib/Target/X86/MCTargetDesc
diff --git a/llvm_clang/block4/LLVMX86Disassembler/Makefile b/llvm_clang/block4/LLVMX86Disassembler/Makefile
new file mode 100644 (file)
index 0000000..7b48823
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_X86}
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMX86Disassembler/Makefile.sources b/llvm_clang/block4/LLVMX86Disassembler/Makefile.sources
new file mode 100644 (file)
index 0000000..8737c9d
--- /dev/null
@@ -0,0 +1,8 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMX86Disassembler
+
+SRCS=  X86Disassembler.cpp \
+       X86DisassemblerDecoder.cpp \
+
+SRCDIR= lib/Target/X86/Disassembler
diff --git a/llvm_clang/block4/LLVMX86Info/Makefile b/llvm_clang/block4/LLVMX86Info/Makefile
new file mode 100644 (file)
index 0000000..7b48823
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_X86}
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMX86Info/Makefile.sources b/llvm_clang/block4/LLVMX86Info/Makefile.sources
new file mode 100644 (file)
index 0000000..aa69caa
--- /dev/null
@@ -0,0 +1,7 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMX86Info
+
+SRCS=  X86TargetInfo.cpp \
+
+SRCDIR= lib/Target/X86/TargetInfo
diff --git a/llvm_clang/block4/LLVMX86Utils/Makefile b/llvm_clang/block4/LLVMX86Utils/Makefile
new file mode 100644 (file)
index 0000000..ff4869c
--- /dev/null
@@ -0,0 +1,3 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMX86Utils/Makefile.sources b/llvm_clang/block4/LLVMX86Utils/Makefile.sources
new file mode 100644 (file)
index 0000000..2745aa0
--- /dev/null
@@ -0,0 +1,7 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMX86Utils
+
+SRCS=  X86ShuffleDecode.cpp \
+
+SRCDIR= lib/Target/X86/Utils
diff --git a/llvm_clang/block4/LLVMipo/Makefile b/llvm_clang/block4/LLVMipo/Makefile
new file mode 100644 (file)
index 0000000..ff4869c
--- /dev/null
@@ -0,0 +1,3 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/LLVMipo/Makefile.sources b/llvm_clang/block4/LLVMipo/Makefile.sources
new file mode 100644 (file)
index 0000000..f72773b
--- /dev/null
@@ -0,0 +1,37 @@
+# Automatically generated.  Do not edit!
+
+LIB=   LLVMipo
+
+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 \
+
+HDRDIR=        llvm/Transforms
+HDRDIR=        llvm/Transforms/IPO
+
+SRCDIR= lib/Transforms/IPO
diff --git a/llvm_clang/block4/Makefile b/llvm_clang/block4/Makefile
new file mode 100644 (file)
index 0000000..755d6b3
--- /dev/null
@@ -0,0 +1,100 @@
+# maximum parallelism
+SUBDIR_ORDERED=
+
+SUBDIR=        LLVMAnalysis \
+       LLVMAsmParser \
+       LLVMAsmPrinter \
+       LLVMBitReader \
+       LLVMBitWriter \
+       LLVMCodeGen \
+       LLVMCore \
+       LLVMCppBackendCodeGen \
+       LLVMCppBackendInfo \
+       LLVMIRReader \
+       LLVMInstCombine \
+       LLVMInstrumentation \
+       LLVMLinker \
+       LLVMMC \
+       LLVMMCDisassembler \
+       LLVMMCParser \
+       LLVMObjCARCOpts \
+       LLVMObject \
+       LLVMOption \
+       LLVMProfileData \
+       LLVMScalarOpts \
+       LLVMSelectionDAG \
+       LLVMTarget \
+       LLVMTransformUtils \
+       LLVMVectorize \
+       LLVMX86AsmParser \
+       LLVMX86AsmPrinter \
+       LLVMX86CodeGen \
+       LLVMX86Desc \
+       LLVMX86Disassembler \
+       LLVMX86Info \
+       LLVMX86Utils \
+       LLVMipo \
+       clangARCMigrate \
+       clangAST \
+       clangAnalysis \
+       clangBasic \
+       clangCodeGen \
+       clangDriver \
+       clangEdit \
+       clangFrontend \
+       clangFrontendTool \
+       clangLex \
+       clangParse \
+       clangRewrite \
+       clangRewriteFrontend \
+       clangSema \
+       clangSerialization \
+       clangStaticAnalyzerCheckers \
+       clangStaticAnalyzerCore \
+       clangStaticAnalyzerFrontend
+
+.if defined(CLANG_EXTRA_TARGETS)
+.   if ${CLANG_EXTRA_TARGETS:MAArch64}
+SUBDIR+=       LLVMAArch64AsmParser \
+               LLVMAArch64AsmPrinter \
+               LLVMAArch64CodeGen \
+               LLVMAArch64Desc \
+               LLVMAArch64Disassembler \
+               LLVMAArch64Info \
+               LLVMAArch64Utils
+.   endif
+.   if ${CLANG_EXTRA_TARGETS:MAMDGPU}
+SUBDIR+=       LLVMAMDGPUAsmParser \
+               LLVMAMDGPUAsmPrinter \
+               LLVMAMDGPUCodeGen \
+               LLVMAMDGPUDesc \
+               LLVMAMDGPUInfo \
+               LLVMAMDGPUUtils
+.   endif
+.   if ${CLANG_EXTRA_TARGETS:MARM}
+SUBDIR+=       LLVMARMAsmParser \
+               LLVMARMAsmPrinter \
+               LLVMARMCodeGen \
+               LLVMARMDesc \
+               LLVMARMDisassembler \
+               LLVMARMInfo
+.   endif
+.   if ${CLANG_EXTRA_TARGETS:MMips}
+SUBDIR+=       LLVMMipsAsmParser \
+               LLVMMipsAsmPrinter \
+               LLVMMipsCodeGen \
+               LLVMMipsDesc \
+               LLVMMipsDisassembler \
+               LLVMMipsInfo
+.   endif
+.   if ${CLANG_EXTRA_TARGETS:MPowerPC}
+SUBDIR+=       LLVMPowerPCAsmParser \
+               LLVMPowerPCAsmPrinter \
+               LLVMPowerPCCodeGen \
+               LLVMPowerPCDesc \
+               LLVMPowerPCDisassembler \
+               LLVMPowerPCInfo
+.   endif
+.endif
+
+.include <bsd.subdir.mk>
diff --git a/llvm_clang/block4/Makefile.inc b/llvm_clang/block4/Makefile.inc
new file mode 100644 (file)
index 0000000..553184a
--- /dev/null
@@ -0,0 +1,41 @@
+INTERNALLIB=   yes
+TOP_LLVM=      ${.CURDIR}/../../../contrib/llvm
+CFLAGS+=       -I${.OBJDIR} \
+               -I${TOP_LLVM}/include \
+               -I${TOP_LLVM}/include/${HDRDIR} \
+               -I${.OBJDIR}/../../block3
+
+CFLAGS+=       -DGTEST_HAS_RTTI=0 \
+               -D__STDC_CONSTANT_MACROS \
+               -D__STDC_FORMAT_MACROS \
+               -D__STDC_LIMIT_MACROS
+
+CXXFLAGS+=     -std=c++11 -fno-exceptions -fno-rtti
+
+${SRCS}:       llvm/Support/DataTypes.h \
+               llvm/Config/llvm-config.h \
+               llvm/Config/config.h \
+               llvm/Config/Targets.def \
+               llvm/Config/AsmPrinters.def \
+               llvm/Config/AsmParsers.def \
+               llvm/Config/Disassemblers.def
+
+CFLAGS_AMDGPU= -I${TOP_LLVM}/lib/Target/AMDGPU \
+               -I${.OBJDIR}/../../block3/lib/Target/AMDGPU
+CFLAGS_ARM=    -I${TOP_LLVM}/lib/Target/ARM \
+               -I${.OBJDIR}/../../block3/lib/Target/ARM
+CFLAGS_ARM64=  -I${TOP_LLVM}/lib/Target/AArch64 \
+               -I${.OBJDIR}/../../block3/lib/Target/AArch64
+CFLAGS_MIPS=   -I${TOP_LLVM}/lib/Target/Mips \
+               -I${.OBJDIR}/../../block3/lib/Target/Mips
+CFLAGS_PPC=    -I${TOP_LLVM}/lib/Target/PowerPC \
+               -I${.OBJDIR}/../../block3/lib/Target/PowerPC
+CFLAGS_X86=    -I${TOP_LLVM}/lib/Target/X86 \
+               -I${.OBJDIR}/../../block3/lib/Target/X86
+CFLAGS_CLANG=  -I${TOP_LLVM}/tools/clang/include
+
+CLEANDIRS=     llvm clang
+
+.PATH:         ${TOP_LLVM}/${SRCDIR}
+
+.include "${.CURDIR}/../../block1/Makefile.generated"
diff --git a/llvm_clang/block4/clangARCMigrate/Makefile b/llvm_clang/block4/clangARCMigrate/Makefile
new file mode 100644 (file)
index 0000000..44c2b4f
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_CLANG}
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/clangARCMigrate/Makefile.sources b/llvm_clang/block4/clangARCMigrate/Makefile.sources
new file mode 100644 (file)
index 0000000..779ead4
--- /dev/null
@@ -0,0 +1,26 @@
+# Automatically generated.  Do not edit!
+
+LIB=   clangARCMigrate
+
+SRCS=  ARCMT.cpp \
+       ARCMTActions.cpp \
+       FileRemapper.cpp \
+       ObjCMT.cpp \
+       PlistReporter.cpp \
+       TransAPIUses.cpp \
+       TransARCAssign.cpp \
+       TransAutoreleasePool.cpp \
+       TransBlockObjCVariable.cpp \
+       TransEmptyStatementsAndDealloc.cpp \
+       TransGCAttrs.cpp \
+       TransGCCalls.cpp \
+       TransProperties.cpp \
+       TransProtectedScope.cpp \
+       TransRetainReleaseDealloc.cpp \
+       TransUnbridgedCasts.cpp \
+       TransUnusedInitDelegate.cpp \
+       TransZeroOutPropsInDealloc.cpp \
+       TransformActions.cpp \
+       Transforms.cpp \
+
+SRCDIR= tools/clang/lib/ARCMigrate
diff --git a/llvm_clang/block4/clangAST/Makefile b/llvm_clang/block4/clangAST/Makefile
new file mode 100644 (file)
index 0000000..44c2b4f
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_CLANG}
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/clangAST/Makefile.sources b/llvm_clang/block4/clangAST/Makefile.sources
new file mode 100644 (file)
index 0000000..c72e46b
--- /dev/null
@@ -0,0 +1,66 @@
+# Automatically generated.  Do not edit!
+
+LIB=   clangAST
+
+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 \
+
+SRCDIR= tools/clang/lib/AST
diff --git a/llvm_clang/block4/clangAnalysis/Makefile b/llvm_clang/block4/clangAnalysis/Makefile
new file mode 100644 (file)
index 0000000..44c2b4f
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_CLANG}
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/clangAnalysis/Makefile.sources b/llvm_clang/block4/clangAnalysis/Makefile.sources
new file mode 100644 (file)
index 0000000..432c40d
--- /dev/null
@@ -0,0 +1,30 @@
+# Automatically generated.  Do not edit!
+
+LIB=   clangAnalysis
+
+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 \
+
+SRCDIR= tools/clang/lib/Analysis
diff --git a/llvm_clang/block4/clangBasic/Makefile b/llvm_clang/block4/clangBasic/Makefile
new file mode 100644 (file)
index 0000000..44c2b4f
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_CLANG}
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/clangBasic/Makefile.sources b/llvm_clang/block4/clangBasic/Makefile.sources
new file mode 100644 (file)
index 0000000..821f2c9
--- /dev/null
@@ -0,0 +1,32 @@
+# Automatically generated.  Do not edit!
+
+LIB=   clangBasic
+
+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 \
+       ${version_inc} \
+
+SRCDIR= tools/clang/lib/Basic
diff --git a/llvm_clang/block4/clangCodeGen/Makefile b/llvm_clang/block4/clangCodeGen/Makefile
new file mode 100644 (file)
index 0000000..44c2b4f
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_CLANG}
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/clangCodeGen/Makefile.sources b/llvm_clang/block4/clangCodeGen/Makefile.sources
new file mode 100644 (file)
index 0000000..fd5a51d
--- /dev/null
@@ -0,0 +1,53 @@
+# Automatically generated.  Do not edit!
+
+LIB=   clangCodeGen
+
+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 \
+
+SRCDIR= tools/clang/lib/CodeGen
diff --git a/llvm_clang/block4/clangDriver/Makefile b/llvm_clang/block4/clangDriver/Makefile
new file mode 100644 (file)
index 0000000..44c2b4f
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_CLANG}
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/clangDriver/Makefile.sources b/llvm_clang/block4/clangDriver/Makefile.sources
new file mode 100644 (file)
index 0000000..0960f7d
--- /dev/null
@@ -0,0 +1,22 @@
+# Automatically generated.  Do not edit!
+
+LIB=   clangDriver
+
+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 \
+
+SRCDIR= tools/clang/lib/Driver
diff --git a/llvm_clang/block4/clangEdit/Makefile b/llvm_clang/block4/clangEdit/Makefile
new file mode 100644 (file)
index 0000000..44c2b4f
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_CLANG}
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/clangEdit/Makefile.sources b/llvm_clang/block4/clangEdit/Makefile.sources
new file mode 100644 (file)
index 0000000..5ffd0c1
--- /dev/null
@@ -0,0 +1,9 @@
+# Automatically generated.  Do not edit!
+
+LIB=   clangEdit
+
+SRCS=  Commit.cpp \
+       EditedSource.cpp \
+       RewriteObjCFoundationAPI.cpp \
+
+SRCDIR= tools/clang/lib/Edit
diff --git a/llvm_clang/block4/clangFrontend/Makefile b/llvm_clang/block4/clangFrontend/Makefile
new file mode 100644 (file)
index 0000000..6c89e49
--- /dev/null
@@ -0,0 +1,5 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_CLANG}
+CFLAGS+= -DDF_CLANG_HEADERS=\"${USRDATA_PREFIX}/usr/libdata/clang\"
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/clangFrontend/Makefile.sources b/llvm_clang/block4/clangFrontend/Makefile.sources
new file mode 100644 (file)
index 0000000..d7202ff
--- /dev/null
@@ -0,0 +1,39 @@
+# Automatically generated.  Do not edit!
+
+LIB=   clangFrontend
+
+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 \
+
+SRCDIR= tools/clang/lib/Frontend
diff --git a/llvm_clang/block4/clangFrontendTool/Makefile b/llvm_clang/block4/clangFrontendTool/Makefile
new file mode 100644 (file)
index 0000000..44c2b4f
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_CLANG}
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/clangFrontendTool/Makefile.sources b/llvm_clang/block4/clangFrontendTool/Makefile.sources
new file mode 100644 (file)
index 0000000..4ca8f6d
--- /dev/null
@@ -0,0 +1,7 @@
+# Automatically generated.  Do not edit!
+
+LIB=   clangFrontendTool
+
+SRCS=  ExecuteCompilerInvocation.cpp \
+
+SRCDIR= tools/clang/lib/FrontendTool
diff --git a/llvm_clang/block4/clangLex/Makefile b/llvm_clang/block4/clangLex/Makefile
new file mode 100644 (file)
index 0000000..44c2b4f
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_CLANG}
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/clangLex/Makefile.sources b/llvm_clang/block4/clangLex/Makefile.sources
new file mode 100644 (file)
index 0000000..274d7ed
--- /dev/null
@@ -0,0 +1,28 @@
+# Automatically generated.  Do not edit!
+
+LIB=   clangLex
+
+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 \
+
+SRCDIR= tools/clang/lib/Lex
diff --git a/llvm_clang/block4/clangParse/Makefile b/llvm_clang/block4/clangParse/Makefile
new file mode 100644 (file)
index 0000000..44c2b4f
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_CLANG}
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/clangParse/Makefile.sources b/llvm_clang/block4/clangParse/Makefile.sources
new file mode 100644 (file)
index 0000000..26d0a26
--- /dev/null
@@ -0,0 +1,21 @@
+# Automatically generated.  Do not edit!
+
+LIB=   clangParse
+
+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 \
+
+SRCDIR= tools/clang/lib/Parse
diff --git a/llvm_clang/block4/clangRewrite/Makefile b/llvm_clang/block4/clangRewrite/Makefile
new file mode 100644 (file)
index 0000000..44c2b4f
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_CLANG}
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/clangRewrite/Makefile.sources b/llvm_clang/block4/clangRewrite/Makefile.sources
new file mode 100644 (file)
index 0000000..66308ad
--- /dev/null
@@ -0,0 +1,11 @@
+# Automatically generated.  Do not edit!
+
+LIB=   clangRewrite
+
+SRCS=  DeltaTree.cpp \
+       HTMLRewrite.cpp \
+       RewriteRope.cpp \
+       Rewriter.cpp \
+       TokenRewriter.cpp \
+
+SRCDIR= tools/clang/lib/Rewrite
diff --git a/llvm_clang/block4/clangRewriteFrontend/Makefile b/llvm_clang/block4/clangRewriteFrontend/Makefile
new file mode 100644 (file)
index 0000000..44c2b4f
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_CLANG}
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/clangRewriteFrontend/Makefile.sources b/llvm_clang/block4/clangRewriteFrontend/Makefile.sources
new file mode 100644 (file)
index 0000000..e435575
--- /dev/null
@@ -0,0 +1,14 @@
+# Automatically generated.  Do not edit!
+
+LIB=   clangRewriteFrontend
+
+SRCS=  FixItRewriter.cpp \
+       FrontendActions.cpp \
+       HTMLPrint.cpp \
+       InclusionRewriter.cpp \
+       RewriteMacros.cpp \
+       RewriteModernObjC.cpp \
+       RewriteObjC.cpp \
+       RewriteTest.cpp \
+
+SRCDIR= tools/clang/lib/Frontend/Rewrite
diff --git a/llvm_clang/block4/clangSema/Makefile b/llvm_clang/block4/clangSema/Makefile
new file mode 100644 (file)
index 0000000..44c2b4f
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_CLANG}
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/clangSema/Makefile.sources b/llvm_clang/block4/clangSema/Makefile.sources
new file mode 100644 (file)
index 0000000..3b92408
--- /dev/null
@@ -0,0 +1,53 @@
+# Automatically generated.  Do not edit!
+
+LIB=   clangSema
+
+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 \
+
+SRCDIR= tools/clang/lib/Sema
diff --git a/llvm_clang/block4/clangSerialization/Makefile b/llvm_clang/block4/clangSerialization/Makefile
new file mode 100644 (file)
index 0000000..44c2b4f
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_CLANG}
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/clangSerialization/Makefile.sources b/llvm_clang/block4/clangSerialization/Makefile.sources
new file mode 100644 (file)
index 0000000..2e06fd6
--- /dev/null
@@ -0,0 +1,19 @@
+# Automatically generated.  Do not edit!
+
+LIB=   clangSerialization
+
+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 \
+
+
+SRCDIR= tools/clang/lib/Serialization
diff --git a/llvm_clang/block4/clangStaticAnalyzerCheckers/Makefile b/llvm_clang/block4/clangStaticAnalyzerCheckers/Makefile
new file mode 100644 (file)
index 0000000..e455104
--- /dev/null
@@ -0,0 +1,17 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_CLANG}
+CGEN=   ${.OBJDIR}/../../block2/clang-tblgen/clang-tblgen
+CXAST= -I${TOP_LLVM}/tools/clang/include \
+        -I${TOP_LLVM}/tools/clang/lib/StaticAnalyzer/Checkers \
+        -I${TOP_LLVM}/lib/Target \
+        -I${TOP_LLVM}/include
+
+AnalyzerStatsChecker.cpp: Checkers.inc
+
+Checkers.inc: Checkers.td
+       ${CGEN} -gen-clang-sa-checkers ${CXAST} ${.ALLSRC} -o ${.TARGET}
+
+CLEANFILES=    Checkers.inc
+
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/clangStaticAnalyzerCheckers/Makefile.sources b/llvm_clang/block4/clangStaticAnalyzerCheckers/Makefile.sources
new file mode 100644 (file)
index 0000000..66022b6
--- /dev/null
@@ -0,0 +1,78 @@
+# Automatically generated.  Do not edit!
+
+LIB=   clangStaticAnalyzerCheckers
+
+SRCS=  AllocationDiagnostics.cpp \
+       AnalyzerStatsChecker.cpp \
+       ArrayBoundChecker.cpp \
+       ArrayBoundCheckerV2.cpp \
+       BasicObjCFoundationChecks.cpp \
+       BoolAssignmentChecker.cpp \
+       BuiltinFunctionChecker.cpp \
+       CStringChecker.cpp \
+       CStringSyntaxChecker.cpp \
+       CallAndMessageChecker.cpp \
+       CastSizeChecker.cpp \
+       CastToStructChecker.cpp \
+       CheckObjCDealloc.cpp \
+       CheckObjCInstMethSignature.cpp \
+       CheckSecuritySyntaxOnly.cpp \
+       CheckSizeofPointer.cpp \
+       CheckerDocumentation.cpp \
+       ChrootChecker.cpp \
+       ClangCheckers.cpp \
+       DeadStoresChecker.cpp \
+       DebugCheckers.cpp \
+       DereferenceChecker.cpp \
+       DirectIvarAssignment.cpp \
+       DivZeroChecker.cpp \
+       DynamicTypePropagation.cpp \
+       DynamicTypeChecker.cpp \
+       ExprInspectionChecker.cpp \
+       FixedAddressChecker.cpp \
+       GenericTaintChecker.cpp \
+       IdenticalExprChecker.cpp \
+       IvarInvalidationChecker.cpp \
+       LLVMConventionsChecker.cpp \
+       LocalizationChecker.cpp \
+       MacOSKeychainAPIChecker.cpp \
+       MacOSXAPIChecker.cpp \
+       MallocChecker.cpp \
+       MallocOverflowSecurityChecker.cpp \
+       MallocSizeofChecker.cpp \
+       NSAutoreleasePoolChecker.cpp \
+       NSErrorChecker.cpp \
+       NoReturnFunctionChecker.cpp \
+       NonNullParamChecker.cpp \
+       NullabilityChecker.cpp \
+       ObjCAtSyncChecker.cpp \
+       ObjCContainersASTChecker.cpp \
+       ObjCContainersChecker.cpp \
+       ObjCMissingSuperCallChecker.cpp \
+       ObjCSelfInitChecker.cpp \
+       ObjCUnusedIVarsChecker.cpp \
+       PaddingChecker.cpp \
+       PointerArithChecker.cpp \
+       PointerSubChecker.cpp \
+       PthreadLockChecker.cpp \
+       RetainCountChecker.cpp \
+       ReturnPointerRangeChecker.cpp \
+       ReturnUndefChecker.cpp \
+       SimpleStreamChecker.cpp \
+       StackAddrEscapeChecker.cpp \
+       StreamChecker.cpp \
+       TaintTesterChecker.cpp \
+       TestAfterDivZeroChecker.cpp \
+       TraversalChecker.cpp \
+       UndefBranchChecker.cpp \
+       UndefCapturedBlockVarChecker.cpp \
+       UndefResultChecker.cpp \
+       UndefinedArraySubscriptChecker.cpp \
+       UndefinedAssignmentChecker.cpp \
+       UnixAPIChecker.cpp \
+       UnreachableCodeChecker.cpp \
+       VforkChecker.cpp \
+       VLASizeChecker.cpp \
+       VirtualCallChecker.cpp \
+
+SRCDIR= tools/clang/lib/StaticAnalyzer/Checkers
diff --git a/llvm_clang/block4/clangStaticAnalyzerCore/Makefile b/llvm_clang/block4/clangStaticAnalyzerCore/Makefile
new file mode 100644 (file)
index 0000000..44c2b4f
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_CLANG}
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/clangStaticAnalyzerCore/Makefile.sources b/llvm_clang/block4/clangStaticAnalyzerCore/Makefile.sources
new file mode 100644 (file)
index 0000000..28b2162
--- /dev/null
@@ -0,0 +1,47 @@
+# Automatically generated.  Do not edit!
+
+LIB=   clangStaticAnalyzerCore
+
+SRCS=  APSIntType.cpp \
+       AnalysisManager.cpp \
+       AnalyzerOptions.cpp \
+       BasicValueFactory.cpp \
+       BlockCounter.cpp \
+       IssueHash.cpp \
+       BugReporter.cpp \
+       BugReporterVisitors.cpp \
+       CallEvent.cpp \
+       Checker.cpp \
+       CheckerContext.cpp \
+       CheckerHelpers.cpp \
+       CheckerManager.cpp \
+       CheckerRegistry.cpp \
+       CommonBugCategories.cpp \
+       ConstraintManager.cpp \
+       CoreEngine.cpp \
+       DynamicTypeMap.cpp \
+       Environment.cpp \
+       ExplodedGraph.cpp \
+       ExprEngine.cpp \
+       ExprEngineC.cpp \
+       ExprEngineCXX.cpp \
+       ExprEngineCallAndReturn.cpp \
+       ExprEngineObjC.cpp \
+       FunctionSummary.cpp \
+       HTMLDiagnostics.cpp \
+       LoopWidening.cpp \
+       MemRegion.cpp \
+       PathDiagnostic.cpp \
+       PlistDiagnostics.cpp \
+       ProgramState.cpp \
+       RangeConstraintManager.cpp \
+       RegionStore.cpp \
+       SValBuilder.cpp \
+       SVals.cpp \
+       SimpleConstraintManager.cpp \
+       SimpleSValBuilder.cpp \
+       Store.cpp \
+       SubEngine.cpp \
+       SymbolManager.cpp \
+
+SRCDIR= tools/clang/lib/StaticAnalyzer/Core
diff --git a/llvm_clang/block4/clangStaticAnalyzerFrontend/Makefile b/llvm_clang/block4/clangStaticAnalyzerFrontend/Makefile
new file mode 100644 (file)
index 0000000..44c2b4f
--- /dev/null
@@ -0,0 +1,4 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+CFLAGS+= ${CFLAGS_CLANG}
+.include <bsd.lib.mk>
diff --git a/llvm_clang/block4/clangStaticAnalyzerFrontend/Makefile.sources b/llvm_clang/block4/clangStaticAnalyzerFrontend/Makefile.sources
new file mode 100644 (file)
index 0000000..bfed344
--- /dev/null
@@ -0,0 +1,11 @@
+# Automatically generated.  Do not edit!
+
+LIB=   clangStaticAnalyzerFrontend
+
+SRCS=  AnalysisConsumer.cpp \
+       CheckerRegistration.cpp \
+       ModelConsumer.cpp \
+       FrontendActions.cpp \
+       ModelInjector.cpp \
+
+SRCDIR= tools/clang/lib/StaticAnalyzer/Frontend
diff --git a/llvm_clang/block5/Makefile b/llvm_clang/block5/Makefile
new file mode 100644 (file)
index 0000000..791a9e2
--- /dev/null
@@ -0,0 +1,6 @@
+# maximum parallelism
+SUBDIR_ORDERED=
+
+SUBDIR=        clang include
+
+.include <bsd.subdir.mk>
diff --git a/llvm_clang/block5/Makefile.inc b/llvm_clang/block5/Makefile.inc
new file mode 100644 (file)
index 0000000..0fe7c82
--- /dev/null
@@ -0,0 +1,29 @@
+TOP_LLVM=      ${.CURDIR}/../../../contrib/llvm
+CFLAGS+=       -I${.OBJDIR} \
+               -I${.OBJDIR}/../../block3 \
+               -I${TOP_LLVM}/include \
+
+CFLAGS+=       -DGTEST_HAS_RTTI=0 \
+               -D__STDC_CONSTANT_MACROS \
+               -D__STDC_FORMAT_MACROS \
+               -D__STDC_LIMIT_MACROS
+
+CXXFLAGS+=     -std=c++11 -fno-exceptions -fno-rtti
+
+${SRCS}:       llvm/Support/DataTypes.h \
+               llvm/Config/llvm-config.h \
+               llvm/Config/config.h \
+               llvm/Config/Targets.def \
+               llvm/Config/AsmPrinters.def \
+               llvm/Config/AsmParsers.def \
+               llvm/Config/Disassemblers.def
+
+CLEANDIRS=     llvm
+
+.PATH:         ${TOP_LLVM}/${SRCDIR}
+
+.if defined(CLANG_INCLUDES)
+.PATH:         ${.OBJDIR}/../../block3/clang/Headers
+.endif
+
+.include "${.CURDIR}/../../block1/Makefile.generated"
diff --git a/llvm_clang/block5/clang/Makefile b/llvm_clang/block5/clang/Makefile
new file mode 100644 (file)
index 0000000..462c49a
--- /dev/null
@@ -0,0 +1,153 @@
+# clang driver
+
+PROG_CXX=      clang
+
+BINDIR?=       /usr/libexec/clang
+
+SRCS=  driver.cpp \
+       cc1_main.cpp \
+       cc1as_main.cpp
+
+LINKS= ${BINDIR}/clang ${BINDIR}/cc \
+       ${BINDIR}/clang ${BINDIR}/CC \
+       ${BINDIR}/clang ${BINDIR}/cpp \
+       ${BINDIR}/clang ${BINDIR}/c++ \
+       ${BINDIR}/clang ${BINDIR}/clang++
+
+# clang-specific libraries (order critical, duplicates intentional)
+STLIB= clangBasic \
+       clangCodeGen \
+       clangDriver \
+       clangFrontend \
+       clangFrontendTool \
+       clangCodeGen \
+       clangRewriteFrontend \
+       clangARCMigrate \
+       clangStaticAnalyzerFrontend \
+       clangFrontend \
+       clangDriver \
+       clangParse \
+       clangSerialization \
+       clangSema \
+       clangEdit \
+       clangStaticAnalyzerCheckers \
+       clangStaticAnalyzerCore \
+       clangAnalysis \
+       clangAST \
+       clangRewrite \
+       clangLex \
+       clangBasic
+
+# X86 Target and CPP backend first in line (order critical)
+
+STLIB+=        LLVMX86CodeGen \
+       LLVMX86AsmParser \
+       LLVMX86Desc \
+       LLVMX86Disassembler \
+       LLVMX86Info \
+       LLVMX86AsmPrinter \
+       LLVMX86Utils \
+       LLVMCppBackendCodeGen \
+       LLVMCppBackendInfo
+
+# Extra architecture targets (order critical)
+.if defined(CLANG_EXTRA_TARGETS)
+.   if ${CLANG_EXTRA_TARGETS:MAArch64}
+STLIB+=        LLVMAArch64CodeGen \
+       LLVMAArch64AsmParser \
+       LLVMAArch64Desc \
+       LLVMAArch64Disassembler \
+       LLVMAArch64Info \
+       LLVMAArch64AsmPrinter \
+       LLVMAArch64Utils
+.   endif
+.   if ${CLANG_EXTRA_TARGETS:MAMDGPU}
+STLIB+=        LLVMAMDGPUCodeGen \
+       LLVMAMDGPUAsmParser \
+       LLVMAMDGPUDesc \
+       LLVMAMDGPUInfo \
+       LLVMAMDGPUAsmPrinter \
+       LLVMAMDGPUUtils
+.   endif
+.   if ${CLANG_EXTRA_TARGETS:MARM}
+STLIB+=        LLVMARMCodeGen \
+       LLVMARMAsmParser \
+       LLVMARMDesc \
+       LLVMARMDisassembler \
+       LLVMARMInfo \
+       LLVMARMAsmPrinter
+.   endif
+.   if ${CLANG_EXTRA_TARGETS:MMips}
+STLIB+=        LLVMMipsCodeGen \
+       LLVMMipsAsmParser \
+       LLVMMipsDesc \
+       LLVMMipsDisassembler \
+       LLVMMipsInfo \
+       LLVMMipsAsmPrinter
+.   endif
+.   if ${CLANG_EXTRA_TARGETS:MPowerPC}
+STLIB+=        LLVMPowerPCCodeGen \
+       LLVMPowerPCAsmParser \
+       LLVMPowerPCDesc \
+       LLVMPowerPCDisassembler \
+       LLVMPowerPCInfo \
+       LLVMPowerPCAsmPrinter
+.   endif
+.endif
+
+# LLVM libraries (order critical, duplicates intentional)
+
+STLIB+=        LLVMAnalysis \
+       LLVMCodeGen \
+       LLVMCore \
+       LLVMipo \
+       LLVMInstCombine \
+       LLVMInstrumentation \
+       LLVMMC \
+       LLVMMCParser \
+       LLVMObjCARCOpts \
+       LLVMOption \
+       LLVMScalarOpts \
+       LLVMTransformUtils \
+       LLVMVectorize \
+       LLVMAsmPrinter \
+       LLVMSelectionDAG \
+       LLVMCodeGen \
+       LLVMMCDisassembler \
+       LLVMipo \
+       LLVMVectorize \
+       LLVMInstrumentation \
+       LLVMObjCARCOpts \
+       LLVMScalarOpts \
+       LLVMInstCombine \
+       LLVMTarget \
+       LLVMBitWriter \
+       LLVMIRReader \
+       LLVMAsmParser \
+       LLVMLinker \
+       LLVMTransformUtils \
+       LLVMAnalysis \
+       LLVMProfileData \
+       LLVMObject \
+       LLVMMCParser \
+       LLVMBitReader \
+       LLVMCore \
+       LLVMMC
+
+CFLAGS+=       -I${TOP_LLVM}/tools/clang/include
+
+.for SL in ${STLIB}
+LDADD+=        ${.OBJDIR}/../../block4/${SL}/lib${SL}.a
+DPADD+=        ${.OBJDIR}/../../block4/${SL}/lib${SL}.a
+.endfor
+
+# block 1 inclusion
+LDADD+=        ${.OBJDIR}/../../block1/LLVMSupport/libLLVMSupport.a
+DPADD+=        ${.OBJDIR}/../../block1/LLVMSupport/libLLVMSupport.a
+
+# host library linkage
+LDADD+=        -lpthread -lz -lm
+
+SRCDIR=        tools/clang/tools/driver
+
+.include <bsd.prog.mk>
diff --git a/llvm_clang/block5/clang/clang.1 b/llvm_clang/block5/clang/clang.1
new file mode 100644 (file)
index 0000000..786a7ed
--- /dev/null
@@ -0,0 +1,583 @@
+.\" Man page generated from reStructuredText.
+.
+.TH "CLANG" "1" "March 20, 2016" "3.8" "Clang"
+.SH NAME
+clang \- the Clang C, C++, and Objective-C compiler
+.
+.nr rst2man-indent-level 0
+.
+.de1 rstReportMargin
+\\$1 \\n[an-margin]
+level \\n[rst2man-indent-level]
+level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
+-
+\\n[rst2man-indent0]
+\\n[rst2man-indent1]
+\\n[rst2man-indent2]
+..
+.de1 INDENT
+.\" .rstReportMargin pre:
+. RS \\$1
+. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
+. nr rst2man-indent-level +1
+.\" .rstReportMargin post:
+..
+.de UNINDENT
+. RE
+.\" indent \\n[an-margin]
+.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
+.nr rst2man-indent-level -1
+.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
+.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
+..
+.SH SYNOPSIS
+.sp
+\fBclang\fP [\fIoptions\fP] \fIfilename ...\fP
+.SH DESCRIPTION
+.sp
+\fBclang\fP is a C, C++, and Objective\-C compiler which encompasses
+preprocessing, parsing, optimization, code generation, assembly, and linking.
+Depending on which high\-level mode setting is passed, Clang will stop before
+doing a full link.  While Clang is highly integrated, it is important to
+understand the stages of compilation, to understand how to invoke it.  These
+stages are:
+.INDENT 0.0
+.TP
+.B Driver
+The clang executable is actually a small driver which controls the overall
+execution of other tools such as the compiler, assembler and linker.
+Typically you do not need to interact with the driver, but you
+transparently use it to run the other tools.
+.TP
+.B Preprocessing
+This stage handles tokenization of the input source file, macro expansion,
+#include expansion and handling of other preprocessor directives.  The
+output of this stage is typically called a ".i" (for C), ".ii" (for C++),
+".mi" (for Objective\-C), or ".mii" (for Objective\-C++) file.
+.TP
+.B Parsing and Semantic Analysis
+This stage parses the input file, translating preprocessor tokens into a
+parse tree.  Once in the form of a parse tree, it applies semantic
+analysis to compute types for expressions as well and determine whether
+the code is well formed. This stage is responsible for generating most of
+the compiler warnings as well as parse errors. The output of this stage is
+an "Abstract Syntax Tree" (AST).
+.TP
+.B Code Generation and Optimization
+This stage translates an AST into low\-level intermediate code (known as
+"LLVM IR") and ultimately to machine code.  This phase is responsible for
+optimizing the generated code and handling target\-specific code generation.
+The output of this stage is typically called a ".s" file or "assembly" file.
+.sp
+Clang also supports the use of an integrated assembler, in which the code
+generator produces object files directly. This avoids the overhead of
+generating the ".s" file and of calling the target assembler.
+.TP
+.B Assembler
+This stage runs the target assembler to translate the output of the
+compiler into a target object file. The output of this stage is typically
+called a ".o" file or "object" file.
+.TP
+.B Linker
+This stage runs the target linker to merge multiple object files into an
+executable or dynamic library. The output of this stage is typically called
+an "a.out", ".dylib" or ".so" file.
+.UNINDENT
+.sp
+\fBClang Static Analyzer\fP
+.sp
+The Clang Static Analyzer is a tool that scans source code to try to find bugs
+through code analysis.  This tool uses many parts of Clang and is built into
+the same driver.  Please see <\fI\%http://clang\-analyzer.llvm.org\fP> for more details
+on how to use the static analyzer.
+.SH OPTIONS
+.SS Stage Selection Options
+.INDENT 0.0
+.TP
+.B \-E
+Run the preprocessor stage.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-fsyntax\-only
+Run the preprocessor, parser and type checking stages.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-S
+Run the previous stages as well as LLVM generation and optimization stages
+and target\-specific code generation, producing an assembly file.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-c
+Run all of the above, plus the assembler, generating a target ".o" object file.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B no stage selection option
+If no stage selection option is specified, all stages above are run, and the
+linker is run to combine the results into an executable or shared library.
+.UNINDENT
+.SS Language Selection and Mode Options
+.INDENT 0.0
+.TP
+.B \-x <language>
+Treat subsequent input files as having type language.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-std=<language>
+Specify the language standard to compile for.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-stdlib=<library>
+Specify the C++ standard library to use; supported options are libstdc++ and
+libc++.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-ansi
+Same as \-std=c89.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-ObjC, \-ObjC++
+Treat source input files as Objective\-C and Object\-C++ inputs respectively.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-trigraphs
+Enable trigraphs.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-ffreestanding
+Indicate that the file should be compiled for a freestanding, not a hosted,
+environment.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-fno\-builtin
+Disable special handling and optimizations of builtin functions like
+\fBstrlen()\fP and \fBmalloc()\fP\&.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-fmath\-errno
+Indicate that math functions should be treated as updating \fBerrno\fP\&.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-fpascal\-strings
+Enable support for Pascal\-style strings with "\epfoo".
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-fms\-extensions
+Enable support for Microsoft extensions.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-fmsc\-version=
+Set _MSC_VER. Defaults to 1300 on Windows. Not set otherwise.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-fborland\-extensions
+Enable support for Borland extensions.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-fwritable\-strings
+Make all string literals default to writable.  This disables uniquing of
+strings and other optimizations.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-flax\-vector\-conversions
+Allow loose type checking rules for implicit vector conversions.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-fblocks
+Enable the "Blocks" language feature.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-fobjc\-gc\-only
+Indicate that Objective\-C code should be compiled in GC\-only mode, which only
+works when Objective\-C Garbage Collection is enabled.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-fobjc\-gc
+Indicate that Objective\-C code should be compiled in hybrid\-GC mode, which
+works with both GC and non\-GC mode.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-fobjc\-abi\-version=version
+Select the Objective\-C ABI version to use. Available versions are 1 (legacy
+"fragile" ABI), 2 (non\-fragile ABI 1), and 3 (non\-fragile ABI 2).
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-fobjc\-nonfragile\-abi\-version=<version>
+Select the Objective\-C non\-fragile ABI version to use by default. This will
+only be used as the Objective\-C ABI when the non\-fragile ABI is enabled
+(either via \fI\%\-fobjc\-nonfragile\-abi\fP, or because it is the platform
+default).
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-fobjc\-nonfragile\-abi
+Enable use of the Objective\-C non\-fragile ABI. On platforms for which this is
+the default ABI, it can be disabled with \fB\-fno\-objc\-nonfragile\-abi\fP\&.
+.UNINDENT
+.SS Target Selection Options
+.sp
+Clang fully supports cross compilation as an inherent part of its design.
+Depending on how your version of Clang is configured, it may have support for a
+number of cross compilers, or may only support a native target.
+.INDENT 0.0
+.TP
+.B \-arch <architecture>
+Specify the architecture to build for.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-mmacosx\-version\-min=<version>
+When building for Mac OS X, specify the minimum version supported by your
+application.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-miphoneos\-version\-min
+When building for iPhone OS, specify the minimum version supported by your
+application.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-march=<cpu>
+Specify that Clang should generate code for a specific processor family
+member and later.  For example, if you specify \-march=i486, the compiler is
+allowed to generate instructions that are valid on i486 and later processors,
+but which may not exist on earlier ones.
+.UNINDENT
+.SS Code Generation Options
+.INDENT 0.0
+.TP
+.B \-O0, \-O1, \-O2, \-O3, \-Ofast, \-Os, \-Oz, \-O, \-O4
+Specify which optimization level to use:
+.INDENT 7.0
+.INDENT 3.5
+\fI\%\-O0\fP Means "no optimization": this level compiles the fastest and
+generates the most debuggable code.
+.sp
+\fI\%\-O1\fP Somewhere between \fI\%\-O0\fP and \fI\%\-O2\fP\&.
+.sp
+\fI\%\-O2\fP Moderate level of optimization which enables most
+optimizations.
+.sp
+\fI\%\-O3\fP Like \fI\%\-O2\fP, except that it enables optimizations that
+take longer to perform or that may generate larger code (in an attempt to
+make the program run faster).
+.sp
+\fI\%\-Ofast\fP Enables all the optimizations from \fI\%\-O3\fP along
+with other aggressive optimizations that may violate strict compliance with
+language standards.
+.sp
+\fI\%\-Os\fP Like \fI\%\-O2\fP with extra optimizations to reduce code
+size.
+.sp
+\fI\%\-Oz\fP Like \fI\%\-Os\fP (and thus \fI\%\-O2\fP), but reduces code
+size further.
+.sp
+\fI\%\-O\fP Equivalent to \fI\%\-O2\fP\&.
+.sp
+\fI\%\-O4\fP and higher
+.INDENT 0.0
+.INDENT 3.5
+Currently equivalent to \fI\%\-O3\fP
+.UNINDENT
+.UNINDENT
+.UNINDENT
+.UNINDENT
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-g
+Generate debug information.  Note that Clang debug information works best at \-O0.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-gmodules
+Generate debug information that contains external references to
+types defined in clang modules or precompiled headers instead of
+emitting redundant debug type information into every object file.
+This option implies \fB\-fmodule\-format=obj\fP\&.
+.sp
+This option should not be used when building static libraries for
+distribution to other machines because the debug info will contain
+references to the module cache on the machine the object files in
+the library were built on.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-fstandalone\-debug \-fno\-standalone\-debug
+Clang supports a number of optimizations to reduce the size of debug
+information in the binary. They work based on the assumption that the
+debug type information can be spread out over multiple compilation units.
+For instance, Clang will not emit type definitions for types that are not
+needed by a module and could be replaced with a forward declaration.
+Further, Clang will only emit type info for a dynamic C++ class in the
+module that contains the vtable for the class.
+.sp
+The \fB\-fstandalone\-debug\fP option turns off these optimizations.
+This is useful when working with 3rd\-party libraries that don\(aqt come with
+debug information.  This is the default on Darwin.  Note that Clang will
+never emit type information for types that are not referenced at all by the
+program.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-fexceptions
+Enable generation of unwind information. This allows exceptions to be thrown
+through Clang compiled stack frames.  This is on by default in x86\-64.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-ftrapv
+Generate code to catch integer overflow errors.  Signed integer overflow is
+undefined in C. With this flag, extra code is generated to detect this and
+abort when it happens.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-fvisibility
+This flag sets the default visibility level.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-fcommon
+This flag specifies that variables without initializers get common linkage.
+It can be disabled with \fB\-fno\-common\fP\&.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-ftls\-model=<model>
+Set the default thread\-local storage (TLS) model to use for thread\-local
+variables. Valid values are: "global\-dynamic", "local\-dynamic",
+"initial\-exec" and "local\-exec". The default is "global\-dynamic". The default
+model can be overridden with the tls_model attribute. The compiler will try
+to choose a more efficient model if possible.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-flto, \-emit\-llvm
+Generate output files in LLVM formats, suitable for link time optimization.
+When used with \fI\%\-S\fP this generates LLVM intermediate language
+assembly files, otherwise this generates LLVM bitcode format object files
+(which may be passed to the linker depending on the stage selection options).
+.UNINDENT
+.SS Driver Options
+.INDENT 0.0
+.TP
+.B \-###
+Print (but do not run) the commands to run for this compilation.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-\-help
+Display available options.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-Qunused\-arguments
+Do not emit any warnings for unused driver arguments.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-Wa,<args>
+Pass the comma separated arguments in args to the assembler.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-Wl,<args>
+Pass the comma separated arguments in args to the linker.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-Wp,<args>
+Pass the comma separated arguments in args to the preprocessor.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-Xanalyzer <arg>
+Pass arg to the static analyzer.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-Xassembler <arg>
+Pass arg to the assembler.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-Xlinker <arg>
+Pass arg to the linker.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-Xpreprocessor <arg>
+Pass arg to the preprocessor.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-o <file>
+Write output to file.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-print\-file\-name=<file>
+Print the full library path of file.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-print\-libgcc\-file\-name
+Print the library path for "libgcc.a".
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-print\-prog\-name=<name>
+Print the full program path of name.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-print\-search\-dirs
+Print the paths used for finding libraries and programs.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-save\-temps
+Save intermediate compilation results.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-integrated\-as, \-no\-integrated\-as
+Used to enable and disable, respectively, the use of the integrated
+assembler. Whether the integrated assembler is on by default is target
+dependent.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-time
+Time individual commands.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-ftime\-report
+Print timing summary of each stage of compilation.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-v
+Show commands to run and use verbose output.
+.UNINDENT
+.SS Diagnostics Options
+.INDENT 0.0
+.TP
+.B \-fshow\-column, \-fshow\-source\-location, \-fcaret\-diagnostics, \-fdiagnostics\-fixit\-info, \-fdiagnostics\-parseable\-fixits, \-fdiagnostics\-print\-source\-range\-info, \-fprint\-source\-range\-info, \-fdiagnostics\-show\-option, \-fmessage\-length
+These options control how Clang prints out information about diagnostics
+(errors and warnings). Please see the Clang User\(aqs Manual for more information.
+.UNINDENT
+.SS Preprocessor Options
+.INDENT 0.0
+.TP
+.B \-D<macroname>=<value>
+Adds an implicit #define into the predefines buffer which is read before the
+source file is preprocessed.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-U<macroname>
+Adds an implicit #undef into the predefines buffer which is read before the
+source file is preprocessed.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-include <filename>
+Adds an implicit #include into the predefines buffer which is read before the
+source file is preprocessed.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-I<directory>
+Add the specified directory to the search path for include files.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-F<directory>
+Add the specified directory to the search path for framework include files.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-nostdinc
+Do not search the standard system directories or compiler builtin directories
+for include files.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-nostdlibinc
+Do not search the standard system directories for include files, but do
+search compiler builtin include directories.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B \-nobuiltininc
+Do not search clang\(aqs builtin directory for include files.
+.UNINDENT
+.SH ENVIRONMENT
+.INDENT 0.0
+.TP
+.B TMPDIR, TEMP, TMP
+These environment variables are checked, in order, for the location to write
+temporary files used during the compilation process.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B CPATH
+If this environment variable is present, it is treated as a delimited list of
+paths to be added to the default system include path list. The delimiter is
+the platform dependent delimiter, as used in the PATH environment variable.
+.sp
+Empty components in the environment variable are ignored.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B C_INCLUDE_PATH, OBJC_INCLUDE_PATH, CPLUS_INCLUDE_PATH, OBJCPLUS_INCLUDE_PATH
+These environment variables specify additional paths, as for \fI\%CPATH\fP, which are
+only used when processing the appropriate language.
+.UNINDENT
+.INDENT 0.0
+.TP
+.B MACOSX_DEPLOYMENT_TARGET
+If \fI\%\-mmacosx\-version\-min\fP is unspecified, the default deployment
+target is read from this environment variable. This option only affects
+Darwin targets.
+.UNINDENT
+.SH BUGS
+.sp
+To report bugs, please visit <\fI\%http://llvm.org/bugs/\fP>.  Most bug reports should
+include preprocessed source files (use the \fI\%\-E\fP option) and the full
+output of the compiler, along with information to reproduce.
+.SH SEE ALSO
+.sp
+\fIas(1)\fP, \fIld(1)\fP
+.SH AUTHOR
+Maintained by the Clang / LLVM Team (<http://clang.llvm.org>)
+.SH COPYRIGHT
+2007-2016, The Clang Team
+.\" Generated by docutils manpage writer.
+.
diff --git a/llvm_clang/block5/include/Makefile b/llvm_clang/block5/include/Makefile
new file mode 100644 (file)
index 0000000..1dffca4
--- /dev/null
@@ -0,0 +1,9 @@
+# Static makefile
+.include "${.CURDIR}/Makefile.sources"
+
+CLANG_INCLUDES=        yes
+INCSDIR=       ${LIBDATADIR}/clang
+FILESDIR=      ${LIBDATADIR}/clang
+FILES=         ${GENINCS}
+
+.include <bsd.prog.mk>
diff --git a/llvm_clang/block5/include/Makefile.sources b/llvm_clang/block5/include/Makefile.sources
new file mode 100644 (file)
index 0000000..c8cb78d
--- /dev/null
@@ -0,0 +1,71 @@
+# Automatically generated.  Do not edit!
+
+INCS=  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 \
+       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 \
+       __stddef_max_align_t.h \
+       tbmintrin.h \
+       tgmath.h \
+       tmmintrin.h \
+       unwind.h \
+       vadefs.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 \
+
+GENINCS+=      arm_neon.h
+
+SRCDIR= tools/clang/lib/Headers
diff --git a/tools/tools/llvm_generator/Makefile b/tools/tools/llvm_generator/Makefile
new file mode 100644 (file)
index 0000000..f36b73b
--- /dev/null
@@ -0,0 +1,160 @@
+# See README on how to generate llvm/clang makefiles
+
+LLVMVER?=      38
+LLVMFULLVER?=  3.8.0
+PORTOBJDIR?=   /usr/obj/dports
+LLVMSRCDIR?=   ${PORTOBJDIR}/devel/llvm${LLVMVER}/llvm-${LLVMFULLVER}.src
+SRCDIR?=       /usr/src
+
+.if !exists (${LLVMSRCDIR})
+.error Run error: ${LLVMSRCDIR} does not exist
+.endif
+
+GROUP1=        LLVMSupport:lib/Support \
+       LLVMTableGen:lib/TableGen
+
+GROUP2=        llvm-tblgen:utils/TableGen \
+       clang-tblgen:tools/clang/utils/TableGen
+
+GROUP4=        LLVMAnalysis:lib/Analysis \
+       LLVMAsmParser:lib/AsmParser \
+       LLVMBitReader:lib/Bitcode/Reader \
+       LLVMBitWriter:lib/Bitcode/Writer \
+       LLVMCodeGen:lib/CodeGen \
+       LLVMAsmPrinter:lib/CodeGen/AsmPrinter \
+       LLVMSelectionDAG:lib/CodeGen/SelectionDAG \
+       LLVMCore:lib/IR \
+       LLVMIRReader:lib/IRReader \
+       LLVMMC:lib/MC \
+       LLVMMCParser:lib/MC/MCParser \
+       LLVMMCDisassembler:lib/MC/MCDisassembler \
+       LLVMLinker:lib/Linker \
+       LLVMObject:lib/Object \
+       LLVMOption:lib/Option \
+       LLVMProfileData:lib/ProfileData \
+       LLVMTarget:lib/Target \
+       LLVMCppBackendCodeGen:lib/Target/CppBackend \
+       LLVMCppBackendInfo:lib/Target/CppBackend/TargetInfo \
+       LLVMipo:lib/Transforms/IPO \
+       LLVMInstCombine:lib/Transforms/InstCombine \
+       LLVMInstrumentation:lib/Transforms/Instrumentation \
+       LLVMObjCARCOpts:lib/Transforms/ObjCARC \
+       LLVMScalarOpts:lib/Transforms/Scalar \
+       LLVMTransformUtils:lib/Transforms/Utils \
+       LLVMVectorize:lib/Transforms/Vectorize \
+       ${X86} ${ARM} ${MIPS} ${AMDGPU} ${ARM64} ${PPC} ${CLANG}
+
+X86=   LLVMX86CodeGen:lib/Target/X86 \
+       LLVMX86Disassembler:lib/Target/X86/Disassembler \
+       LLVMX86AsmParser:lib/Target/X86/AsmParser \
+       LLVMX86AsmPrinter:lib/Target/X86/InstPrinter \
+       LLVMX86Desc:lib/Target/X86/MCTargetDesc \
+       LLVMX86Info:lib/Target/X86/TargetInfo \
+       LLVMX86Utils:lib/Target/X86/Utils
+
+ARM=   LLVMARMCodeGen:lib/Target/ARM \
+       LLVMARMAsmParser:lib/Target/ARM/AsmParser \
+       LLVMARMDisassembler:lib/Target/ARM/Disassembler \
+       LLVMARMAsmPrinter:lib/Target/ARM/InstPrinter \
+       LLVMARMDesc:lib/Target/ARM/MCTargetDesc \
+       LLVMARMInfo:lib/Target/ARM/TargetInfo
+
+MIPS=  LLVMMipsCodeGen:lib/Target/Mips \
+       LLVMMipsAsmParser:lib/Target/Mips/AsmParser \
+       LLVMMipsDisassembler:lib/Target/Mips/Disassembler \
+       LLVMMipsAsmPrinter:lib/Target/Mips/InstPrinter \
+       LLVMMipsDesc:lib/Target/Mips/MCTargetDesc \
+       LLVMMipsInfo:lib/Target/Mips/TargetInfo
+
+AMDGPU=        LLVMAMDGPUCodeGen:lib/Target/AMDGPU \
+       LLVMAMDGPUAsmParser:lib/Target/AMDGPU/AsmParser \
+       LLVMAMDGPUAsmPrinter:lib/Target/AMDGPU/InstPrinter \
+       LLVMAMDGPUDesc:lib/Target/AMDGPU/MCTargetDesc \
+       LLVMAMDGPUInfo:lib/Target/AMDGPU/TargetInfo \
+       LLVMAMDGPUUtils:lib/Target/AMDGPU/Utils
+
+ARM64= LLVMAArch64CodeGen:lib/Target/AArch64 \
+       LLVMAArch64AsmParser:lib/Target/AArch64/AsmParser \
+       LLVMAArch64Disassembler:lib/Target/AArch64/Disassembler \
+       LLVMAArch64AsmPrinter:lib/Target/AArch64/InstPrinter \
+       LLVMAArch64Desc:lib/Target/AArch64/MCTargetDesc \
+       LLVMAArch64Info:lib/Target/AArch64/TargetInfo \
+       LLVMAArch64Utils:lib/Target/AArch64/Utils
+
+PPC=   LLVMPowerPCCodeGen:lib/Target/PowerPC \
+       LLVMPowerPCAsmParser:lib/Target/PowerPC/AsmParser \
+       LLVMPowerPCDisassembler:lib/Target/PowerPC/Disassembler \
+       LLVMPowerPCAsmPrinter:lib/Target/PowerPC/InstPrinter \
+       LLVMPowerPCDesc:lib/Target/PowerPC/MCTargetDesc \
+       LLVMPowerPCInfo:lib/Target/PowerPC/TargetInfo
+
+CLANG= clangARCMigrate:tools/clang/lib/ARCMigrate \
+       clangAST:tools/clang/lib/AST \
+       clangAnalysis:tools/clang/lib/Analysis \
+       clangBasic:tools/clang/lib/Basic \
+       clangCodeGen:tools/clang/lib/CodeGen \
+       clangDriver:tools/clang/lib/Driver \
+       clangEdit:tools/clang/lib/Edit \
+       clangFrontend:tools/clang/lib/Frontend \
+       clangFrontendTool:tools/clang/lib/FrontendTool \
+       clangLex:tools/clang/lib/Lex \
+       clangParse:tools/clang/lib/Parse \
+       clangRewrite:tools/clang/lib/Rewrite \
+       clangRewriteFrontend:tools/clang/lib/Frontend/Rewrite \
+       clangSema:tools/clang/lib/Sema \
+       clangSerialization:tools/clang/lib/Serialization \
+       clangStaticAnalyzerFrontend:tools/clang/lib/StaticAnalyzer/Frontend \
+       clangStaticAnalyzerCheckers:tools/clang/lib/StaticAnalyzer/Checkers \
+       clangStaticAnalyzerCore:tools/clang/lib/StaticAnalyzer/Core
+
+LIST=  ${GROUP1} ${GROUP4}
+
+OUTPUT=        generated
+HDR=   includes/Makefile.sources
+
+.PATH: ${LLVMSRCDIR}
+
+all:   ${LIST:C|:.*$|/Makefile.sources|} \
+       ${GROUP2:C|:.*$|/Makefile.sources|} \
+       ${HDR}
+
+.for X in ${LIST}
+${X:C|:.*$|/Makefile.sources|}: ${X:C/^.*://}/CMakeLists.txt
+       mkdir -p ${OUTPUT}/${.TARGET:H}
+       awk -v SRCDIR="${X:C/^.*://}" -f scrape_library.awk ${.ALLSRC} \
+               > ${OUTPUT}/${.TARGET}
+.endfor
+
+.for X in ${GROUP2}
+${X:C|:.*$|/Makefile.sources|}: ${X:C/^.*://}/CMakeLists.txt
+       mkdir -p ${OUTPUT}/${.TARGET:H}
+       awk -v SRCDIR="${X:C/^.*://}" -f scrape_tablegen.awk ${.ALLSRC} \
+               > ${OUTPUT}/${.TARGET}
+.endfor
+
+${HDR}: tools/clang/lib/Headers/CMakeLists.txt
+       mkdir -p ${OUTPUT}/${.TARGET:H}
+       awk -v SRCDIR="tools/clang/lib/Headers" -f scrape_headers.awk ${.ALLSRC} \
+               > ${OUTPUT}/${.TARGET}
+
+clean:
+       rm -rf ${.OBJDIR}/${OUTPUT}
+
+install:
+       mkdir -p ${SRCDIR}/llvm_clang/block5/include
+       cp ${OUTPUT}/${HDR} ${SRCDIR}/llvm_clang/block5/include
+.for X in ${GROUP1:C|:.*$||}
+       @echo ${X}
+       mkdir -p ${SRCDIR}/llvm_clang/block1/${X}
+       cp ${OUTPUT}/${X}/Makefile.sources ${SRCDIR}/llvm_clang/block1/${X}
+.endfor
+.for X in ${GROUP2:C|:.*$||}
+       @echo ${X}
+       mkdir -p ${SRCDIR}/llvm_clang/block2/${X}
+       cp ${OUTPUT}/${X}/Makefile.sources ${SRCDIR}/llvm_clang/block2/${X}
+.endfor
+.for X in ${GROUP4:C|:.*$||}
+       @echo ${X}
+       mkdir -p ${SRCDIR}/llvm_clang/block4/${X}
+       cp ${OUTPUT}/${X}/Makefile.sources ${SRCDIR}/llvm_clang/block4/${X}
+.endfor
diff --git a/tools/tools/llvm_generator/README b/tools/tools/llvm_generator/README
new file mode 100644 (file)
index 0000000..a1bba23
--- /dev/null
@@ -0,0 +1,34 @@
+This tool generates llvm + clang makefile from the vendor CMake files.
+
+How to regenerate makefiles using llvm38 as an example:
+
+  1) > (cd /usr/dports/devel/llvm38 && make clean && make patch)
+  2) > make LLVMVER=38 LLVMFULLVER=3.8.0
+  3) > make install
+
+How to add additional targets to clang:
+
+  A) set CLANG_EXTRA_TARGETS variable /etc/make.conf
+  B) valid value is any combination of
+     "AArch64", "AMDGPU", "ARM", "Mips", "PowerPC"
+  C) e.g. "CLANG_EXTRA_TARGETS= AArch64 ARM"
+
+To build DragonFly's base LLVM
+
+  1) > (cd /usr/dports/devel/llvm38 && make clean && make patch)
+  2) > (cd /usr/obj/dports/devel/llvm38/llvm-3.8.0.src && \
+        patch < /usr/src/tools/tools/llvm_generator/patches/*)
+  3) > (cd /usr/src/contrib && \
+        ln -s /usr/obj/dports/devel/llvm38/llvm-3.8.0.src llvm)
+  4) > (cd /usr/src/llvm_clang && make)
+  5) > mkdir /etc/libexec/clang /usr/libdata/clang
+     > (cd /usr/src/llvm_clang && make install)
+
+After installing the base clang, it can be used with CCVER and
+WORLD_CCVER set in the environment or /etc/make.conf, e.g.
+
+  > env CCVER=clang cc --version
+  clang version 3.8.0 (tags/RELEASE_380/final)
+  Target: x86_64-pc-dragonfly
+  Thread model: posix
+  InstalledDir: /usr/libexec/clang
diff --git a/tools/tools/llvm_generator/patches/patch-tools_clang_lib_Frontend_InitHeaderSearch.cpp b/tools/tools/llvm_generator/patches/patch-tools_clang_lib_Frontend_InitHeaderSearch.cpp
new file mode 100644 (file)
index 0000000..1939392
--- /dev/null
@@ -0,0 +1,31 @@
+--- tools/clang/lib/Frontend/InitHeaderSearch.cpp.orig 2015-12-30 03:40:23 UTC
++++ tools/clang/lib/Frontend/InitHeaderSearch.cpp
+@@ -211,6 +211,7 @@ void InitHeaderSearch::AddDefaultCInclud
+   if (HSOpts.UseStandardSystemIncludes) {
+     switch (os) {
+     case llvm::Triple::CloudABI:
++    case llvm::Triple::DragonFly:
+     case llvm::Triple::FreeBSD:
+     case llvm::Triple::NetBSD:
+     case llvm::Triple::OpenBSD:
+@@ -231,7 +232,7 @@ void InitHeaderSearch::AddDefaultCInclud
+   // Builtin includes use #include_next directives and should be positioned
+   // just prior C include dirs.
+-  if (HSOpts.UseBuiltinIncludes) {
++  if (0) { //(HSOpts.UseBuiltinIncludes) {
+     // Ignore the sys root, we *always* look for clang headers relative to
+     // supplied path.
+     SmallString<128> P = StringRef(HSOpts.ResourceDir);
+@@ -255,6 +256,11 @@ void InitHeaderSearch::AddDefaultCInclud
+   }
+   switch (os) {
++    case llvm::Triple::DragonFly: {
++    AddPath(DF_CLANG_HEADERS, ExternCSystem, false);
++    break;
++  }
++    
+   case llvm::Triple::Linux:
+     llvm_unreachable("Include management is handled in the driver.");
diff --git a/tools/tools/llvm_generator/scrape_headers.awk b/tools/tools/llvm_generator/scrape_headers.awk
new file mode 100644 (file)
index 0000000..c51729d
--- /dev/null
@@ -0,0 +1,38 @@
+# must set SRCDIR externally
+
+BEGIN {
+  scanning=0;
+  incs=0;
+  print "# Automatically generated.  Do not edit!";
+  print
+}
+
+{
+  if (scanning) {
+     keep_going = (NF > 0);
+     if (keep_going && ($1 == "#")) {
+        keep_going = 0;
+     }
+     if (keep_going && ($1 == ")")) {
+        keep_going = 0;
+        scanning = 0;
+     }
+     if (keep_going) {
+        if (incs) {
+           print "\t" $1 " \\";
+        } else {
+           incs=1;
+           print "INCS=\t" $1 " \\";
+        }
+     }
+   } else if (substr($1,1,9) == "set(files") {
+       scanning=1
+   } else if (substr($1,1,15) ==  "clang_tablegen(") {
+       hdr=substr($1,16)
+       print "\nGENINCS+=\t" hdr;
+   }
+}
+
+END {
+  print "\nSRCDIR= " SRCDIR
+}
diff --git a/tools/tools/llvm_generator/scrape_library.awk b/tools/tools/llvm_generator/scrape_library.awk
new file mode 100644 (file)
index 0000000..557a1cc
--- /dev/null
@@ -0,0 +1,94 @@
+# must set SRCDIR externally
+
+BEGIN {
+  scanning=0;
+  headers=0;
+  depends=0;
+  linklibs=0;
+  x86=0;
+  srcs=0;
+  print "# Automatically generated.  Do not edit!";
+  print
+}
+
+{
+  if (scanning) {
+     keep_going = (NF > 0);
+     if (!keep_going) {
+        linklibs = 0;
+     }
+     if (keep_going && ($1 == "#")) {
+        keep_going = 0;
+     }
+     if (keep_going && ($1 == ")")) {
+        keep_going = 0;
+        scanning = 0;
+     }
+     if (keep_going && ($1 == "ADDITIONAL_HEADER_DIRS")) {
+        keep_going = 0;
+        headers = 1;
+        print "";
+     }
+     if (keep_going && ($1 == "ADDITIONAL_HEADERS")) {
+        keep_going = 0;
+        headers = 1;
+        print "";
+     }
+     if (keep_going && ($1 == "DEPENDS")) {
+        keep_going = 0;
+        headers = 0;
+        depends = 1;
+     }
+     if (keep_going && ($1 == "LINK_LIBS")) {
+        keep_going = 0;
+        headers = 0;
+        linklibs = 1;
+     }
+     if (keep_going && headers) {
+        if (substr($1,2,24) == "{LLVM_MAIN_INCLUDE_DIR}/") {
+           srcdir=substr($1,26)
+           print "HDRDIR=\t" srcdir
+        }
+        keep_going = 0;
+     }
+     if (keep_going && depends) {
+        keep_going = 0;
+     }
+     if (keep_going && linklibs) {
+        keep_going = 0;
+     }
+     if (keep_going) {
+        if (srcs) {
+           print "\t" $1 " \\";
+        } else {
+           srcs=1;
+           print "SRCS=\t" $1 " \\";
+        }
+     }
+  } else if (substr($1,1,18) ==  "add_clang_library(") {
+       scanning=1;
+       libname=substr($1,19)
+       print "LIB=\t" libname "\n"
+  } else if (substr($1,1,17) ==  "add_llvm_library(") {
+       scanning=1;
+       libname=substr($1,18)
+       print "LIB=\t" libname "\n"
+  } else if (substr($1,1,16) ==  "add_llvm_target(") {
+       libname=substr($1,17)
+       if (x86 == 1) {
+          # X86 code generator
+          print "\nLIB=\tLLVM" libname
+       } else {
+          # AArch64, ARM, AMDGPU, Mips, PowerPC code generators
+          scanning=1;
+          print "LIB=\tLLVM" libname "\n"
+       }
+  } else if (substr($1,1,11) ==  "set(sources") {
+       scanning=1
+       x86=1;
+  }
+}
+
+END {
+  print "\nSRCDIR= " SRCDIR
+}
diff --git a/tools/tools/llvm_generator/scrape_tablegen.awk b/tools/tools/llvm_generator/scrape_tablegen.awk
new file mode 100644 (file)
index 0000000..59f9c14
--- /dev/null
@@ -0,0 +1,42 @@
+# must set SRCDIR externally
+
+BEGIN {
+  scanning=0;
+  srcs=0;
+  print "# Automatically generated.  Do not edit!";
+  print
+}
+
+{
+  if (scanning) {
+     keep_going = (NF > 0);
+     if (keep_going && ($1 == "#")) {
+        keep_going = 0;
+     }
+     if (keep_going && ($1 == ")")) {
+        keep_going = 0;
+        scanning = 0;
+     }
+     if (keep_going && ($1 == "LINK_LIBS")) {
+        keep_going = 0;
+     }
+     if (keep_going) {
+        if (srcs) {
+           print "\t" $1 " \\";
+        } else {
+           srcs=1;
+           print "SRCS=\t" $1 " \\";
+        }
+     }
+  } else if (substr($1,1,13) ==  "add_tablegen(") {
+       scanning=1
+       rest=substr($1,14)
+       space=index(rest," ")
+       prog=substr(rest,space + 1)
+       print "PROG_CXX=\t" prog "\n"
+  }
+}
+
+END {
+  print "\nSRCDIR= " SRCDIR
+}
index aa4937a..07869ef 100644 (file)
@@ -182,9 +182,17 @@ main(int argc, char **argv)
        /*
         * make buildworld glue and CCVER overrides.
         */
-       objformat_path = getenv("OBJFORMAT_PATH");
-       if (objformat_path == NULL)
-               objformat_path = OBJFORMAT_PATH_DEFAULT;
+       /*
+        * CCVER=clang check temporary; only for base clang import work
+        */
+       if (cmds && cmds->type == COMPILER &&
+           strcmp (env_value, "clang") == 0) {
+               objformat_path = "";
+       } else {
+               objformat_path = getenv("OBJFORMAT_PATH");
+               if (objformat_path == NULL)
+                       objformat_path = OBJFORMAT_PATH_DEFAULT;
+       }
 
 again:
        path = strdup(objformat_path);