summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [ARM] Do not scale vext with a factorJeroen Ketema2015-09-212-9/+12
| | | | | | | | | | | | | The vext pseudo-instruction takes the number of elements that need to be extracted, not the number of bytes. Hence, use the number of elements directly instead of scaling them with a factor. Reviewers: Silviu Baranga, James Molloy (not reflected in the differential revision) Differential Revision: http://reviews.llvm.org/D12974 llvm-svn: 248208
* Complex division requires libm on NetBSD, add it.Joerg Sonnenberger2015-09-211-0/+3
| | | | llvm-svn: 248207
* [DAGCombiner] Tidy up FMA combine helpers. NFCI.Simon Pilgrim2015-09-211-25/+21
| | | | | | Based on feedback for D13003. llvm-svn: 248206
* clang-format: Remove ChromiumStyle.MacroBlockBegin.Nico Weber2015-09-211-2/+0
| | | | | | | | We prefer setting these in our .clang-format file as the macros change over time. (Also, the code was setting MacroBlockBegin twice and didn't set MacroBlockEnd, so it wasn't doing what it tried to do anyways.) llvm-svn: 248205
* Add basic NetBSD support.Joerg Sonnenberger2015-09-216-15/+25
| | | | llvm-svn: 248204
* Teach the Perl modules about NetBSD.Joerg Sonnenberger2015-09-212-1/+6
| | | | llvm-svn: 248203
* COFF: Improve section hash value.Rui Ueyama2015-09-211-1/+1
| | | | | | | | std::distance(C->Relocs.end(), C->Relocs.begin()) is the same as NumRelocs which is already added to the hash value. What we are missing here is the section size. llvm-svn: 248202
* [LoopUtils,LV] Propagate fast-math flags on generated FCmp instructionsJames Molloy2015-09-213-54/+63
| | | | | | | | | We're currently losing any fast-math flags when synthesizing fcmps for min/max reductions. In LV, make sure we copy over the scalar inst's flags. In LoopUtils, we know we only ever match patterns with hasUnsafeAlgebra, so apply that to any synthesized ops. llvm-svn: 248201
* libomp on NetBSD needs libc, libpthread and libm.Joerg Sonnenberger2015-09-211-0/+2
| | | | llvm-svn: 248200
* Assume that all Unix-like systems will want to handle signals andJoerg Sonnenberger2015-09-211-1/+1
| | | | | | simplify conditional. llvm-svn: 248199
* Darwin is the exception when it comes to accessing environ, all otherJoerg Sonnenberger2015-09-211-4/+2
| | | | | | Unix-like systems can follow the same code path. llvm-svn: 248198
* COFF: Rename A.replaceWith(B) -> B.replace(A). NFC.Rui Ueyama2015-09-213-5/+5
| | | | llvm-svn: 248197
* [ELF2] Support relocs for local symbolsDavide Italiano2015-09-212-31/+94
| | | | | | Differential Revision: http://reviews.llvm.org/D12978 llvm-svn: 248196
* Remove roundingMode argument in APFloat::modStephen Canon2015-09-215-8/+7
| | | | | | Because mod is always exact, this function should have never taken a rounding mode argument. The actual implementation still has issues, which I'll look at resolving in a subsequent patch. llvm-svn: 248195
* Avoid SEGFAULT if a requested symbol section is absent.Rafael Espindola2015-09-212-0/+4
| | | | | | Patch by Igor Kudrin! llvm-svn: 248194
* COFF: Do not call std::async with std::launch::async if multithreading is ↵Rui Ueyama2015-09-211-2/+8
| | | | | | disabled. llvm-svn: 248193
* Make MIN_LOOP_TRIP_COUNT a static constantJohannes Doerfert2015-09-211-2/+5
| | | | llvm-svn: 248192
* Remove attributes minsize and optsize, which conflict with optnone.Akira Hatanaka2015-09-212-4/+20
| | | | | | | | | | | This commit fixes an assert that is triggered when optnone is being added to an IR function that is already marked with minsize and optsize. rdar://problem/22723716 Differential Revision: http://reviews.llvm.org/D13004 llvm-svn: 248191
* Fix accidentally committed debug printingMatt Arsenault2015-09-211-14/+1
| | | | llvm-svn: 248190
* [OMPT] Simplify control variable logic for OMPTJonathan Peyton2015-09-2112-157/+122
| | | | | | | | | | | | | | | Prior to this change, OMPT had a status flag ompt_status, which could take several values. This was due to an earlier OMPT design that had several levels of enablement (ready, disabled, tracking state, tracking callbacks). The current OMPT design has OMPT support either on or off. This revision replaces ompt_status with a boolean flag ompt_enabled, which simplifies the runtime logic for OMPT. Patch by John Mellor-Crummey Differential Revision: http://reviews.llvm.org/D12999 llvm-svn: 248189
* [ADT] Remove a couple of the always inline attributes I added.Chandler Carruth2015-09-211-2/+0
| | | | | | | | | | | | | Based on conversations with Justin and a few others, these constructors are really useful to have in the executable so that you can call them from the debugger. After some measurements, these *particular* calls aren't so problematic as to make them a good tradeoff for always inline. Please let me know if there are other functions really needed for debugging. The always inline attribute is a hack that we should only really employ when it doesn't hurt. llvm-svn: 248188
* [OMPT] Overhaul OMPT initialization interfaceJonathan Peyton2015-09-219-158/+195
| | | | | | | | | | | | | | | | | | | | | | | | The OMPT specification has changed. This revision brings the LLVM OpenMP implementation up to date. Technical overview of changes: Previously, a public weak symbol ompt_initialize was called after the OpenMP runtime is initialized. The new interface calls a global weak symbol ompt_tool prior to initialization. If a tool is present, ompt_tool returns a pointer to a function that matches the signature for ompt_initialize. After OpenMP is initialized the function pointer is called to initialize a tool. Knowing that OMPT will be enabled before initialization allows OMPT support to be initialized as part of initialization instead of back patching initialization of OMPT support after the fact. Post OpenMP initialization support has been generalized moves from ompt-specific.c into ompt-general.c, since the OMPT initialization logic is no longer implementation specific. Patch by John Mellor-Crummey Differential Revision: http://reviews.llvm.org/D12998 llvm-svn: 248187
* [DivergenceAnalysis] Separated definition of class into header.Marcello Maggioni2015-09-212-54/+73
| | | | | | | | | | | | The definition of the DivergenceAnalysis pass was in a CPP file and wasn't accessible to users of the analysis to get it through "getAnalysis<>()". This patch extracts the definition into a separate header that can be used by users of the analysis to fetch the results. Patch by Volkan Keles (vkeles@apple.com) llvm-svn: 248186
* Add a belated testcase for the skeleton CU behavior in r248062.Adrian Prantl2015-09-211-2/+20
| | | | llvm-svn: 248185
* Debug Info: When building a module, emit skeleton CUs for imported modules.Adrian Prantl2015-09-213-9/+30
| | | | llvm-svn: 248184
* Rename SectionChunk to InputSection.Rafael Espindola2015-09-216-29/+29
| | | | | | | | This is more consistent with OutputSection. This is also part of removing the "Chunk" term from the ELF linker, since we just have input/output sections and program headers. llvm-svn: 248183
* SelectionDAG: Use InsertNode for EntryNodeMatthias Braun2015-09-211-2/+2
| | | | | | This fixes problems where two nodes have persistent debug id 0 assigned. llvm-svn: 248182
* [FunctionAttrs] Extract a helper function for the core logic used toChandler Carruth2015-09-211-90/+117
| | | | | | | | evaluate whether 'readonly' or 'readnone' apply to a given function. This both reduces indentation and will make it easy to share the logic with a new pass manager implementation. llvm-svn: 248181
* [SystemZ] Fix expansion of ISD::FPOW and ISD::FSINCOSUlrich Weigand2015-09-213-0/+331
| | | | | | | | | | | | | The ISD::FPOW and ISD::FSINCOS opcodes default to Legal, but there is no legal instruction for those on SystemZ. This could cause LLVM internal errors. Fixed by setting the operation action to Expand for those opcodes. Also added test cases for all other LLVM IR intrinsics that should generate a library call. (Those already work correctly since the default operation action is fine.) llvm-svn: 248180
* Fixed up the curses test results formatter to:Greg Clayton2015-09-212-62/+66
| | | | | | | | | - rename "Failures" window to "Completed Tests" - Remove the extra lock that I incorrectly added to the ResultsFormatter as it already had one - Init the curses GUI with the right number of jobs when handling the "intialize" event - tear down the curses GUI when tests complete llvm-svn: 248179
* Fix the OpenMP 3.0 buildJonathan Peyton2015-09-217-6/+25
| | | | | | | | | | | This change adds guards to the code in places where they are missing to enable the OpenMP 3.0 build. Patch by Diego Caballero and Johnny Peyton Mailing List: http://lists.llvm.org/pipermail/openmp-dev/2015-September/000935.html llvm-svn: 248178
* [lldb-server] No need to add pthread twice.Daniel Sanders2015-09-211-3/+0
| | | | | | | | | | | | | | Summary: Following on from r247991: pthread is in LLDB_SYSTEM_LIBS so there's no need to explicitly add it to the link. Reviewers: labath Subscribers: lldb-commits, labath, krytarowski Differential Revision: http://reviews.llvm.org/D12964 llvm-svn: 248177
* Further reduction of Clang-related header inclusion.Bruce Mitchener2015-09-2128-27/+10
| | | | | | | | | | Reviewers: clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D13018 llvm-svn: 248176
* Rename GetChildClangTypeAtIndex to GetChildCompilerTypeAtIndexBruce Mitchener2015-09-219-223/+223
| | | | | | | | | | Reviewers: clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D13020 llvm-svn: 248175
* Revert "[ARM] Handle +t2dsp feature as an ArchExtKind in ARMTargetParser.def"James Molloy2015-09-214-24/+20
| | | | | | | | This was committed without the code review (http://reviews.llvm.org/D12937) being approved. This reverts commit r248152. llvm-svn: 248174
* Revert "[ARM] Handle +t2dsp feature as an ArchExtKind in ARMTargetParser.def"James Molloy2015-09-212-19/+17
| | | | | | | | This was committed without the code review (http://reviews.llvm.org/D12938) being approved. This reverts commit r248154. llvm-svn: 248173
* AMDGPU: Move copy handling under switch like other instructionsMatt Arsenault2015-09-211-5/+10
| | | | llvm-svn: 248172
* Do not model delinearized and linearized access relation for a single accessTobias Grosser2015-09-213-3/+6
| | | | | | | | | | A missing return statement that previously did not have a visibly negative effect caused after some data-structure changes in r248024 multi-dimensional accesses to be modeled both multi-dimensional as well as linearized. This commit adds the missing return to avoid the incorrect double modeling as well as the compile time increases it caused. llvm-svn: 248171
* add ShouldChangeType() variant that takes bitwidthsSanjay Patel2015-09-212-6/+16
| | | | | | This is more efficient for cases like D12965 where we already have widths. llvm-svn: 248170
* DAGCombiner: Replace store of FP constant after attemping store mergesMatt Arsenault2015-09-214-24/+99
| | | | | | | | | If storing multiple FP constants, some subset of the stores would be replaced with integers due to visit order, so MergeConsecutiveStores would only partially merge these. llvm-svn: 248169
* Factor replacement of stores of FP constants into new functionMatt Arsenault2015-09-211-72/+104
| | | | llvm-svn: 248168
* Fix missing C++ mode commentMatt Arsenault2015-09-211-1/+1
| | | | llvm-svn: 248167
* don't repeat function names in comments; NFCSanjay Patel2015-09-211-62/+57
| | | | llvm-svn: 248166
* Start adding support for PLT.Rafael Espindola2015-09-213-11/+151
| | | | | | | | | For now this doesn't support lazy symbol resolution, but is enough to link and run a program with jmp foo@PLT llvm-svn: 248165
* [Machine Combiner] Refactor machine reassociation code to be target-independent.Chad Rosier2015-09-219-515/+294
| | | | | | | | | | No functional change intended. Patch by Haicheng Wu <haicheng@codeaurora.org>! http://reviews.llvm.org/D12887 PR24522 llvm-svn: 248164
* Add sampler defines.Tom Stellard2015-09-211-0/+18
| | | | | | Patch by: Zoltan Gilian llvm-svn: 248163
* Add image attribute defines.Tom Stellard2015-09-212-0/+32
| | | | | | Patch by: Zoltan Gilian llvm-svn: 248162
* r600: Add image writing builtins.Tom Stellard2015-09-216-0/+90
| | | | | | Patch by: Zoltan Gilian llvm-svn: 248161
* r600: Add image reading builtins.Tom Stellard2015-09-216-0/+123
| | | | | | Patch by: Zoltan Gilian llvm-svn: 248160
* Add image attribute getter builtinsTom Stellard2015-09-2111-0/+183
| | | | | | | | | Added get_image_* OpenCL builtins to the headers. Added implementation to the r600 target. Patch by: Zoltan Gilian llvm-svn: 248159
OpenPOWER on IntegriCloud