[llvm-commits] CVS: nightlytest-serverside/index.php
Changes in directory nightlytest-serverside: index.php updated: 1.9 - 1.10 --- Log message: Make the LOC graph and set of tests valign=top --- Diffs of the changes: (+1 -1) index.php |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: nightlytest-serverside/index.php diff -u nightlytest-serverside/index.php:1.9 nightlytest-serverside/index.php:1.10 --- nightlytest-serverside/index.php:1.9Fri Sep 8 17:47:25 2006 +++ nightlytest-serverside/index.phpThu Jan 18 11:26:17 2007 @@ -18,7 +18,7 @@ include sidebar.php; ? /td -td +td valign=top ? print p align=righta href='locgraph.php?xsize=900ysize=600'img src='locgraph.php' border=0 align=center height=250 width=400 alt='Lines of code graph'/a/p\n; ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/lib/ExecutionEngine/ExecutionEngine.cpp
Changes in directory llvm/lib/ExecutionEngine: ExecutionEngine.cpp updated: 1.99 - 1.100 --- Log message: Fix a regression in the last patch. When constructing a BitMask, be careful not to overflow 64-bits and end up with a 0 mask. This caused i64 values to always be stored as 0 with lots of consequential damage to nightly test. --- Diffs of the changes: (+4 -0) ExecutionEngine.cpp |4 1 files changed, 4 insertions(+) Index: llvm/lib/ExecutionEngine/ExecutionEngine.cpp diff -u llvm/lib/ExecutionEngine/ExecutionEngine.cpp:1.99 llvm/lib/ExecutionEngine/ExecutionEngine.cpp:1.100 --- llvm/lib/ExecutionEngine/ExecutionEngine.cpp:1.99 Wed Jan 17 19:24:02 2007 +++ llvm/lib/ExecutionEngine/ExecutionEngine.cppThu Jan 18 12:01:32 2007 @@ -457,6 +457,8 @@ case Type::IntegerTyID: { unsigned BitWidth = castIntegerType(Ty)-getBitWidth(); uint64_t BitMask = (1ull BitWidth) - 1; + if (BitWidth = 64) +BitMask = (uint64_t)-1; GenericValue TmpVal = Val; if (BitWidth = 8) Ptr-Untyped[0] = Val.Int8Val BitMask; @@ -513,6 +515,8 @@ case Type::IntegerTyID: { unsigned BitWidth = castIntegerType(Ty)-getBitWidth(); uint64_t BitMask = (1ull BitWidth) - 1; + if (BitWidth = 64) +BitMask = (uint64_t)-1; GenericValue TmpVal = Val; if (BitWidth = 8) Ptr-Untyped[0] = Val.Int8Val BitMask; ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/lib/VMCore/Type.cpp
Changes in directory llvm/lib/VMCore: Type.cpp updated: 1.162 - 1.163 --- Log message: Use a cheaper computation. --- Diffs of the changes: (+1 -1) Type.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/lib/VMCore/Type.cpp diff -u llvm/lib/VMCore/Type.cpp:1.162 llvm/lib/VMCore/Type.cpp:1.163 --- llvm/lib/VMCore/Type.cpp:1.162 Wed Jan 17 20:59:54 2007 +++ llvm/lib/VMCore/Type.cppThu Jan 18 12:14:49 2007 @@ -977,7 +977,7 @@ bool IntegerType::isPowerOf2ByteWidth() const { unsigned BitWidth = getBitWidth(); - return (BitWidth 7 Log2_32(BitWidth) == Log2_32_Ceil(BitWidth)); + return (BitWidth 7) isPowerOf2_32(BitWidth); } // FunctionValType - Define a class to hold the key that goes into the TypeMap ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
Changes in directory llvm/lib/Transforms/Scalar: InstructionCombining.cpp updated: 1.601 - 1.602 --- Log message: Clean up some code around the store V, (cast P) - store (cast V), P transform. Change some variable names so it is clear what is source and what is dest of the cast. Also, add an assert to ensure that the integer to integer case is asserting if the bitwidths are different. This prevents illegal casts from being formed and catches bitwidth bugs sooner. --- Diffs of the changes: (+14 -8) InstructionCombining.cpp | 22 ++ 1 files changed, 14 insertions(+), 8 deletions(-) Index: llvm/lib/Transforms/Scalar/InstructionCombining.cpp diff -u llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.601 llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.602 --- llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.601 Mon Jan 15 11:55:20 2007 +++ llvm/lib/Transforms/Scalar/InstructionCombining.cpp Thu Jan 18 12:54:33 2007 @@ -8186,23 +8186,29 @@ IC.getTargetData().getTypeSize(DestPTy)) { // Okay, we are casting from one integer or pointer type to another of -// the same size. Instead of casting the pointer before the store, cast -// the value to be stored. +// the same size. Instead of casting the pointer before +// the store, cast the value to be stored. Value *NewCast; -Instruction::CastOps opcode = Instruction::BitCast; Value *SIOp0 = SI.getOperand(0); -if (isaPointerType(SrcPTy)) { - if (SIOp0-getType()-isInteger()) +Instruction::CastOps opcode = Instruction::BitCast; +const Type* CastSrcTy = SIOp0-getType(); +const Type* CastDstTy = SrcPTy; +if (isaPointerType(CastDstTy)) { + if (CastSrcTy-isInteger()) opcode = Instruction::IntToPtr; -} else if (SrcPTy-isInteger()) { +} else if (const IntegerType* DITy = dyn_castIntegerType(CastDstTy)) { if (isaPointerType(SIOp0-getType())) opcode = Instruction::PtrToInt; + else if (const IntegerType* SITy = dyn_castIntegerType(CastSrcTy)) +assert(DITy-getBitWidth() == SITy-getBitWidth() + Illegal store instruction); } if (Constant *C = dyn_castConstant(SIOp0)) - NewCast = ConstantExpr::getCast(opcode, C, SrcPTy); + NewCast = ConstantExpr::getCast(opcode, C, CastDstTy); else NewCast = IC.InsertNewInstBefore( -CastInst::create(opcode, SIOp0, SrcPTy, SIOp0-getName()+.c), SI); +CastInst::create(opcode, SIOp0, CastDstTy, SIOp0-getName()+.c), +SI); return new StoreInst(NewCast, CastOp); } } ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/LICENSE.TXT
Changes in directory llvm: LICENSE.TXT updated: 1.28 - 1.29 --- Log message: Welcome 2007. --- Diffs of the changes: (+1 -1) LICENSE.TXT |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/LICENSE.TXT diff -u llvm/LICENSE.TXT:1.28 llvm/LICENSE.TXT:1.29 --- llvm/LICENSE.TXT:1.28 Mon Sep 11 12:28:11 2006 +++ llvm/LICENSE.TXTThu Jan 18 15:22:36 2007 @@ -4,7 +4,7 @@ University of Illinois/NCSA Open Source License -Copyright (c) 2003, 2004, 2005, 2006 University of Illinois at Urbana-Champaign. +Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign. All rights reserved. Developed by: ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/docs/doxygen.footer
Changes in directory llvm/docs: doxygen.footer updated: 1.7 - 1.8 --- Log message: Update copyright for 2007. --- Diffs of the changes: (+1 -1) doxygen.footer |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/docs/doxygen.footer diff -u llvm/docs/doxygen.footer:1.7 llvm/docs/doxygen.footer:1.8 --- llvm/docs/doxygen.footer:1.7Tue Sep 12 15:30:13 2006 +++ llvm/docs/doxygen.footerThu Jan 18 15:33:56 2007 @@ -3,7 +3,7 @@ Generated on $datetime for a href=http://llvm.org;$projectname/a by a href=http://www.doxygen.org;img src=doxygen.png alt=Doxygen align=middle border=0/$doxygenversion/abr/ -Copyright copy; 2003,2004,2005,2006 University of Illinois at Urbana-Champaign. +Copyright copy; 2003-2007 University of Illinois at Urbana-Champaign. All Rights Reserved./p hr ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
Re: [llvm-commits] CVS: llvm/lib/ExecutionEngine/ExecutionEngine.cpp
Please just use uint64_t BitMask = Ty-getIntegerTypeMask(); Thanks, -Chris On Jan 18, 2007, at 10:01 AM, Reid Spencer wrote: Changes in directory llvm/lib/ExecutionEngine: ExecutionEngine.cpp updated: 1.99 - 1.100 --- Log message: Fix a regression in the last patch. When constructing a BitMask, be careful not to overflow 64-bits and end up with a 0 mask. This caused i64 values to always be stored as 0 with lots of consequential damage to nightly test. --- Diffs of the changes: (+4 -0) ExecutionEngine.cpp |4 1 files changed, 4 insertions(+) Index: llvm/lib/ExecutionEngine/ExecutionEngine.cpp diff -u llvm/lib/ExecutionEngine/ExecutionEngine.cpp:1.99 llvm/lib/ ExecutionEngine/ExecutionEngine.cpp:1.100 --- llvm/lib/ExecutionEngine/ExecutionEngine.cpp:1.99 Wed Jan 17 19:24:02 2007 +++ llvm/lib/ExecutionEngine/ExecutionEngine.cpp Thu Jan 18 12:01:32 2007 @@ -457,6 +457,8 @@ case Type::IntegerTyID: { unsigned BitWidth = castIntegerType(Ty)-getBitWidth(); uint64_t BitMask = (1ull BitWidth) - 1; + if (BitWidth = 64) +BitMask = (uint64_t)-1; GenericValue TmpVal = Val; if (BitWidth = 8) Ptr-Untyped[0] = Val.Int8Val BitMask; @@ -513,6 +515,8 @@ case Type::IntegerTyID: { unsigned BitWidth = castIntegerType(Ty)-getBitWidth(); uint64_t BitMask = (1ull BitWidth) - 1; + if (BitWidth = 64) +BitMask = (uint64_t)-1; GenericValue TmpVal = Val; if (BitWidth = 8) Ptr-Untyped[0] = Val.Int8Val BitMask; ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
Re: [llvm-commits] llvm-gcc4: use langhooks rather than front-end calls in i386.c
On Jan 17, 2007, at 12:55 PM, Duncan Sands wrote: The section of code marked APPLE LOCAL CW asm blocks contains calls to routines that only exist in the C-like front-ends (C, C++, ObjC). Some of them are equivalent to langhook calls - so use langhooks for those. This reduces the number of stubs needed to get non C-like languages compiling. Index: gcc.llvm.master/gcc/config/i386/i386.c === --- gcc.llvm.master.orig/gcc/config/i386/i386.c 2007-01-17 21:41:50.0 +0100 +++ gcc.llvm.master/gcc/config/i386/i386.c2007-01-17 21:45:14.0 +0100 @@ -19594,7 +19594,7 @@ mode = SFmode; if (mode != VOIDmode) - type = c_common_type_for_mode (mode, 1); + type = lang_hooks.types.type_for_mode (mode, 1); } return type; @@ -19626,7 +19626,7 @@ C_DECL_REGISTER (decl) = 1; DECL_HARD_REGISTER (decl) = 1; change_decl_assembler_name (decl, arg); - decl = pushdecl (decl); + decl = lang_hooks.decls.pushdecl (decl); } } Applied, after adding APPLE LOCAL llvm markers. - Devang ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
Re: [llvm-commits] llvm-gcc4: stubs for non C-like languages
Applied, after adding APPLE LOCAL llvm markers. - Devang ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm-test/autoconf/configure.ac
Changes in directory llvm-test/autoconf: configure.ac updated: 1.41 - 1.42 --- Log message: For PR919: http://llvm.org/PR919 : 1. Eliminate the --with options for individual external benchmarks. 2. Implement directory checking for external benchmarks within the m4 macro, not in the mainline configure.ac. 3. Extend the EXTERNAL_BENCHMARK macro to accept a 3rd, optional, argument which specifies a file or directory that must exist in the benchmark's root directory in order for the check to succeed. 4. Specify that the CINT2000 directory must exist for SPEC CPU2000 5. Specify that the CPU2006 directory must exist for SPEC CPU2006 --- Diffs of the changes: (+2 -31) configure.ac | 33 ++--- 1 files changed, 2 insertions(+), 31 deletions(-) Index: llvm-test/autoconf/configure.ac diff -u llvm-test/autoconf/configure.ac:1.41 llvm-test/autoconf/configure.ac:1.42 --- llvm-test/autoconf/configure.ac:1.41Fri Jan 5 01:05:12 2007 +++ llvm-test/autoconf/configure.ac Thu Jan 18 16:12:40 2007 @@ -72,8 +72,8 @@ dnl Configure the default locations of the external benchmarks EXTERNAL_BENCHMARK(spec95,${LLVM_EXTERNALS}/spec95/benchspec) -EXTERNAL_BENCHMARK(spec2000,${LLVM_EXTERNALS}/speccpu2000/benchspec) -EXTERNAL_BENCHMARK(spec2006,${LLVM_EXTERNALS}/speccpu2006/benchspec) +EXTERNAL_BENCHMARK(spec2000,${LLVM_EXTERNALS}/speccpu2000/benchspec,[CINT2000]) +EXTERNAL_BENCHMARK(spec2006,${LLVM_EXTERNALS}/speccpu2006/benchspec,[CPU2006]) EXTERNAL_BENCHMARK(povray,${LLVM_EXTERNALS}/povray31) EXTERNAL_BENCHMARK(namd,${LLVM_EXTERNALS}/spec_namd) EXTERNAL_BENCHMARK(sweep3d,${LLVM_EXTERNALS}/sweep3d) @@ -82,35 +82,6 @@ EXTERNAL_BENCHMARK(nurbs,${LLVM_EXTERNALS}/nurbs) EXTERNAL_BENCHMARK(hmmer,${LLVM_EXTERNALS}/hmmer) -dnl Check that the paths of provided external benchmark dirs make sense -if test -n $SPEC2006_ROOT ; then - if test -d $SPEC2006_ROOT ; then -if test `basename $SPEC2006_ROOT` != benchspec; then - AC_MSG_ERROR([SPEC 2006 directory must end in 'benchspec']) -fi - else -AC_MSG_ERROR([SPEC 2006 option must specify a directory]) - fi -fi -if test -n $SPEC2000_ROOT ; then - if test -d $SPEC2000_ROOT ; then -if test `basename $SPEC2000_ROOT` != benchspec; then - AC_MSG_ERROR([SPEC 2000 directory must end in 'benchspec']) -fi - else -AC_MSG_ERROR([SPEC 2000 option must specify a directory]) - fi -fi -if test -n $SPEC95_ROOT ; then - if test -d $SPEC95_ROOT ; then -if test `basename ${SPEC95_ROOT}` != benchspec; then - AC_MSG_ERROR([SPEC 95 directory must end in 'benchspec']) -fi - else -AC_MSG_ERROR([SPEC 95 option must specify a directory]) - fi -fi - dnl LLC Diff Option AC_ARG_ENABLE(llc_diffs, AS_HELP_STRING(--enable-llc_diffs, ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
Re: [llvm-commits] llvm-gcc4: resurrect fortran
On Jan 17, 2007, at 1:10 PM, Duncan Sands wrote: Link with the common stub routines, and remove the partial set of stubs that were defined in the front-end. With this, the fortran compiler builds, but dies when compiling libgfortran: llvm-convert.cpp:4243: static llvm::Constant* TreeConstantToLLVM::Convert(tree_node*): Assertion `((__extension__ ({ const tree __t = (exp); char const __c = tree_code_type[(int) (((enum tree_code) (__t)-common.code))]; if (!((__c) != tcc_type)) tree_class_check_failed (__t, tcc_type, ../../gcc.llvm.master/gcc/llvm- convert.cpp, 4243, __FUNCTION__); __t; }) -common.constant_flag) || ((enum tree_code) (exp)- common.code) == STRING_CST) Isn't a constant!' failed. libgfortran/intrinsics/selected_int_kind.f90: In function 'selected_int_kind': libgfortran/intrinsics/selected_int_kind.f90:22: internal compiler error: Aborted Index: gcc.llvm.master/gcc/fortran/Make-lang.in === --- gcc.llvm.master.orig/gcc/fortran/Make-lang.in 2007-01-17 21:41:50.0 +0100 +++ gcc.llvm.master/gcc/fortran/Make-lang.in 2007-01-17 21:47:04.0 +0100 @@ -103,12 +103,15 @@ -rm -f gfortran-cross$(exeext) cp gfortran$(exeext) gfortran-cross$(exeext) +# Language-independent object files. +F95_BACKEND = $(BACKEND) attribs.o stub-objc.o stub-c.o + # The compiler itself is called f951. f951$(exeext): $(F95_OBJS) \ - $(BACKEND) $(LIBDEPS) + $(F95_BACKEND) $(LIBDEPS) # APPLE LOCAL LLVM $(LINKCC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ \ - $(F95_OBJS) $(BACKEND) $(F95_LIBS) + $(F95_OBJS) $(F95_BACKEND) $(F95_LIBS) $(C_STUBS) I don't see C_STUBS anywhere. Would it be possible for you to resend this patch with appropriate APPLE LOCAL llvm markers ? - Devang ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/test/Transforms/InstCombine/2007-01-18-VectorInfLoop.ll
Changes in directory llvm/test/Transforms/InstCombine: 2007-01-18-VectorInfLoop.ll added (r1.1) --- Log message: new testcase that causes instcombine to infinitely loop --- Diffs of the changes: (+7 -0) 2007-01-18-VectorInfLoop.ll |7 +++ 1 files changed, 7 insertions(+) Index: llvm/test/Transforms/InstCombine/2007-01-18-VectorInfLoop.ll diff -c /dev/null llvm/test/Transforms/InstCombine/2007-01-18-VectorInfLoop.ll:1.1 *** /dev/null Thu Jan 18 16:16:13 2007 --- llvm/test/Transforms/InstCombine/2007-01-18-VectorInfLoop.llThu Jan 18 16:16:03 2007 *** *** 0 --- 1,7 + ; RUN: llvm-as %s | opt -instcombine -disable-output + + define 4 x i32 %test(4 x i32 %A) { + %B = xor 4 x i32 %A, i32 -1, i32 -1, i32 -1, i32 -1 + %C = and 4 x i32 %B, i32 -1, i32 -1, i32 -1, i32 -1 + ret 4 x i32 %C + } ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
Changes in directory llvm/lib/Transforms/Scalar: InstructionCombining.cpp updated: 1.602 - 1.603 --- Log message: Fix InstCombine/2007-01-18-VectorInfLoop.ll, a case where instcombine infinitely loops. --- Diffs of the changes: (+9 -3) InstructionCombining.cpp | 12 +--- 1 files changed, 9 insertions(+), 3 deletions(-) Index: llvm/lib/Transforms/Scalar/InstructionCombining.cpp diff -u llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.602 llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.603 --- llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.602 Thu Jan 18 12:54:33 2007 +++ llvm/lib/Transforms/Scalar/InstructionCombining.cpp Thu Jan 18 16:16:33 2007 @@ -3062,10 +3062,16 @@ // See if we can simplify any instructions used by the instruction whose sole // purpose is to compute bits we don't care about. uint64_t KnownZero, KnownOne; - if (!isaPackedType(I.getType()) - SimplifyDemandedBits(I, I.getType()-getIntegerTypeMask(), - KnownZero, KnownOne)) + if (!isaPackedType(I.getType())) { +if (SimplifyDemandedBits(I, I.getType()-getIntegerTypeMask(), + KnownZero, KnownOne)) return I; + } else { +if (ConstantPacked *CP = dyn_castConstantPacked(Op1)) { + if (CP-isAllOnesValue()) +return ReplaceInstUsesWith(I, I.getOperand(0)); +} + } if (ConstantInt *AndRHS = dyn_castConstantInt(Op1)) { uint64_t AndRHSMask = AndRHS-getZExtValue(); ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
Re: [llvm-commits] llvm-gcc4: resurrect java
Applied, after adding appropriate APPLE LOCAL llvm markers. I did not build java to verify the fix. - Devang ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/test/Transforms/LevelRaise/2002-03-20-BadCodegen.ll
Changes in directory llvm/test/Transforms/LevelRaise: 2002-03-20-BadCodegen.ll (r1.5) removed --- Log message: remove an execution test from llvm/test --- Diffs of the changes: (+0 -0) 0 files changed ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm-test/configure
Changes in directory llvm-test: configure updated: 1.43 - 1.44 --- Log message: Regenerate. --- Diffs of the changes: (+232 -372) configure | 604 +++--- 1 files changed, 232 insertions(+), 372 deletions(-) Index: llvm-test/configure diff -u llvm-test/configure:1.43 llvm-test/configure:1.44 --- llvm-test/configure:1.43Fri Jan 5 01:06:00 2007 +++ llvm-test/configure Thu Jan 18 16:13:11 2007 @@ -1476,16 +1476,6 @@ --with-llvmsrc=DIR Location of LLVM Source Code --with-llvmobj Location of LLVM Object Code --with-externals=DIRLocation of External Test code - --with-spec95=DIR Use spec95 as a benchmark (srcs in DIR) - --with-spec2000=DIR Use spec2000 as a benchmark (srcs in DIR) - --with-spec2006=DIR Use spec2006 as a benchmark (srcs in DIR) - --with-povray=DIR Use povray as a benchmark (srcs in DIR) - --with-namd=DIR Use namd as a benchmark (srcs in DIR) - --with-sweep3d=DIR Use sweep3d as a benchmark (srcs in DIR) - --with-fpgrowth=DIR Use fpgrowth as a benchmark (srcs in DIR) - --with-alp=DIR Use alp as a benchmark (srcs in DIR) - --with-nurbs=DIRUse nurbs as a benchmark (srcs in DIR) - --with-hmmer=DIRUse hmmer as a benchmark (srcs in DIR) --with-gnu-ld assume the C compiler uses GNU ld [default=no] --with-pic try to use only PIC/non-PIC objects [default=use both] @@ -2139,514 +2129,384 @@ -# Check whether --with-spec95 was given. -if test ${with_spec95+set} = set; then - withval=$with_spec95; checkresult=$withval -else - checkresult=auto -fi + { echo $as_me:$LINENO: checking for spec95 benchmark sources 5 echo $ECHO_N checking for spec95 benchmark sources... $ECHO_C 6; } -case $checkresult in -auto|yes) - defaultdir=${LLVM_EXTERNALS}/spec95/benchspec - if test -d $defaultdir; then -SPEC95_ROOT=$defaultdir +if test -d ${LLVM_EXTERNALS}/spec95/benchspec ; then + if test -n ; then +if test -e ${LLVM_EXTERNALS}/spec95/benchspec/ ; then + SPEC95_ROOT=${LLVM_EXTERNALS}/spec95/benchspec -USE_SPEC95=USE_SPEC95=1 + USE_SPEC95=USE_SPEC95=1 -checkresult=yes, found in $defaultdir + checkresult=yes, found in ${LLVM_EXTERNALS}/spec95/benchspec +else + checkresult=no +fi else -checkresult=no - fi - ;; -no) - - - checkresult=no - ;; -*) - if test -d $checkresult ; then -SPEC95_ROOT=$checkresult +SPEC95_ROOT=${LLVM_EXTERNALS}/spec95/benchspec USE_SPEC95=USE_SPEC95=1 -checkresult=yes, in $checkresult - else +checkresult=yes, found in ${LLVM_EXTERNALS}/spec95/benchspec + fi +else + checkresult=no +fi +if test $checkresult = no ; then -checkresult=no, not found in $checkresult - fi - ;; -esac + checkresult=no, not found in ${LLVM_EXTERNALS}/spec95/benchspec +fi { echo $as_me:$LINENO: result: $checkresult 5 echo ${ECHO_T}$checkresult 6; } -# Check whether --with-spec2000 was given. -if test ${with_spec2000+set} = set; then - withval=$with_spec2000; checkresult=$withval -else - checkresult=auto -fi + + + { echo $as_me:$LINENO: checking for spec2000 benchmark sources 5 echo $ECHO_N checking for spec2000 benchmark sources... $ECHO_C 6; } -case $checkresult in -auto|yes) - defaultdir=${LLVM_EXTERNALS}/speccpu2000/benchspec - if test -d $defaultdir; then -SPEC2000_ROOT=$defaultdir +if test -d ${LLVM_EXTERNALS}/speccpu2000/benchspec ; then + if test -n CINT2000 ; then +if test -e ${LLVM_EXTERNALS}/speccpu2000/benchspec/CINT2000 ; then + SPEC2000_ROOT=${LLVM_EXTERNALS}/speccpu2000/benchspec -USE_SPEC2000=USE_SPEC2000=1 + USE_SPEC2000=USE_SPEC2000=1 -checkresult=yes, found in $defaultdir + checkresult=yes, found in ${LLVM_EXTERNALS}/speccpu2000/benchspec +else + checkresult=no +fi else -checkresult=no - fi - ;; -no) - - - checkresult=no - ;; -*) - if test -d $checkresult ; then -SPEC2000_ROOT=$checkresult +SPEC2000_ROOT=${LLVM_EXTERNALS}/speccpu2000/benchspec USE_SPEC2000=USE_SPEC2000=1 -checkresult=yes, in $checkresult - else +checkresult=yes, found in ${LLVM_EXTERNALS}/speccpu2000/benchspec + fi +else + checkresult=no +fi +if test $checkresult = no ; then -checkresult=no, not found in $checkresult - fi - ;; -esac + checkresult=no, not found in ${LLVM_EXTERNALS}/speccpu2000/benchspec +fi { echo $as_me:$LINENO: result: $checkresult 5 echo ${ECHO_T}$checkresult 6; } -# Check whether --with-spec2006 was given. -if test ${with_spec2006+set} = set; then - withval=$with_spec2006; checkresult=$withval -else - checkresult=auto -fi + + + { echo $as_me:$LINENO: checking for spec2006 benchmark sources 5 echo $ECHO_N checking for spec2006 benchmark sources... $ECHO_C 6; } -case $checkresult in -auto|yes) - defaultdir=${LLVM_EXTERNALS}/speccpu2006/benchspec - if test -d
[llvm-commits] CVS: llvm/lib/Target/X86/X86ATTAsmPrinter.cpp X86TargetMachine.cpp
Changes in directory llvm/lib/Target/X86: X86ATTAsmPrinter.cpp updated: 1.92 - 1.93 X86TargetMachine.cpp updated: 1.137 - 1.138 --- Log message: - Target PIC style is no longer affected by relocation model. - In x86-64 mode, symbols with external linkage (not just symbols which are defined externally) requires GOT indirect reference. - Stylistic code clean up. --- Diffs of the changes: (+49 -49) X86ATTAsmPrinter.cpp | 74 +++ X86TargetMachine.cpp | 24 ++-- 2 files changed, 49 insertions(+), 49 deletions(-) Index: llvm/lib/Target/X86/X86ATTAsmPrinter.cpp diff -u llvm/lib/Target/X86/X86ATTAsmPrinter.cpp:1.92 llvm/lib/Target/X86/X86ATTAsmPrinter.cpp:1.93 --- llvm/lib/Target/X86/X86ATTAsmPrinter.cpp:1.92 Wed Jan 17 19:49:58 2007 +++ llvm/lib/Target/X86/X86ATTAsmPrinter.cppThu Jan 18 16:27:12 2007 @@ -189,6 +189,14 @@ return false; } +static inline bool printGOT(TargetMachine TM, const X86Subtarget* ST) { + return ST-isPICStyleGOT() TM.getRelocationModel() == Reloc::PIC_; +} + +static inline bool printStub(TargetMachine TM, const X86Subtarget* ST) { + return ST-isPICStyleStub() TM.getRelocationModel() != Reloc::Static; +} + void X86ATTAsmPrinter::printOperand(const MachineInstr *MI, unsigned OpNo, const char *Modifier, bool NotRIPRel) { const MachineOperand MO = MI-getOperand(OpNo); @@ -232,7 +240,7 @@ O @GOTOFF; } -if (isMemOp Subtarget-is64Bit() !NotRIPRel) +if (isMemOp Subtarget-isPICStyleRIPRel() !NotRIPRel) O (%rip); return; } @@ -246,7 +254,7 @@ if (Subtarget-isPICStyleStub()) O -\ TAI-getPrivateGlobalPrefix() getFunctionNumber() $pb\; - if (Subtarget-isPICStyleGOT()) + else if (Subtarget-isPICStyleGOT()) O @GOTOFF; } @@ -256,7 +264,7 @@ else if (Offset 0) O Offset; -if (isMemOp Subtarget-is64Bit() !NotRIPRel) +if (isMemOp Subtarget-isPICStyleRIPRel() !NotRIPRel) O (%rip); return; } @@ -267,17 +275,14 @@ GlobalValue *GV = MO.getGlobal(); std::string Name = Mang-getValueName(GV); - -bool isExt = (GV-isExternal() || GV-hasWeakLinkage() || - GV-hasLinkOnceLinkage()); -bool isHidden = GV-hasHiddenVisibility(); - X86SharedAsmPrinter::decorateName(Name, GV); -if (Subtarget-isPICStyleStub()) { +if (printStub(TM, Subtarget)) { // Link-once, External, or Weakly-linked global variables need // non-lazily-resolved stubs - if (isExt) { + if (GV-isExternal() || + GV-hasWeakLinkage() || + GV-hasLinkOnceLinkage()) { // Dynamically-resolved functions need a stub for the function. if (isCallOp isaFunction(GV)) { FnStubs.insert(Name); @@ -287,9 +292,8 @@ O TAI-getPrivateGlobalPrefix() Name $non_lazy_ptr; } } else { -if (GV-hasDLLImportLinkage()) { +if (GV-hasDLLImportLinkage()) O __imp_; -} O Name; } @@ -303,15 +307,14 @@ O Name; if (isCallOp isaFunction(GV)) { -if (Subtarget-isPICStyleGOT()) { +if (printGOT(TM, Subtarget)) { // Assemble call via PLT for non-local symbols - if (!isHidden || GV-isExternal()) + if (!GV-hasHiddenVisibility() || GV-isExternal()) O @PLT; } -if (Subtarget-isTargetCygMing() GV-isExternal()) { +if (Subtarget-isTargetCygMing() GV-isExternal()) // Save function name for later type emission FnStubs.insert(Name); -} } } @@ -325,19 +328,22 @@ O Offset; if (isMemOp) { - if (Subtarget-isPICStyleGOT()) { + if (printGOT(TM, Subtarget)) { if (Subtarget-GVRequiresExtraLoad(GV, TM, false)) O @GOT; else O @GOTOFF; - } else -if (isExt Subtarget-isPICStyleRIPRel()) - O @GOTPCREL(%rip); -else if (Subtarget-is64Bit() !NotRIPRel) - // Use rip when possible to reduce code size, except when - // index or base register are also part of the address. e.g. - // foo(%rip)(%rcx,%rax,4) is not legal - O (%rip); + } else if (Subtarget-isPICStyleRIPRel() !NotRIPRel) { +if ((GV-hasExternalLinkage() || + GV-hasWeakLinkage() || + GV-hasLinkOnceLinkage()) +TM.getRelocationModel() != Reloc::Static) + O @GOTPCREL; +// Use rip when possible to reduce code size, except when +// index or base register are also part of the address. e.g. +// foo(%rip)(%rcx,%rax,4) is not legal +O (%rip); + } } return; @@ -346,7 +352,7 @@ bool isCallOp = Modifier !strcmp(Modifier, call); std::string
Re: [llvm-commits] llvm-gcc4: gimplifier fixes
On Jan 17, 2007, at 1:16 PM, Duncan Sands wrote: Backported from gcc-4.3. These should only effect the Ada front-end. Index: gcc.llvm.master/gcc/tree.c === --- gcc.llvm.master.orig/gcc/tree.c 2007-01-17 21:40:30.0 +0100 +++ gcc.llvm.master/gcc/tree.c 2007-01-17 21:47:45.0 +0100 @@ -2601,7 +2601,7 @@ break; default: - if (TREE_CODE_CLASS (code) == tcc_unary + if ((TREE_CODE_CLASS (code) == tcc_unary || code == VIEW_CONVERT_EXPR) node !TYPE_P (node) TREE_CONSTANT (node)) TREE_CONSTANT (t) = 1; Eric Botcazou made similar changes in next line to fix Ada. Please bring in entire patch and appropriate APPLE LOCAL llvm markers. - Devang ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
Re: [llvm-commits] CVS: llvm/lib/ExecutionEngine/ExecutionEngine.cpp
On Thu, 2007-01-18 at 13:49 -0800, Chris Lattner wrote: Please just use uint64_t BitMask = Ty-getIntegerTypeMask(); Good idea. This is changing to IntegerType::getBitMask(). I'm testing that set of changes now and I'll include this fix to ExecutionEngine when its time to commit. Thanks, Reid. Thanks, -Chris On Jan 18, 2007, at 10:01 AM, Reid Spencer wrote: Changes in directory llvm/lib/ExecutionEngine: ExecutionEngine.cpp updated: 1.99 - 1.100 --- Log message: Fix a regression in the last patch. When constructing a BitMask, be careful not to overflow 64-bits and end up with a 0 mask. This caused i64 values to always be stored as 0 with lots of consequential damage to nightly test. --- Diffs of the changes: (+4 -0) ExecutionEngine.cpp |4 1 files changed, 4 insertions(+) Index: llvm/lib/ExecutionEngine/ExecutionEngine.cpp diff -u llvm/lib/ExecutionEngine/ExecutionEngine.cpp:1.99 llvm/lib/ ExecutionEngine/ExecutionEngine.cpp:1.100 --- llvm/lib/ExecutionEngine/ExecutionEngine.cpp:1.99 Wed Jan 17 19:24:02 2007 +++ llvm/lib/ExecutionEngine/ExecutionEngine.cppThu Jan 18 12:01:32 2007 @@ -457,6 +457,8 @@ case Type::IntegerTyID: { unsigned BitWidth = castIntegerType(Ty)-getBitWidth(); uint64_t BitMask = (1ull BitWidth) - 1; + if (BitWidth = 64) +BitMask = (uint64_t)-1; GenericValue TmpVal = Val; if (BitWidth = 8) Ptr-Untyped[0] = Val.Int8Val BitMask; @@ -513,6 +515,8 @@ case Type::IntegerTyID: { unsigned BitWidth = castIntegerType(Ty)-getBitWidth(); uint64_t BitMask = (1ull BitWidth) - 1; + if (BitWidth = 64) +BitMask = (uint64_t)-1; GenericValue TmpVal = Val; if (BitWidth = 8) Ptr-Untyped[0] = Val.Int8Val BitMask; ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/lib/Bytecode/Writer/Writer.cpp
Changes in directory llvm/lib/Bytecode/Writer: Writer.cpp updated: 1.150 - 1.151 --- Log message: For PR761: http://llvm.org/PR761 : Implement reading and writing of the Module's data layout string. --- Diffs of the changes: (+3 -0) Writer.cpp |3 +++ 1 files changed, 3 insertions(+) Index: llvm/lib/Bytecode/Writer/Writer.cpp diff -u llvm/lib/Bytecode/Writer/Writer.cpp:1.150 llvm/lib/Bytecode/Writer/Writer.cpp:1.151 --- llvm/lib/Bytecode/Writer/Writer.cpp:1.150 Sun Jan 14 20:27:26 2007 +++ llvm/lib/Bytecode/Writer/Writer.cpp Thu Jan 18 17:24:24 2007 @@ -1090,6 +1090,9 @@ // Output the target triple from the module output(M-getTargetTriple()); + + // Output the data layout from the module + output(M-getDataLayout()); // Emit the table of section names. output_vbr((unsigned)SectionNames.size()); ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/lib/Bytecode/Reader/Reader.cpp
Changes in directory llvm/lib/Bytecode/Reader: Reader.cpp updated: 1.222 - 1.223 --- Log message: For PR761: http://llvm.org/PR761 : Implement reading and writing of the Module's data layout string. --- Diffs of the changes: (+7 -0) Reader.cpp |7 +++ 1 files changed, 7 insertions(+) Index: llvm/lib/Bytecode/Reader/Reader.cpp diff -u llvm/lib/Bytecode/Reader/Reader.cpp:1.222 llvm/lib/Bytecode/Reader/Reader.cpp:1.223 --- llvm/lib/Bytecode/Reader/Reader.cpp:1.222 Fri Jan 12 18:09:12 2007 +++ llvm/lib/Bytecode/Reader/Reader.cpp Thu Jan 18 17:24:24 2007 @@ -2013,6 +2013,13 @@ TheModule-setTargetTriple(triple); if (Handler) Handler-handleTargetTriple(triple); + + // Read the data layout string and place into the module. + std::string datalayout = read_str(); + TheModule-setDataLayout(datalayout); + // FIXME: Implement + // if (Handler) +// Handler-handleDataLayout(datalayout); if (At != BlockEnd) { // If the file has section info in it, read the section names now. ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/lib/Bytecode/Writer/Writer.cpp
Changes in directory llvm/lib/Bytecode/Writer: Writer.cpp updated: 1.151 - 1.152 --- Log message: Back out last changes for dataLayout. Much more work is needed. --- Diffs of the changes: (+0 -3) Writer.cpp |3 --- 1 files changed, 3 deletions(-) Index: llvm/lib/Bytecode/Writer/Writer.cpp diff -u llvm/lib/Bytecode/Writer/Writer.cpp:1.151 llvm/lib/Bytecode/Writer/Writer.cpp:1.152 --- llvm/lib/Bytecode/Writer/Writer.cpp:1.151 Thu Jan 18 17:24:24 2007 +++ llvm/lib/Bytecode/Writer/Writer.cpp Thu Jan 18 18:07:16 2007 @@ -1090,9 +1090,6 @@ // Output the target triple from the module output(M-getTargetTriple()); - - // Output the data layout from the module - output(M-getDataLayout()); // Emit the table of section names. output_vbr((unsigned)SectionNames.size()); ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/lib/Bytecode/Reader/Reader.cpp
Changes in directory llvm/lib/Bytecode/Reader: Reader.cpp updated: 1.223 - 1.224 --- Log message: Back out last changes for dataLayout. Much more work is needed. --- Diffs of the changes: (+0 -7) Reader.cpp |7 --- 1 files changed, 7 deletions(-) Index: llvm/lib/Bytecode/Reader/Reader.cpp diff -u llvm/lib/Bytecode/Reader/Reader.cpp:1.223 llvm/lib/Bytecode/Reader/Reader.cpp:1.224 --- llvm/lib/Bytecode/Reader/Reader.cpp:1.223 Thu Jan 18 17:24:24 2007 +++ llvm/lib/Bytecode/Reader/Reader.cpp Thu Jan 18 18:07:16 2007 @@ -2013,13 +2013,6 @@ TheModule-setTargetTriple(triple); if (Handler) Handler-handleTargetTriple(triple); - - // Read the data layout string and place into the module. - std::string datalayout = read_str(); - TheModule-setDataLayout(datalayout); - // FIXME: Implement - // if (Handler) -// Handler-handleDataLayout(datalayout); if (At != BlockEnd) { // If the file has section info in it, read the section names now. ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm-test/SingleSource/UnitTests/Makefile
Changes in directory llvm-test/SingleSource/UnitTests: Makefile updated: 1.11 - 1.12 --- Log message: Integer is not ready for prime time yet. --- Diffs of the changes: (+1 -1) Makefile |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm-test/SingleSource/UnitTests/Makefile diff -u llvm-test/SingleSource/UnitTests/Makefile:1.11 llvm-test/SingleSource/UnitTests/Makefile:1.12 --- llvm-test/SingleSource/UnitTests/Makefile:1.11 Tue Jan 16 14:32:09 2007 +++ llvm-test/SingleSource/UnitTests/Makefile Thu Jan 18 20:36:58 2007 @@ -13,7 +13,7 @@ DIRS += Vector endif -DIRS += SignlessTypes Integer +DIRS += SignlessTypes PROGRAM_REQUIRED_TO_EXIT_OK := 1 include $(LEVEL)/SingleSource/Makefile.singlesrc ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm-test/SingleSource/UnitTests/Integer/SSAtest.c arith.c array.c bigint.c bitbit.c bitlogic.c cond-expr.c enum.cpp extern-inline-redef.c large-array.c local-array.c local-union.c
Changes in directory llvm-test/SingleSource/UnitTests/Integer: SSAtest.c updated: 1.1 - 1.2 arith.c updated: 1.1 - 1.2 array.c updated: 1.1 - 1.2 bigint.c updated: 1.1 - 1.2 bitbit.c updated: 1.1 - 1.2 bitlogic.c updated: 1.1 - 1.2 cond-expr.c updated: 1.1 - 1.2 enum.cpp updated: 1.1 - 1.2 extern-inline-redef.c updated: 1.1 - 1.2 large-array.c updated: 1.1 - 1.2 local-array.c updated: 1.1 - 1.2 local-union.c updated: 1.1 - 1.2 matrix.c updated: 1.1 - 1.2 offset.c updated: 1.1 - 1.2 pointer.c updated: 1.1 - 1.2 struct1.c updated: 1.1 - 1.2 struct2.c updated: 1.1 - 1.2 structInit.c updated: 1.1 - 1.2 template.cpp updated: 1.1 - 1.2 union-init.c updated: 1.1 - 1.2 union-struct.c updated: 1.1 - 1.2 --- Log message: Get rid of compilation errors and warnings. --- Diffs of the changes: (+23 -13) SSAtest.c |1 + arith.c |1 + array.c |1 + bigint.c |4 ++-- bitbit.c |1 + bitlogic.c|3 ++- cond-expr.c |5 +++-- enum.cpp |5 - extern-inline-redef.c |1 + large-array.c |1 + local-array.c |1 + local-union.c |1 + matrix.c |1 + offset.c |1 + pointer.c |1 + struct1.c |1 + struct2.c |1 + structInit.c |1 + template.cpp |3 --- union-init.c |1 + union-struct.c|1 + 21 files changed, 23 insertions(+), 13 deletions(-) Index: llvm-test/SingleSource/UnitTests/Integer/SSAtest.c diff -u llvm-test/SingleSource/UnitTests/Integer/SSAtest.c:1.1 llvm-test/SingleSource/UnitTests/Integer/SSAtest.c:1.2 --- llvm-test/SingleSource/UnitTests/Integer/SSAtest.c:1.1 Thu Jan 18 20:22:46 2007 +++ llvm-test/SingleSource/UnitTests/Integer/SSAtest.c Thu Jan 18 20:48:16 2007 @@ -1,3 +1,4 @@ +#include stdio.h typedef int __attribute__ ((bitwidth(4))) int4; Index: llvm-test/SingleSource/UnitTests/Integer/arith.c diff -u llvm-test/SingleSource/UnitTests/Integer/arith.c:1.1 llvm-test/SingleSource/UnitTests/Integer/arith.c:1.2 --- llvm-test/SingleSource/UnitTests/Integer/arith.c:1.1Thu Jan 18 20:22:46 2007 +++ llvm-test/SingleSource/UnitTests/Integer/arith.cThu Jan 18 20:48:16 2007 @@ -1,6 +1,7 @@ // Date: Fri Jan 12 17:19:09 CST 2007 #include arith.h +#include stdio.h int21 x = 0x1f; Index: llvm-test/SingleSource/UnitTests/Integer/array.c diff -u llvm-test/SingleSource/UnitTests/Integer/array.c:1.1 llvm-test/SingleSource/UnitTests/Integer/array.c:1.2 --- llvm-test/SingleSource/UnitTests/Integer/array.c:1.1Thu Jan 18 20:22:46 2007 +++ llvm-test/SingleSource/UnitTests/Integer/array.cThu Jan 18 20:48:16 2007 @@ -1,5 +1,6 @@ #include array.h +#include stdio.h typedef enum bool{false=0, true=1} bool; Index: llvm-test/SingleSource/UnitTests/Integer/bigint.c diff -u llvm-test/SingleSource/UnitTests/Integer/bigint.c:1.1 llvm-test/SingleSource/UnitTests/Integer/bigint.c:1.2 --- llvm-test/SingleSource/UnitTests/Integer/bigint.c:1.1 Thu Jan 18 20:22:46 2007 +++ llvm-test/SingleSource/UnitTests/Integer/bigint.c Thu Jan 18 20:48:16 2007 @@ -1,6 +1,7 @@ // Date: Fri Jan 12 17:25:23 CST 2007 #include bigint.h +#include stdio.h typedef enum bool{false=0, true=1} bool; @@ -24,7 +25,7 @@ for ( ; ; ) { bool ssdm_tmp_1 = (i bnd); if (!ssdm_tmp_1) break; -if (i % 2 == 0 +if (i % 2 == 0) x = x + 1; else y = y - x; @@ -42,7 +43,6 @@ printf(rem2 = %lld\n, rem2); return 0; } -} int main() { Index: llvm-test/SingleSource/UnitTests/Integer/bitbit.c diff -u llvm-test/SingleSource/UnitTests/Integer/bitbit.c:1.1 llvm-test/SingleSource/UnitTests/Integer/bitbit.c:1.2 --- llvm-test/SingleSource/UnitTests/Integer/bitbit.c:1.1 Thu Jan 18 20:22:46 2007 +++ llvm-test/SingleSource/UnitTests/Integer/bitbit.c Thu Jan 18 20:48:16 2007 @@ -1,5 +1,6 @@ // Date: Fri Jan 12 17:28:32 CST 2007 #include bitbit.h +#include stdio.h // Module | Test // Thread: int my_test(); Index: llvm-test/SingleSource/UnitTests/Integer/bitlogic.c diff -u llvm-test/SingleSource/UnitTests/Integer/bitlogic.c:1.1 llvm-test/SingleSource/UnitTests/Integer/bitlogic.c:1.2 --- llvm-test/SingleSource/UnitTests/Integer/bitlogic.c:1.1 Thu Jan 18 20:22:46 2007 +++ llvm-test/SingleSource/UnitTests/Integer/bitlogic.c Thu Jan 18 20:48:16 2007 @@ -1,5 +1,6 @@ // Date: Fri Jan 12 17:40:34 CST 2007 -#include bitlogic.cpp.ssdm.h +#include bitlogic.h +#include stdio.h // Module | Test // Thread: int my_test(); Index: llvm-test/SingleSource/UnitTests/Integer/cond-expr.c diff -u llvm-test/SingleSource/UnitTests/Integer/cond-expr.c:1.1 llvm-test/SingleSource/UnitTests/Integer/cond-expr.c:1.2 --- llvm-test/SingleSource/UnitTests/Integer/cond-expr.c:1.1Thu Jan 18 20:22:46 2007 +++ llvm-test/SingleSource/UnitTests/Integer/cond-expr.c
[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCSubtarget.h
Changes in directory llvm/lib/Target/PowerPC: PPCSubtarget.h updated: 1.21 - 1.22 --- Log message: Needed to build on PPC Linux. --- Diffs of the changes: (+3 -0) PPCSubtarget.h |3 +++ 1 files changed, 3 insertions(+) Index: llvm/lib/Target/PowerPC/PPCSubtarget.h diff -u llvm/lib/Target/PowerPC/PPCSubtarget.h:1.21 llvm/lib/Target/PowerPC/PPCSubtarget.h:1.22 --- llvm/lib/Target/PowerPC/PPCSubtarget.h:1.21 Tue Jan 16 03:29:16 2007 +++ llvm/lib/Target/PowerPC/PPCSubtarget.h Thu Jan 18 22:36:02 2007 @@ -19,6 +19,9 @@ #include string +// GCC #defines PPC on Linux but we use it as our namespace name +#undef PPC + namespace llvm { namespace PPC { ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits