1. Oct 30, 2015
    • John McCall's avatar
      Fix the emission of ARC ivar layouts in the non-fragile Mac runtime. · f5ea072e
      John McCall authored
      My previous change in this area accidentally broke the rule when
      InstanceBegin was not a multiple of the word size.
      
      llvm-svn: 251666
      f5ea072e
    • Richard Smith's avatar
      Revert r249929 ("Split <string.h> out of <cstring>"). · 25cb3209
      Richard Smith authored
      This change caused problems when building code like povray that:
      a) uses 'using namespace std;'
      b) is built on an environment where the C library provides the "wrong"
         (non-const-correct) interface for the str* functions
      c) makes an unqualified call to one of those str* functions
      
      A patch is out for review to add a facility to fix this (and to give the
      correct signatures for these functions whenever possible, even when the C
      library does not do so). This revert is expected to be temporary.
      
      llvm-svn: 251665
      25cb3209
    • Weiming Zhao's avatar
      Revert "[ARM] Remove XFAIL on test/CodeGen/Generic/MachineBranchProb.ll" · df8b0d6f
      Weiming Zhao authored
      Summary:
      This reverts commit 79c37e1a4ff1e634da8f95322f080601b4c815fc.
          
          This test passes locally but fails on the community buildbot. So we will let it
          XFAIL for now.
      
      Patched by Mandeep Singh Grang (mgrang@codeaurora.org)
      
      Reviewers: kparzysz, weimingz
      
      Subscribers: aemerson, rengolin, llvm-commits
      
      Differential Revision: http://reviews.llvm.org/D14189
      
      llvm-svn: 251664
      df8b0d6f
    • Enrico Granata's avatar
      Do not accept nullptr descriptions as valid summaries to be printed · 61024e6c
      Enrico Granata authored
      llvm-svn: 251663
      61024e6c
    • Alexey Samsonov's avatar
      [LLVMSymbolize] Move ModuleInfo into a separate class (SymbolizableModule). · 8df3a07a
      Alexey Samsonov authored
      Summary:
      This is mostly NFC. It is a first step in cleaning up LLVMSymbolize
      library. It removes "ModuleInfo" class which bundles together ObjectFile
      and its debug info context in favor of:
        * abstract SymbolizableModule in public headers;
        * SymbolizableObjectFile subclass in implementation.
      
      Additionally, SymbolizableObjectFile is now created via factory, so we
      can properly detect object parsing error at this stage instead of keeping
      the broken half-parsed object. As a next step, we would be able to
      propagate the error all the way back to the library user.
      
      Further improvements might include:
        * factoring out the logic of finding appropriate file with debug info
          for a given object file, and caching all parsed object files into a
          separate class [A].
        * factoring out DILineInfo rendering [B].
      This would make what is now a heavyweight "LLVMSymbolizer" a relatively
      straightforward class, that calls into [A] to turn filepath into a
      SymbolizableModule, delegates actual symbolization to concrete SymbolizableModule
      implementation, and lets [C] render the result.
      
      Reviewers: dblaikie, echristo, rafael
      
      Subscribers: llvm-commits
      
      Differential Revision: http://reviews.llvm.org/D14099
      
      llvm-svn: 251662
      8df3a07a
    • Simon Pilgrim's avatar
      [X86][SSE] Added load+sext tests for 16i1->16i8 and 32i1->32i8 · 6baace03
      Simon Pilgrim authored
      llvm-svn: 251661
      6baace03
    • Enrico Granata's avatar
      Add a --language (-l) option to the formatter delete commands in order to... · 9eeabff0
      Enrico Granata authored
      Add a --language (-l) option to the formatter delete commands in order to allow removing formatters from language categories
      
      This is slightly harder to test because formatters cannot be added to language categories, so deletions are irreversible (in a debugger run)
      I plan to add a test case soon, but I need to think about the right approach to obtain one
      
      llvm-svn: 251660
      9eeabff0
    • Simon Pilgrim's avatar
      [X86][SSE] Shuffle blends with zero · ca56a72a
      Simon Pilgrim authored
      This patch generalizes the zeroing of vector elements with the BLEND instructions. Currently a zero vector will only blend if the shuffled elements are correctly inline, this patch recognises when a vector input is zero (or zeroable) and modifies a local copy of the shuffle mask to support a blend. As a zeroable vector input may not be all zeroes, the zeroable vector is regenerated if necessary.
      
      Differential Revision: http://reviews.llvm.org/D14050
      
      llvm-svn: 251659
      ca56a72a
    • Lang Hames's avatar
      [Orc] Teach IndirectStubsManager to manage an expandable pool of stubs, rather · 3f88a9ea
      Lang Hames authored
      than a pre-allocated slab of stubs. Also add a convenience method for creating a
      single stub, rather than a whole block a time.
      
      llvm-svn: 251658
      3f88a9ea
    • Jim Ingham's avatar
      72b5f9bb
    • Dehao Chen's avatar
      clang-format lib/Transforms/Utils/AddDiscriminators.cpp · 7ddf7865
      Dehao Chen authored
      llvm-svn: 251656
      7ddf7865
    • Teresa Johnson's avatar
      Fix test check label. · bc11ede2
      Teresa Johnson authored
      Summary:
      I noticed when manually modifying this test that it was passing when I
      expected it to fail. Looks like the combination of LABEL and NOT on the
      check does not work. This can also be seen when running FileCheck with
      only that one -check-prefix (removing the additional -check-prefix=B):
      
      /usr/local/google/home/tejohnson/llvm/llvm_11_build/./bin/llvm-link -S -internalize -only-needed /usr/local/google/home/tejohnson/llvm/llvm_11_build/test/Linker/Output/link-flags.ll.tmp.b.bc /usr/local/google/home/tejohnson/llvm/llvm_11_build/test/Linker/Output/link-flags.ll.tmp.c.bc | /usr/local/google/home/tejohnson/llvm/llvm_11_build/./bin/FileCheck /usr/local/google/home/tejohnson/llvm/llvm_11/test/Linker/link-flags.ll -check-prefix=CN
      error: no check strings found with prefix 'CN:'
      
      The CN prefix checks don't in fact need "LABEL" so remove that.
      
      Reviewers: tra
      
      Subscribers: llvm-commits
      
      Differential Revision: http://reviews.llvm.org/D14173
      
      llvm-svn: 251655
      bc11ede2
    • Jonathan Peyton's avatar
      [OMPT] Windows Support for OMPT · 69e596a5
      Jonathan Peyton authored
      The problem is that the ompt_tool() function (which must be implemented by a
      performance tool) should be defined in the RTL as well to cover the case when
      the tool is not present in the address space of the process. This functionality
      is accomplished with weak symbols in Unices. Unfortunately, Windows does not
      support weak symbols.
      
      The solution in these changes is to grab the list of all modules loaded by the
      process and then search for symbol "ompt_tool()" within them. The function
      ompt_tool_windows() performs the search of the ompt_tool symbol. If ompt_tool is
      found, then its return value is used to initialize the tool. If ompt_tool is not
      found, then ompt_tool_windows() returns NULL and OMPT is thus, disabled.
      
      While doing these changes, the OMPT_SUPPORT detection in CMake was changed to
      test for the required featuers for OMPT_SUPPORT, namely: builtin_frame_address()
      existence, weak attribute existence and psapi.dll existence. For
      LIBOMP_HAVE_OMPT_SUPPORT to be true, it must be that the builtin_frame_address()
      intrinsic exists AND one of: either weak attributes exist or psapi.dll exists.
      
      Also, since Process Status API is used I had to add new dependency -- psapi.dll
      to the library dependency micro test.
      
      Differential Revision: http://reviews.llvm.org/D14027
      
      llvm-svn: 251654
      69e596a5
    • Nico Weber's avatar
      Mark InternalDebugOpt driver options as CoreOptions. · e8df6750
      Nico Weber authored
      Mostly has the effect of making -ccc-print-phases usable from clang-cl.
      
      llvm-svn: 251653
      e8df6750
    • Weiming Zhao's avatar
      [ARM] Remove XFAIL on test/CodeGen/Generic/MachineBranchProb.ll · b00cc621
      Weiming Zhao authored
      Summary: Refer PR23377. This test was XFAIL'ed for Hexagon as well as ARM. But it has now started passing for ARM.
      
      Reviewers: hans, rengolin, aemerson, kparzysz
      
      Subscribers: aemerson, llvm-commits, rengolin
      
      Differential Revision: http://reviews.llvm.org/D14155
      
      llvm-svn: 251652
      b00cc621
    • John McCall's avatar
      Add support for __builtin_{add,sub,mul}_overflow. · 03107a4e
      John McCall authored
      Patch by David Grayson!
      
      llvm-svn: 251651
      03107a4e
    • Nico Weber's avatar
      Suppress uninteresting output from crash-recovery-modules.m · b2542352
      Nico Weber authored
      No behavior change, but it makes this test a bit easier to debug when it fails.
      
      llvm-svn: 251650
      b2542352
    • Saleem Abdulrasool's avatar
      Sanitizer: define WIN32_LEAN_AND_MEAN · d006c936
      Saleem Abdulrasool authored
      Define WIN32_LEAN_AND_MEAN before including Windows.h.  This is already being
      done in some places.  This does it more broadly.  This permits building ASAN on
      Linux for Winndows, as well as reduces the amount of included declarations.
      
      llvm-svn: 251649
      d006c936
    • Eugene Zelenko's avatar
      Fix Clang-tidy modernize-use-nullptr warnings in remaining files in... · 406d446e
      Eugene Zelenko authored
      Fix Clang-tidy modernize-use-nullptr warnings in remaining files in include/lldb/Target; other minor fixes.
      
      llvm-svn: 251648
      406d446e
    • Eugene Zelenko's avatar
      Fix Clang-tidy modernize-use-nullptr warnings in some files in... · cf5f0ee2
      Eugene Zelenko authored
      Fix Clang-tidy modernize-use-nullptr warnings in some files in include/lldb/Target; other minor fixes.
      
      llvm-svn: 251647
      cf5f0ee2
    • Davide Italiano's avatar
      9b71ef92
    • Davide Italiano's avatar
      3300b798
    • George Rimar's avatar
      [ELF2] merge-string.s test fixed for win32 configuration. · 8b8222b0
      George Rimar authored
      Differential revision: http://reviews.llvm.org/D14171
      
      llvm-svn: 251644
      8b8222b0
    • Daniel Jasper's avatar
      clang-format: [JS] Add goog.setTestOnly to the list of stuff that · b488a74f
      Daniel Jasper authored
      is import-statement-like and shouldn't be wrapped.
      
      llvm-svn: 251643
      b488a74f
    • Enrico Granata's avatar
    • Lang Hames's avatar
      [Orc] Rename IndirectStubsManagerBase method 'init' to 'createStubs'. · deadf2a4
      Lang Hames authored
      llvm-svn: 251641
      deadf2a4
    • Chandler Carruth's avatar
      [FunctionAttrs] Provide a single SCC node set to all of the · c518ebdd
      Chandler Carruth authored
      transformations in FunctionAttrs rather than building a new one each
      time.
      
      This isn't trivial because there are different heuristics from different
      passes for exactly what set they want. The primary difference is whether
      an *overridable* function completely disables the synthesis of
      attributes. I've modeled this by directly testing for overridable, and
      using the common set that excludes external and opt-none functions.
      
      This does cause some changes by disabling more optimizations in the face
      of opt-none. Specifically, we were still optimizing *calls* to opt-none
      functions based on their attributes, just not the bodies. It seems
      better to be conservative on both fronts given the intended semanticas
      here (best effort to not assume or disturb anything). I've not tried to
      test this change as it seems complex, brittle, and not important to the
      implicit contract of opt-none. Instead, it seems more like a choice that
      should be dictated by the simplified implementation and the change to be
      acceptable differences within the space of opt-none.
      
      A big benefit here is that these transformations no longer rely on the
      legacy pass manager's SCC types, they just work on generic sets of
      function pointers. This will make it easy to re-use their logic in the
      new pass manager.
      
      I've also made the transforms static functions instead of members where
      trivial while I was touching the signatures.
      
      llvm-svn: 251640
      c518ebdd
    • Sylvestre Ledru's avatar
      add support of the latest Ubuntu (Xenial Xerus) · 43b95717
      Sylvestre Ledru authored
      llvm-svn: 251639
      43b95717
    • Ehsan Akhgari's avatar
      Add a link to the DXR project · f16435d8
      Ehsan Akhgari authored
      DXR is a project developed at Mozilla that implements a code indexing
      and browsing utility on top of libclang that has features such as
      call graph querying.
      
      llvm-svn: 251638
      f16435d8
    • Lang Hames's avatar
      2ed3bf95
    • Hafiz Abid Qadeer's avatar
      Better handle the arguments common to all MI commands. · d122fd8d
      Hafiz Abid Qadeer authored
      Summary:
      I observed that eclipse was passing --thread-group for many other commands
      then we are currently handling. Looking at the MI documentation, the
      following link states that each MI command accept the --thread and
      --frame option. Looking at the GDB implementation, it seems that apart
      from these 2, --thread-group is also handled the same way.
      
      https://sourceware.org/gdb/onlinedocs/gdb/Context-management.html#Context-management
      
      So instead of handling those arguments in every comamnds, I have moved
      them into the base class and removed them from elsewhere. Now any command
      can use these arguments. The patch seems big but most of the changes are
      mechanical.
      
      Reviewers: ki.stfu
      
      Subscribers: lldb-commits
      
      Differential Revision: http://reviews.llvm.org/D14177
      
      llvm-svn: 251636
      d122fd8d
    • Diego Novillo's avatar
      Revert r251593. · 083becab
      Diego Novillo authored
      The patch in r251593 was only papering over the problem. The actual fix
      was committed in r251623.
      
      llvm-svn: 251635
      083becab
    • Jonas Paulsson's avatar
      [SystemZ] Make the CCRegs regclass non-allocatable. · 45d5c673
      Jonas Paulsson authored
      This was discovered to be necessary while running memchr-01.ll with
      -verify-machinstrs, because it is not allowed to have a phys reg live
      accross block boundaries while on SSA form, if the register is
      allocatable (expect in entry block and landing pads).
      
      In this test case, stringRRE pseudos are expanded after isel by adding
      a loop block which produces a live out CC register. To make the test
      pass, it was also necessary to not say that StringRRELoop pseudo uses
      R0L, this is only true for the StringRRE opcode.
      
      -verify-machineinstrs added to memchr-01.ll test.
      
      New test case int-cmp-51.ll to test that MachineCSE can eliminate
      an identical compare (which it couldn't do before).
      
      Reviewed by Ulrich Weigand
      
      llvm-svn: 251634
      45d5c673
  2. Oct 29, 2015