summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix spelling.Rui Ueyama2014-05-061-1/+1
| | | | llvm-svn: 208022
* [Support/MemoryBuffer] Move the IsVolatile check inside shouldUseMmap() and ↵Argyrios Kyrtzidis2014-05-061-7/+13
| | | | | | | | make sure to zero-initialize the rest of the buffer if we unexpectedly reach end-of-file while reading. llvm-svn: 208021
* Remove operator[] that was used only in tests.Rui Ueyama2014-05-062-6/+4
| | | | llvm-svn: 208020
* Detabify.Nick Lewycky2014-05-061-2/+2
| | | | llvm-svn: 208019
* www: add a missing HTML open tagAlp Toker2014-05-061-0/+1
| | | | | | This went AWOL in r207995. llvm-svn: 208018
* Improve 'tail' call marking in TRE. A bootstrap of clang goes from 375k ↵Nick Lewycky2014-05-053-73/+269
| | | | | | | | | | calls marked tail in the IR to 470k, however this improvement does not carry into an improvement of the call/jmp ratio on x86. The most common pattern is a tail call + br to a block with nothing but a 'ret'. The number of tail call to loop conversions remains the same (1618 by my count). The new algorithm does a local scan over the use-def chains to identify local "alloca-derived" values, as well as points where the alloca could escape. Then, a visit over the CFG marks blocks as being before or after the allocas have escaped, and annotates the calls accordingly. llvm-svn: 208017
* Walk back commits for unused function parameters - they're still beingEric Christopher2014-05-052-6/+20
| | | | | | used via dragonegg for now. llvm-svn: 208016
* Build debug info for ObjC interface types at the end of the translation unit ↵David Blaikie2014-05-053-110/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | to ensure all ivars are included. This takes a different approach than the completedType/requiresCompleteType work which relies on AST callbacks to upgrade the type declaration to a definition. Instead, just defer constructing the definition to the end of the translation unit. This works because the definition is never needed by other debug info (so far as I know), whereas the definition of a struct may be needed by other debug info before the end of the translation unit (such as emitting the definition of a member function which must refer to that member function's declaration). If we had a callback for whenever an IVar was added to an ObjC interface we could use that, and remove the need for the ObjCInterfaceCache, which might be nice. (also would need a callback for when it was more than just a declaration so we could get properties, etc). A side benefit is that we also don't need the CompletedTypeCache anymore. Just rely on the declaration-ness of a type to decide whether its definition is yet to be emitted. There's still the PR19562 memory leak, but this should hopefully make that a bit easier to approach. llvm-svn: 208015
* ObjC IVars aren't added when the type isn't emitted after the interface ↵David Blaikie2014-05-051-1/+15
| | | | | | extension llvm-svn: 208014
* Reapply: Add slp vectorization to LTO passes. The bug it exposed has been ↵Yi Jiang2014-05-051-0/+3
| | | | | | fixed by r207983. <radar://16641956> llvm-svn: 208013
* Remove a now unnecessary function since all calls have one versionEric Christopher2014-05-051-17/+4
| | | | | | and inline it into its caller. llvm-svn: 208012
* During parsing, update the range of the Declarator to include the identifier.Richard Trieu2014-05-051-0/+1
| | | | llvm-svn: 208011
* Remove a call to std::exit in a library. Make "Help" returnEric Christopher2014-05-051-5/+7
| | | | | | a 0 as a default answer. llvm-svn: 208009
* [Basic/FileManager] Propagate whether a file 'IsVolatile' to the file ↵Argyrios Kyrtzidis2014-05-053-10/+19
| | | | | | | | opening functions. Needs llvm r208007. llvm-svn: 208008
* [Support/MemoryBuffer] Introduce a boolean parameter (false by default) ↵Argyrios Kyrtzidis2014-05-052-24/+50
| | | | | | | | 'IsVolatile' for the open file functions. This provides a hint that the file may be changing often so mmap is avoided. llvm-svn: 208007
* Fix typo.Eric Christopher2014-05-051-1/+1
| | | | llvm-svn: 208006
* R600: Expand i64 ISD:SUBTom Stellard2014-05-052-18/+38
| | | | llvm-svn: 208005
* Add -Wnon-modular-include* optionsBen Langmuir2014-05-0534-38/+240
| | | | | | | | | | | | Warn on non-modular includes in various contexts. -Wnon-modular-include -Wnon-modular-include-in-module -Wnon-modular-include-in-framework-module Where each group is a subgroup of those above it. llvm-svn: 208004
* Remove unused argument from AddFeature.Eric Christopher2014-05-052-4/+3
| | | | llvm-svn: 208002
* Fix typo (also tab character).Eric Christopher2014-05-051-3/+3
| | | | llvm-svn: 208001
* Simplify replacement map by avoiding duplicate values and ensuring the ↵David Blaikie2014-05-051-15/+9
| | | | | | | | | | | | | values it does contain are necessary. Items were being redundantly added to the replacement map (both when the declaration was created, and then again when its definition was constructed) which caused extra handling to be required when walking the map (as elements may've already been replaced due to prior entries). By avoiding adding the duplicates, the checks in the replacement handling can be replaced with assertions. llvm-svn: 208000
* MS ABI: Emit an error during IRgen on C++ exception handlingReid Kleckner2014-05-052-0/+33
| | | | | | | | | | | | | | | | Currently, users get error messages about RTTI descriptor mangling with no useful source location. This addresses that. Another approach would be to disable C++ exceptions by default in the driver when using the Microsoft C++ ABI. However, this makes it impossible to parse system headers that use exception handling constructs. By delaying the error to IRgen, we can figure out if we actually need to emit code for this construct. Additionally, users who are only interested in building refactoring tools on Windows still get a correct AST without having to add flags. Finally, this is consistent with what we do for SEH. llvm-svn: 207999
* Refactored gdb remote protocol testing sequence handling.Todd Fiala2014-05-052-134/+171
| | | | | | | | | | | | | | | | | Pushed gdbremote protocol sequence expectations into a separate class and defer matching of llgs/debugserver output to the sequence entry. Pre-step to adding regex matching and grouped content collecting. No longer require anything before the read/send packet portion of slurped-up log lines used for setting up gdb remote test sequences. Several packet logging options produce a wide range of content before the read/send packet. Added helpers to TestLldbGdbServer to clean up test setup and test expectations matching. llvm-svn: 207998
* Fix pr19653.Rafael Espindola2014-05-055-11/+41
| | | | | | Warn if an alias requests a section other than the aliasee section. llvm-svn: 207997
* Use a range loop.Rafael Espindola2014-05-051-3/+1
| | | | llvm-svn: 207996
* www: remove proprietary dbtree.js script from r96013Alp Toker2014-05-058-22/+1
| | | | | | | | | | | | This minified source code and artwork is copied from a commercial product and carries no license information: dbtree.js (7 kb), 25.03.2014 14:51:32 Purchase and download DBTree now for only $29.75 $9.75 It was used by a small TOC which looks fine now as a plain unordered list. llvm-svn: 207995
* Fix some typosAlp Toker2014-05-054-7/+7
| | | | llvm-svn: 207994
* Revert "Optimize shufflevector that copies an i64/f64 and zeros the rest."Filipe Cabecinhas2014-05-053-37/+12
| | | | | | This reverts commit 207992. I misread the phab number on the LGTM. llvm-svn: 207993
* Optimize shufflevector that copies an i64/f64 and zeros the rest.Filipe Cabecinhas2014-05-053-12/+37
| | | | | | | | | | | | | | Summary: Also ran clang-format on the function. The code added is the last else if block. Reviewers: nadav, craig.topper Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D3518 llvm-svn: 207992
* Small refactoring, no functionality change.Rafael Espindola2014-05-051-3/+4
| | | | llvm-svn: 207991
* R600/SI: allow 5 more input SGPRs to a shaderMarek Olsak2014-05-051-1/+1
| | | | | | | Our OpenGL driver needs 22 SGPRs (16 user SGPRs + 6 streamout non-user SGPRs). Signed-off-by: Marek Olšák <marek.olsak@amd.com> llvm-svn: 207990
* Re-submit r207884: Remove dead codeRui Ueyama2014-05-058-27/+0
| | | | | | Differential Revision: http://reviews.llvm.org/D3599 llvm-svn: 207989
* CodeGen: Assign linkage to thread-wrappers correctlyDavid Majnemer2014-05-052-2/+11
| | | | | | | | | | We would sometimes incorrectly give a thread-wrapper external linkage instead of internal linkage if we had only CodeGen'd it's declaration, not it's definition. This fixes PR19655. llvm-svn: 207988
* Fix assertion in google-explicit-constructor check when the constructor isAlexander Kornienko2014-05-052-3/+14
| | | | | | | | | | | | | | | | | | defined in a macro. Summary: We shouldn't suggest replacements in macros anyway, as we can't see all usages of the macro and ensure the replacement is safe for all of them. Reviewers: klimek Reviewed By: klimek Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D3611 llvm-svn: 207987
* Fix handling of condition variables in the face of temp dtors.Manuel Klimek2014-05-052-13/+10
| | | | | | | | The assignment needs to be before the destruction of the temporary. This patch calls out to addStmt, which invokes VisitDeclStmt, which has all the correct logic for handling temporaries. llvm-svn: 207985
* Move test from r207969 to another folder and rename it.Michael Zolotukhin2014-05-051-0/+0
| | | | llvm-svn: 207984
* Always set alignment of vectorized LD/ST in SLP-Vectorizer. ↵Yi Jiang2014-05-052-0/+31
| | | | | | <rdar://problem/16812145> llvm-svn: 207983
* Fix spelling.Joerg Sonnenberger2014-05-051-0/+0
| | | | llvm-svn: 207982
* Be a bit more specific in the release notes.Rafael Espindola2014-05-051-1/+2
| | | | llvm-svn: 207981
* LTO: -internalize sets visibility to defaultDuncan P. N. Exon Smith2014-05-052-0/+28
| | | | | | | | | Visibility is meaningless when the linkage is local. Change `-internalize` to reset the visibility to `default`. <rdar://problem/16141113> llvm-svn: 207979
* CodeGen: Cleanup visibility in RTTIBuilderDuncan P. N. Exon Smith2014-05-051-9/+5
| | | | | | No functionality change. llvm-svn: 207978
* Remove the -disable-cfi option.Rafael Espindola2014-05-054-40/+2
| | | | | | | This also add a release note about it. If this stays I will cleanup MC next week. llvm-svn: 207977
* [Test] Remove substitution for clangAdam Nemet2014-05-051-1/+0
| | | | | | | | | clang should not be used in the llvm tests. The topic was discussed in this thread: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20140428/214905.html llvm-svn: 207976
* Add -Wmodule-build to make it easy to see when modules are (re)builtBen Langmuir2014-05-053-0/+27
| | | | | | Warning is default ignore, and not in -Wall. llvm-svn: 207975
* Modify test to not use -disable-cfi.Rafael Espindola2014-05-052-34/+27
| | | | llvm-svn: 207974
* Select bdver2 instead of bdver1 if TBM support is present on models < 0x10.Kaelyn Takata2014-05-051-1/+2
| | | | | | | | | | Tested that the right -target-cpu is set in the clang -cc1 command line when running "clang -march=native -E -v - </dev/null" on both an FX-8150 and an FX-8350. Both are family 15h; the FX-8150 (Bulldozer processor) reports a model number of 1, and the FX-8350 (Piledriver processor) reports a model number of 2. llvm-svn: 207973
* Move test to the ARM64 directory.Rafael Espindola2014-05-051-0/+0
| | | | llvm-svn: 207972
* Convert a CodeGen test into a MC test.Rafael Espindola2014-05-052-161/+208
| | | | llvm-svn: 207971
* Add clang-tidy -header-filter optionAlexander Kornienko2014-05-057-6/+64
| | | | | | | | | | | | | | | | | | Summary: Add clang-tidy -header-filter option to specify from which headers we want diagnostics to be printed. By default we don't print diagnostics from headers. We always print diagnostics from the main file of each translation unit. Reviewers: djasper, klimek Reviewed By: klimek Subscribers: klimek, cfe-commits Differential Revision: http://reviews.llvm.org/D3590 llvm-svn: 207970
* Fix test from r207966 and add a comment there.Michael Zolotukhin2014-05-051-2/+4
| | | | llvm-svn: 207969
OpenPOWER on IntegriCloud