summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Add -mtriple=x86_64-linux to this test case to fix the build bots.5Kevin Enderby2014-03-131-1/+1
| | | | | | The original commit was r203829. llvm-svn: 203844
* add intrinsics_gen dependence on PollySebastian Pop2014-03-131-1/+1
| | | | | | | | | | | | | | | | | | | | to avoid build errors like this: In file included from ../include/llvm/IR/IntrinsicInst.h:30:0, from ../tools/polly/lib/CodeGen/BlockGenerators.cpp:28: ../include/llvm/IR/Intrinsics.h:41:34: fatal error: llvm/IR/Intrinsics.gen: No such file or directory The earlier change in commit b1d2e6d5c3ce151ef6b7213c00019715e63d7cfb has been accidentally reverted in: commit 6b1963814877f5b1b161d3a73a3c8246c4ad4787 Author: simbuerg <simbuerg@91177308-0d34-0410-b5e6-96231b3b80d8> Date: Tue Mar 11 21:26:06 2014 +0000 Refactor Polly's Pass creation and initialization. Rename some files and adjust cmake accordingly llvm-svn: 203843
* [C++11] Replacing ObjCInterfaceDecl iterators protocol_begin() and ↵Aaron Ballman2014-03-138-41/+26
| | | | | | | | protocol_end() with iterator_range protocols(). Updating all of the usages of the iterators with range-based for loops. Drive-by fixing some incorrect types where a for loop would be improperly using ObjCInterfaceDecl::protocol_iterator. No functional changes in these cases. llvm-svn: 203842
* record in POLLY_LINK_LIBS all the libs needed for pollySebastian Pop2014-03-133-17/+27
| | | | llvm-svn: 203841
* [C++11] Replacing ObjCContainerDecl iterators classmeth_begin() and ↵Aaron Ballman2014-03-136-108/+57
| | | | | | classmeth_end() with iterator_range class_methods(). Updating all of the usages of the iterators with range-based for loops. llvm-svn: 203840
* [C++11] Replacing ObjCContainerDecl iterators instmeth_begin() and ↵Aaron Ballman2014-03-1316-167/+88
| | | | | | instmeth_end() with iterator_range instance_methods(). Updating all of the usages of the iterators with range-based for loops. llvm-svn: 203839
* CodeGen: use symbolic enumerators for memory orderTim Northover2014-03-131-5/+10
| | | | | | | It makes the code clearer and less error-prone to use our (already known) special values for the various memory order cases. llvm-svn: 203838
* CodeGen: make use of weaker failure orders on cmpxchg.Tim Northover2014-03-132-67/+239
| | | | | | | | | | | | This makes Clang take advantage of the recent IR addition of a "failure" memory ordering requirement. As with the "success" ordering, we try to emit just a single version if the expression is constant, but fall back to runtime detection (to allow optimisation across function-call boundaries). rdar://problem/15996804 llvm-svn: 203837
* MCDwarf: Sink file/directory creation down into MCDwarfFileTable form MCContextDavid Blaikie2014-03-133-50/+52
| | | | llvm-svn: 203836
* Renaming the recently-created (r203830) props() range API to properties() ↵Aaron Ballman2014-03-1313-33/+33
| | | | | | for clarity. llvm-svn: 203835
* Test commit - remove trailing whitespaceStephan Tolksdorf2014-03-131-1/+1
| | | | llvm-svn: 203834
* MCDwarf: Oh, and move the directory string over to std::string as wellDavid Blaikie2014-03-134-12/+9
| | | | | | (see r203831 for similar stuff) llvm-svn: 203833
* [C++11] Replacing ObjCContainerDecl iterators meth_begin() and meth_end() ↵Aaron Ballman2014-03-137-51/+28
| | | | | | with iterator_range methods(). Updating all of the usages of the iterators with range-based for loops. llvm-svn: 203832
* MCDwarf: Simplify MCDwarfFile to just use std::string instead of cunning use ↵David Blaikie2014-03-135-29/+23
| | | | | | | | | | | | | of MCContext's allocator. There aren't /that/ many files, and we are already using various maps and other standard containers that don't use MCContext's allocator to store these values, so this doesn't seem to be critical and simplifies the design (I'll be moving construction out of MCContext shortly so it'd be annoying to have to pass the allocator around to allocate these things... and we'll have non-MCContext users (debug_line.dwo) shortly) llvm-svn: 203831
* [C++11] Replacing ObjCContainerDecl iterators prop_begin() and prop_end() ↵Aaron Ballman2014-03-1313-130/+61
| | | | | | with iterator_range props(). Updating all of the usages of the iterators with range-based for loops. llvm-svn: 203830
* Fix for http://llvm.org/bugs/show_bug.cgi?id=18590Ekaterina Romanova2014-03-135-14/+114
| | | | | | | This patch fixes the bug in peephole optimization that folds a load which defines one vreg into the one and only use of that vreg. With debug info, a DBG_VALUE that referenced the vreg considered to be a use, preventing the optimization. The fix is to ignore DBG_VALUE's during the optimization, and undef a DBG_VALUE that references a vreg that gets removed. Patch by Trevor Smigiel! llvm-svn: 203829
* Since lldb version doesn’t have to be a valid floating point literal, like ↵Todd Fiala2014-03-133-6/+5
| | | | | | | | | | x.y.z, the uses of DEBUGSERVER_VERSION_NUM are invalid and have to be removed. Change by Kuba Ober. llvm-svn: 203828
* MCDwarf: Simply MCDwarfFile since it really is just a StringRef and unsigned.David Blaikie2014-03-135-43/+9
| | | | llvm-svn: 203827
* Use printable names to implement directional labels.Rafael Espindola2014-03-135-26/+44
| | | | | | | | | | | | | | This changes the implementation of local directional labels to use a dedicated map. With that it can then just use CreateTempSymbol, which is what the rest of MC uses. CreateTempSymbol doesn't do a great job at making sure the names are unique (or being efficient when the names are not needed), but that should probably be fixed in a followup patch. This fixes pr18928. llvm-svn: 203826
* [C++11] Replacing UsingDecl iterators shadow_begin() and shadow_end() with ↵Aaron Ballman2014-03-134-14/+13
| | | | | | iterator_range shadows(). Updating all of the usages of the iterators with range-based for loops. llvm-svn: 203825
* Update my e-mail address in CODE_OWNERS.TXTTim Northover2014-03-131-1/+1
| | | | llvm-svn: 203824
* Remove stale commentDavid Blaikie2014-03-131-4/+0
| | | | llvm-svn: 203823
* [analyzer] Warn when passing pointers to const but uninitialized memory.Jordan Rose2014-03-134-23/+457
| | | | | | | | | | | | | | | | | Passing a pointer to an uninitialized memory buffer is normally okay, but if the function is declared to take a pointer-to-const then it's very unlikely it will be modifying the buffer. In this case the analyzer should warn that there will likely be a read of uninitialized memory. This doesn't check all elements of an array, only the first one. It also doesn't yet check Objective-C methods, only C functions and C++ methods. This is controlled by a new check: alpha.core.CallAndMessageUnInitRefArg. Patch by Per Viberg! llvm-svn: 203822
* MCDwarf: Refactor line table handling into a single data structureDavid Blaikie2014-03-135-60/+88
| | | | | | | | | | | | | | | | | This replaces several "compile unit ID -> thing" mappings in favor of one mapping from CUID to the whole line table structure (files, directories, and lines). This is another step along the way to refactoring out reusable components of line table handling for use when generating debug_line.dwo for fission type units. Also, might be a good basis to fold some of this handling down into MCStreamers to avoid the special case of "One line table when doing asm printing, line table per CU otherwise" by building it into the different MCStreamer implementations. llvm-svn: 203821
* [C++11] Replacing ObjCImplementationDecl iterators init_begin() and ↵Aaron Ballman2014-03-132-4/+10
| | | | | | init_end() with iterator_range inits(). Updating all of the usages of the iterators with range-based for loops. llvm-svn: 203820
* [C++11] Replacing CXXRecordDecl iterators init_begin() and init_end() with ↵Aaron Ballman2014-03-1311-57/+38
| | | | | | iterator_range inits(). Updating all of the usages of the iterators with range-based for loops. llvm-svn: 203819
* R600: LDS instructions shouldn't implicitly define OQAPTom Stellard2014-03-132-2/+28
| | | | | | | | | LDS instructions are pseudo instructions which model the OQAP defs and uses within a single instruction. This fixes a hang in the opencv MedianFilter tests. llvm-svn: 203818
* [C++11] Replacing CXXRecordDecl iterators capture_begin() and capture_end() ↵Aaron Ballman2014-03-132-10/+14
| | | | | | with iterator_range captures(). Updating all of the usages of the iterators with range-based for loops. llvm-svn: 203817
* MS intrinsics: __interlockedbittestandset(64) (PR19054)Hans Wennborg2014-03-131-0/+22
| | | | llvm-svn: 203816
* [C++11] Replacing CXXRecordDecl iterators friend_begin() and friend_end() ↵Aaron Ballman2014-03-133-4/+8
| | | | | | with iterator_range friends(). Updating all of the usages of the iterators with range-based for loops. llvm-svn: 203815
* [C++11] Replacing CXXRecordDecl iterators ctor_begin() and ctor_end() with ↵Aaron Ballman2014-03-133-18/+15
| | | | | | iterator_range ctors(). Updating all of the usages of the iterators with range-based for loops. llvm-svn: 203814
* Prevent outputting HeaderFileInfos for files not used as headersBen Langmuir2014-03-133-9/+28
| | | | | | | | | | | When building an AST file, we don't want to output HeaderFileInfo structures for files that are not actually used as headers in the current context. This can lead to assuming that unrelated files have include counts of 0, defeating multiple-include prevention. This is accomplished by adding an IsValid bit to the HFI. llvm-svn: 203813
* [C++11] Replacing CXXRecordDecl iterators method_begin() and method_end() ↵Aaron Ballman2014-03-136-60/+34
| | | | | | with iterator_range methods(). Updating all of the usages of the iterators with range-based for loops. llvm-svn: 203812
* avoid warningSebastian Pop2014-03-131-2/+2
| | | | | warning: multi-line comment [-Wcomment] llvm-svn: 203811
* Cleanup: Remove use of old "-enable-correct-eh-support" option from a testMark Seaborn2014-03-131-1/+1
| | | | | | | | | | | | | This option enables LowerInvoke's obsolete SJLJ EH support, but the target used in this test (ARM Darwin) no longer uses the LowerInvoke pass, so the option has no effect here. This target currently uses the newer SjLjEHPrepare pass instead. This cleanup will help with removing "-enable-correct-eh-support". Differential Revision: http://llvm-reviews.chandlerc.com/D3064 llvm-svn: 203810
* Replace OwningPtr with std::unique_ptr.Ahmed Charles2014-03-1321-59/+53
| | | | | | | | This results in some simplifications to the code where an OwningPtr had to be used with the previous api and then ownership moved to a unique_ptr for the rest of lld. llvm-svn: 203809
* [C++11] Replacing CXXRecordDecl iterators vbases_begin() and vbases_end() ↵Aaron Ballman2014-03-1313-145/+93
| | | | | | with iterator_range vbases(). Updating all of the usages of the iterators with range-based for loops. llvm-svn: 203808
* Exclude .svn (and other "dot" directories) when installing headers.Bob Wilson2014-03-131-1/+2
| | | | | | | My fix for PR15820 in r180132 inadvertently removed the exclusion for ".*". This puts it back again. Thanks for Nico Weber for pointing this out! llvm-svn: 203807
* [ARM] Use symbolic register names in .cfi directives only with IAS (PR19110)Hans Wennborg2014-03-136-149/+180
| | | | | | | | | | This is a follow-up to r203635. Saleem pointed out that since symbolic register names are much easier to read, it would be good if we could turn them off only when we really need to because we're using an external assembler. Differential Revision: http://llvm-reviews.chandlerc.com/D3056 llvm-svn: 203806
* Removing some methods which appear to be unused (at least in clang, lld and ↵Aaron Ballman2014-03-131-34/+0
| | | | | | lldb). llvm-svn: 203805
* Simplify code. No functionality change.Rafael Espindola2014-03-131-5/+5
| | | | llvm-svn: 203804
* [C++11] Replacing CXXRecordDecl iterators bases_begin() and bases_end() with ↵Aaron Ballman2014-03-1337-510/+361
| | | | | | iterator_range bases(). Updating all of the usages of the iterators with range-based for loops. llvm-svn: 203803
* [C++11] Use ObjectFile::sections() in commandline llvm toolsAlexey Samsonov2014-03-135-114/+111
| | | | llvm-svn: 203802
* CMake: allow generation of a Qt Compressed Help file for Clang sourceDmitri Gribenko2014-03-132-0/+84
| | | | | | | | | | | | | | | | | | | | | | r203272 enables generation of a Qt Compressed Help file for the LLVM source code. As a consequence, this change brings the same capabilities to Clang while reusing these two variables: LLVM_ENABLE_DOXYGEN_QT_HELP LLVM_DOXYGEN_QHELPGENERATOR_PATH and adding CLANG_DOXYGEN_QCH_FILENAME="org.llvm.clang.qch" CLANG_DOXYGEN_QHP_NAMESPACE="org.llvm.clang" CLANG_DOXYGEN_QHP_CUST_FILTER_NAME="Clang ${CLANG_VERSION}" CLANG_DOXYGEN_QHP_CUST_FILTER_ATTRS="Clang,${CLANG_VERSION}" Patch by Konrad Kleine. llvm-svn: 203801
* Remove an unnecessary check for FormatTok not being null.Alexander Kornienko2014-03-131-1/+2
| | | | | | | | | | | | | | | | | Summary: This check hints clang analyzer, that FormatTok may be null, and it reports a null pointer dereference error: http://buildd-clang.debian.net/scan-build/report-827c64.html#Path28 Reviewers: djasper Reviewed By: djasper CC: cfe-commits, klimek Differential Revision: http://llvm-reviews.chandlerc.com/D3040 llvm-svn: 203800
* [C++11] Introduce ObjectFile::sections().Alexey Samsonov2014-03-135-55/+63
| | | | | | | | | | | | | | | | | | Summary: This adds ObjectFile::section_iterator_range, that allows to write range-based for-loops running over all sections of a given file. Several files from lib/ are converted to the new interface. Similar fixes should be applied to a variety of llvm-* tools. Reviewers: rafael Reviewed By: rafael CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D3069 llvm-svn: 203799
* [CMake] More fixes for Windows buildAlexey Samsonov2014-03-131-8/+5
| | | | llvm-svn: 203798
* CodeGenPrep: sink extends of illegal types into use block.Manuel Jacob2014-03-134-84/+145
| | | | | | | | | | | | | | | | | | | Summary: This helps the instruction selector to lower an i64 * i64 -> i128 multiplication into a single instruction on targets which support it. This is an update of D2973 which was reverted because of a bug reported as PR19084. Reviewers: t.p.northover, chapuni Reviewed By: t.p.northover CC: llvm-commits, alex, chapuni Differential Revision: http://llvm-reviews.chandlerc.com/D3021 llvm-svn: 203797
* [sanitizer] in bitvector-based deadlock detector split onLock into ↵Kostya Serebryany2014-03-134-34/+58
| | | | | | onLockBefore and onLockAfter hooks llvm-svn: 203796
* [msan] Test for aggregates passing through ellipsis.Evgeniy Stepanov2014-03-131-0/+35
| | | | llvm-svn: 203795
OpenPOWER on IntegriCloud