- Mar 13, 2014
-
-
David Blaikie authored
llvm-svn: 203676
-
Eli Bendersky authored
llvm-svn: 203675
-
Daniel Sanders authored
The MIPS version was reviewed by myself. The ARM version was reviewed by JF Bastien. Patch by Narayan Kamath <narayan@google.com>. llvm-svn: 203674
-
Eli Bendersky authored
Follow-up on LLVM r203669 llvm-svn: 203673
-
Ed Maste authored
Needed after r203667 llvm-svn: 203672
-
Eli Bendersky authored
Otherwise gcc 4.8.2 generates a warning. llvm-svn: 203671
-
Hans Wennborg authored
This is a follow-up to r203635 as suggested by Rafael. llvm-svn: 203670
-
Eli Bendersky authored
There's a bit of duplicated "magic" code in opt.cpp and Clang's CodeGen that computes the inliner threshold from opt level and size opt level. This patch moves the code to a function that lives alongside the inliner itself, providing a convenient overload to the inliner creation. A separate patch can be committed to Clang to use this once it's committed to LLVM. Standalone tools that use the inlining pass can also avoid duplicating this code and fearing it will go out of sync. Note: this patch also restructures the conditinal logic of the computation to be cleaner. llvm-svn: 203669
-
Hans Wennborg authored
This is a follow-up to r203624 to address Anton's comment. llvm-svn: 203668
-
Virgile Bello authored
Fix Windows build by adding JITLoaderGDB and ProcessElfCore. RegisterContext: fixes for Windows build: sizeof(GPR::register) didn't work, switched to sizeof(((GPR*)NULL)->register). llvm-svn: 203667
-
- Mar 12, 2014
-
-
Ahmed Charles authored
llvm-svn: 203666
-
Dmitri Gribenko authored
llvm-svn: 203665
-
Will Schmidt authored
Update the datalayout string for ppc64LE. llvm-svn: 203664
-
Dmitry Vyukov authored
forget to unlock a mutex on one of the paths llvm-svn: 203663
-
Alon Mishne authored
llvm-svn: 203662
-
Timur Iskhodzhanov authored
llvm-svn: 203661
-
Oliver Stannard authored
When a struct has bitfields overlapping with other members (as required by the AAPCS), clang uses a packed struct to represent this. If such a struct is large enough for clang to pass it as a byval pointer (>64 bytes), we need to set the alignment of the argument to match the original type. llvm-svn: 203660
-
Daniel Sanders authored
Summary: This is a white lie to workaround a widespread bug in the -mfp64 implementation. The problem is that none of the 32-bit fpu ops mention the fact that they clobber the upper 32-bits of the 64-bit FPR. This allows MTHC1 to be scheduled on the wrong side of most 32-bit FPU ops, particularly MTC1. Fixing that requires a major overhaul of the FPU implementation which can't be done right now due to time constraints. The testcase is SingleSource/Benchmarks/Misc/oourafft.c when given TARGET_CFLAGS='-mips32r2 mfp64 -mmsa'. Also correct the comment added in r203464 to indicate that two instructions were affected. Reviewers: matheusalmeida, jacksprat Reviewed By: matheusalmeida Differential Revision: http://llvm-reviews.chandlerc.com/D3029 llvm-svn: 203659
-
Viktor Kutuzov authored
llvm-svn: 203658
-
Daniel Sanders authored
Summary: Correct the match patterns and the lowerings that made the CodeGen tests pass despite the mistakes. The original testcase that discovered the problem was SingleSource/UnitTests/SignlessType/factor.c in test-suite. During review, we also found that some of the existing CodeGen tests were incorrect and fixed them: * bitwise.ll: In bsel_v16i8 the IfSet/IfClear were reversed because bsel and bmnz have different operand orders and the test didn't correctly account for this. bmnz goes 'IfClear, IfSet, CondMask', while bsel goes 'CondMask, IfClear, IfSet'. * vec.ll: In the cases where a bsel is emitted as a bmnz (they are the same operation with a different input tied to the result) the operands were in the wrong order. * compare.ll and compare_float.ll: The bsel operand order was correct for a greater-than comparison, but a greater-than comparison instruction doesn't exist. Lowering this operation inverts the condition so the IfSet/IfClear need to be swapped to match. The differences between BSEL, BMNZ, and BMZ and how they map to/from vselect are rather confusing. I've therefore added a note to MSA.txt to explain this in a single place in addition to the comments that explain each case. Reviewers: matheusalmeida, jacksprat Reviewed By: matheusalmeida Differential Revision: http://llvm-reviews.chandlerc.com/D3028 llvm-svn: 203657
-
Arnaud A. de Grandmaison authored
This is a compilation warning fix. No functional change. llvm-svn: 203656
-
Tim Northover authored
When the list of VFP registers to be saved was non-contiguous (so multiple vpush/vpop instructions were needed) these were being ordered oddly, as in: vpush {d8, d9} vpush {d11} This led to the layout in memory being [d11, d8, d9] which is ugly and doesn't match the CFI_INSTRUCTIONs we're generating either (so Dwarf info would be broken). This switches the order of vpush/vpop (in both prologue and epilogue, obviously) so that the Dwarf locations are correct again. rdar://problem/16264856 llvm-svn: 203655 -
Hafiz Abid Qadeer authored
llvm-svn: 203654
-
Hafiz Abid Qadeer authored
llvm-svn: 203653
-
Hafiz Abid Qadeer authored
It can be used in multiple files now. llvm-svn: 203652
-
Hafiz Abid Qadeer authored
This allows to use some code for mingw which was previously only used for MSVC. llvm-svn: 203651
-
Hafiz Abid Qadeer authored
They help fix mingw build. llvm-svn: 203650
-
Hafiz Abid Qadeer authored
This is to help fix mingw build. llvm-svn: 203649
-
Dmitry Vyukov authored
if the thread is cancelled in pthread_cond_wait, it locks the mutex before processing pthread_cleanup stack but tsan was missing that, thus reporting false double-lock/wrong-unlock errors see the test for details llvm-svn: 203648
-
Dmitry Vyukov authored
llvm-svn: 203647
-
-
Daniel Jasper authored
Caused by unknown tokens (e.g. "\n") not properly updating the state. Example: const char* c = STRINGIFY( \na : b); llvm-svn: 203645
-
Patrik Hagglund authored
In some cases the include is pushed "downstream" (or removed if unused). llvm-svn: 203644
-
Craig Topper authored
llvm-svn: 203643
-
NAKAMURA Takumi authored
llvm-svn: 203642
-
Craig Topper authored
llvm-svn: 203641
-
Craig Topper authored
llvm-svn: 203640
-
Saleem Abdulrasool authored
This is unnecessary now that the flag handling has been fixed. The flags will be added properly in the main CMakeLists.txt after the config-ix inclusion which performs the required check. llvm-svn: 203639
-
Saleem Abdulrasool authored
Always use list(APPEND) as it will perform the desired action even if the list is empty or previously unset. The first set is harmless, however, the subsequent set was overwriting the previous flag setup resulting in an improper compilation command being generated. This manifested as a build failure on Linux when using cmake + ninja. llvm-svn: 203638
-
Saleem Abdulrasool authored
add_definitions is meant for adding C preprocessor definitions. Modern cmake suggests use of the CMAKE_CXX_FLAGS for the purposes of pushing flags to the compilation commands. Simply switch to the modern form given that we are already requiring a new enough cmake. llvm-svn: 203637
-