summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixing a precedence issue with my previous commit.Aaron Ballman2012-11-301-1/+1
| | | | llvm-svn: 169041
* Add a -time-compilations=<N> option to llc.Jakob Stoklund Olesen2012-11-301-0/+16
| | | | | | | | This causes llc to repeat the module compilation N times, making it possible to get more accurate information from -time-passes when compiling small modules. llvm-svn: 169040
* Aggregate pass execution time report by pass ID instead of pass instance.Jakob Stoklund Olesen2012-11-301-3/+3
| | | | | | | This avoids unidentified duplicates in the pass execution time report when a pass runs more than once in the pass manager pipeline. llvm-svn: 169039
* lit: Add a simple test suite for checking test runner parallelism.Daniel Dunbar2012-11-301-0/+23
| | | | llvm-svn: 169038
* Fixing an MSVC warning about an unsafe mixture of Boolean and unsigned types ↵Aaron Ballman2012-11-301-1/+1
| | | | | | in a logical operator. llvm-svn: 169037
* [CMake] Add support for selecting which c++ abi library to use.Michael J. Spencer2012-11-303-3/+59
| | | | llvm-svn: 169036
* Save and restore terminal state when lldb is suspended with SIGTSTP and ↵Jim Ingham2012-11-307-2/+80
| | | | | | | | | resumed with SIGCONT. Readline & gdb have a bunch of code to handle older UNIX'es with other job control mechanisms. I didn't try to replicate that. llvm-svn: 169032
* <rdar://problem/12676084> Dump the traceback when a Python error occurs in ↵Enrico Granata2012-11-303-15/+79
| | | | | | "command script import" and the exception is not an ImportError llvm-svn: 169031
* Comments: no need to escape any characters in \code ... \endcode.Dmitri Gribenko2012-11-301-6/+6
| | | | llvm-svn: 169030
* tsan: fix int overflow and several instances where tid is used with ignoreDmitry Vyukov2012-11-303-3/+8
| | | | llvm-svn: 169029
* Support for #pragma region/endregion for MSVC compatibility. Patch thanks ↵Aaron Ballman2012-11-302-0/+58
| | | | | | to pravic! llvm-svn: 169028
* Actually keep track of the source locations at which particular moduleDouglas Gregor2012-11-303-8/+16
| | | | | | files are loaded. llvm-svn: 169027
* test/CodeGen/PowerPC/vec_mul.ll: Add a triple. Thanks, Hal.Chad Rosier2012-11-301-3/+3
| | | | llvm-svn: 169026
* Add fast math inst combine X*log2(Y*0.5)-->X*log2(Y)-XPedro Artigas2012-11-301-0/+77
| | | | | | reviewed by Michael Ilseman <milseman@apple.com> llvm-svn: 169025
* Codegen failure for vmull with small vectorsSebastian Pop2012-11-302-13/+224
| | | | | | | | | | | | | | | | | | | | | | | | | Codegen was failing with an assertion because of unexpected vector operands when legalizing the selection DAG for a MUL instruction. The asserting code was legalizing multiplies for vectors of size 128 bits. It uses a custom lowering to try and detect cases where it can use a VMULL instruction instead of a VMOVL + VMUL. The code was looking for input operands to the MUL that had been sign or zero extended. If it found the extended operands it would drop the sign/zero extension and use the original vector size as input to a VMULL instruction. The code assumed that the original input vector was 64 bits so that after dropping the extension it would fit directly into a D register and could be used as an operand of a VMULL instruction. The input code that trigger the failure used a vector of <4 x i8> that was sign extended to <4 x i32>. It was not safe to drop the sign extension in this case because the original vector is only 32 bits wide. The fix is to insert a sign extension for the vector to reach the required 64 bit size. In this particular example, the vector would need to be sign extented to a <4 x i16>. llvm-svn: 169024
* Added new options to "target create" and "target modules add".Greg Clayton2012-11-304-10/+45
| | | | | | | | | | For "target create" you can now specify "--no-dependents" to not track down and add all dependent shared libraries. This can be handy when doing manual symbolication. Also added the "--symfile" or "-s" for short so you can specify a module and a stand alone debug info file: (lldb) target create --symfile /tmp/a.dSYM /usr/bin/a Added the "--symfile" option to the "target modules add" for the same reason. These all help with manualy symbolication and expose functionality that was previously only available through the public API layer. llvm-svn: 169023
* __list::ends_with_template was giving the wrong answer for empty lists. And ↵Howard Hinnant2012-11-302-31/+83
| | | | | | __parse_unnamed_type_name wasn't properly handling the list of paramters and was not safe against incorrectly mangled lambdas (running past last). llvm-svn: 169022
* When an error occurs while building a module on demand, provide "WhileDouglas Gregor2012-11-3010-28/+132
| | | | | | | | | building module 'Foo' imported from..." notes (the same we we provide "In file included from..." notes) in the diagnostic, so that we know how this module got included in the first place. This is part of <rdar://problem/12696425>. llvm-svn: 169021
* test/CodeGen/PowerPC/vec_mul.ll: Fix register operands.Chad Rosier2012-11-301-2/+2
| | | | llvm-svn: 169020
* tsan: suppress weird race reports when JVM is embed into the processDmitry Vyukov2012-11-304-1/+42
| | | | llvm-svn: 169019
* Use multiclass for the load instructions with MEMri operand.Jyotsna Verma2012-11-301-184/+66
| | | | llvm-svn: 169018
* tsan: add __libc_memalign interceptor (used by dynamic loader to allocate ↵Dmitry Vyukov2012-11-303-0/+8
| | | | | | tls for dlopen'ed modules) llvm-svn: 169017
* Remove the use of LPPassManager. We can remove LPM because we dont need to ↵Nadav Rotem2012-11-301-10/+10
| | | | | | run any additional loop passes on the new vector loop. llvm-svn: 169016
* tsan: add sanity checks into memory allocatorDmitry Vyukov2012-11-301-0/+2
| | | | llvm-svn: 169015
* Clean up whitespace and add commentsEli Bendersky2012-11-301-7/+8
| | | | llvm-svn: 169002
* Make FileCheck return 2 in case of an error as documented,Eli Bendersky2012-11-301-2/+2
| | | | | | instead of 1 or true (?!) llvm-svn: 169001
* Allow matchers to access the ASTContext.Manuel Klimek2012-11-302-0/+5
| | | | | | Patch by Edwin Vane. llvm-svn: 169000
* test/CodeGen/PowerPC: Add explicit -march=ppc32.NAKAMURA Takumi2012-11-302-2/+2
| | | | | FIXME: Please add another RUN line if you would like to check also on ppc64. llvm-svn: 168999
* This patch fixes the Altivec addend construction for the fused multiply-addAdhemerval Zanella2012-11-303-15/+40
| | | | | | | | | | | | | | | instruction (vmaddfp) to conform with IEEE to ensure the sign of a zero result when resulting product is -0.0. The -0.0 vector addend to vmaddfp is generated by a creating a vector with full bits sets and then shifting each elements by 31-bits to the left, resulting in a vector of 0x80000000 (or -0.0 as float). The 'buildvec_canonicalize.ll' was adjusted to reflect this change and the 'vec_mul.ll' was complemented with the float vector multiplication test. llvm-svn: 168998
* [msan] Tests for vector manipulation instructions.Evgeniy Stepanov2012-11-301-0/+37
| | | | llvm-svn: 168997
* Switch LLVM_USE_RVALUE_REFERENCES to LLVM_HAS_RVALUE_REFERENCES.Chandler Carruth2012-11-3017-54/+54
| | | | | | | | | | | | | | Rationale: 1) This was the name in the comment block. ;] 2) It matches Clang's __has_feature naming convention. 3) It matches other compiler-feature-test conventions. Sorry for the noise. =] I've also switch the comment block to use a \brief tag and not duplicate the name. llvm-svn: 168996
* [asan] simplify the code around doesNotReturn call. It now magically works. Kostya Serebryany2012-11-301-8/+1
| | | | llvm-svn: 168995
* Update to reflect the change of macro name in r168993.Chandler Carruth2012-11-302-2/+2
| | | | llvm-svn: 168994
* Separate out the tests for whether the compiler suports R-valueChandler Carruth2012-11-302-3/+15
| | | | | | | | | | | references from whether it supports an R-value reference *this. No version of GCC today supports the latter, which breaks GCC C++11 compiles of LLVM and Clang now. Also add doxygen comments clarifying what's going on here, and update the usage in Optional. I'll update the usages in Clang next. llvm-svn: 168993
* [asan] make asan_test.cc more gcc-friendlyKostya Serebryany2012-11-303-2/+9
| | | | llvm-svn: 168992
* More strict error checking in parseSpecifier + simplified code.Patrik Hagglund2012-11-302-82/+73
| | | | | | | | | | | For example, don't allow empty strings to be passed to getInt. Move asserts inside parseSpecifier. (One day we may want to pass parse error messages to the user - from LLParser - instead of using asserts, but keep the code simple until then. There have been an attempt to do this. See r142288, which got reverted, and r142605.) llvm-svn: 168991
* [asan] simplify break_optimization in tests (Jakub Jelinek)Kostya Serebryany2012-11-303-24/+5
| | | | llvm-svn: 168990
* Fix non-determinism introduced in r168970 and pointed out by Duncan.Chandler Carruth2012-11-301-5/+13
| | | | | | | | | | | | | We're iterating over a non-deterministically ordered container looking for two saturating flags. To do this correctly, we have to saturate both, and only stop looping if both saturate to their final value. Otherwise, which flag we see first changes the result. This is also a micro-optimization of the previous version as now we don't go into the (possibly expensive) test logic once the first violation of either constraint is detected. llvm-svn: 168989
* Rearrange the comments, control flow, and variable names; noChandler Carruth2012-11-301-7/+14
| | | | | | | | | | | | | | functionality changed. Evan's commit r168970 moved the code that the primary comment in this function referred to to the other end of the function without moving the comment, and there has been a steady creep of "boolean" logic in it that is simpler if handled via early exit. That way each special case can have its own comments. I've also made the variable name a bit more explanatory than "AllFit". This is in preparation to fix the non-deterministic output of this function. llvm-svn: 168988
* tsan: intercept mlock() because of the kernel bugDmitry Vyukov2012-11-302-1/+35
| | | | llvm-svn: 168987
* Add the rest of the experimental fission sections to MC.Eric Christopher2012-11-302-1/+29
| | | | llvm-svn: 168986
* tsan: fix bug that leads to spurious use-after-free reportsDmitry Vyukov2012-11-301-0/+2
| | | | llvm-svn: 168985
* Fix the computation of highlight ranges so we produce something sane whenEli Friedman2012-11-302-10/+44
| | | | | | | the beginning and end of the range are in different macro arguments. PR14399. llvm-svn: 168984
* Use multiclass for the store instructions with MEMri operand.Jyotsna Verma2012-11-302-163/+64
| | | | llvm-svn: 168983
* Refactor to reduce duplication in handling of special member functions. No ↵Richard Smith2012-11-305-367/+155
| | | | | | functionality change. llvm-svn: 168977
* Use multiclass for the load instructions with 'base + register offset'Jyotsna Verma2012-11-301-277/+97
| | | | | | addressing mode. llvm-svn: 168976
* Move library call simplification statistic to instcombineMeador Inge2012-11-302-3/+6
| | | | | | | | | The simplify-libcalls pass maintained a statistic to count the number of library calls that have been simplified. Now that library call simplification is being carried out in instcombine the statistic should be moved to there. llvm-svn: 168975
* Move the InstVisitor utility into VMCore where it belongs. It heavilyChandler Carruth2012-11-3012-15/+15
| | | | | | | | | | | | depends on the IR infrastructure, there is no sense in it being off in Support land. This is in preparation to start working to expand InstVisitor into more special-purpose visitors that are still generic and can be re-used across different passes. The expansion will go into the Analylis tree though as nothing in VMCore needs it. llvm-svn: 168972
* Fix logic to determine whether to turn a switch into a lookup table. WhenEvan Cheng2012-11-302-6/+39
| | | | | | | | | the tables cannot fit in registers (i.e. bitmap), do not emit the table if it's using an illegal type. rdar://12779436 llvm-svn: 168970
* Add a test case for the new cortex-a5 switchQuentin Colombet2012-11-301-0/+5
| | | | llvm-svn: 168968
OpenPOWER on IntegriCloud