Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Jul 12, 2014

  1. [ASan] Collect unmangled names of global variables in Clang to print …

    …them in error reports.
    
    Currently ASan instrumentation pass creates a string with global name
    for each instrumented global (to include global names in the error report). Global
    name is already mangled at this point, and we may not be able to demangle it
    at runtime (e.g. there is no __cxa_demangle on Android).
    
    Instead, create a string with fully qualified global name in Clang, and pass it
    to ASan instrumentation pass in llvm.asan.globals metadata. If there is no metadata
    for some global, ASan will use the original algorithm.
    
    This fixes https://code.google.com/p/address-sanitizer/issues/detail?id=264.
    
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212872 91177308-0d34-0410-b5e6-96231b3b80d8
    Alexey Samsonov authored
  2. Matt Arsenault

    R600: Add missing tests for some intrinsics

    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212870 91177308-0d34-0410-b5e6-96231b3b80d8
    arsenm authored
  3. BFI: Add constructor for Weight

    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212868 91177308-0d34-0410-b5e6-96231b3b80d8
    Duncan P. N. Exon Smith authored
  4. BFI: Clean up BlockMass

    Implementation is small now -- the interesting logic was moved to
    `BranchProbability` a while ago.  Move it into `bfi_detail` and get rid
    of the related TODOs.
    
    I was originally planning to define it within `BlockFrequencyInfoImpl`
    (or `BFIIBase`), but it seems cleaner in a namespace.  Besides,
    `isPodLike` needs to be specialized before `BlockMass` can be used in
    some of the other data structures, and there isn't a clear way to do
    that.
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212866 91177308-0d34-0410-b5e6-96231b3b80d8
    Duncan P. N. Exon Smith authored
  5. Option: Propagate flags from groups to options in each group

    This should make it easy to set a flag for a whole group of clang driver
    options.
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212865 91177308-0d34-0410-b5e6-96231b3b80d8
    Reid Kleckner authored
  6. [RuntimeDyld] Fix stub size and offset for AArch64 in RuntimeDyldMach…

    …O.h.
    
    <rdar://problem/17648000>
    
    
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212864 91177308-0d34-0410-b5e6-96231b3b80d8
    Lang Hames authored
  7. Avoid a warning from MSVC on "*/" in this code by inserting a space

    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212862 91177308-0d34-0410-b5e6-96231b3b80d8
    Reid Kleckner authored

Jul 11, 2014

  1. BFI: Mark the end of namespaces

    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212861 91177308-0d34-0410-b5e6-96231b3b80d8
    Duncan P. N. Exon Smith authored
  2. [RuntimeDyld] Add GOT support for AArch64 to RuntimeDyldMachO.

    Test cases to follow once RuntimeDyldChecker supports introspection of stubs.
    
    Fixes <rdar://problem/17648000>
    
    
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212859 91177308-0d34-0410-b5e6-96231b3b80d8
    Lang Hames authored
  3. Revert "[FastISel][X86] Implement the FastLowerIntrinsicCall hook."

    This reverts commit r212851, because it broke the memset lowering.
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212855 91177308-0d34-0410-b5e6-96231b3b80d8
    Juergen Ributzka authored
  4. [FastISel][X86] Implement the FastLowerIntrinsicCall hook.

    Rename X86VisitIntrinsicCall -> FastLowerIntrinsicCall, which effectively
    implements the target hook.
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212851 91177308-0d34-0410-b5e6-96231b3b80d8
    Juergen Ributzka authored
  5. [ASan] Introduce a struct representing the layout of metadata entry i…

    …n llvm.asan.globals.
    
    No functionality change.
    
    
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212850 91177308-0d34-0410-b5e6-96231b3b80d8
    Alexey Samsonov authored
  6. [FastISel] Add target-independent patchpoint intrinsic support. WIP.

    This implements the target-independent lowering for the patchpoint
    intrinsic. Targets have to implement the FastLowerCall
    hook to support this intrinsic.
    
    Related to <rdar://problem/17427052>
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212849 91177308-0d34-0410-b5e6-96231b3b80d8
    Juergen Ributzka authored
  7. [FastISel] Add basic infrastructure to support a target-independent c…

    …all lowering hook in FastISel. WIP
    
    The infrastructure mimics the call lowering we have already in place for
    SelectionDAG, but with limitations. For example structure return demotion and
    non-simple types are not supported (yet).
    
    Currently every backend has its own implementation and duplicated code for call
    lowering. There is also no specified interface that could be called from
    target-independent code. The target-hook is opt-in and doesn't affect current
    implementations.
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212848 91177308-0d34-0410-b5e6-96231b3b80d8
    Juergen Ributzka authored
  8. When we sink an instruction, this can open up opportunity for the ope…

    …rands to be sunk - add them to the worklist
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212847 91177308-0d34-0410-b5e6-96231b3b80d8
    Aditya Nandakumar authored
  9. Argyrios Kyrtzidis

    Move the API and implementation of clang::driver::getARMCPUForMArch()…

    … to llvm::Triple::getARMCPUForArch().
    
    Suggested by Eric Christopher.
    
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212846 91177308-0d34-0410-b5e6-96231b3b80d8
    akyrtzi authored
  10. [FastISel] Make isInTailCallPosition independent of SelectionDAG.

    Break out the arguemnts required from SelectionDAG, so that this function can
    also be used by FastISel.
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212844 91177308-0d34-0410-b5e6-96231b3b80d8
    Juergen Ributzka authored
  11. [FastISel] Breakout intrinsic lowering into a separate function and a…

    …dd a target-hook.
    
    Create a separate helper function for target-independent intrinsic lowering. Also
    add an target-hook that allows to directly call into a target-sepcific intrinsic
    lowering method. Currently the implementation is opt-in and doesn't affect
    existing target implementations.
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212843 91177308-0d34-0410-b5e6-96231b3b80d8
    Juergen Ributzka authored
  12. Add the "-s" flag to llvm-nm for Mach-O files that prints symbols onl…

    …y in
    
    the specified section.  This is same functionality as darwin’s nm(1) "-s" flag.
    
    There is one FIXME in the code and I’m all ears to anyone that can help me
    with that.  This option takes exactly two strings and should be allowed
    anywhere on the command line.  Such that "llvm-nm -s __TEXT __text foo.o"
    would work. But that does not as the CommandLine Library does not have a
    way to make this work as far as I can tell.  For now the "-s __TEXT __text"
    has to be last on the command line.
    
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212842 91177308-0d34-0410-b5e6-96231b3b80d8
    Kevin Enderby authored
  13. atoker

    Simplify the raw_svector_ostream tweak from r212816

    The memcpy() and overlap helps didn't help much with timings, so clean up the change.
    
    The difference at this point is that we now leave growth of the storage buffer
    up to SmallVector's implementation:
    
     -   OS.reserve(OS.capacity() * 2);
     +   OS.reserve(OS.size() + 64);
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212837 91177308-0d34-0410-b5e6-96231b3b80d8
    atoker authored
  14. uweigand

    [MC] Constify MCELF::GetVisibility and MCELF::getOther

    These two routines didn't take a "const MCSymbolData &SD"
    like the other MCELF::Get routines for some reason ...
    
    
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212834 91177308-0d34-0410-b5e6-96231b3b80d8
    uweigand authored
  15. uweigand

    [PowerPC] Fix invalid displacement created by LocalStackAlloc

    This commit fixes a bug in PPCRegisterInfo::isFrameOffsetLegal that
    could result in the LocalStackAlloc pass creating an MI instruction
    out-of-range displacement:
            %vreg17<def> = LD 33184, %vreg31; mem:LD8[%g](align=32)
            %G8RC:%vreg17 G8RC_and_G8RC_NOX0:%vreg31
    (In final assembler output the top bits are stripped off, resulting
    in a negative offset loading from below the stack pointer.)
    
    Common code expects the isFrameOffsetLegal routine to verify whether
    adding a given offset to the offset already present in the instruction
    results in a valid displacement.  However, on PowerPC the routine
    did not take the already present instruction offset into account.
    
    This commit fixes isFrameOffsetLegal to add the instruction offset,
    and updates a local caller (needsFrameBaseReg) to no longer add the
    instruction offset itself before calling isFrameOffsetLegal.
    
    Reviewed by Hal Finkel.
    
    
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212832 91177308-0d34-0410-b5e6-96231b3b80d8
    uweigand authored
  16. R600/SI: Use i32 vectors for resources and samplers

    This affects new intrinsics only.
    
    What surprises me is that v32i8 still works.
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212831 91177308-0d34-0410-b5e6-96231b3b80d8
    Marek Olsak authored
  17. R600/SI: add sample and image intrinsics exposing all instruction fields

    We need the intrinsics with offsets, so why not just add them all.
    The R128 parameter will also be useful for reducing SGPR usage.
    GL_ARB_image_load_store also adds some image GLSL modifiers like "coherent",
    so Mesa will probably translate those to slc, glc, etc.
    
    When LLVM 3.5 is released, I'll switch Mesa to these new intrinsics.
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212830 91177308-0d34-0410-b5e6-96231b3b80d8
    Marek Olsak authored
  18. R600/SI: fix shadow mapping for 1D and 2D array textures

    It was conflicting with def TEX_SHADOW_ARRAY, which also handles them.
    
    Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212829 91177308-0d34-0410-b5e6-96231b3b80d8
    Marek Olsak authored
  19. Add a test case for r212596

    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212828 91177308-0d34-0410-b5e6-96231b3b80d8
    Timur Iskhodzhanov authored
  20. NAKAMURA Takumi

    llvm/test/BugPoint/compile-custom.ll: Use explicit %python to invoke …

    …a test script, compile-custom.ll.py, for shebang-incapable hosts.
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212820 91177308-0d34-0410-b5e6-96231b3b80d8
    chapuni authored
  21. NAKAMURA Takumi

    llvm/test/lit.cfg: Let %python available.

    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212819 91177308-0d34-0410-b5e6-96231b3b80d8
    chapuni authored
  22. NAKAMURA Takumi

    [CMake] add_llvm_library: Add "RUNTIME DESTINATION bin" to install().…

    … It affects add_library(SHARED) for Win32.DLL.
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212818 91177308-0d34-0410-b5e6-96231b3b80d8
    chapuni authored
  23. atoker

    raw_svector_ostream: grow and reserve atomically

    Including the scratch buffer size in the initial reservation eliminates the
    subsequent malloc+move operation and offers a healthier constant growth with
    less memory wastage.
    
    When doing this, take care to avoid invalidating the source buffer.
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212816 91177308-0d34-0410-b5e6-96231b3b80d8
    atoker authored
  24. ARM: Allow __fp16 as a function arg or return type for AArch64

    ACLE 2.0 allows __fp16 to be used as a function argument or return
    type. This enables this for AArch64.
    
    
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212812 91177308-0d34-0410-b5e6-96231b3b80d8
    Oliver Stannard authored
  25. alexfh

    Add FileCheck -implicit-check-not option to allow stricter tests with…

    …out adding too many CHECK-NOTs manually.
    
    Summary:
    Add FileCheck -implicit-check-not option which allows specifying a
    pattern that should only occur in the input when explicitly matched by a
    positive check. This feature allows checking tool diagnostics in a way
    clang -verify does it for compiler diagnostics.
    
    The option has been tested on a number of clang-tidy checks, I'll post a link to
    the clang-tidy patch to this thread.
    
    Once there's an agreement on the general direction, I can add tests and
    documentation.
    
    Reviewers: djasper, bkramer
    
    Reviewed By: bkramer
    
    Subscribers: llvm-commits
    
    Differential Revision: http://reviews.llvm.org/D4462
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212810 91177308-0d34-0410-b5e6-96231b3b80d8
    alexfh authored
  26. [X86] Fix the inversion of low and high bits for the lowering of MUL_…

    …LOHI.
    
    Also add a few comments.
    
    <rdar://problem/17581756>
    
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212808 91177308-0d34-0410-b5e6-96231b3b80d8
    Quentin Colombet authored
  27. Kariddi

    Added test for commit r212802 that was missing

    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212803 91177308-0d34-0410-b5e6-96231b3b80d8
    Kariddi authored
  28. Kariddi

    Fixup PHIs in LowerSwitch when a Leaf node is not emitted.

    This commit fixes bug http://llvm.org/bugs/show_bug.cgi?id=20103.
    
    Thanks to Qwertyuiop for the report and the proposed fix.
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212802 91177308-0d34-0410-b5e6-96231b3b80d8
    Kariddi authored
Something went wrong with that request. Please try again.