diff options
Diffstat (limited to 'lib')
25 files changed, 81 insertions, 36 deletions
diff --git a/lib/clang/Makefile b/lib/clang/Makefile index c37e089..212c7c8b 100644 --- a/lib/clang/Makefile +++ b/lib/clang/Makefile @@ -14,9 +14,9 @@ SUBDIR= libclanganalysis \ libclangrewrite \ libclangsema \ libclangserialization \ + libclangstaticanalyzercheckers \ libclangstaticanalyzercore \ libclangstaticanalyzerfrontend \ - libclangstaticanalyzercheckers \ \ libllvmanalysis \ libllvmasmparser \ @@ -24,8 +24,9 @@ SUBDIR= libclanganalysis \ libllvmbitreader \ libllvmbitwriter \ libllvmcodegen \ - libllvminstcombine \ libllvmcore \ + libllvminstcombine \ + libllvminstrumentation \ libllvmipa \ libllvmipo \ libllvmmc \ @@ -37,20 +38,20 @@ SUBDIR= libclanganalysis \ libllvmtransformutils \ \ libllvmarmasmparser \ - libllvmarminstprinter \ libllvmarmcodegen \ libllvmarmdisassembler \ libllvmarminfo \ + libllvmarminstprinter \ libllvmmipscodegen \ libllvmmipsinfo \ - libllvmpowerpcinstprinter \ libllvmpowerpccodegen \ libllvmpowerpcinfo \ + libllvmpowerpcinstprinter \ libllvmx86asmparser \ - libllvmx86instprinter \ libllvmx86codegen \ libllvmx86disassembler \ libllvmx86info \ + libllvmx86instprinter \ libllvmx86utils .endif diff --git a/lib/clang/clang.build.mk b/lib/clang/clang.build.mk index 579140e..da53455 100644 --- a/lib/clang/clang.build.mk +++ b/lib/clang/clang.build.mk @@ -96,24 +96,29 @@ arm_neon.inc.h: ${CLANG_SRCS}/include/clang/Basic/arm_neon.td DiagnosticGroups.inc.h: ${CLANG_SRCS}/include/clang/Basic/Diagnostic.td ${TBLGEN} -gen-clang-diag-groups -I${CLANG_SRCS}/include/clang/Basic \ - ${CLANG_SRCS}/include/clang/Basic/Diagnostic.td > ${.TARGET} + ${.ALLSRC} > ${.TARGET} + +DiagnosticIndexName.inc.h: ${CLANG_SRCS}/include/clang/Basic/Diagnostic.td + ${TBLGEN} -gen-clang-diags-index-name \ + -I${CLANG_SRCS}/include/clang/Basic ${.ALLSRC} > ${.TARGET} + .for hdr in AST Analysis Common Driver Frontend Lex Parse Sema Diagnostic${hdr}Kinds.inc.h: ${CLANG_SRCS}/include/clang/Basic/Diagnostic.td ${TBLGEN} -gen-clang-diags-defs -clang-component=${hdr} \ - -I${CLANG_SRCS}/include/clang/Basic \ - ${CLANG_SRCS}/include/clang/Basic/Diagnostic.td > ${.TARGET} + -I${CLANG_SRCS}/include/clang/Basic ${.ALLSRC} > ${.TARGET} .endfor + Options.inc.h: ${CLANG_SRCS}/include/clang/Driver/Options.td ${TBLGEN} -gen-opt-parser-defs -I${CLANG_SRCS}/include/clang/Driver \ - ${CLANG_SRCS}/include/clang/Driver/Options.td > ${.TARGET} + ${.ALLSRC} > ${.TARGET} CC1Options.inc.h: ${CLANG_SRCS}/include/clang/Driver/CC1Options.td ${TBLGEN} -gen-opt-parser-defs -I${CLANG_SRCS}/include/clang/Driver \ - ${CLANG_SRCS}/include/clang/Driver/CC1Options.td > ${.TARGET} + ${.ALLSRC} > ${.TARGET} CC1AsOptions.inc.h: ${CLANG_SRCS}/include/clang/Driver/CC1AsOptions.td ${TBLGEN} -gen-opt-parser-defs -I${CLANG_SRCS}/include/clang/Driver \ - ${CLANG_SRCS}/include/clang/Driver/CC1AsOptions.td > ${.TARGET} + ${.ALLSRC} > ${.TARGET} Checkers.inc.h: ${CLANG_SRCS}/lib/StaticAnalyzer/Checkers/Checkers.td \ ${CLANG_SRCS}/include/clang/StaticAnalyzer/Checkers/CheckerBase.td diff --git a/lib/clang/include/Makefile b/lib/clang/include/Makefile index 9f3397d..6f46e28 100644 --- a/lib/clang/include/Makefile +++ b/lib/clang/include/Makefile @@ -2,13 +2,21 @@ .PATH: ${.CURDIR}/../../../contrib/llvm/tools/clang/lib/Headers -INCSDIR=${INCLUDEDIR}/clang/2.9 +INCSDIR=${INCLUDEDIR}/clang/3.0 -INCS= emmintrin.h \ +INCS= altivec.h \ + avxintrin.h \ + emmintrin.h \ + immintrin.h \ + mm3dnow.h \ mm_malloc.h \ mmintrin.h \ + nmmintrin.h \ pmmintrin.h \ + smmintrin.h \ tmmintrin.h \ + wmmintrin.h \ + x86intrin.h \ xmmintrin.h .include <bsd.init.mk> diff --git a/lib/clang/include/clang/Basic/DiagnosticIndexName.inc b/lib/clang/include/clang/Basic/DiagnosticIndexName.inc new file mode 100644 index 0000000..1baf975 --- /dev/null +++ b/lib/clang/include/clang/Basic/DiagnosticIndexName.inc @@ -0,0 +1,2 @@ +/* $FreeBSD$ */ +#include "DiagnosticIndexName.inc.h" diff --git a/lib/clang/include/clang/Basic/Version.inc b/lib/clang/include/clang/Basic/Version.inc index 1d6509c..1febce2 100644 --- a/lib/clang/include/clang/Basic/Version.inc +++ b/lib/clang/include/clang/Basic/Version.inc @@ -1,10 +1,10 @@ /* $FreeBSD$ */ -#define CLANG_VERSION 2.9 -#define CLANG_VERSION_MAJOR 2 -#define CLANG_VERSION_MINOR 9 +#define CLANG_VERSION 3.0 +#define CLANG_VERSION_MAJOR 3 +#define CLANG_VERSION_MINOR 0 #define CLANG_VENDOR "FreeBSD " -#define CLANG_VENDOR_SUFFIX " 20110226" +#define CLANG_VENDOR_SUFFIX " 20110502" -#define SVN_REVISION "126547" +#define SVN_REVISION "130700" diff --git a/lib/clang/include/llvm/Config/config.h b/lib/clang/include/llvm/Config/config.h index 6b0629c..229b705 100644 --- a/lib/clang/include/llvm/Config/config.h +++ b/lib/clang/include/llvm/Config/config.h @@ -645,13 +645,13 @@ #define PACKAGE_NAME "llvm" /* Define to the full name and version of this package. */ -#define PACKAGE_STRING "llvm 2.9svn" +#define PACKAGE_STRING "llvm 3.0svn" /* Define to the one symbol short name of this package. */ #define PACKAGE_TARNAME "-llvm-" /* Define to the version of this package. */ -#define PACKAGE_VERSION "2.9svn" +#define PACKAGE_VERSION "3.0svn" /* Define as the return type of signal handlers (`int' or `void'). */ #define RETSIGTYPE void diff --git a/lib/clang/libclanganalysis/Makefile b/lib/clang/libclanganalysis/Makefile index e122469..d0df779 100644 --- a/lib/clang/libclanganalysis/Makefile +++ b/lib/clang/libclanganalysis/Makefile @@ -14,8 +14,7 @@ SRCS= AnalysisContext.cpp \ PseudoConstantAnalysis.cpp \ ReachableCode.cpp \ ScanfFormatString.cpp \ - UninitializedValues.cpp \ - UninitializedValuesV2.cpp + UninitializedValues.cpp TGHDRS= AttrList \ Attrs \ diff --git a/lib/clang/libclangast/Makefile b/lib/clang/libclangast/Makefile index d68f477..61b44fb 100644 --- a/lib/clang/libclangast/Makefile +++ b/lib/clang/libclangast/Makefile @@ -24,6 +24,7 @@ SRCS= APValue.cpp \ ExprCXX.cpp \ ExprClassification.cpp \ ExprConstant.cpp \ + ExternalASTSource.cpp \ InheritViz.cpp \ ItaniumCXXABI.cpp \ ItaniumMangle.cpp \ diff --git a/lib/clang/libclangbasic/Makefile b/lib/clang/libclangbasic/Makefile index eec370c..49e3533 100644 --- a/lib/clang/libclangbasic/Makefile +++ b/lib/clang/libclangbasic/Makefile @@ -15,6 +15,7 @@ SRCS= Builtins.cpp \ TargetInfo.cpp \ Targets.cpp \ TokenKinds.cpp \ + VersionTuple.cpp \ Version.cpp TGHDRS= DiagnosticAnalysisKinds \ @@ -23,6 +24,7 @@ TGHDRS= DiagnosticAnalysisKinds \ DiagnosticDriverKinds \ DiagnosticFrontendKinds \ DiagnosticGroups \ + DiagnosticIndexName \ DiagnosticLexKinds \ DiagnosticParseKinds \ DiagnosticSemaKinds \ diff --git a/lib/clang/libclangcodegen/Makefile b/lib/clang/libclangcodegen/Makefile index c174343..d1798ca 100644 --- a/lib/clang/libclangcodegen/Makefile +++ b/lib/clang/libclangcodegen/Makefile @@ -24,6 +24,7 @@ SRCS= BackendUtil.cpp \ CGObjC.cpp \ CGObjCGNU.cpp \ CGObjCMac.cpp \ + CGObjCRuntime.cpp \ CGRTTI.cpp \ CGRecordLayoutBuilder.cpp \ CGStmt.cpp \ diff --git a/lib/clang/libclangfrontend/Makefile b/lib/clang/libclangfrontend/Makefile index 45e064b..71f76b7 100644 --- a/lib/clang/libclangfrontend/Makefile +++ b/lib/clang/libclangfrontend/Makefile @@ -10,10 +10,9 @@ SRCS= ASTConsumers.cpp \ CacheTokens.cpp \ CompilerInstance.cpp \ CompilerInvocation.cpp \ - DeclXML.cpp \ + CreateInvocationFromCommandLine.cpp \ DependencyFile.cpp \ DiagChecker.cpp \ - DocumentXML.cpp \ FrontendAction.cpp \ FrontendActions.cpp \ FrontendOptions.cpp \ @@ -21,12 +20,11 @@ SRCS= ASTConsumers.cpp \ InitHeaderSearch.cpp \ InitPreprocessor.cpp \ LangStandards.cpp \ + LogDiagnosticPrinter.cpp \ MultiplexConsumer.cpp \ PrintPreprocessedOutput.cpp \ - StmtXML.cpp \ TextDiagnosticBuffer.cpp \ TextDiagnosticPrinter.cpp \ - TypeXML.cpp \ VerifyDiagnosticsClient.cpp \ Warnings.cpp @@ -40,6 +38,7 @@ TGHDRS= AttrList \ DiagnosticFrontendKinds \ DiagnosticLexKinds \ DiagnosticSemaKinds \ + Options \ StmtNodes .include "../clang.lib.mk" diff --git a/lib/clang/libclangsema/Makefile b/lib/clang/libclangsema/Makefile index 1425929..d2c7e34 100644 --- a/lib/clang/libclangsema/Makefile +++ b/lib/clang/libclangsema/Makefile @@ -7,8 +7,10 @@ SRCS= AnalysisBasedWarnings.cpp \ AttributeList.cpp \ CodeCompleteConsumer.cpp \ DeclSpec.cpp \ + DelayedDiagnostic.cpp \ IdentifierResolver.cpp \ JumpDiagnostics.cpp \ + Scope.cpp \ Sema.cpp \ SemaAccess.cpp \ SemaAttr.cpp \ diff --git a/lib/clang/libclangserialization/Makefile b/lib/clang/libclangserialization/Makefile index 1dbcf5d..75a0031 100644 --- a/lib/clang/libclangserialization/Makefile +++ b/lib/clang/libclangserialization/Makefile @@ -10,6 +10,7 @@ SRCS= ASTCommon.cpp \ ASTWriter.cpp \ ASTWriterDecl.cpp \ ASTWriterStmt.cpp \ + ChainedIncludesSource.cpp \ GeneratePCH.cpp TGHDRS= AttrList \ diff --git a/lib/clang/libclangstaticanalyzercheckers/Makefile b/lib/clang/libclangstaticanalyzercheckers/Makefile index 496d107..adc7882 100644 --- a/lib/clang/libclangstaticanalyzercheckers/Makefile +++ b/lib/clang/libclangstaticanalyzercheckers/Makefile @@ -24,10 +24,9 @@ SRCS= AdjustedReturnValueChecker.cpp \ DebugCheckers.cpp \ DereferenceChecker.cpp \ DivZeroChecker.cpp \ - ExperimentalChecks.cpp \ - ExprEngine.cpp \ FixedAddressChecker.cpp \ IdempotentOperationChecker.cpp \ + IteratorsChecker.cpp \ LLVMConventionsChecker.cpp \ MacOSXAPIChecker.cpp \ MallocChecker.cpp \ diff --git a/lib/clang/libclangstaticanalyzercore/Makefile b/lib/clang/libclangstaticanalyzercore/Makefile index 59df789..76863dc 100644 --- a/lib/clang/libclangstaticanalyzercore/Makefile +++ b/lib/clang/libclangstaticanalyzercore/Makefile @@ -13,12 +13,13 @@ SRCS= AggExprVisitor.cpp \ BugReporterVisitors.cpp \ CFRefCount.cpp \ CXXExprEngine.cpp \ - Checker.cpp \ + CheckerContext.cpp \ CheckerHelpers.cpp \ CheckerManager.cpp \ CoreEngine.cpp \ Environment.cpp \ ExplodedGraph.cpp \ + ExprEngine.cpp \ FlatStore.cpp \ GRState.cpp \ HTMLDiagnostics.cpp \ diff --git a/lib/clang/libllvmanalysis/Makefile b/lib/clang/libllvmanalysis/Makefile index eb2043e..5436631 100644 --- a/lib/clang/libllvmanalysis/Makefile +++ b/lib/clang/libllvmanalysis/Makefile @@ -27,7 +27,6 @@ SRCS= AliasAnalysis.cpp \ LazyValueInfo.cpp \ LibCallAliasAnalysis.cpp \ Lint.cpp \ - LiveValues.cpp \ Loads.cpp \ LoopDependenceAnalysis.cpp \ LoopInfo.cpp \ diff --git a/lib/clang/libllvmasmprinter/Makefile b/lib/clang/libllvmasmprinter/Makefile index 35f942c..7e5182c 100644 --- a/lib/clang/libllvmasmprinter/Makefile +++ b/lib/clang/libllvmasmprinter/Makefile @@ -3,11 +3,13 @@ LIB= llvmasmprinter SRCDIR= lib/CodeGen/AsmPrinter -SRCS= AsmPrinter.cpp \ +SRCS= ARMException.cpp \ + AsmPrinter.cpp \ AsmPrinterDwarf.cpp \ AsmPrinterInlineAsm.cpp \ DIE.cpp \ DwarfCFIException.cpp \ + DwarfCompileUnit.cpp \ DwarfDebug.cpp \ DwarfException.cpp \ DwarfTableException.cpp \ diff --git a/lib/clang/libllvmcodegen/Makefile b/lib/clang/libllvmcodegen/Makefile index bd9b707..c7c55a2 100644 --- a/lib/clang/libllvmcodegen/Makefile +++ b/lib/clang/libllvmcodegen/Makefile @@ -4,10 +4,12 @@ LIB= llvmcodegen SRCDIR= lib/CodeGen SRCS= AggressiveAntiDepBreaker.cpp \ + AllocationOrder.cpp \ Analysis.cpp \ BranchFolding.cpp \ CalcSpillWeights.cpp \ CallingConvLower.cpp \ + CodeGen.cpp \ CodePlacementOpt.cpp \ CriticalAntiDepBreaker.cpp \ DeadMachineInstructionElim.cpp \ @@ -17,9 +19,11 @@ SRCS= AggressiveAntiDepBreaker.cpp \ EdgeBundles.cpp \ ExpandISelPseudos.cpp \ GCMetadata.cpp \ + GCMetadataPrinter.cpp \ GCStrategy.cpp \ IfConversion.cpp \ InlineSpiller.cpp \ + InterferenceCache.cpp \ IntrinsicLowering.cpp \ LLVMTargetMachine.cpp \ LatencyPriorityQueue.cpp \ @@ -42,6 +46,7 @@ SRCS= AggressiveAntiDepBreaker.cpp \ MachineInstr.cpp \ MachineLICM.cpp \ MachineLoopInfo.cpp \ + MachineLoopRanges.cpp \ MachineModuleInfo.cpp \ MachineModuleInfoImpls.cpp \ MachinePassRegistry.cpp \ @@ -63,6 +68,7 @@ SRCS= AggressiveAntiDepBreaker.cpp \ PseudoSourceValue.cpp \ RegAllocBasic.cpp \ RegAllocFast.cpp \ + RegAllocGreedy.cpp \ RegAllocLinearScan.cpp \ RegAllocPBQP.cpp \ RegisterCoalescer.cpp \ @@ -79,6 +85,7 @@ SRCS= AggressiveAntiDepBreaker.cpp \ SjLjEHPrepare.cpp \ SlotIndexes.cpp \ Spiller.cpp \ + SpillPlacement.cpp \ SplitKit.cpp \ Splitter.cpp \ StackProtector.cpp \ diff --git a/lib/clang/libllvmcore/Makefile b/lib/clang/libllvmcore/Makefile index 961f15b..4e3adde 100644 --- a/lib/clang/libllvmcore/Makefile +++ b/lib/clang/libllvmcore/Makefile @@ -10,6 +10,7 @@ SRCS= AsmWriter.cpp \ ConstantFold.cpp \ Constants.cpp \ Core.cpp \ + DebugInfoProbe.cpp \ DebugLoc.cpp \ Dominators.cpp \ Function.cpp \ diff --git a/lib/clang/libllvminstrumentation/Makefile b/lib/clang/libllvminstrumentation/Makefile new file mode 100644 index 0000000..62d9f97 --- /dev/null +++ b/lib/clang/libllvminstrumentation/Makefile @@ -0,0 +1,15 @@ +# $FreeBSD$ + +LIB= llvminstrumentation + +SRCDIR= lib/Transforms/Instrumentation +SRCS= EdgeProfiling.cpp \ + GCOVProfiling.cpp \ + Instrumentation.cpp \ + OptimalEdgeProfiling.cpp \ + PathProfiling.cpp \ + ProfilingUtils.cpp \ + +#TGHDRS= Intrinsics + +.include "../clang.lib.mk" diff --git a/lib/clang/libllvmipo/Makefile b/lib/clang/libllvmipo/Makefile index 5653684..f919dd1 100644 --- a/lib/clang/libllvmipo/Makefile +++ b/lib/clang/libllvmipo/Makefile @@ -22,8 +22,7 @@ SRCS= ArgumentPromotion.cpp \ PartialInlining.cpp \ PruneEH.cpp \ StripDeadPrototypes.cpp \ - StripSymbols.cpp \ - StructRetPromotion.cpp + StripSymbols.cpp TGHDRS= Intrinsics diff --git a/lib/clang/libllvmmc/Makefile b/lib/clang/libllvmmc/Makefile index 5bbff4b..a7ed25b 100644 --- a/lib/clang/libllvmmc/Makefile +++ b/lib/clang/libllvmmc/Makefile @@ -12,6 +12,7 @@ SRCS= ELFObjectWriter.cpp \ MCCodeEmitter.cpp \ MCContext.cpp \ MCDwarf.cpp \ + MCELF.cpp \ MCELFObjectTargetWriter.cpp \ MCELFStreamer.cpp \ MCExpr.cpp \ diff --git a/lib/clang/libllvmmipscodegen/Makefile b/lib/clang/libllvmmipscodegen/Makefile index ce84aa4..47744ed 100644 --- a/lib/clang/libllvmmipscodegen/Makefile +++ b/lib/clang/libllvmmipscodegen/Makefile @@ -5,6 +5,7 @@ LIB= llvmmipscodegen SRCDIR= lib/Target/Mips SRCS= MipsAsmPrinter.cpp \ MipsDelaySlotFiller.cpp \ + MipsExpandPseudo.cpp \ MipsFrameLowering.cpp \ MipsISelDAGToDAG.cpp \ MipsISelLowering.cpp \ diff --git a/lib/clang/libllvmscalaropts/Makefile b/lib/clang/libllvmscalaropts/Makefile index e4824b5..757b8e0 100644 --- a/lib/clang/libllvmscalaropts/Makefile +++ b/lib/clang/libllvmscalaropts/Makefile @@ -11,7 +11,6 @@ SRCS= ADCE.cpp \ DCE.cpp \ DeadStoreElimination.cpp \ EarlyCSE.cpp \ - GEPSplitter.cpp \ GVN.cpp \ IndVarSimplify.cpp \ JumpThreading.cpp \ @@ -27,7 +26,6 @@ SRCS= ADCE.cpp \ SCCP.cpp \ ScalarReplAggregates.cpp \ SimplifyCFGPass.cpp \ - SimplifyHalfPowrLibCalls.cpp \ SimplifyLibCalls.cpp \ Sink.cpp \ TailDuplication.cpp \ diff --git a/lib/clang/libllvmx86instprinter/Makefile b/lib/clang/libllvmx86instprinter/Makefile index dda091e..eb30daa 100644 --- a/lib/clang/libllvmx86instprinter/Makefile +++ b/lib/clang/libllvmx86instprinter/Makefile @@ -10,6 +10,7 @@ SRCS= X86ATTInstPrinter.cpp \ TGHDRS= X86GenAsmWriter \ X86GenAsmWriter1 \ - X86GenInstrNames + X86GenInstrNames \ + X86GenRegisterNames .include "../clang.lib.mk" |