- Jul 12, 2014
-
-
Ulrich Weigand authored
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. llvm-svn: 212832 -
Marek Olsak authored
This affects new intrinsics only. What surprises me is that v32i8 still works. llvm-svn: 212831
-
Marek Olsak authored
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. llvm-svn: 212830
-
Marek Olsak authored
It was conflicting with def TEX_SHADOW_ARRAY, which also handles them. Reviewed-by:Tom Stellard <thomas.stellard@amd.com> llvm-svn: 212829
-
Timur Iskhodzhanov authored
llvm-svn: 212828
-
Aaron Ballman authored
The returns_nonnull attribute does not require a function prototype because it affects only the return value, not any arguments. In turn, asking for a function or method result type should not require a function prototype either, so getFunctionOrMethodResultType has been relaxed. llvm-svn: 212827
-
- Jul 11, 2014
-
-
Dan Albert authored
This is useful for distros installing under /usr/lib64. Patch from İsmail Dönmez. llvm-svn: 212826
-
Todd Fiala authored
Modify ObjectFileELF::GetArchitecture() to avoid calling ParseSectionHeaders() when we have headers. Change by Matthew Gardiner. llvm-svn: 212825
-
Dan Albert authored
Note: The unwinder currently only works on Darwin and on ARM Linux. Non-ARM Linux support is not yet implemented, and will fail to build. llvm-svn: 212824
-
Kostya Serebryany authored
llvm-svn: 212823
-
Todd Fiala authored
If we have any section headers in the collection, we already parsed them. Therefore, don't reparse the section headers when the section_headers collection is not empty. See this thread for more details: http://lists.cs.uiuc.edu/pipermail/lldb-commits/Week-of-Mon-20140707/011721.html Change by Matthew Gardiner llvm-svn: 212822
-
NAKAMURA Takumi authored
- Plugins don't need to export _ZN4llvm8Registry*. - Win32.DLL cannot merge common symbols among DLLs. Static members in llvm::Registry should be instantiated in a parent. llvm-svn: 212821
-
NAKAMURA Takumi authored
llvm/test/BugPoint/compile-custom.ll: Use explicit %python to invoke a test script, compile-custom.ll.py, for shebang-incapable hosts. llvm-svn: 212820
-
NAKAMURA Takumi authored
llvm-svn: 212819
-
NAKAMURA Takumi authored
[CMake] add_llvm_library: Add "RUNTIME DESTINATION bin" to install(). It affects add_library(SHARED) for Win32.DLL. llvm-svn: 212818
-
Zinovy Nis authored
[PATCH] [x32] Introduce -mx32 flag enforcing x32 mode for other triplets. By Pavel Chupin (@pavel.v.chupin). -mx32 flag setup target environment to GNUX32 and can be used for other 32/64-bit triplets (i386-unknown-linux, x86_64-unknown-linux) to turn on x32 mode. Compatible with GCC -mx32 flag. Differential Revision: http://reviews.llvm.org/D4470 llvm-svn: 212817
-
Alp Toker authored
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. llvm-svn: 212816
-
Timur Iskhodzhanov authored
This fixes '___asan_init_v4 already defined' errors when linking some of Chromium DLLs. Looks like one of the DLL is using a .lib produced while linking another DLL and it exploded after r212699. I'm trying to come up with a small testcase... llvm-svn: 212815
-
Alexander Kornienko authored
Reviewers: djasper, sbenza, bkramer Reviewed By: bkramer Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D4463 llvm-svn: 212814
-
Simon Atanasyan authored
llvm-svn: 212813
-
Oliver Stannard authored
ACLE 2.0 allows __fp16 to be used as a function argument or return type. This enables this for AArch64. llvm-svn: 212812
-
Alexander Kornienko authored
llvm-svn: 212811
-
Alexander Kornienko authored
Add FileCheck -implicit-check-not option to allow stricter tests without 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 llvm-svn: 212810
-
Timur Iskhodzhanov authored
llvm-svn: 212809
-
Quentin Colombet authored
Also add a few comments. <rdar://problem/17581756> llvm-svn: 212808
-
Timur Iskhodzhanov authored
Reviewed at http://reviews.llvm.org/D4471 llvm-svn: 212807
-
Sylvestre Ledru authored
llvm-svn: 212806
-
Sylvestre Ledru authored
Returns a warning when using an unknown optimization flag. This patch includes -finline-limit as one of those ignored flags. More options will be moved in this group Patch by Arthur Marble <arthur@info9.net> in the context of Debian Google Summer of code 2014. Reviewers: rnk, Sylvestre llvm-svn: 212805
-
Alexey Bataev authored
llvm-svn: 212804
-
Marcello Maggioni authored
llvm-svn: 212803
-
Marcello Maggioni authored
This commit fixes bug http://llvm.org/bugs/show_bug.cgi?id=20103. Thanks to Qwertyuiop for the report and the proposed fix. llvm-svn: 212802
-
Evgeniy Stepanov authored
llvm-svn: 212801
-
Tobias Grosser authored
They where just left over from copy-pasting. Reported-by:Johannes Doerfert <jdoerfert@codeaurora.org> llvm-svn: 212800
-
Evgeniy Stepanov authored
Our versions are not exactly as fast as libc's, and MSan uses them heavily (even compared to other sanitizers). This will break if libc version of mem* are instrumented, but they never are, and if they are, we should be able to fix it on libc side. llvm-svn: 212799
-
Evgeniy Stepanov authored
llvm-svn: 212798
-
Benjamin Kramer authored
The goal is to find code like the example below, which is likely a typo where someone meant to write "if (*b)". bool *b = SomeFunction(); if (b) { // b never dereferenced } This checker naturally has a relatively high false positive rate so it applies some heuristics to avoid cases where the pointer is checked for nullptr before being written. Differential Revision: http://reviews.llvm.org/D4458 llvm-svn: 212797 -
Tobias Grosser authored
Thanks to Johannes Doerfert for narrowing down the bug. Reported-by:Chris Jenneisch <chrisj@codeaurora.org> llvm-svn: 212796
-
Adam Nemet authored
No functional change. As I was trying to understand this function, I found that variables were reused with confusing names and the broadcast case was a bit too implicit. Hopefully, this is an improvement. llvm-svn: 212795
-
Adam Nemet authored
It was computing the VL/n case as: MemObjSize = VectorByteSize / ElemByteSize / Divider * ElemByteSize ElemByteSize not only falls out but VectorByteSize/Divider now actually matches the definition of VL/n. Also some formatting fixes. llvm-svn: 212794
-
David Blaikie authored
Revert "Reapply "DebugInfo: Ensure that all debug location scope chains from instructions within a function, lead to the function itself."" This reverts commit r212776. Nope, still seems to be failing on the sanitizer bots... but hey, not the msan self-host anymore, it's failing in asan now. I'll start looking there next. llvm-svn: 212793
-