1. May 13, 2016
    • Richard Smith's avatar
      Preserve the FoundDecl properly in constructor overload resolution. No · 55c28889
      Richard Smith authored
      functionality change; this information is not yet in use.
      
      llvm-svn: 269382
      55c28889
    • Reid Kleckner's avatar
      [codeview] Try to handle errors better in record iterator · ce5196e7
      Reid Kleckner authored
      llvm-svn: 269381
      ce5196e7
    • Chris Bieneman's avatar
      [MachO] Extract MachO load command enums into a def file · 05a19af7
      Chris Bieneman authored
      Having the MachO enums in a def file instead of inline will allow us to write utilities and encoding/decoding methods for load commands without having to write a lot of mechanically repeated code.
      
      llvm-svn: 269380
      05a19af7
    • Justin Bogner's avatar
      SDAG: Implement Select instead of SelectImpl in AArch64DAGToDAGISel · 283e3bd7
      Justin Bogner authored
      This one has a lot of code churn, but it's all mechanical and
      straightforward.
      
      - Where we were returning a node before, call ReplaceNode instead.
      - Where we would return null to fall back to another selector, rename
        the method to try* and return a bool for success.
      - Where we were calling SelectNodeTo, just return afterwards.
      
      Part of llvm.org/pr26808.
      
      llvm-svn: 269379
      283e3bd7
    • Enrico Granata's avatar
      7d1ff51f
    • Greg Clayton's avatar
      Fix some long standing issues that caused tests to be flaky. · 1e20f021
      Greg Clayton authored
      The main issues were:
      - Listeners recently were converted over to used by getting a shared pointer to a listener. And when they listened to broadcasters they would get a strong reference added to them meaning the listeners would never go away. This caused memory usage to increase and would cause performance issue if many steps were done.
      - The lldb_private::Process private state thread had an issue where if a "stop" contol signal was attempted to be sent to that thread, it could end up not responding in 2 seconds and end up getting cancelled which might cause us to cancel a thread that had a mutex locked and it would deadlock the test.
      
      This change makes broadcasters hold onto weak references to listeners. It also fixes some bad threading code that had races inside of it by making the m_events_mutex be non-recursive and getting rid of fragile use of a Predicate<bool> to say that new events are available, and replacing it with using the m_events_mutex with a new m_events_condition to control access to the events in a safer way.
      
      The private state thread now uses a safer way to communicate that the control event has been received by the private state thread: it makes a EventDataReceipt instance that it attaches to the event that sends the control to the private state thread and used this to synchronize the fact that the private state thread has received the event instead of using a Predicate<bool> to convey the info. When the signal event is received, it will pull the event off of the queue in the private state thread and cause the EventData::DoOnRemoval() to be called, which will signal that the event has been received. This cleans up the signal delivery notification so it doesn't rely on a member variable of the process class to convey the info.
      
      std::shared_ptr<EventDataReceipt> event_receipt_sp(new EventDataReceipt());
      m_private_state_control_broadcaster.BroadcastEvent(signal, event_receipt_sp);
      
      <rdar://problem/26256353> Listeners are being kept around longer than they should be due to recent changs
      <rdar://problem/26256258> Private process state thread can be cancelled and cause deadlocks in test suite
      
      llvm-svn: 269377
      1e20f021
    • Hemant Kulkarni's avatar
      llvm-readobj: Fix GNU style entry point print width · 787c2ed6
      Hemant Kulkarni authored
      llvm-svn: 269376
      787c2ed6
    • Rafael Espindola's avatar
      Slit the relocation scan in two parts. · 686ffc6f
      Rafael Espindola authored
      The first part handles whatever has to be written to the r_offset
      position.
      
      The second part handles creating got and plt entries.
      
      llvm-svn: 269375
      686ffc6f
    • Reid Kleckner's avatar
      [codeview] Fix dumping VFTables, stop when we see LF_PAD* · 0e85b973
      Reid Kleckner authored
      Also stop visiting type records when we encounter an error.
      
      llvm-svn: 269374
      0e85b973
    • Greg Clayton's avatar
      Don't crash when a process' task port goes bad. · 1059a067
      Greg Clayton authored
      <rdar://problem/26256049>
      
      llvm-svn: 269373
      1059a067
    • Greg Clayton's avatar
      Fix libstdc++ failure where <atomic> is not able to be imported on Darwin systems. · ff8e6a76
      Greg Clayton authored
      The adding of <atomic> to test_common.h broke 12 tests on Darwin. We work around this by not including <atomic> when building on darwin for libstdc++ tests.
      
      llvm-svn: 269372
      ff8e6a76
    • Eugene Zelenko's avatar
      Fix Clang-tidy modernize-use-bool-literals in generated code. · a9f3e908
      Eugene Zelenko authored
      Reduce space in empty constructors and between data members and first public section.
      
      Fix some Include What You Use warnings.
      
      Differential revision: http://reviews.llvm.org/D20213
      
      llvm-svn: 269371
      a9f3e908
    • Chandler Carruth's avatar
      [PM] Port of the DepndenceAnalysis to the new PM. · 49c22190
      Chandler Carruth authored
      Ported DA to the new PM by splitting the former DependenceAnalysis Pass
      into a DependenceInfo result type and DependenceAnalysisWrapperPass type
      and adding a new PM-style DependenceAnalysis analysis pass returning the
      DependenceInfo.
      
      Patch by Philip Pfaffe, most of the review by Justin.
      
      Differential Revision: http://reviews.llvm.org/D18834
      
      llvm-svn: 269370
      49c22190
    • Rafael Espindola's avatar
      Move addend computation to a helper function. · 203b0773
      Rafael Espindola authored
      llvm-svn: 269369
      203b0773
    • Hemant Kulkarni's avatar
      llvm-readobj: Change Hex output for GNU style dynamic table print · cb21f3c7
      Hemant Kulkarni authored
      Dynamic table when printed shows uppercase tag/values.
      This changes it to lower case when printing in GNU style
      
      llvm-svn: 269368
      cb21f3c7
    • Richard Smith's avatar
      Refactor constant expression evaluation of CXXConstructExpr to reduce... · b8348f57
      Richard Smith authored
      Refactor constant expression evaluation of CXXConstructExpr to reduce duplication between array and class initialization.
      
      llvm-svn: 269367
      b8348f57
    • Cameron Desrochers's avatar
    • Jonathan Peyton's avatar
      Adding new kmp_aligned_malloc() entry point · f83ae31c
      Jonathan Peyton authored
      This change adds a new entry point,
      kmp_aligned_malloc(size_t size, size_t alignment), an entry point corresponding
      to kmp_malloc() but with the capability to return aligned memory as well.
      Other allocator routines have been adjusted so that kmp_free() can be used for
      freeing memory blocks allocated by any kmp_*alloc() routine, including the new
      kmp_aligned_malloc() routine.
      
      Differential Revision: http://reviews.llvm.org/D19814
      
      llvm-svn: 269365
      f83ae31c
    • Justin Bogner's avatar
      SDAG: Implement Select instead of SelectImpl in LanaiDAGToDAGISel · 7a0fe694
      Justin Bogner authored
      - Where we were returning a node before, call ReplaceNode instead.
      - Where we were calling SelectNodeTo, just return afterwards.
      
      Part of llvm.org/pr26808.
      
      llvm-svn: 269364
      7a0fe694
    • Jonathan Peyton's avatar
      Fix team reuse with foreign threads · 2b749b33
      Jonathan Peyton authored
      After hot teams were enabled by default, the library started using levels kept
      in the team structure. The levels are broken in case foreign thread exits and
      puts its team into the pool which is then re-used by another foreign thread.
      The broken behavior observed is when printing the levels for each new team, one
      gets 1, 2, 1, 2, 1, 2, etc. This makes the library believe that every other
      team is nested which is incorrect. What is wanted is for the levels to be
      1, 1, 1, etc.
      
      Differential Revision: http://reviews.llvm.org/D19980
      
      llvm-svn: 269363
      2b749b33
    • Rafael Espindola's avatar
      Handle thunks in adjustExpr. · 01f16364
      Rafael Espindola authored
      This is similar to the other changes this function does. With this all
      Relocations.push_back calls look similar.
      
      llvm-svn: 269362
      01f16364
    • Rafael Espindola's avatar
      This reverts commit r269359 and r269360. · 62cb02ee
      Rafael Espindola authored
      I will commit again with a fixed commit message.
      
      llvm-svn: 269361
      62cb02ee
    • Rafael Espindola's avatar
      Handle thunks in adjustExpr. · cc42a90b
      Rafael Espindola authored
      This is similar to the other changes this function does. With this all
      Relocations.push_back calls look similar.
      
      llvm-svn: 269360
      cc42a90b
    • Rafael Espindola's avatar
      bra · 01a94f83
      Rafael Espindola authored
      llvm-svn: 269359
      01a94f83
    • Justin Bogner's avatar
      SDAG: Implement Select instead of SelectImpl in HexagonDAGToDAGISel · ec37a027
      Justin Bogner authored
      - Where we were returning a node before, call ReplaceNode instead.
      - Where we had already replaced all uses and we returned a node, just
        remove the dead node instead.
      - Where we would return null to fall back to another selector, rename
        the method to try* and return a bool for success.
      
      Part of llvm.org/pr26808.
      
      llvm-svn: 269358
      ec37a027
    • Xinliang David Li's avatar
      [profile] Code refactoring · d1dadf6b
      Xinliang David Li authored
      Move runtime specific code from the common header file
      to runtime source.
      
      llvm-svn: 269357
      d1dadf6b
    • Adam Nemet's avatar
      [LAA] Use std::min. NFC · 2c34ab51
      Adam Nemet authored
      llvm-svn: 269356
      2c34ab51
    • Justin Bogner's avatar
      SDAG: Clean up a dangling node in HexagonISelDAGToDAG::SelectImpl · d82025b1
      Justin Bogner authored
      When we convert to the void Select interface, leaving unreferenced
      nodes around won't be allowed anymore.
      
      Part of llvm.org/pr26808.
      
      llvm-svn: 269355
      d82025b1
    • Renato Golin's avatar
      [ARM] Support and tests for transform of LDR rt, = to MOV · 608cb5de
      Renato Golin authored
      This change implements the transformation in processInstruction() for the
      LDR rt, =expression to MOV rt, expression when the expression can be evaluated
      and can fit into the immediate field of the MOV or a MVN.
      
      Across the ARM and Thumb instruction sets there are several cases to consider,
      each with a different range of representatble constants.
      
      In ARM we have:
       * Modified immediate (All ARM architectures)
       * MOVW (v6t2 and above)
      
      In Thumb we have:
       * Modified immediate (v6t2, v7m and v8m.mainline)
       * MOVW (v6t2, v7m, v8.mainline and v8m.baseline)
       * Narrow Thumb MOV that can be used in an IT block (non flag-setting)
      
      If the immediate fits any of the available alternatives then we make the transformation.
      
      Fixes 25722.
      
      Patch by Peter Smith.
      
      llvm-svn: 269354
      608cb5de
    • Renato Golin's avatar
      [ARM] Fixup tests to take into account mov translation. NFC. · d5491ab1
      Renato Golin authored
      Alter instances in the test-suite that use immediates that can be represented
      in the immediate field of a MOV. The reason for doing this is that when the
      LDR rt,=imm transformation to MOV rt, imm the existing tests do not need to
      be modified.
      
      Required by the patch that fixes PR25722.
      
      Patch by Peter Smith.
      
      llvm-svn: 269353
      d5491ab1
    • Renato Golin's avatar
      [ARM] Delay ARM constant pool creation. NFC. · 3f126138
      Renato Golin authored
      This change adds a new constant pool kind to ARMOperand. When parsing the
      operand for =immediate we create an instance of this operand rather than
      creating a constant pool entry and rewriting the operand.
      
      As the new operand kind is only created for ldr rt,= we can make ldr rt,=
      an explicit pseudo instruction in ARM, Thumb and Thumb2
      
      The pseudo instruction is expanded in processInstruction(). This creates the
      constant pool and transforms the pseudo instruction into a pc-relative ldr to
      the constant pool.
      
      There are no functional changes and no modifications needed to existing tests.
      
      Required by the patch that fixes PR25722.
      
      Patch by Peter Smith.
      
      llvm-svn: 269352
      3f126138
    • Xinliang David Li's avatar
      Minor code refactoring /NFC · 911af1ce
      Xinliang David Li authored
      llvm-svn: 269351
      911af1ce
    • Justin Bogner's avatar
      SDAG: Implement Select instead of SelectImpl in BPFDAGToDAGISel · f076e793
      Justin Bogner authored
      - Where we were returning a node before, call ReplaceNode instead.
      - Where we were calling SelectNodeTo, just return afterwards.
      
      Part of llvm.org/pr26808.
      
      llvm-svn: 269350
      f076e793
    • Justin Bogner's avatar
      SDAG: Implement Select instead of SelectImpl in AMDGPUDAGToDAGISel · 95927c0f
      Justin Bogner authored
      - Where we were returning a node before, call ReplaceNode instead.
      - Where we would return null to fall back to another selector, rename
        the method to try* and return a bool for success.
      - Where we were calling SelectNodeTo, just return afterwards.
      
      Part of llvm.org/pr26808.
      
      llvm-svn: 269349
      95927c0f
    • Simon Pilgrim's avatar
      Tidied up switch cases. NFCI. · 3ac4d831
      Simon Pilgrim authored
      Split FCMP//ICMP/SEL from the basic arithmetic cost functions. They were not sharing any notable code path (just the return) and were repeatedly testing the opcode.
      
      llvm-svn: 269348
      3ac4d831
    • Etienne Bergeron's avatar
      [AST] Move operations enum to a definition file. · 5356d96d
      Etienne Bergeron authored
      Summary:
      This patch moves the enum definitions to a definition (.def) file.
      
      These modifications provide way to list enumerators of a given type.
      
      As an example, this allow parsing of "kinds" in the dynamic matchers.
      see: http://reviews.llvm.org/D19871
      The dynamic matcher "ofKind" also required this patch to be fixed.
      
      Reviewers: klimek, aaron.ballman, rsmith
      
      Subscribers: klimek, sbenza, alexfh, cfe-commits
      
      Differential Revision: http://reviews.llvm.org/D20207
      
      llvm-svn: 269347
      5356d96d
    • John Regehr's avatar
      · 6a493f2c
      John Regehr authored
      [Docs] clarify semantics of x.with.overflow intrinsics
      
      Differential Revision: http://reviews.llvm.org/D20151
      
      llvm-svn: 269346
      6a493f2c
    • Justin Bogner's avatar
      SDAG: Clean up dangling nodes in AArch64ISelDAGToDAG::SelectImpl · 3525da74
      Justin Bogner authored
      When we convert to the void Select interface, leaving unreferenced
      nodes around won't be allowed anymore.
      
      Part of llvm.org/pr26808.
      
      llvm-svn: 269345
      3525da74
    • Tom Stellard's avatar
      Revert "LiveIntervalAnalysis: Rework constructMainRangeFromSubranges()" · 740af6f3
      Tom Stellard authored
      This reverts commit r269016 and also the follow-up commit r269020.
      
      This patch caused PR27705.
      
      llvm-svn: 269344
      740af6f3
    • Johannes Doerfert's avatar
      Check late for profitability · e6e3c924
      Johannes Doerfert authored
        Before this patch we only expanded valid __and__ profitable region. Therefor
        we did not allow the expansion to create a profitable region from a
        non-profitable one.  With this patch we will remember and expand all valid
        regions and check for profitability only at the end.
      
        This patch increases the number of valid SCoPs in the LLVM-TS and SPEC
        2000/2006 by 28% (from 303 to 390), including the hot loop in hmmer.
      
      llvm-svn: 269343
      e6e3c924