- Jul 21, 2015
-
-
Bruno Cardoso Lopes authored
Check whether BaseCst is valid before extracting a GlobalValue. This fixes PR24163. Patch by David Majnemer. llvm-svn: 242840
-
Michael J. Spencer authored
llvm-svn: 242839
-
Bill Schmidt authored
This makes one substantive change and a few stylistic changes to the VSX swap optimization pass. The substantive change is to permit LXSDX and LXSSPX instructions to participate in swap optimization computations. The previous change to insert a swap following a SUBREG_TO_REG widening operation makes this almost trivial. I experimented with also permitting STXSDX and STXSSPX instructions. This can be done using similar techniques: we could insert a swap prior to a narrowing COPY operation, and then permit these stores to participate. I prototyped this, but discovered that the pattern of a narrowing COPY followed by an STXSDX does not occur in any of our test-suite code. So instead, I added commentary indicating that this could be done. Other TLC: - I changed SH_COPYSCALAR to SH_COPYWIDEN to more clearly indicate the direction of the copy. - I factored the insertion of swap instructions into a separate function. Finally, I added a new test case to check that the scalar-to-vector loads are working properly with swap optimization. llvm-svn: 242838
-
Alex Lorenz authored
This commit refactors the function 'maybeLexGlobalValue' so that now it reuses the function 'lexName' when lexing a named global value token. llvm-svn: 242837
-
Aaron Ballman authored
llvm-svn: 242836
-
Aaron Ballman authored
llvm-svn: 242835
-
Sanjoy Das authored
llvm-svn: 242834
-
Rafael Espindola authored
Not every program needs this information. In particular, it is necessary and sufficient for a static linker to scan the section table. llvm-svn: 242833
-
Rafael Espindola authored
It will stop doing so shortly. llvm-svn: 242832
-
Tanya Lattner authored
llvm-svn: 242830
-
Rafael Espindola authored
We were already passing 3 values it can get from ELFDumper. llvm-svn: 242829
-
Rafael Espindola authored
llvm-svn: 242828
-
Philip Reames authored
Use a named lambda for readability, common some code, remove a stale comments, and use llvm style variable names. llvm-svn: 242827
-
David Blaikie authored
llvm-svn: 242826
-
David Blaikie authored
llvm-svn: 242824
-
David Blaikie authored
To be used in clang in a follow-up commit. llvm-svn: 242823
-
Rafael Espindola authored
llvm-svn: 242821
-
Rafael Espindola authored
llvm-svn: 242820
-
Richard Smith authored
module cache has been provided, rather than creating one in the current directory. llvm-svn: 242819
-
Rafael Espindola authored
Every user now keeps track of the correct string table to use. llvm-svn: 242818
-
Jonathan Peyton authored
This patch makes it possible for a performance tool that uses call stack unwinding to map implementation-level call stacks from master and worker threads into a unified global view. There are several components to this patch. include/*/ompt.h.var Add a new enumeration type that indicates whether the code for a master task for a parallel region is invoked by the user program or the runtime system Change the signature for OMPT parallel begin/end callbacks to indicate whether the master task will be invoked by the program or the runtime system. This enables a performance tool using call stack unwinding to handle these two cases differently. For this case, a profiler that uses call stack unwinding needs to know that the call path prefix for the master task may differ from those available within the begin/end callbacks if the program invokes the master. kmp.h Change the signature for __kmp_join_call to take an additional parameter indicating the fork_context type. This is needed to supply the OMPT parallel end callback with information about whether the compiler or the runtime invoked the master task for a parallel region. kmp_csupport.c Ensure that the OMPT task frame field reenter_runtime_frame is properly set and cleared before and after calls to fork and join threads for a parallel region. Adjust the code for the new signature for __kmp_join_call. Adjust the OMPT parallel begin callback invocations to carry the extra parameter indicating whether the program or the runtime invokes the master task for a parallel region. kmp_gsupport.c Apply all of the analogous changes described for kmp_csupport.c for the GOMP interface Add OMPT support for the GOMP combined parallel region + loop API to maintain the OMPT task frame field reenter_runtime_frame. kmp_runtime.c: Use the new information passed by __kmp_join_call to adjust the OMPT parallel end callback invocations to carry the extra parameter indicating whether the program or the runtime invokes the master task for a parallel region. ompt_internal.h: Use the flavor of the parallel region API (GNU or Intel) to determine who invokes the master task. Differential Revision: http://reviews.llvm.org/D11259 llvm-svn: 242817
-
Rafael Espindola authored
This removes the last uses of getStaticSymbolName in lld. llvm-svn: 242816
-
Chaoren Lin authored
Reviewers: sivachandra Subscribers: tberghammer, danalbert, srhines, lldb-commits Differential Revision: http://reviews.llvm.org/D11378 llvm-svn: 242815
-
Chaoren Lin authored
llvm-svn: 242814
-
Chaoren Lin authored
Summary: The current Makefile scheme only allows one dylib to be specified in each make invocation, so TestLoadUnload had a custom Makefile that's unrelated to the base Makefile.rules. This change uses recursive make invocations to bypass the single dylib restriction. See D11202 for more context. Reviewers: clayborg Subscribers: chaoren, lldb-commits Differential Revision: http://reviews.llvm.org/D11367 llvm-svn: 242813
-
Chad Rosier authored
llvm-svn: 242812
-
Reid Kleckner authored
Since the CoreFoundation allocator replacement was moved in r173134, all implementations of this function have been empty. Reviewers: samsonov Differential Revision: http://reviews.llvm.org/D11375 llvm-svn: 242811
-
Chad Rosier authored
This is setup for future work planned for the AArch64 Load/Store Opt pass. llvm-svn: 242810
-
Reid Kleckner authored
The LooksLikeCodeInBug11395() codepath was returning without clearing the ProcessedAllocas cache. llvm-svn: 242809
-
Philip Reames authored
llvm-svn: 242808
-
Arnold Schwaighofer authored
We insert a bitcast which obfuscates the getCalledFunction for the utility function which looks up attributes from the called function. Loosing ABI changing parameter attributes is a bad thing. rdar://21516488 llvm-svn: 242807
-
Alex Lorenz authored
Reviewers: Duncan P. N. Exon Smith llvm-svn: 242806
-
Philip Reames authored
A bit more code cleanup: delete some a trivial true assertion and supporting code, remove a redundant cast, and use count in assertions where feasible. llvm-svn: 242805
-
Rafael Espindola authored
llvm-svn: 242804
-
Alex Lorenz authored
This commit extracts the code that prints out a name of an LLVM value without a prefix from a function 'PrintLLVMName' into a publicly accessible function named 'printLLVMNameWithoutPrefix'. This change would be useful for MIR serialization, as it would allow the MIR printer to reuse this function to print out the names of the external symbol machine operands. Reviewers: Duncan P. N. Exon Smith llvm-svn: 242803
-
Rafael Espindola authored
llvm-svn: 242802
-
Rafael Espindola authored
llvm-svn: 242801
-
Bob Wilson authored
llvm-svn: 242800
-
Kuba Brecka authored
llvm-svn: 242799
-
Rafael Espindola authored
llvm-svn: 242798
-