Skip to content
  1. Jun 22, 2011
  2. Jun 21, 2011
    • Bob Wilson's avatar
      Fix a case that I missed in r133550. · 05e4135f
      Bob Wilson authored
      llvm-svn: 133551
      05e4135f
    • Bob Wilson's avatar
      Make InitHeaderSearch::AddPath and HeaderSearchOptions::AddPath consistent · f64a560d
      Bob Wilson authored
      use an "IgnoreSysRoot" argument.  HeaderSearchOptions had been using the
      opposite form with "IsSysRootRelative", which made for much confusion when
      looking at true/false values in calls in AddPath.  No functional change.
      
      llvm-svn: 133550
      f64a560d
    • Daniel Dunbar's avatar
      Driver/Darwin: Fixup version check for -object_path_lto support. · 3d125d32
      Daniel Dunbar authored
      llvm-svn: 133548
      3d125d32
    • Bob Wilson's avatar
      Fix the default libc++ header search path to be sysrooted. Radar 9639692. · b02ea3d7
      Bob Wilson authored
      The -cxx-isystem path is not prefixed with the sysroot directory, so it's
      not a good way for the driver to set the system default C++ search path.
      Instead, add -stdlib as a cc1 option and teach the frontend how to find the
      headers.  The driver can then just pass -stdlib through to "cc1".
      
      llvm-svn: 133547
      b02ea3d7
    • Bob Wilson's avatar
      Fix cut-and-paste error: --stdlib is an alias for -stdlib, not -std. · 5464de6d
      Bob Wilson authored
      llvm-svn: 133546
      5464de6d
    • Daniel Dunbar's avatar
      Driver/Darwin: When invoking the linker, automatically pass -object_path_lto so · ef889c7c
      Daniel Dunbar authored
      that the linker has a place to put the temporary object file and can leave it
      around (for the driver to clean up). This is important so that the object file
      references in the debug info are preserved for possible use by dsymutil.
       - <rdar://problem/8294279> executable has no debug symbols when compiled with LTO
      
      llvm-svn: 133543
      ef889c7c
    • Daniel Dunbar's avatar
      Driver: Factor out IsUsingLTO helper function. · 8f1fe5b5
      Daniel Dunbar authored
      llvm-svn: 133542
      8f1fe5b5
    • Greg Clayton's avatar
      Don't print out the baton pointer value for simple Baton classes. · c1869a5e
      Greg Clayton authored
      llvm-svn: 133541
      c1869a5e
    • Argyrios Kyrtzidis's avatar
      [arcmt] Merge 'removeEmptyStatements' and 'removeDeallocMethod' passes to cut... · e5acb84e
      Argyrios Kyrtzidis authored
      [arcmt] Merge 'removeEmptyStatements' and 'removeDeallocMethod' passes to cut down on one compilation
      pass and increase migration speed.
      
      llvm-svn: 133540
      e5acb84e
    • Argyrios Kyrtzidis's avatar
      [arcmt] Break apart Transforms.cpp. · e5b475c6
      Argyrios Kyrtzidis authored
      llvm-svn: 133539
      e5b475c6
    • Johnny Chen's avatar
      rdar://problem/9649573 has captured the log files when running... · e1ba3123
      Johnny Chen authored
      rdar://problem/9649573 has captured the log files when running test_long_long_type_with_dsym() (which luckily failed) and the test session files for test failures.
      
      llvm-svn: 133538
      e1ba3123
    • Johnny Chen's avatar
      Add a test file "TestFailures.py" to try to capture test failures which occur when running · fce70bb4
      Johnny Chen authored
      with no delay between successive test cases.  This one happend to capture a test failure where
      the inferior shoud stop at a breakpoint but did not (radar will be filed to capture the log files
      as well as the test session files):
      
      [12:40:37] johnny:/Volumes/data/lldb/svn/trunk/test $ DEBUG_LLDB_LOG=/tmp/lldb.log DEBUG_GDB_REMOTE_LOG=/tmp/gdb-remote.log ./dotest.py -v -p TestFailures.py
      LLDB-63
      Path: /Volumes/data/lldb/svn/trunk
      URL: https://johnny@llvm.org/svn/llvm-project/lldb/trunk
      Repository Root: https://johnny@llvm.org/svn/llvm-project
      Repository UUID: 91177308-0d34-0410-b5e6-96231b3b80d8
      Revision: 133529
      Node Kind: directory
      Schedule: normal
      Last Changed Author: jmolenda
      Last Changed Rev: 133500
      Last Changed Date: 2011-06-20 19:57:15 -0700 (Mon, 20 Jun 2011)
      
      
      
      Session logs for test failures/errors/unexpected successes will go into directory '2011-06-21-12_40_42'
      Command invoked: python ./dotest.py -v -p TestFailures.py
      ----------------------------------------------------------------------
      Collected 10 tests
      
       1: test_char_type_with_dsym (TestFailures.DebugIntegerTypesFailures)
          Test that char-type variables are displayed correctly. ... ok
       2: test_char_type_with_dwarf (TestFailures.DebugIntegerTypesFailures)
          Test that char-type variables are displayed correctly. ... ok
       3: test_int_type_with_dsym (TestFailures.DebugIntegerTypesFailures)
          Test that int-type variables are displayed correctly. ... ok
       4: test_int_type_with_dwarf (TestFailures.DebugIntegerTypesFailures)
          Test that int-type variables are displayed correctly. ... ok
       5: test_long_long_type_with_dsym (TestFailures.DebugIntegerTypesFailures)
          Test that 'long long'-type variables are displayed correctly. ... FAIL
       6: test_long_long_type_with_dwarf (TestFailures.DebugIntegerTypesFailures)
          Test that 'long long'-type variables are displayed correctly. ... ok
       7: test_long_type_with_dsym (TestFailures.DebugIntegerTypesFailures)
          Test that long-type variables are displayed correctly. ... TestFailures.DebugIntegerTypesFailures.test_long_type_with_dsym
      FAIL
       8: test_long_type_with_dwarf (TestFailures.DebugIntegerTypesFailures)
          Test that long-type variables are displayed correctly. ... FAIL
       9: test_short_type_with_dsym (TestFailures.DebugIntegerTypesFailures)
          Test that short-type variables are displayed correctly. ... ok
      10: test_short_type_with_dwarf (TestFailures.DebugIntegerTypesFailures)
          Test that short-type variables are displayed correctly. ... ok
      
      ======================================================================
      FAIL: test_long_long_type_with_dsym (TestFailures.DebugIntegerTypesFailures)
          Test that 'long long'-type variables are displayed correctly.
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/Volumes/data/lldb/svn/trunk/test/types/TestFailures.py", line 102, in test_long_long_type_with_dsym
          self.long_long_type()
        File "/Volumes/data/lldb/svn/trunk/test/types/TestFailures.py", line 129, in long_long_type
          self.generic_type_tester(set(['long long']))
        File "/Volumes/data/lldb/svn/trunk/test/types/AbstractBase.py", line 67, in generic_type_tester
          "stop reason = breakpoint"])
        File "/Volumes/data/lldb/svn/trunk/test/lldbtest.py", line 863, in expect
          msg if msg else EXP_MSG(str, exe))
      AssertionError: False is not True : Process should be stopped due to breakpoint
      
      ======================================================================
      FAIL: test_long_type_with_dsym (TestFailures.DebugIntegerTypesFailures)
          Test that long-type variables are displayed correctly.
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/Volumes/data/lldb/svn/trunk/test/types/TestFailures.py", line 87, in test_long_type_with_dsym
          self.long_type()
        File "/Volumes/data/lldb/svn/trunk/test/types/TestFailures.py", line 125, in long_type
          self.generic_type_tester(set(['long']))
        File "/Volumes/data/lldb/svn/trunk/test/types/AbstractBase.py", line 67, in generic_type_tester
          "stop reason = breakpoint"])
        File "/Volumes/data/lldb/svn/trunk/test/lldbtest.py", line 863, in expect
          msg if msg else EXP_MSG(str, exe))
      AssertionError: False is not True : Process should be stopped due to breakpoint
      
      ======================================================================
      FAIL: test_long_type_with_dwarf (TestFailures.DebugIntegerTypesFailures)
          Test that long-type variables are displayed correctly.
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/Volumes/data/lldb/svn/trunk/test/types/TestFailures.py", line 94, in test_long_type_with_dwarf
          self.long_type()
        File "/Volumes/data/lldb/svn/trunk/test/types/TestFailures.py", line 125, in long_type
          self.generic_type_tester(set(['long']))
        File "/Volumes/data/lldb/svn/trunk/test/types/AbstractBase.py", line 67, in generic_type_tester
          "stop reason = breakpoint"])
        File "/Volumes/data/lldb/svn/trunk/test/lldbtest.py", line 863, in expect
          msg if msg else EXP_MSG(str, exe))
      AssertionError: False is not True : Process should be stopped due to breakpoint
      
      ----------------------------------------------------------------------
      Ran 10 tests in 5.617s
      
      FAILED (failures=3)
      Session logs for test failures/errors/unexpected successes can be found in directory '2011-06-21-12_40_42'
      [12:40:47] johnny:/Volumes/data/lldb/svn/trunk/test $ 
      
      llvm-svn: 133537
      fce70bb4
    • Devang Patel's avatar
      Remove r130409, as requested by Chris. · b2070d37
      Devang Patel authored
      llvm-svn: 133536
      b2070d37
    • Fariborz Jahanian's avatar
      objc-arc: Add support for unbridged cast of · 9b83be83
      Fariborz Jahanian authored
      __builtin___CFStringMakeConstantString and CF typed function calls 
      with explicit cf_returns_retained/cf_returns_not_retained attributes.
      // rdar://9544832
      
      llvm-svn: 133535
      9b83be83
    • Johnny Chen's avatar
      Fix the log channel for gdb-remote. It should be "gdb-remote" now, instead of... · d0abdab8
      Johnny Chen authored
      Fix the log channel for gdb-remote.  It should be "gdb-remote" now, instead of "process.gdb-remote".
      
      llvm-svn: 133534
      d0abdab8
    • Evan Cheng's avatar
      Reorg. No functionality change. · 8d971ad5
      Evan Cheng authored
      llvm-svn: 133533
      8d971ad5
    • Daniel Dunbar's avatar
      IRgen: Add a -fuse-register-sized-bitfield-access option, for testing. · d3f3d932
      Daniel Dunbar authored
       - Changes bit-field access policy to try to use (aligned) register sized accesses.
      
      The idea here is that by using larger accesses we expose more coalescing
      potential to the backend when we have situations like adjacent bit-fields in the
      same structure (which is common), and that the backend should be smart enough to
      narrow the accesses down when no coalescing is done or when it is shown not to
      be profitable.
      
      --
      $ clang -m32 -O3 -S -o - t.c
      _f0:                                    ## @f0
      	pushl	%ebp
      	movl	%esp, %ebp
      	movl	8(%ebp), %eax
      	movb	(%eax), %cl
      	andb	$-128, %cl
      	orb	$1, %cl
      	movb	%cl, (%eax)
      	movb	1(%eax), %cl
      	andb	$-128, %cl
      	orb	$1, %cl
      	movb	%cl, 1(%eax)
      	movb	2(%eax), %cl
      	andb	$-128, %cl
      	orb	$1, %cl
      	movb	%cl, 2(%eax)
      	movb	3(%eax), %cl
      	andb	$-128, %cl
      	orb	$1, %cl
      	movb	%cl, 3(%eax)
      	popl	%ebp
      	ret
      
      $ clang -m32 -O3 -S -o - t.c -Xclang -fuse-register-sized-bitfield-access
      _f0:                                    ## @f0
      	pushl	%ebp
      	movl	%esp, %ebp
      	movl	8(%ebp), %eax
      	movl	$-2139062144, %ecx      ## imm = 0xFFFFFFFF80808080
      	andl	(%eax), %ecx
      	orl	$16843009, %ecx         ## imm = 0x1010101
      	movl	%ecx, (%eax)
      	popl	%ebp
      	ret
      --
      
      llvm-svn: 133532
      d3f3d932
    • Daniel Dunbar's avatar
      Basic: Add TargetInfo::getRegisterWidth hook. · d574d6bb
      Daniel Dunbar authored
       - For clarity only, currently just assumes register width == long width.
      
      llvm-svn: 133531
      d574d6bb
    • Daniel Dunbar's avatar
      IRgen: Add CGOptions to CGTypes. · 0de2faae
      Daniel Dunbar authored
      llvm-svn: 133530
      0de2faae
    • Fariborz Jahanian's avatar
      ^cat^cast^ · 2e9e89aa
      Fariborz Jahanian authored
      llvm-svn: 133529
      2e9e89aa
    • Douglas Gregor's avatar
      A few tweaks to MaterializeTemporaryExpr suggested by John. · d410c08e
      Douglas Gregor authored
      llvm-svn: 133528
      d410c08e
    • Fariborz Jahanian's avatar
      Add comment before CheckObjCARCConversion is called on · 40502b12
      Fariborz Jahanian authored
      Expr value not getting changed by this call.
      
      llvm-svn: 133527
      40502b12
    • Chandler Carruth's avatar
      Switch the order of the notes for the parentheses suggested in the case · fc8a0fbe
      Chandler Carruth authored
      of: a + b ? x : y. In our testing of this flag we've yet to hit a single
      case where the existing precedence was correct, so we should suggest
      grouping the ?: first.
      
      llvm-svn: 133526
      fc8a0fbe
    • Fariborz Jahanian's avatar
      objc-arc: CodeGen part of unbridged cast of CF types. · 7887637c
      Fariborz Jahanian authored
      // rdar://9474349
      
      llvm-svn: 133525
      7887637c
    • Bob Wilson's avatar
      Revert r133452: "Emit movq for 64-bit register to XMM register moves..." · 646dd0f4
      Bob Wilson authored
      This is breaking compiler-rt and llvm-gcc builds on MacOSX when not using
      the integrated assembler.
      
      llvm-svn: 133524
      646dd0f4
    • Chandler Carruth's avatar
      Fix a crash when a pointer-to-member function is called in the condition · 4352b0b8
      Chandler Carruth authored
      expression of '?:'. Add a test case for this pattern, and also test the
      code that led to the crash in a "working" case as well.
      
      llvm-svn: 133523
      4352b0b8
    • Anna Zaks's avatar
      Add support for sadd.with.overflow and uadd.with.overflow intrinsics to the... · 083f0b5a
      Anna Zaks authored
      Add support for sadd.with.overflow and uadd.with.overflow intrinsics to the CBackend by emitting definitions for each intrinsic that occurs in the module.
      
      llvm-svn: 133522
      083f0b5a
    • Douglas Gregor's avatar
      Introduce a new AST node describing reference binding to temporaries. · fe31481f
      Douglas Gregor authored
      MaterializeTemporaryExpr captures a reference binding to a temporary
      value, making explicit that the temporary value (a prvalue) needs to
      be materialized into memory so that its address can be used. The
      intended AST invariant here is that a reference will always bind to a
      glvalue, and MaterializeTemporaryExpr will be used to convert prvalues
      into glvalues for that binding to happen. For example, given
      
        const int& r = 1.0;
      
      The initializer of "r" will be a MaterializeTemporaryExpr whose
      subexpression is an implicit conversion from the double literal "1.0"
      to an integer value. 
      
      IR generation benefits most from this new node, since it was
      previously guessing (badly) when to materialize temporaries for the
      purposes of reference binding. There are likely more refactoring and
      cleanups we could perform there, but the introduction of
      MaterializeTemporaryExpr fixes PR9565, a case where IR generation
      would effectively bind a const reference directly to a bitfield in a
      struct. Addresses <rdar://problem/9552231>.
      
      llvm-svn: 133521
      fe31481f
    • Andrew Trick's avatar
      IVUsers no longer needs to record the phis. · fc4ccb20
      Andrew Trick authored
      llvm-svn: 133518
      fc4ccb20
    • Jay Foad's avatar
      Remove deprecated forms of StringMap::GetOrCreateValue(). · f6474fd5
      Jay Foad authored
      llvm-svn: 133517
      f6474fd5
    • Jay Foad's avatar
      Remove some unnecessary uses of c_str(). · 7a8a5f7f
      Jay Foad authored
      llvm-svn: 133516
      7a8a5f7f
    • Jay Foad's avatar
      Make more use of llvm::StringRef in various APIs. In particular, don't · 9a6b0987
      Jay Foad authored
      use the deprecated forms of llvm::StringMap::GetOrCreateValue().
      
      llvm-svn: 133515
      9a6b0987
    • Benjamin Kramer's avatar
      Remove unused variables. · ccbb77f2
      Benjamin Kramer authored
      llvm-svn: 133514
      ccbb77f2
Loading