Update LLVM/Clang snapshot to r147888. Most importantly, this fixes a

number of ABI issues for i386 and provides the correct
__FLT_EVAL_METHOD__ when using i387.
This commit is contained in:
joerg 2012-01-11 23:24:46 +00:00
parent b98ab6a827
commit 0cd0c897dd
29 changed files with 89 additions and 38 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: md.amd64,v 1.148 2012/01/09 15:24:37 dholland Exp $
# $NetBSD: md.amd64,v 1.149 2012/01/11 23:24:46 joerg Exp $
./usr/include/amd64 comp-c-include
./usr/include/amd64/ansi.h comp-c-include
./usr/include/amd64/aout_machdep.h comp-c-include
@ -68,14 +68,23 @@
./usr/include/amd64/vmparam.h comp-c-include
./usr/include/amd64/wchar_limits.h comp-c-include
./usr/include/clang-3.0/avxintrin.h comp-c-include llvm
./usr/include/clang-3.0/avx2intrin.h comp-c-include llvm
./usr/include/clang-3.0/bmi2intrin.h comp-c-include llvm
./usr/include/clang-3.0/bmiintrin.h comp-c-include llvm
./usr/include/clang-3.0/emmintrin.h comp-c-include llvm
./usr/include/clang-3.0/fma4intrin.h comp-c-include llvm
./usr/include/clang-3.0/immintrin.h comp-c-include llvm
./usr/include/clang-3.0/lzcntintrin.h comp-c-include llvm
./usr/include/clang-3.0/mm3dnow.h comp-c-include llvm
./usr/include/clang-3.0/mm_malloc.h comp-c-include llvm
./usr/include/clang-3.0/mmintrin.h comp-c-include llvm
./usr/include/clang-3.0/nmmintrin.h comp-c-include llvm
./usr/include/clang-3.0/pmmintrin.h comp-c-include llvm
./usr/include/clang-3.0/popcntintrin.h comp-c-include llvm
./usr/include/clang-3.0/smmintrin.h comp-c-include llvm
./usr/include/clang-3.0/tmmintrin.h comp-c-include llvm
./usr/include/clang-3.0/wmmintrin.h comp-c-include llvm
./usr/include/clang-3.0/x86intrin.h comp-c-include llvm
./usr/include/clang-3.0/xmmintrin.h comp-c-include llvm
./usr/include/emmintrin.h comp-obsolete obsolete
./usr/include/gcc-4.1/emmintrin.h comp-c-include gcccmds,gcc=4

View File

@ -1,13 +1,22 @@
# $NetBSD: md.i386,v 1.123 2011/08/15 15:14:00 wiz Exp $
# $NetBSD: md.i386,v 1.124 2012/01/11 23:24:46 joerg Exp $
./usr/include/clang-3.0/avxintrin.h comp-c-include llvm
./usr/include/clang-3.0/avx2intrin.h comp-c-include llvm
./usr/include/clang-3.0/bmi2intrin.h comp-c-include llvm
./usr/include/clang-3.0/bmiintrin.h comp-c-include llvm
./usr/include/clang-3.0/emmintrin.h comp-c-include llvm
./usr/include/clang-3.0/fma4intrin.h comp-c-include llvm
./usr/include/clang-3.0/immintrin.h comp-c-include llvm
./usr/include/clang-3.0/lzcntintrin.h comp-c-include llvm
./usr/include/clang-3.0/mm3dnow.h comp-c-include llvm
./usr/include/clang-3.0/mm_malloc.h comp-c-include llvm
./usr/include/clang-3.0/mmintrin.h comp-c-include llvm
./usr/include/clang-3.0/nmmintrin.h comp-c-include llvm
./usr/include/clang-3.0/pmmintrin.h comp-c-include llvm
./usr/include/clang-3.0/popcntintrin.h comp-c-include llvm
./usr/include/clang-3.0/smmintrin.h comp-c-include llvm
./usr/include/clang-3.0/tmmintrin.h comp-c-include llvm
./usr/include/clang-3.0/wmmintrin.h comp-c-include llvm
./usr/include/clang-3.0/x86intrin.h comp-c-include llvm
./usr/include/clang-3.0/xmmintrin.h comp-c-include llvm
./usr/include/emmintrin.h comp-obsolete obsolete
./usr/include/gcc-4.1/emmintrin.h comp-c-include gcccmds,gcc=4

View File

@ -1,12 +1,12 @@
# $NetBSD: Makefile.inc,v 1.27 2011/12/19 14:07:40 joerg Exp $
# $NetBSD: Makefile.inc,v 1.28 2012/01/11 23:24:46 joerg Exp $
.if !defined(LLVM_TOPLEVEL_MK)
LLVM_TOPLEVEL_MK=
.include <bsd.own.mk>
LLVM_REVISION= 146851
CLANG_REVISION= 146851
LLVM_REVISION= 147888
CLANG_REVISION= 147888
LLVM_SRCDIR:= ${.PARSEDIR}/dist/llvm
CLANG_SRCDIR:= ${.PARSEDIR}/dist/clang
@ -25,6 +25,7 @@ HOST_CXXFLAGS+= -O2 -g
.else
LLVM_INCLUDE_CONFIG= ${LLVM_TOPLEVEL}/config
LLVM_INCLUDE_OBJDIR!= cd ${LLVM_TOPLEVEL}/include && ${PRINTOBJDIR}
CPPFLAGS+= -DLLVM_DEFAULT_TARGET_TRIPLE="\"${MACHINE_GNU_PLATFORM}\""
.endif
CPPFLAGS+= -I${LLVM_INCLUDE_OBJDIR} -I${LLVM_INCLUDE_CONFIG}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.9 2011/12/11 14:58:50 joerg Exp $
# $NetBSD: Makefile,v 1.10 2012/01/11 23:24:46 joerg Exp $
PROG_CXX= llvm-tblgen
NOMAN= yes
@ -38,6 +38,7 @@ SRCS= AsmMatcherEmitter.cpp \
TGValueTypes.cpp \
TableGen.cpp \
X86DisassemblerTables.cpp \
X86ModRMFilters.cpp \
X86RecognizableInstr.cpp
LLVM_LIBS+= \

View File

@ -545,7 +545,9 @@
#define LLVM_DATADIR "/usr/share/llvm"
/* Target triple LLVM will generate code for by default */
#if 0
#define LLVM_DEFAULT_TARGET_TRIPLE "x86_64--netbsd"
#endif
/* Installation directory for documentation */
#define LLVM_DOCSDIR "/usr/share/doc/llvm"

View File

@ -36,7 +36,9 @@
#define LLVM_HAS_ATOMICS 1
/* Host triple we were built on */
#if 0
#define LLVM_DEFAULT_TARGET_TRIPLE "x86_64--netbsd"
#endif
/* Installation directory for include files */
#define LLVM_INCLUDEDIR "/usr/include"

View File

@ -1,19 +1,28 @@
# $NetBSD: Makefile,v 1.5 2011/12/11 14:58:50 joerg Exp $
# $NetBSD: Makefile,v 1.6 2012/01/11 23:24:46 joerg Exp $
.include <bsd.init.mk>
.PATH: ${CLANG_SRCDIR}/lib/Headers
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
INCS= avxintrin.h \
INCS= avx2intrin.h \
avxintrin.h \
bmi2intrin.h \
bmiintrin.h \
emmintrin.h \
fma4intrin.h \
immintrin.h \
lzcntintrin.h \
mm3dnow.h \
mmintrin.h \
mm_malloc.h \
nmmintrin.h \
pmmintrin.h \
popcntintrin.h \
smmintrin.h \
tmmintrin.h \
wmmintrin.h \
x86intrin.h \
xmmintrin.h
.elif ${MACHINE_ARCH} == "powerpc"
INCS= altivec.h

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.8 2011/11/18 15:56:53 joerg Exp $
# $NetBSD: Makefile,v 1.9 2012/01/11 23:24:47 joerg Exp $
LIB= LLVMARMCodeGen
@ -23,6 +23,7 @@ SRCS+= ARMAsmPrinter.cpp \
ARMJITInfo.cpp \
ARMLoadStoreOptimizer.cpp \
ARMMCInstLower.cpp \
ARMMachineFunctionInfo.cpp \
ARMRegisterInfo.cpp \
ARMSelectionDAGInfo.cpp \
ARMSubtarget.cpp \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.3 2011/07/25 16:32:43 joerg Exp $
# $NetBSD: Makefile,v 1.4 2012/01/11 23:24:47 joerg Exp $
LIB= LLVMARMMCTargetDesc
@ -10,6 +10,7 @@ ARM_OBJDIR!= cd ${.CURDIR}/../libLLVMARMCodeGen && ${PRINTOBJDIR}
CPPFLAGS+= -I${ARM_OBJDIR} -I${LLVM_SRCDIR}/lib/Target/ARM
SRCS+= ARMAsmBackend.cpp \
ARMELFObjectWriter.cpp \
ARMMCAsmInfo.cpp \
ARMMCCodeEmitter.cpp \
ARMMCExpr.cpp \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.12 2011/12/19 14:07:40 joerg Exp $
# $NetBSD: Makefile,v 1.13 2012/01/11 23:24:47 joerg Exp $
LIB= LLVMCodeGen
@ -18,8 +18,6 @@ SRCS+= AggressiveAntiDepBreaker.cpp \
DeadMachineInstructionElim.cpp \
DwarfEHPrepare.cpp \
EdgeBundles.cpp \
ELFCodeEmitter.cpp \
ELFWriter.cpp \
ExecutionDepsFix.cpp \
ExpandISelPseudos.cpp \
ExpandPostRAPseudos.cpp \
@ -30,6 +28,7 @@ SRCS+= AggressiveAntiDepBreaker.cpp \
InlineSpiller.cpp \
InterferenceCache.cpp \
IntrinsicLowering.cpp \
JITCodeEmitter.cpp \
LLVMTargetMachine.cpp \
LatencyPriorityQueue.cpp \
LexicalScopes.cpp \
@ -46,6 +45,8 @@ SRCS+= AggressiveAntiDepBreaker.cpp \
MachineBranchProbabilityInfo.cpp \
MachineBlockFrequencyInfo.cpp \
MachineBlockPlacement.cpp \
MachineCodeEmitter.cpp \
MachineCopyPropagation.cpp \
MachineCSE.cpp \
MachineDominators.cpp \
MachineFunction.cpp \
@ -64,7 +65,6 @@ SRCS+= AggressiveAntiDepBreaker.cpp \
MachineSSAUpdater.cpp \
MachineSink.cpp \
MachineVerifier.cpp \
ObjectCodeEmitter.cpp \
OcamlGC.cpp \
OptimizePHIs.cpp \
PHIElimination.cpp \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2011/06/01 14:13:42 joerg Exp $
# $NetBSD: Makefile,v 1.3 2012/01/11 23:24:47 joerg Exp $
LIB= LLVMJIT
@ -10,7 +10,6 @@ CPPFLAGS+= -DENABLE_X86_JIT
SRCS+= Intercept.cpp \
JIT.cpp \
JITDebugRegisterer.cpp \
JITDwarfEmitter.cpp \
JITEmitter.cpp \
JITMemoryManager.cpp \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.8 2011/10/11 13:53:59 joerg Exp $
# $NetBSD: Makefile,v 1.9 2012/01/11 23:24:47 joerg Exp $
LIB= LLVMMC
@ -27,7 +27,6 @@ SRCS+= ELFObjectWriter.cpp \
MCInstrAnalysis.cpp \
MCInstPrinter.cpp \
MCLabel.cpp \
MCLoggingStreamer.cpp \
MCModule.cpp \
MCMachOStreamer.cpp \
MCMachObjectTargetWriter.cpp \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.3 2011/06/01 14:13:42 joerg Exp $
# $NetBSD: Makefile,v 1.4 2012/01/11 23:24:47 joerg Exp $
LIB= LLVMMCJIT
@ -7,6 +7,7 @@ LIB= LLVMMCJIT
.PATH: ${LLVM_SRCDIR}/lib/ExecutionEngine/MCJIT
SRCS+= Intercept.cpp \
MCJIT.cpp
MCJIT.cpp \
MCJITMemoryManager.cpp
.include <bsd.lib.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.6 2011/11/18 15:56:54 joerg Exp $
# $NetBSD: Makefile,v 1.7 2012/01/11 23:24:47 joerg Exp $
LIB= LLVMMipsCodeGen
@ -16,6 +16,7 @@ SRCS+= MipsAsmPrinter.cpp \
MipsISelDAGToDAG.cpp \
MipsISelLowering.cpp \
MipsJITInfo.cpp \
MipsMachineFunction.cpp \
MipsMCInstLower.cpp \
MipsRegisterInfo.cpp \
MipsSubtarget.cpp \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2011/10/11 13:53:59 joerg Exp $
# $NetBSD: Makefile,v 1.3 2012/01/11 23:24:47 joerg Exp $
LIB= LLVMMipsMCTargetDesc
@ -10,6 +10,7 @@ CPPFLAGS+= -I${MIPS_OBJDIR} -I${LLVM_SRCDIR}/lib/Target/Mips
.PATH: ${LLVM_SRCDIR}/lib/Target/Mips/MCTargetDesc
SRCS+= MipsAsmBackend.cpp \
MipsELFObjectWriter.cpp \
MipsMCAsmInfo.cpp \
MipsMCCodeEmitter.cpp \
MipsMCTargetDesc.cpp

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.3 2011/08/02 17:12:39 joerg Exp $
# $NetBSD: Makefile,v 1.4 2012/01/11 23:24:48 joerg Exp $
LIB= LLVMPowerPCCodeGen
@ -15,6 +15,7 @@ SRCS+= PPCAsmPrinter.cpp \
PPCISelLowering.cpp \
PPCFrameLowering.cpp \
PPCJITInfo.cpp \
PPCMachineFunctionInfo.cpp \
PPCMCInstLower.cpp \
PPCRegisterInfo.cpp \
PPCSubtarget.cpp \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2011/08/02 17:12:39 joerg Exp $
# $NetBSD: Makefile,v 1.3 2012/01/11 23:24:48 joerg Exp $
LIB= LLVMPowerPCMCTargetDesc
@ -11,6 +11,7 @@ CPPFLAGS+= -I${PPC_OBJDIR} -I${LLVM_SRCDIR}/lib/Target/PowerPC
SRCS+= PPCAsmBackend.cpp \
PPCMCAsmInfo.cpp \
PPCELFObjectWriter.cpp \
PPCMCCodeEmitter.cpp \
PPCMCTargetDesc.cpp \
PPCPredicates.cpp

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2011/07/17 20:07:58 joerg Exp $
# $NetBSD: Makefile,v 1.3 2012/01/11 23:24:48 joerg Exp $
LIB= LLVMSparcCodeGen
@ -13,6 +13,7 @@ SRCS+= DelaySlotFiller.cpp \
SparcISelDAGToDAG.cpp \
SparcISelLowering.cpp \
SparcFrameLowering.cpp \
SparcMachineFunctionInfo.cpp \
SparcRegisterInfo.cpp \
SparcSubtarget.cpp \
SparcTargetMachine.cpp \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.7 2011/12/19 14:07:40 joerg Exp $
# $NetBSD: Makefile,v 1.8 2012/01/11 23:24:48 joerg Exp $
LIB= LLVMSupport
@ -30,6 +30,7 @@ SRCS+= APFloat.cpp \
GraphWriter.cpp \
IntEqClasses.cpp \
IntervalMap.cpp \
IntrusiveRefCntPtr.cpp \
IsInf.cpp \
IsNAN.cpp \
JSONParser.cpp \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1 2011/10/11 13:53:59 joerg Exp $
# $NetBSD: Makefile,v 1.2 2012/01/11 23:24:48 joerg Exp $
LIB= LLVMTableGen
@ -9,6 +9,7 @@ LIB= LLVMTableGen
SRCS+= Error.cpp \
Main.cpp \
Record.cpp \
TableGenAction.cpp \
TableGenBackend.cpp \
TGLexer.cpp \
TGParser.cpp

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.6 2011/12/19 14:07:40 joerg Exp $
# $NetBSD: Makefile,v 1.7 2012/01/11 23:24:48 joerg Exp $
LIB= LLVMTarget
@ -12,6 +12,7 @@ SRCS+= Mangler.cpp \
TargetELFWriterInfo.cpp \
TargetInstrInfo.cpp \
TargetIntrinsicInfo.cpp \
TargetJITInfo.cpp \
TargetLibraryInfo.cpp \
TargetLoweringObjectFile.cpp \
TargetMachine.cpp \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.6 2011/10/11 13:53:59 joerg Exp $
# $NetBSD: Makefile,v 1.7 2012/01/11 23:24:48 joerg Exp $
LIB= LLVMX86CodeGen
@ -17,6 +17,7 @@ SRCS+= X86AsmPrinter.cpp \
X86ISelLowering.cpp \
X86InstrInfo.cpp \
X86JITInfo.cpp \
X86MachineFunctionInfo.cpp \
X86MCInstLower.cpp \
X86RegisterInfo.cpp \
X86SelectionDAGInfo.cpp \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.4 2011/08/02 17:12:39 joerg Exp $
# $NetBSD: Makefile,v 1.5 2012/01/11 23:24:48 joerg Exp $
LIB= LLVMX86MCTargetDesc
@ -10,10 +10,12 @@ X86_OBJDIR!= cd ${.CURDIR}/../libLLVMX86CodeGen && ${PRINTOBJDIR}
CPPFLAGS+= -I${X86_OBJDIR} -I${LLVM_SRCDIR}/lib/Target/X86
SRCS+= X86AsmBackend.cpp \
X86ELFObjectWriter.cpp \
X86MCAsmInfo.cpp \
X86MCCodeEmitter.cpp \
X86MCTargetDesc.cpp \
X86MachObjectWriter.cpp
X86MachObjectWriter.cpp \
X86WinCOFFObjectWriter.cpp
.if defined(HOSTLIB)
.include <bsd.hostlib.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.6 2011/12/11 14:58:50 joerg Exp $
# $NetBSD: Makefile,v 1.7 2012/01/11 23:24:48 joerg Exp $
LIB= clangAnalysis
@ -11,6 +11,7 @@ SRCS+= AnalysisDeclContext.cpp \
CFGReachabilityAnalysis.cpp \
CFGStmtMap.cpp \
CocoaConventions.cpp \
Dominators.cpp \
FormatString.cpp \
LiveVariables.cpp \
PostOrderCFGView.cpp \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.9 2011/12/19 14:07:40 joerg Exp $
# $NetBSD: Makefile,v 1.10 2012/01/11 23:24:48 joerg Exp $
LIB= clangFrontend
@ -10,6 +10,7 @@ SRCS+= ASTConsumers.cpp \
ASTMerge.cpp \
ASTUnit.cpp \
CacheTokens.cpp \
ChainedDiagnosticConsumer.cpp \
ChainedIncludesSource.cpp \
CompilerInstance.cpp \
CompilerInvocation.cpp \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2011/11/18 15:56:54 joerg Exp $
# $NetBSD: Makefile,v 1.3 2012/01/11 23:24:49 joerg Exp $
LIB= clangLex
@ -14,6 +14,7 @@ SRCS+= HeaderMap.cpp \
MacroInfo.cpp \
ModuleMap.cpp \
PPCaching.cpp \
PPCallbacks.cpp \
PPDirectives.cpp \
PPExpressions.cpp \
PPLexerChange.cpp \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.6 2011/11/03 17:52:54 joerg Exp $
# $NetBSD: Makefile,v 1.7 2012/01/11 23:24:49 joerg Exp $
LIB= clangSema
@ -22,6 +22,7 @@ SRCS+= AnalysisBasedWarnings.cpp \
SemaCast.cpp \
SemaChecking.cpp \
SemaCodeComplete.cpp \
SemaConsumer.cpp \
SemaDecl.cpp \
SemaDeclAttr.cpp \
SemaDeclCXX.cpp \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.10 2011/12/11 14:58:51 joerg Exp $
# $NetBSD: Makefile,v 1.11 2012/01/11 23:24:49 joerg Exp $
LIB= clangStaticAnalyzerCheckers
@ -61,7 +61,8 @@ SRCS+= AdjustedReturnValueChecker.cpp \
UndefinedAssignmentChecker.cpp \
UnixAPIChecker.cpp \
UnreachableCodeChecker.cpp \
VLASizeChecker.cpp
VLASizeChecker.cpp \
VirtualCallChecker.cpp
CLANG_TABLEGEN_SRC= Checkers.td
CLANG_TABLEGEN_INCLUDES= -I${CLANG_SRCDIR}/include

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.7 2011/11/18 15:56:54 joerg Exp $
# $NetBSD: Makefile,v 1.8 2012/01/11 23:24:49 joerg Exp $
LIB= clangStaticAnalyzerCore
@ -39,6 +39,7 @@ SRCS+= AggExprVisitor.cpp \
Store.cpp \
SValBuilder.cpp \
SVals.cpp \
SubEngine.cpp \
SymbolManager.cpp \
TextPathDiagnostics.cpp