First part of updating llvm/clang build glue: getting llvm-tblgen,

clang-tblgen and clang itself built.
This commit is contained in:
Dimitry Andric 2015-12-31 14:39:45 +00:00
parent 802df53c82
commit 34cdd77646
76 changed files with 217 additions and 143 deletions

View File

@ -1459,11 +1459,11 @@ _gensnmptree= usr.sbin/bsnmpd/gensnmptree
_clang_tblgen= \ _clang_tblgen= \
lib/clang/libllvmsupport \ lib/clang/libllvmsupport \
lib/clang/libllvmtablegen \ lib/clang/libllvmtablegen \
usr.bin/clang/tblgen \ usr.bin/clang/llvm-tblgen \
usr.bin/clang/clang-tblgen usr.bin/clang/clang-tblgen
${_bt}-usr.bin/clang/clang-tblgen: ${_bt}-lib/clang/libllvmtablegen ${_bt}-lib/clang/libllvmsupport ${_bt}-usr.bin/clang/clang-tblgen: ${_bt}-lib/clang/libllvmtablegen ${_bt}-lib/clang/libllvmsupport
${_bt}-usr.bin/clang/tblgen: ${_bt}-lib/clang/libllvmtablegen ${_bt}-lib/clang/libllvmsupport ${_bt}-usr.bin/clang/llvm-tblgen: ${_bt}-lib/clang/libllvmtablegen ${_bt}-lib/clang/libllvmsupport
.endif .endif
# Default to building the GPL DTC, but build the BSDL one if users explicitly # Default to building the GPL DTC, but build the BSDL one if users explicitly
@ -1668,7 +1668,7 @@ NXBENV= MAKEOBJDIRPREFIX=${OBJTREE}/nxb \
INSTALL="sh ${.CURDIR}/tools/install.sh" \ INSTALL="sh ${.CURDIR}/tools/install.sh" \
PATH=${PATH}:${OBJTREE}/gperf_for_gcc/usr/bin PATH=${PATH}:${OBJTREE}/gperf_for_gcc/usr/bin
NXBMAKE= ${NXBENV} ${MAKE} \ NXBMAKE= ${NXBENV} ${MAKE} \
TBLGEN=${NXBDESTDIR}/usr/bin/tblgen \ LLVM_TBLGEN=${NXBDESTDIR}/usr/bin/llvm-tblgen \
CLANG_TBLGEN=${NXBDESTDIR}/usr/bin/clang-tblgen \ CLANG_TBLGEN=${NXBDESTDIR}/usr/bin/clang-tblgen \
MACHINE=${TARGET} MACHINE_ARCH=${TARGET_ARCH} \ MACHINE=${TARGET} MACHINE_ARCH=${TARGET_ARCH} \
MK_GDB=no MK_TESTS=no \ MK_GDB=no MK_TESTS=no \

View File

@ -38,7 +38,6 @@ SUBDIR= libclanganalysis \
libllvmcore \ libllvmcore \
libllvminstcombine \ libllvminstcombine \
libllvminstrumentation \ libllvminstrumentation \
libllvmipa \
libllvmipo \ libllvmipo \
libllvmirreader \ libllvmirreader \
libllvmlinker \ libllvmlinker \
@ -58,38 +57,38 @@ SUBDIR= libclanganalysis \
libllvmvectorize \ libllvmvectorize \
\ \
libllvmaarch64asmparser \ libllvmaarch64asmparser \
libllvmaarch64asmprinter \
libllvmaarch64codegen \ libllvmaarch64codegen \
libllvmaarch64desc \ libllvmaarch64desc \
libllvmaarch64info \ libllvmaarch64info \
libllvmaarch64instprinter \
libllvmaarch64utils \ libllvmaarch64utils \
libllvmarmasmparser \ libllvmarmasmparser \
libllvmarmasmprinter \
libllvmarmcodegen \ libllvmarmcodegen \
libllvmarmdesc \ libllvmarmdesc \
libllvmarmdisassembler \ libllvmarmdisassembler \
libllvmarminfo \ libllvmarminfo \
libllvmarminstprinter \
libllvmmipsasmparser \ libllvmmipsasmparser \
libllvmmipsasmprinter \
libllvmmipscodegen \ libllvmmipscodegen \
libllvmmipsdesc \ libllvmmipsdesc \
libllvmmipsinfo \ libllvmmipsinfo \
libllvmmipsinstprinter \
libllvmpowerpcasmparser \ libllvmpowerpcasmparser \
libllvmpowerpcasmprinter \
libllvmpowerpccodegen \ libllvmpowerpccodegen \
libllvmpowerpcdesc \ libllvmpowerpcdesc \
libllvmpowerpcdisassembler \ libllvmpowerpcdisassembler \
libllvmpowerpcinfo \ libllvmpowerpcinfo \
libllvmpowerpcinstprinter \
libllvmsparcasmparser \ libllvmsparcasmparser \
libllvmsparcasmprinter \
libllvmsparccodegen \ libllvmsparccodegen \
libllvmsparcdesc \ libllvmsparcdesc \
libllvmsparcinfo \ libllvmsparcinfo \
libllvmsparcinstprinter \
libllvmx86asmparser \ libllvmx86asmparser \
libllvmx86asmprinter \
libllvmx86codegen \ libllvmx86codegen \
libllvmx86desc \ libllvmx86desc \
libllvmx86info \ libllvmx86info \
libllvmx86instprinter \
libllvmx86utils libllvmx86utils
.if ${MK_CLANG_EXTRAS} != "no" .if ${MK_CLANG_EXTRAS} != "no"
@ -99,11 +98,13 @@ SUBDIR+=libllvmdebuginfodwarf \
libllvmlto \ libllvmlto \
libllvmmirparser \ libllvmmirparser \
libllvmorcjit \ libllvmorcjit \
libllvmpasses libllvmpasses \
libllvmsymbolize
.endif # MK_CLANG_EXTRAS .endif # MK_CLANG_EXTRAS
.if ${MK_CLANG_EXTRAS} != "no" || ${MK_LLDB} != "no" .if ${MK_CLANG_EXTRAS} != "no" || ${MK_LLDB} != "no"
SUBDIR+=libllvmaarch64disassembler \ SUBDIR+=libllvmexecutionengine \
libllvmexecutionengine \ libllvmaarch64disassembler \
libllvminterpreter \ libllvminterpreter \
libllvmmcjit \ libllvmmcjit \
libllvmmipsdisassembler \ libllvmmipsdisassembler \

View File

@ -39,13 +39,24 @@ CXXFLAGS.clang+= -stdlib=libc++
.PATH: ${LLVM_SRCS}/${SRCDIR} .PATH: ${LLVM_SRCS}/${SRCDIR}
TBLGEN?= tblgen LLVM_TBLGEN?= llvm-tblgen
CLANG_TBLGEN?= clang-tblgen CLANG_TBLGEN?= clang-tblgen
Attributes.inc.h: ${LLVM_SRCS}/include/llvm/IR/Attributes.td
${LLVM_TBLGEN} -gen-attrs \
-I ${LLVM_SRCS}/include -d ${.TARGET:C/\.h$/.d/} -o ${.TARGET} \
${LLVM_SRCS}/include/llvm/IR/Attributes.td
AttributesCompatFunc.inc.h: ${LLVM_SRCS}/lib/IR/AttributesCompatFunc.td
${LLVM_TBLGEN} -gen-attrs \
-I ${LLVM_SRCS}/include -d ${.TARGET:C/\.h$/.d/} -o ${.TARGET} \
${LLVM_SRCS}/lib/IR/AttributesCompatFunc.td
Intrinsics.inc.h: ${LLVM_SRCS}/include/llvm/IR/Intrinsics.td Intrinsics.inc.h: ${LLVM_SRCS}/include/llvm/IR/Intrinsics.td
${TBLGEN} -gen-intrinsic \ ${LLVM_TBLGEN} -gen-intrinsic \
-I ${LLVM_SRCS}/include -d ${.TARGET:C/\.h$/.d/} -o ${.TARGET} \ -I ${LLVM_SRCS}/include -d ${.TARGET:C/\.h$/.d/} -o ${.TARGET} \
${LLVM_SRCS}/include/llvm/IR/Intrinsics.td ${LLVM_SRCS}/include/llvm/IR/Intrinsics.td
.for arch in \ .for arch in \
AArch64/AArch64 ARM/ARM Mips/Mips PowerPC/PPC Sparc/Sparc X86/X86 AArch64/AArch64 ARM/ARM Mips/Mips PowerPC/PPC Sparc/Sparc X86/X86
. for hdr in \ . for hdr in \
@ -63,7 +74,7 @@ Intrinsics.inc.h: ${LLVM_SRCS}/include/llvm/IR/Intrinsics.td
RegisterInfo/-gen-register-info \ RegisterInfo/-gen-register-info \
SubtargetInfo/-gen-subtarget SubtargetInfo/-gen-subtarget
${arch:T}Gen${hdr:H:C/$/.inc.h/}: ${LLVM_SRCS}/lib/Target/${arch:H}/${arch:T}.td ${arch:T}Gen${hdr:H:C/$/.inc.h/}: ${LLVM_SRCS}/lib/Target/${arch:H}/${arch:T}.td
${TBLGEN} ${hdr:T:C/,/ /g} \ ${LLVM_TBLGEN} ${hdr:T:C/,/ /g} \
-I ${LLVM_SRCS}/include -I ${LLVM_SRCS}/lib/Target/${arch:H} \ -I ${LLVM_SRCS}/include -I ${LLVM_SRCS}/lib/Target/${arch:H} \
-d ${.TARGET:C/\.h$/.d/} -o ${.TARGET} \ -d ${.TARGET:C/\.h$/.d/} -o ${.TARGET} \
${LLVM_SRCS}/lib/Target/${arch:H}/${arch:T}.td ${LLVM_SRCS}/lib/Target/${arch:H}/${arch:T}.td
@ -212,13 +223,13 @@ Diagnostic${hdr}Kinds.inc.h: ${CLANG_SRCS}/include/clang/Basic/Diagnostic.td
# XXX: Atrocious hack, need to clean this up later # XXX: Atrocious hack, need to clean this up later
.if defined(LIB) && ${LIB} == "llvmlibdriver" .if defined(LIB) && ${LIB} == "llvmlibdriver"
Options.inc.h: ${LLVM_SRCS}/lib/LibDriver/Options.td Options.inc.h: ${LLVM_SRCS}/lib/LibDriver/Options.td
${TBLGEN} -gen-opt-parser-defs \ ${LLVM_TBLGEN} -gen-opt-parser-defs \
-I ${LLVM_SRCS}/include \ -I ${LLVM_SRCS}/include \
-d ${.TARGET:C/\.h$/.d/} -o ${.TARGET} \ -d ${.TARGET:C/\.h$/.d/} -o ${.TARGET} \
${LLVM_SRCS}/lib/LibDriver/Options.td ${LLVM_SRCS}/lib/LibDriver/Options.td
.else .else
Options.inc.h: ${CLANG_SRCS}/include/clang/Driver/Options.td Options.inc.h: ${CLANG_SRCS}/include/clang/Driver/Options.td
${TBLGEN} -gen-opt-parser-defs \ ${LLVM_TBLGEN} -gen-opt-parser-defs \
-I ${LLVM_SRCS}/include -I ${CLANG_SRCS}/include/clang/Driver \ -I ${LLVM_SRCS}/include -I ${CLANG_SRCS}/include/clang/Driver \
-d ${.TARGET:C/\.h$/.d/} -o ${.TARGET} \ -d ${.TARGET:C/\.h$/.d/} -o ${.TARGET} \
${CLANG_SRCS}/include/clang/Driver/Options.td ${CLANG_SRCS}/include/clang/Driver/Options.td

View File

@ -0,0 +1,2 @@
/* $FreeBSD$ */
#include "AttributesCompatFunc.inc.h"

View File

@ -0,0 +1,2 @@
/* $FreeBSD$ */
#include "Attributes.inc.h"

View File

@ -34,6 +34,7 @@ SRCS= APValue.cpp \
ExprCXX.cpp \ ExprCXX.cpp \
ExprClassification.cpp \ ExprClassification.cpp \
ExprConstant.cpp \ ExprConstant.cpp \
ExprObjC.cpp \
ExternalASTSource.cpp \ ExternalASTSource.cpp \
InheritViz.cpp \ InheritViz.cpp \
ItaniumCXXABI.cpp \ ItaniumCXXABI.cpp \
@ -43,13 +44,17 @@ SRCS= APValue.cpp \
MicrosoftMangle.cpp \ MicrosoftMangle.cpp \
NSAPI.cpp \ NSAPI.cpp \
NestedNameSpecifier.cpp \ NestedNameSpecifier.cpp \
OpenMPClause.cpp \
ParentMap.cpp \ ParentMap.cpp \
RawCommentList.cpp \ RawCommentList.cpp \
RecordLayout.cpp \ RecordLayout.cpp \
RecordLayoutBuilder.cpp \ RecordLayoutBuilder.cpp \
SelectorLocationsKind.cpp \ SelectorLocationsKind.cpp \
Stmt.cpp \ Stmt.cpp \
StmtCXX.cpp \
StmtIterator.cpp \ StmtIterator.cpp \
StmtObjC.cpp \
StmtOpenMP.cpp \
StmtPrinter.cpp \ StmtPrinter.cpp \
StmtProfile.cpp \ StmtProfile.cpp \
StmtViz.cpp \ StmtViz.cpp \

View File

@ -56,6 +56,7 @@ SRCS= BackendUtil.cpp \
TGHDRS= AttrList \ TGHDRS= AttrList \
AttrParsedAttrList \ AttrParsedAttrList \
AttrVisitor \ AttrVisitor \
Attributes \
Attrs \ Attrs \
CommentCommandList \ CommentCommandList \
CommentNodes \ CommentNodes \

View File

@ -33,6 +33,7 @@ SRCS= ASTConsumers.cpp \
PrintPreprocessedOutput.cpp \ PrintPreprocessedOutput.cpp \
SerializedDiagnosticPrinter.cpp \ SerializedDiagnosticPrinter.cpp \
SerializedDiagnosticReader.cpp \ SerializedDiagnosticReader.cpp \
TestModuleFileExtension.cpp \
TextDiagnostic.cpp \ TextDiagnostic.cpp \
TextDiagnosticBuffer.cpp \ TextDiagnosticBuffer.cpp \
TextDiagnosticPrinter.cpp \ TextDiagnosticPrinter.cpp \
@ -41,6 +42,7 @@ SRCS= ASTConsumers.cpp \
TGHDRS= AttrList \ TGHDRS= AttrList \
AttrParsedAttrList \ AttrParsedAttrList \
AttrVisitor \ AttrVisitor \
Attributes \
Attrs \ Attrs \
CommentCommandList \ CommentCommandList \
CommentNodes \ CommentNodes \

View File

@ -1,6 +1,6 @@
# $FreeBSD$ # $FreeBSD$
.include <bsd.own.mk> .include <src.opts.mk>
LIB= clangrewritefrontend LIB= clangrewritefrontend
@ -12,6 +12,11 @@ SRCS= FixItRewriter.cpp \
RewriteMacros.cpp \ RewriteMacros.cpp \
RewriteTest.cpp RewriteTest.cpp
.if ${MK_CLANG_EXTRAS} != "no"
SRCS+= RewriteModernObjC.cpp \
RewriteObjC.cpp
.endif
TGHDRS= AttrList \ TGHDRS= AttrList \
AttrParsedAttrList \ AttrParsedAttrList \
Attrs \ Attrs \

View File

@ -24,6 +24,7 @@ SRCS= AnalysisBasedWarnings.cpp \
SemaChecking.cpp \ SemaChecking.cpp \
SemaCodeComplete.cpp \ SemaCodeComplete.cpp \
SemaConsumer.cpp \ SemaConsumer.cpp \
SemaCoroutine.cpp \
SemaDecl.cpp \ SemaDecl.cpp \
SemaDeclAttr.cpp \ SemaDeclAttr.cpp \
SemaDeclCXX.cpp \ SemaDeclCXX.cpp \

View File

@ -15,6 +15,7 @@ SRCS= ASTCommon.cpp \
GeneratePCH.cpp \ GeneratePCH.cpp \
GlobalModuleIndex.cpp \ GlobalModuleIndex.cpp \
Module.cpp \ Module.cpp \
ModuleFileExtension.cpp \
ModuleManager.cpp ModuleManager.cpp
TGHDRS= AttrList \ TGHDRS= AttrList \

View File

@ -28,6 +28,7 @@ SRCS= AllocationDiagnostics.cpp \
DereferenceChecker.cpp \ DereferenceChecker.cpp \
DirectIvarAssignment.cpp \ DirectIvarAssignment.cpp \
DivZeroChecker.cpp \ DivZeroChecker.cpp \
DynamicTypeChecker.cpp \
DynamicTypePropagation.cpp \ DynamicTypePropagation.cpp \
ExprInspectionChecker.cpp \ ExprInspectionChecker.cpp \
FixedAddressChecker.cpp \ FixedAddressChecker.cpp \
@ -35,6 +36,7 @@ SRCS= AllocationDiagnostics.cpp \
IdenticalExprChecker.cpp \ IdenticalExprChecker.cpp \
IvarInvalidationChecker.cpp \ IvarInvalidationChecker.cpp \
LLVMConventionsChecker.cpp \ LLVMConventionsChecker.cpp \
LocalizationChecker.cpp \
MacOSKeychainAPIChecker.cpp \ MacOSKeychainAPIChecker.cpp \
MacOSXAPIChecker.cpp \ MacOSXAPIChecker.cpp \
MallocChecker.cpp \ MallocChecker.cpp \
@ -44,12 +46,14 @@ SRCS= AllocationDiagnostics.cpp \
NSErrorChecker.cpp \ NSErrorChecker.cpp \
NoReturnFunctionChecker.cpp \ NoReturnFunctionChecker.cpp \
NonNullParamChecker.cpp \ NonNullParamChecker.cpp \
NullabilityChecker.cpp \
ObjCAtSyncChecker.cpp \ ObjCAtSyncChecker.cpp \
ObjCContainersASTChecker.cpp \ ObjCContainersASTChecker.cpp \
ObjCContainersChecker.cpp \ ObjCContainersChecker.cpp \
ObjCMissingSuperCallChecker.cpp \ ObjCMissingSuperCallChecker.cpp \
ObjCSelfInitChecker.cpp \ ObjCSelfInitChecker.cpp \
ObjCUnusedIVarsChecker.cpp \ ObjCUnusedIVarsChecker.cpp \
PaddingChecker.cpp \
PointerArithChecker.cpp \ PointerArithChecker.cpp \
PointerSubChecker.cpp \ PointerSubChecker.cpp \
PthreadLockChecker.cpp \ PthreadLockChecker.cpp \
@ -70,6 +74,7 @@ SRCS= AllocationDiagnostics.cpp \
UnixAPIChecker.cpp \ UnixAPIChecker.cpp \
UnreachableCodeChecker.cpp \ UnreachableCodeChecker.cpp \
VLASizeChecker.cpp \ VLASizeChecker.cpp \
VforkChecker.cpp \
VirtualCallChecker.cpp VirtualCallChecker.cpp
.if ${MK_CLANG_EXTRAS} != "no" .if ${MK_CLANG_EXTRAS} != "no"

View File

@ -21,6 +21,7 @@ SRCS= APSIntType.cpp \
CommonBugCategories.cpp \ CommonBugCategories.cpp \
ConstraintManager.cpp \ ConstraintManager.cpp \
CoreEngine.cpp \ CoreEngine.cpp \
DynamicTypeMap.cpp \
Environment.cpp \ Environment.cpp \
ExplodedGraph.cpp \ ExplodedGraph.cpp \
ExprEngine.cpp \ ExprEngine.cpp \
@ -30,6 +31,8 @@ SRCS= APSIntType.cpp \
ExprEngineObjC.cpp \ ExprEngineObjC.cpp \
FunctionSummary.cpp \ FunctionSummary.cpp \
HTMLDiagnostics.cpp \ HTMLDiagnostics.cpp \
IssueHash.cpp \
LoopWidening.cpp \
MemRegion.cpp \ MemRegion.cpp \
PathDiagnostic.cpp \ PathDiagnostic.cpp \
PlistDiagnostics.cpp \ PlistDiagnostics.cpp \

View File

@ -7,8 +7,8 @@ LIB= clangstaticanalyzerfrontend
SRCDIR= tools/clang/lib/StaticAnalyzer/Frontend SRCDIR= tools/clang/lib/StaticAnalyzer/Frontend
SRCS= AnalysisConsumer.cpp \ SRCS= AnalysisConsumer.cpp \
CheckerRegistration.cpp \ CheckerRegistration.cpp \
ModelConsumer.cpp \
FrontendActions.cpp \ FrontendActions.cpp \
ModelConsumer.cpp \
ModelInjector.cpp ModelInjector.cpp
TGHDRS= AttrList \ TGHDRS= AttrList \

View File

@ -2,7 +2,7 @@
.include <bsd.own.mk> .include <bsd.own.mk>
LIB= llvmaarch64instprinter LIB= llvmaarch64asmprinter
SRCDIR= lib/Target/AArch64/InstPrinter SRCDIR= lib/Target/AArch64/InstPrinter
INCDIR= lib/Target/AArch64 INCDIR= lib/Target/AArch64

View File

@ -41,6 +41,7 @@ TGHDRS= AArch64GenCallingConv \
AArch64GenMCPseudoLowering \ AArch64GenMCPseudoLowering \
AArch64GenRegisterInfo \ AArch64GenRegisterInfo \
AArch64GenSubtargetInfo \ AArch64GenSubtargetInfo \
Attributes \
Intrinsics Intrinsics
.include "../clang.lib.mk" .include "../clang.lib.mk"

View File

@ -19,6 +19,7 @@ CFLAGS+= -I${LLVM_SRCS}/${SRCDIR}/..
TGHDRS= AArch64GenInstrInfo \ TGHDRS= AArch64GenInstrInfo \
AArch64GenMCCodeEmitter \ AArch64GenMCCodeEmitter \
AArch64GenRegisterInfo \ AArch64GenRegisterInfo \
AArch64GenSubtargetInfo AArch64GenSubtargetInfo \
Attributes
.include "../clang.lib.mk" .include "../clang.lib.mk"

View File

@ -12,7 +12,9 @@ SRCS= AArch64Disassembler.cpp
SRCS+= AArch64ExternalSymbolizer.cpp SRCS+= AArch64ExternalSymbolizer.cpp
.endif .endif
TGHDRS= AArch64GenDisassemblerTables \ TGHDRS= Attributes \
Intrinsics \
AArch64GenDisassemblerTables \
AArch64GenInstrInfo \ AArch64GenInstrInfo \
AArch64GenRegisterInfo \ AArch64GenRegisterInfo \
AArch64GenSubtargetInfo AArch64GenSubtargetInfo

View File

@ -6,9 +6,7 @@ LIB= llvmanalysis
SRCDIR= lib/Analysis SRCDIR= lib/Analysis
SRCS= AliasAnalysis.cpp \ SRCS= AliasAnalysis.cpp \
AliasAnalysisCounter.cpp \
AliasAnalysisEvaluator.cpp \ AliasAnalysisEvaluator.cpp \
AliasDebugger.cpp \
AliasSetTracker.cpp \ AliasSetTracker.cpp \
AssumptionCache.cpp \ AssumptionCache.cpp \
BasicAliasAnalysis.cpp \ BasicAliasAnalysis.cpp \
@ -18,16 +16,23 @@ SRCS= AliasAnalysis.cpp \
CFG.cpp \ CFG.cpp \
CFGPrinter.cpp \ CFGPrinter.cpp \
CFLAliasAnalysis.cpp \ CFLAliasAnalysis.cpp \
CallGraph.cpp \
CallGraphSCCPass.cpp \
CallPrinter.cpp \
CaptureTracking.cpp \ CaptureTracking.cpp \
CodeMetrics.cpp \ CodeMetrics.cpp \
ConstantFolding.cpp \ ConstantFolding.cpp \
CostModel.cpp \ CostModel.cpp \
Delinearization.cpp \ Delinearization.cpp \
DemandedBits.cpp \
DependenceAnalysis.cpp \ DependenceAnalysis.cpp \
DivergenceAnalysis.cpp \ DivergenceAnalysis.cpp \
DomPrinter.cpp \ DomPrinter.cpp \
DominanceFrontier.cpp \ DominanceFrontier.cpp \
EHPersonalities.cpp \
GlobalsModRef.cpp \
IVUsers.cpp \ IVUsers.cpp \
InlineCost.cpp \
InstCount.cpp \ InstCount.cpp \
InstructionSimplify.cpp \ InstructionSimplify.cpp \
Interval.cpp \ Interval.cpp \
@ -35,8 +40,6 @@ SRCS= AliasAnalysis.cpp \
IteratedDominanceFrontier.cpp \ IteratedDominanceFrontier.cpp \
LazyCallGraph.cpp \ LazyCallGraph.cpp \
LazyValueInfo.cpp \ LazyValueInfo.cpp \
LibCallAliasAnalysis.cpp \
LibCallSemantics.cpp \
Lint.cpp \ Lint.cpp \
Loads.cpp \ Loads.cpp \
LoopAccessAnalysis.cpp \ LoopAccessAnalysis.cpp \
@ -48,7 +51,10 @@ SRCS= AliasAnalysis.cpp \
MemoryDependenceAnalysis.cpp \ MemoryDependenceAnalysis.cpp \
MemoryLocation.cpp \ MemoryLocation.cpp \
ModuleDebugInfoPrinter.cpp \ ModuleDebugInfoPrinter.cpp \
NoAliasAnalysis.cpp \ ObjCARCAliasAnalysis.cpp \
ObjCARCAnalysisUtils.cpp \
ObjCARCInstKind.cpp \
OrderedBasicBlock.cpp \
PHITransAddr.cpp \ PHITransAddr.cpp \
PostDominators.cpp \ PostDominators.cpp \
PtrUseVisitor.cpp \ PtrUseVisitor.cpp \
@ -73,6 +79,7 @@ SRCS+= Analysis.cpp \
Trace.cpp Trace.cpp
.endif .endif
TGHDRS= Intrinsics TGHDRS= Attributes \
Intrinsics
.include "../clang.lib.mk" .include "../clang.lib.mk"

View File

@ -2,7 +2,7 @@
.include <bsd.own.mk> .include <bsd.own.mk>
LIB= llvmarminstprinter LIB= llvmarmasmprinter
SRCDIR= lib/Target/ARM/InstPrinter SRCDIR= lib/Target/ARM/InstPrinter
INCDIR= lib/Target/ARM INCDIR= lib/Target/ARM

View File

@ -46,6 +46,7 @@ TGHDRS= ARMGenAsmWriter \
ARMGenMCPseudoLowering \ ARMGenMCPseudoLowering \
ARMGenRegisterInfo \ ARMGenRegisterInfo \
ARMGenSubtargetInfo \ ARMGenSubtargetInfo \
Attributes \
Intrinsics Intrinsics
.include "../clang.lib.mk" .include "../clang.lib.mk"

View File

@ -6,7 +6,6 @@ LIB= llvmarmdesc
SRCDIR= lib/Target/ARM/MCTargetDesc SRCDIR= lib/Target/ARM/MCTargetDesc
SRCS= ARMAsmBackend.cpp \ SRCS= ARMAsmBackend.cpp \
ARMELFObjectWriter.cpp \
ARMELFObjectWriter.cpp \ ARMELFObjectWriter.cpp \
ARMELFStreamer.cpp \ ARMELFStreamer.cpp \
ARMMCAsmInfo.cpp \ ARMMCAsmInfo.cpp \
@ -24,6 +23,7 @@ CFLAGS+= -I${LLVM_SRCS}/${SRCDIR}/..
TGHDRS= ARMGenInstrInfo \ TGHDRS= ARMGenInstrInfo \
ARMGenMCCodeEmitter \ ARMGenMCCodeEmitter \
ARMGenRegisterInfo \ ARMGenRegisterInfo \
ARMGenSubtargetInfo ARMGenSubtargetInfo \
Attributes
.include "../clang.lib.mk" .include "../clang.lib.mk"

View File

@ -10,6 +10,7 @@ SRCS= ARMTargetInfo.cpp
TGHDRS= ARMGenInstrInfo \ TGHDRS= ARMGenInstrInfo \
ARMGenRegisterInfo \ ARMGenRegisterInfo \
ARMGenSubtargetInfo ARMGenSubtargetInfo \
Attributes
.include "../clang.lib.mk" .include "../clang.lib.mk"

View File

@ -9,4 +9,6 @@ SRCS= LLLexer.cpp \
LLParser.cpp \ LLParser.cpp \
Parser.cpp Parser.cpp
TGHDRS= Attributes
.include "../clang.lib.mk" .include "../clang.lib.mk"

View File

@ -12,8 +12,8 @@ SRCS= ARMException.cpp \
AsmPrinterInlineAsm.cpp \ AsmPrinterInlineAsm.cpp \
DIE.cpp \ DIE.cpp \
DIEHash.cpp \ DIEHash.cpp \
DebugLocStream.cpp \
DbgValueHistoryCalculator.cpp \ DbgValueHistoryCalculator.cpp \
DebugLocStream.cpp \
DwarfAccelTable.cpp \ DwarfAccelTable.cpp \
DwarfCFIException.cpp \ DwarfCFIException.cpp \
DwarfCompileUnit.cpp \ DwarfCompileUnit.cpp \
@ -28,6 +28,7 @@ SRCS= ARMException.cpp \
WinCodeViewLineTables.cpp \ WinCodeViewLineTables.cpp \
WinException.cpp WinException.cpp
TGHDRS= Intrinsics TGHDRS= Attributes \
Intrinsics
.include "../clang.lib.mk" .include "../clang.lib.mk"

View File

@ -1,14 +1,18 @@
# $FreeBSD$ # $FreeBSD$
.include <bsd.own.mk> .include <src.opts.mk>
LIB= llvmbitreader LIB= llvmbitreader
SRCDIR= lib/Bitcode/Reader SRCDIR= lib/Bitcode/Reader
SRCS= BitReader.cpp \ SRCS= BitcodeReader.cpp \
BitcodeReader.cpp \
BitstreamReader.cpp BitstreamReader.cpp
TGHDRS= Intrinsics .if ${MK_CLANG_EXTRAS} != "no"
SRCS+= BitReader.cpp
.endif
TGHDRS= Attributes \
Intrinsics
.include "../clang.lib.mk" .include "../clang.lib.mk"

View File

@ -13,4 +13,7 @@ SRCS= BitcodeWriter.cpp \
SRCS+= BitWriter.cpp SRCS+= BitWriter.cpp
.endif .endif
TGHDRS= Attributes \
Intrinsics
.include "../clang.lib.mk" .include "../clang.lib.mk"

View File

@ -27,6 +27,7 @@ SRCS= AggressiveAntiDepBreaker.cpp \
ExpandISelPseudos.cpp \ ExpandISelPseudos.cpp \
ExpandPostRAPseudos.cpp \ ExpandPostRAPseudos.cpp \
FaultMaps.cpp \ FaultMaps.cpp \
FuncletLayout.cpp \
GCMetadata.cpp \ GCMetadata.cpp \
GCRootLowering.cpp \ GCRootLowering.cpp \
GlobalMerge.cpp \ GlobalMerge.cpp \
@ -39,6 +40,7 @@ SRCS= AggressiveAntiDepBreaker.cpp \
LLVMTargetMachine.cpp \ LLVMTargetMachine.cpp \
LatencyPriorityQueue.cpp \ LatencyPriorityQueue.cpp \
LexicalScopes.cpp \ LexicalScopes.cpp \
LiveDebugValues.cpp \
LiveDebugVariables.cpp \ LiveDebugVariables.cpp \
LiveInterval.cpp \ LiveInterval.cpp \
LiveIntervalAnalysis.cpp \ LiveIntervalAnalysis.cpp \
@ -84,6 +86,7 @@ SRCS= AggressiveAntiDepBreaker.cpp \
OptimizePHIs.cpp \ OptimizePHIs.cpp \
PHIElimination.cpp \ PHIElimination.cpp \
PHIEliminationUtils.cpp \ PHIEliminationUtils.cpp \
ParallelCG.cpp \
Passes.cpp \ Passes.cpp \
PeepholeOptimizer.cpp \ PeepholeOptimizer.cpp \
PostRASchedulerList.cpp \ PostRASchedulerList.cpp \
@ -134,6 +137,7 @@ SRCS+= GCMetadataPrinter.cpp \
GCStrategy.cpp GCStrategy.cpp
.endif .endif
TGHDRS= Intrinsics TGHDRS= Attributes \
Intrinsics
.include "../clang.lib.mk" .include "../clang.lib.mk"

View File

@ -23,6 +23,7 @@ SRCS= AsmWriter.cpp \
DiagnosticPrinter.cpp \ DiagnosticPrinter.cpp \
Dominators.cpp \ Dominators.cpp \
Function.cpp \ Function.cpp \
FunctionInfo.cpp \
GCOV.cpp \ GCOV.cpp \
GVMaterializer.cpp \ GVMaterializer.cpp \
Globals.cpp \ Globals.cpp \
@ -38,7 +39,6 @@ SRCS= AsmWriter.cpp \
MDBuilder.cpp \ MDBuilder.cpp \
Mangler.cpp \ Mangler.cpp \
Metadata.cpp \ Metadata.cpp \
MetadataTracking.cpp \
Module.cpp \ Module.cpp \
Operator.cpp \ Operator.cpp \
Pass.cpp \ Pass.cpp \
@ -57,6 +57,8 @@ SRCS= AsmWriter.cpp \
SRCS+= PassManager.cpp SRCS+= PassManager.cpp
.endif .endif
TGHDRS= Intrinsics TGHDRS= Attributes \
AttributesCompatFunc \
Intrinsics
.include "../clang.lib.mk" .include "../clang.lib.mk"

View File

@ -16,10 +16,12 @@ SRCS= DWARFAbbreviationDeclaration.cpp \
DWARFDebugInfoEntry.cpp \ DWARFDebugInfoEntry.cpp \
DWARFDebugLine.cpp \ DWARFDebugLine.cpp \
DWARFDebugLoc.cpp \ DWARFDebugLoc.cpp \
DWARFDebugMacro.cpp \
DWARFDebugRangeList.cpp \ DWARFDebugRangeList.cpp \
DWARFFormValue.cpp \ DWARFFormValue.cpp \
DWARFTypeUnit.cpp \ DWARFTypeUnit.cpp \
DWARFUnit.cpp \ DWARFUnit.cpp \
DWARFUnitIndex.cpp \
SyntaxHighlighting.cpp SyntaxHighlighting.cpp
.include "../clang.lib.mk" .include "../clang.lib.mk"

View File

@ -19,6 +19,7 @@ SRCS= InstCombineAddSub.cpp \
InstCombineVectorOps.cpp \ InstCombineVectorOps.cpp \
InstructionCombining.cpp InstructionCombining.cpp
TGHDRS= Intrinsics TGHDRS= Attributes \
Intrinsics
.include "../clang.lib.mk" .include "../clang.lib.mk"

View File

@ -9,16 +9,15 @@ SRCS= AddressSanitizer.cpp \
BoundsChecking.cpp \ BoundsChecking.cpp \
DataFlowSanitizer.cpp \ DataFlowSanitizer.cpp \
GCOVProfiling.cpp \ GCOVProfiling.cpp \
MemorySanitizer.cpp \
InstrProfiling.cpp \ InstrProfiling.cpp \
Instrumentation.cpp \
MemorySanitizer.cpp \
PGOInstrumentation.cpp \
SafeStack.cpp \ SafeStack.cpp \
SanitizerCoverage.cpp \ SanitizerCoverage.cpp \
ThreadSanitizer.cpp ThreadSanitizer.cpp
.if ${MK_CLANG_EXTRAS} != "no" TGHDRS= Attributes \
SRCS+= Instrumentation.cpp Intrinsics
.endif
TGHDRS= Intrinsics
.include "../clang.lib.mk" .include "../clang.lib.mk"

View File

@ -1,20 +0,0 @@
# $FreeBSD$
.include <src.opts.mk>
LIB= llvmipa
SRCDIR= lib/Analysis/IPA
SRCS= CallGraph.cpp \
CallGraphSCCPass.cpp \
CallPrinter.cpp \
GlobalsModRef.cpp \
InlineCost.cpp
.if ${MK_CLANG_EXTRAS} != "no"
SRCS+= IPA.cpp
.endif
TGHDRS= Intrinsics
.include "../clang.lib.mk"

View File

@ -1,26 +0,0 @@
# $FreeBSD$
# Autogenerated - do NOT edit!
DIRDEPS = \
include \
include/xlocale \
lib/libc++ \
lib/msun \
usr.bin/clang/tblgen.host \
.include <dirdeps.mk>
.if ${DEP_RELDIR} == ${_DEP_RELDIR}
# local dependencies - needed for -jN in clean tree
CallGraph.o: Intrinsics.inc.h
CallGraph.po: Intrinsics.inc.h
CallGraphSCCPass.o: Intrinsics.inc.h
CallGraphSCCPass.po: Intrinsics.inc.h
CallPrinter.o: Intrinsics.inc.h
CallPrinter.po: Intrinsics.inc.h
GlobalsModRef.o: Intrinsics.inc.h
GlobalsModRef.po: Intrinsics.inc.h
InlineCost.o: Intrinsics.inc.h
InlineCost.po: Intrinsics.inc.h
.endif

View File

@ -8,13 +8,17 @@ SRCDIR= lib/Transforms/IPO
SRCS= ArgumentPromotion.cpp \ SRCS= ArgumentPromotion.cpp \
BarrierNoopPass.cpp \ BarrierNoopPass.cpp \
ConstantMerge.cpp \ ConstantMerge.cpp \
CrossDSOCFI.cpp \
DeadArgumentElimination.cpp \ DeadArgumentElimination.cpp \
ElimAvailExtern.cpp \ ElimAvailExtern.cpp \
ExtractGV.cpp \ ExtractGV.cpp \
ForceFunctionAttrs.cpp \
FunctionAttrs.cpp \ FunctionAttrs.cpp \
FunctionImport.cpp \
GlobalDCE.cpp \ GlobalDCE.cpp \
GlobalOpt.cpp \ GlobalOpt.cpp \
IPConstantPropagation.cpp \ IPConstantPropagation.cpp \
InferFunctionAttrs.cpp \
InlineAlways.cpp \ InlineAlways.cpp \
InlineSimple.cpp \ InlineSimple.cpp \
Inliner.cpp \ Inliner.cpp \
@ -25,6 +29,7 @@ SRCS= ArgumentPromotion.cpp \
PartialInlining.cpp \ PartialInlining.cpp \
PassManagerBuilder.cpp \ PassManagerBuilder.cpp \
PruneEH.cpp \ PruneEH.cpp \
SampleProfile.cpp \
StripDeadPrototypes.cpp \ StripDeadPrototypes.cpp \
StripSymbols.cpp StripSymbols.cpp
@ -32,6 +37,7 @@ SRCS= ArgumentPromotion.cpp \
SRCS+= IPO.cpp SRCS+= IPO.cpp
.endif .endif
TGHDRS= Intrinsics TGHDRS= Attributes \
Intrinsics
.include "../clang.lib.mk" .include "../clang.lib.mk"

View File

@ -7,4 +7,6 @@ LIB= llvmirreader
SRCDIR= lib/IRReader SRCDIR= lib/IRReader
SRCS= IRReader.cpp SRCS= IRReader.cpp
TGHDRS= Attributes
.include "../clang.lib.mk" .include "../clang.lib.mk"

View File

@ -5,6 +5,9 @@
LIB= llvmlinker LIB= llvmlinker
SRCDIR= lib/Linker SRCDIR= lib/Linker
SRCS= LinkModules.cpp SRCS= IRMover.cpp \
LinkModules.cpp
TGHDRS= Attributes
.include "../clang.lib.mk" .include "../clang.lib.mk"

View File

@ -21,6 +21,7 @@ SRCS= ConstantPools.cpp \
MCELFObjectTargetWriter.cpp \ MCELFObjectTargetWriter.cpp \
MCELFStreamer.cpp \ MCELFStreamer.cpp \
MCExpr.cpp \ MCExpr.cpp \
MCFragment.cpp \
MCInst.cpp \ MCInst.cpp \
MCInstPrinter.cpp \ MCInstPrinter.cpp \
MCInstrAnalysis.cpp \ MCInstrAnalysis.cpp \

View File

@ -8,7 +8,8 @@ SRCDIR= lib/Target/Mips/AsmParser
INCDIR= lib/Target/Mips INCDIR= lib/Target/Mips
SRCS= MipsAsmParser.cpp SRCS= MipsAsmParser.cpp
TGHDRS= MipsGenAsmMatcher \ TGHDRS= Attributes \
MipsGenAsmMatcher \
MipsGenInstrInfo \ MipsGenInstrInfo \
MipsGenRegisterInfo \ MipsGenRegisterInfo \
MipsGenSubtargetInfo MipsGenSubtargetInfo

View File

@ -2,13 +2,14 @@
.include <bsd.own.mk> .include <bsd.own.mk>
LIB= llvmmipsinstprinter LIB= llvmmipsasmprinter
SRCDIR= lib/Target/Mips/InstPrinter SRCDIR= lib/Target/Mips/InstPrinter
INCDIR= lib/Target/Mips INCDIR= lib/Target/Mips
SRCS= MipsInstPrinter.cpp SRCS= MipsInstPrinter.cpp
TGHDRS= MipsGenAsmWriter \ TGHDRS= Attributes \
MipsGenAsmWriter \
MipsGenInstrInfo \ MipsGenInstrInfo \
MipsGenRegisterInfo \ MipsGenRegisterInfo \
MipsGenSubtargetInfo MipsGenSubtargetInfo

View File

@ -38,7 +38,8 @@ SRCS= Mips16FrameLowering.cpp \
MipsTargetMachine.cpp \ MipsTargetMachine.cpp \
MipsTargetObjectFile.cpp MipsTargetObjectFile.cpp
TGHDRS= Intrinsics \ TGHDRS= Attributes \
Intrinsics \
MipsGenAsmWriter \ MipsGenAsmWriter \
MipsGenCallingConv \ MipsGenCallingConv \
MipsGenCodeEmitter \ MipsGenCodeEmitter \

View File

@ -19,7 +19,8 @@ SRCS= MipsABIFlagsSection.cpp \
MipsTargetStreamer.cpp MipsTargetStreamer.cpp
CFLAGS+= -I${LLVM_SRCS}/${SRCDIR}/.. CFLAGS+= -I${LLVM_SRCS}/${SRCDIR}/..
TGHDRS= MipsGenInstrInfo \ TGHDRS= Attributes \
MipsGenInstrInfo \
MipsGenMCCodeEmitter \ MipsGenMCCodeEmitter \
MipsGenRegisterInfo \ MipsGenRegisterInfo \
MipsGenSubtargetInfo MipsGenSubtargetInfo

View File

@ -8,7 +8,9 @@ SRCDIR= lib/Target/Mips/Disassembler
INCDIR= lib/Target/Mips INCDIR= lib/Target/Mips
SRCS= MipsDisassembler.cpp SRCS= MipsDisassembler.cpp
TGHDRS= MipsGenDisassemblerTables \ TGHDRS= Attributes \
Intrinsics \
MipsGenDisassemblerTables \
MipsGenInstrInfo \ MipsGenInstrInfo \
MipsGenRegisterInfo \ MipsGenRegisterInfo \
MipsGenSubtargetInfo MipsGenSubtargetInfo

View File

@ -8,7 +8,8 @@ SRCDIR= lib/Target/Mips/TargetInfo
INCDIR= lib/Target/Mips INCDIR= lib/Target/Mips
SRCS= MipsTargetInfo.cpp SRCS= MipsTargetInfo.cpp
TGHDRS= MipsGenInstrInfo \ TGHDRS= Attributes \
MipsGenInstrInfo \
MipsGenRegisterInfo \ MipsGenRegisterInfo \
MipsGenSubtargetInfo MipsGenSubtargetInfo

View File

@ -1,15 +1,12 @@
# $FreeBSD$ # $FreeBSD$
.include <bsd.own.mk> .include <src.opts.mk>
LIB= llvmobjcarcopts LIB= llvmobjcarcopts
SRCDIR= lib/Transforms/ObjCARC SRCDIR= lib/Transforms/ObjCARC
SRCS= ARCInstKind.cpp \ SRCS= DependencyAnalysis.cpp \
DependencyAnalysis.cpp \
ObjCARC.cpp \
ObjCARCAPElim.cpp \ ObjCARCAPElim.cpp \
ObjCARCAliasAnalysis.cpp \
ObjCARCContract.cpp \ ObjCARCContract.cpp \
ObjCARCExpand.cpp \ ObjCARCExpand.cpp \
ObjCARCOpts.cpp \ ObjCARCOpts.cpp \
@ -17,6 +14,11 @@ SRCS= ARCInstKind.cpp \
ProvenanceAnalysisEvaluator.cpp \ ProvenanceAnalysisEvaluator.cpp \
PtrState.cpp PtrState.cpp
TGHDRS= Intrinsics .if ${MK_CLANG_EXTRAS} != "no"
SRCS+= ObjCARC.cpp
.endif
TGHDRS= Attributes \
Intrinsics
.include "../clang.lib.mk" .include "../clang.lib.mk"

View File

@ -14,6 +14,7 @@ SRCS= Archive.cpp \
ELFObjectFile.cpp \ ELFObjectFile.cpp \
ELFYAML.cpp \ ELFYAML.cpp \
Error.cpp \ Error.cpp \
FunctionIndexObjectFile.cpp \
IRObjectFile.cpp \ IRObjectFile.cpp \
MachOObjectFile.cpp \ MachOObjectFile.cpp \
MachOUniversal.cpp \ MachOUniversal.cpp \
@ -25,5 +26,7 @@ SRCS= Archive.cpp \
SRCS+= Object.cpp \ SRCS+= Object.cpp \
SymbolSize.cpp SymbolSize.cpp
.endif .endif
TGHDRS= Attributes
.include "../clang.lib.mk" .include "../clang.lib.mk"

View File

@ -7,6 +7,9 @@ LIB= llvmorcjit
SRCDIR= lib/ExecutionEngine/Orc SRCDIR= lib/ExecutionEngine/Orc
SRCS= ExecutionUtils.cpp \ SRCS= ExecutionUtils.cpp \
IndirectionUtils.cpp \ IndirectionUtils.cpp \
NullResolver.cpp \
OrcCBindings.cpp \
OrcCBindingsStack.cpp \
OrcMCJITReplacement.cpp \ OrcMCJITReplacement.cpp \
OrcTargetSupport.cpp OrcTargetSupport.cpp

View File

@ -2,7 +2,7 @@
.include <bsd.own.mk> .include <bsd.own.mk>
LIB= llvmpowerpcinstprinter LIB= llvmpowerpcasmprinter
SRCDIR= lib/Target/PowerPC/InstPrinter SRCDIR= lib/Target/PowerPC/InstPrinter
INCDIR= lib/Target/PowerPC INCDIR= lib/Target/PowerPC

View File

@ -6,6 +6,7 @@ LIB= llvmpowerpccodegen
SRCDIR= lib/Target/PowerPC SRCDIR= lib/Target/PowerPC
SRCS= PPCAsmPrinter.cpp \ SRCS= PPCAsmPrinter.cpp \
PPCBoolRetToInt.cpp \
PPCBranchSelector.cpp \ PPCBranchSelector.cpp \
PPCCTRLoops.cpp \ PPCCTRLoops.cpp \
PPCEarlyReturn.cpp \ PPCEarlyReturn.cpp \
@ -18,6 +19,7 @@ SRCS= PPCAsmPrinter.cpp \
PPCLoopDataPrefetch.cpp \ PPCLoopDataPrefetch.cpp \
PPCLoopPreIncPrep.cpp \ PPCLoopPreIncPrep.cpp \
PPCMCInstLower.cpp \ PPCMCInstLower.cpp \
PPCMIPeephole.cpp \
PPCMachineFunctionInfo.cpp \ PPCMachineFunctionInfo.cpp \
PPCRegisterInfo.cpp \ PPCRegisterInfo.cpp \
PPCSubtarget.cpp \ PPCSubtarget.cpp \
@ -30,7 +32,8 @@ SRCS= PPCAsmPrinter.cpp \
PPCVSXFMAMutate.cpp \ PPCVSXFMAMutate.cpp \
PPCVSXSwapRemoval.cpp PPCVSXSwapRemoval.cpp
TGHDRS= Intrinsics \ TGHDRS= Attributes \
Intrinsics \
PPCGenCallingConv \ PPCGenCallingConv \
PPCGenCodeEmitter \ PPCGenCodeEmitter \
PPCGenDAGISel \ PPCGenDAGISel \

View File

@ -8,7 +8,8 @@ SRCDIR= lib/Target/PowerPC/TargetInfo
INCDIR= lib/Target/PowerPC INCDIR= lib/Target/PowerPC
SRCS= PowerPCTargetInfo.cpp SRCS= PowerPCTargetInfo.cpp
TGHDRS= PPCGenInstrInfo \ TGHDRS= Attributes \
PPCGenInstrInfo \
PPCGenRegisterInfo \ PPCGenRegisterInfo \
PPCGenSubtargetInfo PPCGenSubtargetInfo

View File

@ -18,4 +18,6 @@ SRCS= CoverageMapping.cpp \
SRCS+= SampleProfWriter.cpp SRCS+= SampleProfWriter.cpp
.endif .endif
TGHDRS= Attributes
.include "../clang.lib.mk" .include "../clang.lib.mk"

View File

@ -26,6 +26,7 @@ SRCS= ADCE.cpp \
LoopDistribute.cpp \ LoopDistribute.cpp \
LoopIdiomRecognize.cpp \ LoopIdiomRecognize.cpp \
LoopInterchange.cpp \ LoopInterchange.cpp \
LoopLoadElimination.cpp \
LoopRerollPass.cpp \ LoopRerollPass.cpp \
LoopRotation.cpp \ LoopRotation.cpp \
LoopStrengthReduce.cpp \ LoopStrengthReduce.cpp \
@ -43,7 +44,6 @@ SRCS= ADCE.cpp \
RewriteStatepointsForGC.cpp \ RewriteStatepointsForGC.cpp \
SCCP.cpp \ SCCP.cpp \
SROA.cpp \ SROA.cpp \
SampleProfile.cpp \
ScalarReplAggregates.cpp \ ScalarReplAggregates.cpp \
Scalarizer.cpp \ Scalarizer.cpp \
SeparateConstOffsetFromGEP.cpp \ SeparateConstOffsetFromGEP.cpp \
@ -59,6 +59,7 @@ SRCS+= LoopInstSimplify.cpp \
Scalar.cpp Scalar.cpp
.endif .endif
TGHDRS= Intrinsics TGHDRS= Attributes \
Intrinsics
.include "../clang.lib.mk" .include "../clang.lib.mk"

View File

@ -30,6 +30,7 @@ SRCS= DAGCombiner.cpp \
TargetLowering.cpp \ TargetLowering.cpp \
TargetSelectionDAGInfo.cpp TargetSelectionDAGInfo.cpp
TGHDRS= Intrinsics TGHDRS= Attributes \
Intrinsics
.include "../clang.lib.mk" .include "../clang.lib.mk"

View File

@ -2,7 +2,7 @@
.include <bsd.own.mk> .include <bsd.own.mk>
LIB= llvmsparcinstprinter LIB= llvmsparcasmprinter
SRCDIR= lib/Target/Sparc/InstPrinter SRCDIR= lib/Target/Sparc/InstPrinter
INCDIR= lib/Target/Sparc INCDIR= lib/Target/Sparc

View File

@ -18,7 +18,8 @@ SRCS= DelaySlotFiller.cpp \
SparcTargetMachine.cpp \ SparcTargetMachine.cpp \
SparcTargetObjectFile.cpp SparcTargetObjectFile.cpp
TGHDRS= Intrinsics \ TGHDRS= Attributes \
Intrinsics \
SparcGenAsmWriter \ SparcGenAsmWriter \
SparcGenCallingConv \ SparcGenCallingConv \
SparcGenCodeEmitter \ SparcGenCodeEmitter \

View File

@ -8,7 +8,9 @@ SRCDIR= lib/Target/Sparc/Disassembler
INCDIR= lib/Target/Sparc INCDIR= lib/Target/Sparc
SRCS= SparcDisassembler.cpp SRCS= SparcDisassembler.cpp
TGHDRS= SparcGenDisassemblerTables \ TGHDRS= Attributes \
Intrinsics \
SparcGenDisassemblerTables \
SparcGenInstrInfo \ SparcGenInstrInfo \
SparcGenRegisterInfo \ SparcGenRegisterInfo \
SparcGenSubtargetInfo SparcGenSubtargetInfo

View File

@ -8,7 +8,8 @@ SRCDIR= lib/Target/Sparc/TargetInfo
INCDIR= lib/Target/Sparc INCDIR= lib/Target/Sparc
SRCS= SparcTargetInfo.cpp SRCS= SparcTargetInfo.cpp
TGHDRS= SparcGenInstrInfo \ TGHDRS= Attributes \
SparcGenInstrInfo \
SparcGenRegisterInfo \ SparcGenRegisterInfo \
SparcGenSubtargetInfo SparcGenSubtargetInfo

View File

@ -34,6 +34,7 @@ SRCS= APFloat.cpp \
IntEqClasses.cpp \ IntEqClasses.cpp \
IntervalMap.cpp \ IntervalMap.cpp \
IntrusiveRefCntPtr.cpp \ IntrusiveRefCntPtr.cpp \
JamCRC.cpp \
LEB128.cpp \ LEB128.cpp \
LineIterator.cpp \ LineIterator.cpp \
Locale.cpp \ Locale.cpp \
@ -77,7 +78,6 @@ SRCS= APFloat.cpp \
Triple.cpp \ Triple.cpp \
Twine.cpp \ Twine.cpp \
Unicode.cpp \ Unicode.cpp \
Valgrind.cpp \
YAMLParser.cpp \ YAMLParser.cpp \
YAMLTraits.cpp \ YAMLTraits.cpp \
circular_raw_ostream.cpp \ circular_raw_ostream.cpp \
@ -96,6 +96,8 @@ SRCS+= ARMWinEH.cpp \
FileOutputBuffer.cpp \ FileOutputBuffer.cpp \
FileUtilities.cpp \ FileUtilities.cpp \
SystemUtils.cpp \ SystemUtils.cpp \
ThreadPool.cpp \
Valgrind.cpp \
Watchdog.cpp Watchdog.cpp
.endif .endif

View File

@ -16,6 +16,7 @@ SRCS= Target.cpp \
SRCS+= TargetIntrinsicInfo.cpp SRCS+= TargetIntrinsicInfo.cpp
.endif .endif
TGHDRS= Intrinsics TGHDRS= Attributes \
Intrinsics
.include "../clang.lib.mk" .include "../clang.lib.mk"

View File

@ -40,6 +40,7 @@ SRCS= ASanStackFrameLayout.cpp \
SimplifyIndVar.cpp \ SimplifyIndVar.cpp \
SimplifyInstructions.cpp \ SimplifyInstructions.cpp \
SimplifyLibCalls.cpp \ SimplifyLibCalls.cpp \
SplitModule.cpp \
SymbolRewriter.cpp \ SymbolRewriter.cpp \
UnifyFunctionExitNodes.cpp \ UnifyFunctionExitNodes.cpp \
ValueMapper.cpp ValueMapper.cpp
@ -48,6 +49,7 @@ SRCS= ASanStackFrameLayout.cpp \
SRCS+= Utils.cpp SRCS+= Utils.cpp
.endif .endif
TGHDRS= Intrinsics TGHDRS= Attributes \
Intrinsics
.include "../clang.lib.mk" .include "../clang.lib.mk"

View File

@ -13,6 +13,7 @@ SRCS= BBVectorize.cpp \
SRCS+= Vectorize.cpp SRCS+= Vectorize.cpp
.endif .endif
TGHDRS= Intrinsics TGHDRS= Attributes \
Intrinsics
.include "../clang.lib.mk" .include "../clang.lib.mk"

View File

@ -2,7 +2,7 @@
.include <bsd.own.mk> .include <bsd.own.mk>
LIB= llvmx86instprinter LIB= llvmx86asmprinter
SRCDIR= lib/Target/X86/InstPrinter SRCDIR= lib/Target/X86/InstPrinter
INCDIR= lib/Target/X86 INCDIR= lib/Target/X86

View File

@ -17,6 +17,7 @@ SRCS= X86AsmPrinter.cpp \
X86InstrInfo.cpp \ X86InstrInfo.cpp \
X86MCInstLower.cpp \ X86MCInstLower.cpp \
X86MachineFunctionInfo.cpp \ X86MachineFunctionInfo.cpp \
X86OptimizeLEAs.cpp \
X86PadShortFunction.cpp \ X86PadShortFunction.cpp \
X86RegisterInfo.cpp \ X86RegisterInfo.cpp \
X86SelectionDAGInfo.cpp \ X86SelectionDAGInfo.cpp \
@ -27,7 +28,8 @@ SRCS= X86AsmPrinter.cpp \
X86VZeroUpper.cpp \ X86VZeroUpper.cpp \
X86WinEHState.cpp X86WinEHState.cpp
TGHDRS= Intrinsics \ TGHDRS= Attributes \
Intrinsics \
X86GenCallingConv \ X86GenCallingConv \
X86GenDAGISel \ X86GenDAGISel \
X86GenFastISel \ X86GenFastISel \

View File

@ -210,8 +210,9 @@ TRACER= ${TIME_STAMP} ${:U}
MK_SHARED_TOOLCHAIN= no MK_SHARED_TOOLCHAIN= no
.endif .endif
TOOLCHAIN_VARS= AS AR CC CLANG_TBLGEN CXX CPP LD NM OBJDUMP OBJCOPY RANLIB \ TOOLCHAIN_VARS= AS AR CC CLANG_TBLGEN CXX CPP LD NM OBJDUMP OBJCOPY RANLIB \
STRINGS SIZE TBLGEN STRINGS SIZE LLVM_TBLGEN
_toolchain_bin_CLANG_TBLGEN= /usr/bin/clang-tblgen _toolchain_bin_CLANG_TBLGEN= /usr/bin/clang-tblgen
_toolchain_bin_LLVM_TBLGEN= /usr/bin/llvm-tblgen
_toolchain_bin_CXX= /usr/bin/c++ _toolchain_bin_CXX= /usr/bin/c++
.ifdef WITH_TOOLSDIR .ifdef WITH_TOOLSDIR
TOOLSDIR?= ${HOST_OBJTOP}/tools TOOLSDIR?= ${HOST_OBJTOP}/tools

View File

@ -1052,7 +1052,7 @@ OLD_FILES+=usr/bin/clang
OLD_FILES+=usr/bin/clang++ OLD_FILES+=usr/bin/clang++
OLD_FILES+=usr/bin/clang-cpp OLD_FILES+=usr/bin/clang-cpp
OLD_FILES+=usr/bin/clang-tblgen OLD_FILES+=usr/bin/clang-tblgen
OLD_FILES+=usr/bin/tblgen OLD_FILES+=usr/bin/llvm-tblgen
OLD_FILES+=usr/lib/clang/3.8.0/include/sanitizer/allocator_interface.h OLD_FILES+=usr/lib/clang/3.8.0/include/sanitizer/allocator_interface.h
OLD_FILES+=usr/lib/clang/3.8.0/include/sanitizer/asan_interface.h OLD_FILES+=usr/lib/clang/3.8.0/include/sanitizer/asan_interface.h
OLD_FILES+=usr/lib/clang/3.8.0/include/sanitizer/common_interface_defs.h OLD_FILES+=usr/lib/clang/3.8.0/include/sanitizer/common_interface_defs.h
@ -1143,7 +1143,7 @@ OLD_DIRS+=usr/share/doc/llvm
OLD_FILES+=usr/share/man/man1/clang.1.gz OLD_FILES+=usr/share/man/man1/clang.1.gz
OLD_FILES+=usr/share/man/man1/clang++.1.gz OLD_FILES+=usr/share/man/man1/clang++.1.gz
OLD_FILES+=usr/share/man/man1/clang-cpp.1.gz OLD_FILES+=usr/share/man/man1/clang-cpp.1.gz
OLD_FILES+=usr/share/man/man1/tblgen.1.gz OLD_FILES+=usr/share/man/man1/llvm-tblgen.1.gz
.endif .endif
.if ${MK_CLANG_EXTRAS} == no .if ${MK_CLANG_EXTRAS} == no

View File

@ -2,7 +2,7 @@
.include <src.opts.mk> .include <src.opts.mk>
SUBDIR= clang clang-tblgen tblgen SUBDIR= clang clang-tblgen llvm-tblgen
.if !defined(TOOLS_PREFIX) .if !defined(TOOLS_PREFIX)
.if ${MK_CLANG_EXTRAS} != "no" .if ${MK_CLANG_EXTRAS} != "no"

View File

@ -30,7 +30,9 @@ MLINKS+= clang.1 cc.1 \
clang.1 cpp.1 clang.1 cpp.1
.endif .endif
TGHDRS= DiagnosticCommonKinds \ TGHDRS= Attributes \
Intrinsics \
DiagnosticCommonKinds \
DiagnosticDriverKinds \ DiagnosticDriverKinds \
DiagnosticFrontendKinds \ DiagnosticFrontendKinds \
DiagnosticLexKinds \ DiagnosticLexKinds \
@ -64,40 +66,39 @@ LIBDEPS=clangfrontendtool \
clangbasic \ clangbasic \
llvmoption \ llvmoption \
llvmobjcarcopts \ llvmobjcarcopts \
llvmlinker \
llvmirreader \
llvmipo \ llvmipo \
llvmvectorize \ llvmvectorize \
llvmbitwriter \ llvmlinker \
llvmirreader \
llvmasmparser \ llvmasmparser \
llvmaarch64codegen \ llvmaarch64codegen \
llvmaarch64asmparser \ llvmaarch64asmparser \
llvmaarch64desc \ llvmaarch64desc \
llvmaarch64info \ llvmaarch64info \
llvmaarch64instprinter \ llvmaarch64asmprinter \
llvmaarch64utils \ llvmaarch64utils \
llvmarmdisassembler \ llvmarmdisassembler \
llvmarmcodegen \ llvmarmcodegen \
llvmarmasmparser \ llvmarmasmparser \
llvmarmdesc \ llvmarmdesc \
llvmarminfo \ llvmarminfo \
llvmarminstprinter \ llvmarmasmprinter \
llvmmipscodegen \ llvmmipscodegen \
llvmmipsasmparser \ llvmmipsasmparser \
llvmmipsdesc \ llvmmipsdesc \
llvmmipsinfo \ llvmmipsinfo \
llvmmipsinstprinter \ llvmmipsasmprinter \
llvmpowerpcdisassembler \ llvmpowerpcdisassembler \
llvmpowerpccodegen \ llvmpowerpccodegen \
llvmpowerpcasmparser \ llvmpowerpcasmparser \
llvmpowerpcdesc \ llvmpowerpcdesc \
llvmpowerpcinfo \ llvmpowerpcinfo \
llvmpowerpcinstprinter \ llvmpowerpcasmprinter \
llvmsparccodegen \ llvmsparccodegen \
llvmsparcasmparser \ llvmsparcasmparser \
llvmsparcdesc \ llvmsparcdesc \
llvmsparcinfo \ llvmsparcinfo \
llvmsparcinstprinter \ llvmsparcasmprinter \
llvmx86asmparser \ llvmx86asmparser \
llvmx86codegen \ llvmx86codegen \
llvmselectiondag \ llvmselectiondag \
@ -105,11 +106,11 @@ LIBDEPS=clangfrontendtool \
llvmcodegen \ llvmcodegen \
llvmtarget \ llvmtarget \
llvmscalaropts \ llvmscalaropts \
llvmprofiledata \
llvminstcombine \ llvminstcombine \
llvminstrumentation \ llvminstrumentation \
llvmprofiledata \
llvmtransformutils \ llvmtransformutils \
llvmipa \ llvmbitwriter \
llvmanalysis \ llvmanalysis \
llvmx86desc \ llvmx86desc \
llvmobject \ llvmobject \
@ -117,7 +118,7 @@ LIBDEPS=clangfrontendtool \
llvmbitreader \ llvmbitreader \
llvmmcdisassembler \ llvmmcdisassembler \
llvmx86info \ llvmx86info \
llvmx86instprinter \ llvmx86asmprinter \
llvmmc \ llvmmc \
llvmx86utils \ llvmx86utils \
llvmcore \ llvmcore \

View File

@ -2,12 +2,13 @@
.include <bsd.own.mk> .include <bsd.own.mk>
PROG_CXX=tblgen PROG_CXX=llvm-tblgen
SRCDIR= utils/TableGen SRCDIR= utils/TableGen
SRCS= AsmMatcherEmitter.cpp \ SRCS= AsmMatcherEmitter.cpp \
AsmWriterEmitter.cpp \ AsmWriterEmitter.cpp \
AsmWriterInst.cpp \ AsmWriterInst.cpp \
Attributes.cpp \
CTagsEmitter.cpp \ CTagsEmitter.cpp \
CallingConvEmitter.cpp \ CallingConvEmitter.cpp \
CodeEmitterGen.cpp \ CodeEmitterGen.cpp \