1. Sep 08, 2017
    • Jan Vesely's avatar
      [OpenCL] Add half load and store builtins · 31ecb4bf
      Jan Vesely authored
      This enables load/stores of half type, without half being a legal type.
      
      Differential Revision: https://reviews.llvm.org/D37231
      
      llvm-svn: 312742
      31ecb4bf
    • Peter Collingbourne's avatar
      Remove dead code. NFCI. · 8ad3aab4
      Peter Collingbourne authored
      llvm-svn: 312740
      8ad3aab4
    • Keith Wyss's avatar
      [XRay][tools] Disable windows for tests that use an unsupported shell redirect. · 7248a8bc
      Keith Wyss authored
      The tests are filechecking against stderr and use some magic to make stdout go
      away and pipe stderr to FileCheck. This broke bots on windows.
      
      llvm-svn: 312739
      7248a8bc
    • Rafael Espindola's avatar
      Drop --no-threads from tests. · c2075903
      Rafael Espindola authored
      The performance problem with --threads is fixed.
      
      llvm-svn: 312738
      c2075903
    • Justin Lebar's avatar
      [CUDA] When compilation fails, print the compilation mode. · 78137ec8
      Justin Lebar authored
      Summary:
      That is, instead of "1 error generated", we now say "1 error generated
      when compiling for sm_35".
      
      This (partially) solves a usability foogtun wherein e.g. users call a
      function that's only defined on sm_60 when compiling for sm_35, and they
      get an unhelpful error message.
      
      Reviewers: tra
      
      Subscribers: sanjoy, cfe-commits
      
      Differential Revision: https://reviews.llvm.org/D37548
      
      llvm-svn: 312736
      78137ec8
    • Adrian McCarthy's avatar
      Fix for bug 34510 - Minidump target does not resolve new symbols correctly · 8fe23bc5
      Adrian McCarthy authored
      Even though the content of the minidump does not change in a debugging session,
      frames can't be indiscriminately be cached since modules and symbols can be
      explicitly added after the minidump is loaded.
      
      The fix is simple, just let the base Thread::ClearStackFrames() do its job.
      
      submitted by amccarth on behalf of lemo
      
      Bug: https://bugs.llvm.org/show_bug.cgi?id=34510
      
      Differential Revision: https://reviews.llvm.org/D37527
      
      llvm-svn: 312735
      8fe23bc5
    • Artem Belevich's avatar
      [CUDA] Added rudimentary support for CUDA-9 and sm_70. · 8af4e23d
      Artem Belevich authored
      For now CUDA-9 is not included in the list of CUDA versions clang
      searches for, so the path to CUDA-9 must be explicitly passed
      via --cuda-path=.
      
      On LLVM side NVPTX added sm_70 GPU type which bumps required
      PTX version to 6.0, but otherwise is equivalent to sm_62 at the moment.
      
      Differential Revision: https://reviews.llvm.org/D37576
      
      llvm-svn: 312734
      8af4e23d
    • Keith Wyss's avatar
      [XRay][tools] Function call stack based analysis tooling for XRay traces · 9420ec33
      Keith Wyss authored
      Second try after fixing a code san problem with iterator reference types.
      
      This change introduces a subcommand to the llvm-xray tool called
      "stacks" which allows for analysing XRay traces provided as inputs and
      accounting time to stacks instead of just individual functions. This
      gives us a more precise view of where in a program the latency is
      actually attributed.
      
      The tool uses a trie data structure to keep track of the caller-callee
      relationships as we process the XRay traces. In particular, we keep
      track of the function call stack as we enter functions. While we're
      doing this we're adding nodes in a trie and indicating a "calls"
      relatinship between the caller (current top of the stack) and the callee
      (the new top of the stack). When we push function ids onto the stack, we
      keep track of the timestamp (TSC) for the enter event.
      
      When exiting functions, we are able to account the duration by getting
      the difference between the timestamp of the exit event and the
      corresponding entry event in the stack. This works even if we somehow
      miss the exit events for intermediary functions (i.e. if the exit event
      is not cleanly associated with the enter event at the top of the stack).
      
      The output of the tool currently provides just the top N leaf functions
      that contribute the most latency, and the top N stacks that have the
      most frequency. In the future we can provide more sophisticated query
      mechanisms and potentially an export to database feature to make offline
      analysis of the stack traces possible with existing tools.
      
      Differential revision: D34863
      
      llvm-svn: 312733
      9420ec33
    • Matt Arsenault's avatar
      AMDGPU: Start selecting v_mad_mix_f32 · d7e2303d
      Matt Arsenault authored
      llvm-svn: 312732
      d7e2303d
    • Matt Arsenault's avatar
      DAG: Allow creating extract_vector_elt post-legalize · 61ec738b
      Matt Arsenault authored
      Fixes some combine issues for AMDGPU where we weren't
      getting the many extract_vector_elt combines expected
      in a future patch.
      
      This should really be checking isOperationLegalOrCustom on
      the extract. That improves a number of x86 lit tests, but
      a few get stuck in an infinite loop from one place
      where a similar looking extract is created. I have a
      different workaround in the backend for that which
      keeps many of those improvements, but also adds a few
      regressions.
      
      llvm-svn: 312730
      61ec738b
    • Konstantin Zhuravlyov's avatar
      AMDGPU: Handle non-temporal loads and stores · 5f5b586c
      Konstantin Zhuravlyov authored
      Differential Revision: https://reviews.llvm.org/D36862
      
      llvm-svn: 312729
      5f5b586c
    • Anastasia Stulova's avatar
      [OpenCL] Handle taking an address of block captures. · 257132a0
      Anastasia Stulova authored
      Block captures can have different physical locations
      in memory segments depending on the use case (as a function
      call or as a kernel enqueue) and in different vendor
      implementations.
      
      Therefore it's unclear how to add address space to capture
      addresses uniformly. Currently it has been decided to disallow
      taking addresses of captured variables until further
      clarifications in the spec.
      
      Differential Revision: https://reviews.llvm.org/D36410
      
      llvm-svn: 312728
      257132a0
    • Peter Smith's avatar
      [ELF] Always write non-immediate bits for AArch64 branch instruction. · 20489ec5
      Peter Smith authored
      To support errata patching on AArch64 we need to be able to overwrite
      an arbitrary instruction with a branch. For AArch64 it is sufficient to
      always write all the bits of the branch instruction and not just the
      immediate field. This is safe as the non-immediate bits of the branch
      instruction are always the same.
      
      Differential Revision: https://reviews.llvm.org/D36745
      
      llvm-svn: 312727
      20489ec5
    • Ted Woodward's avatar
      Fix lldb-mi test data_read_memory_bytes_global · 9927431d
      Ted Woodward authored
      Summary:
      Test was skipped because -data-evaluate-expression was thought
      to not work on globals. This is not the case - the issue was clang
      removes debug info for globals in cpp files that are not used.
      
      Add a reference to the globals in question, and fix memory patter in
      test to match memory pattern in testcase.
      
      Reviewers: ki.stfu, abidh
      
      Reviewed By: ki.stfu
      
      Subscribers: aprantl, lldb-commits
      
      Differential Revision: https://reviews.llvm.org/D37533
      
      llvm-svn: 312726
      9927431d
    • Konstantin Zhuravlyov's avatar
      AMDGPU: Handle more than one memory operand in SIMemoryLegalizer · c8c9d4a0
      Konstantin Zhuravlyov authored
      Differential Revision: https://reviews.llvm.org/D37397
      
      llvm-svn: 312725
      c8c9d4a0
  2. Sep 07, 2017