summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* - Use getExitingBlock instead of getExitingBlocks.Jakub Staszak2011-12-181-13/+11
| | | | | | - Remove trailing spaces. llvm-svn: 146854
* Allow unique_ptr<T const []> to be constructed and assigned from a ↵Howard Hinnant2011-12-181-19/+77
| | | | | | unique_ptr<T[]> llvm-svn: 146853
* Another variadics tweak.Benjamin Kramer2011-12-181-4/+3
| | | | llvm-svn: 146852
* Allow inlining of functions with returns_twice calls, if they have theJoerg Sonnenberger2011-12-186-22/+70
| | | | | | attribute themselve. llvm-svn: 146851
* Use the fancy new VariadicFunction template instead of a plain variadic ↵Benjamin Kramer2011-12-181-34/+33
| | | | | | | | function. Some compilers were complaining about passing StringRef to it. llvm-svn: 146850
* capitalize project name, reference bugzillaDylan Noblesmith2011-12-183-6/+6
| | | | | | | | | | | And fix the double-[]. It was including the [] as part of the project name somehow, resulting in PACKAGE_TARNAME "-llvm-" and a strange docdir default: ./configure --help | grep docdir --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-] llvm-svn: 146849
* test/Analysis: fix error messageDylan Noblesmith2011-12-181-1/+1
| | | | llvm-svn: 146848
* Silence gcc warnings.Benjamin Kramer2011-12-182-2/+3
| | | | llvm-svn: 146847
* Hexagon: Remove unused variables.Benjamin Kramer2011-12-182-13/+0
| | | | llvm-svn: 146846
* examples: flesh out PFN readmeDylan Noblesmith2011-12-181-0/+4
| | | | | | Show how to actually use the arguments it has. llvm-svn: 146845
* Initial commit. Code by Nick Kledzik. Cleanups and build system by me.Michael J. Spencer2011-12-1832-0/+2537
| | | | llvm-svn: 146844
* PR11604: don't allow floating-literal-to-integer casts in ICEs if the ↵Richard Smith2011-12-182-3/+23
| | | | | | | | | | (truncated) floating literal value does not fit into the destination type. Such casts have undefined behavior at translation time; treating them as non-ICE matches the behavior of modern gcc versions. llvm-svn: 146842
* Completely re-implement (de-)serialization of declarationDouglas Gregor2011-12-1717-90/+462
| | | | | | | | | | | | | | | | | | | | | | | | | | chains. The previous implementation relied heavily on the declaration chain being stored as a (circular) linked list on disk, as it is in memory. However, when deserializing from multiple modules, the different chains could get mixed up, leading to broken declaration chains. The new solution keeps track of the first and last declarations in the chain for each module file. When we load a declaration, we search all of the module files for redeclarations of that declaration, then splice together all of the lists into a coherent whole (along with any redeclarations that were actually parsed). As a drive-by fix, (de-)serialize the redeclaration chains of TypedefNameDecls, which had somehow gotten missed previously. Add a test of this serialization. This new scheme creates a redeclaration table that is fairly large in the PCH file (on the order of 400k for Cocoa.h's 12MB PCH file). The table is mmap'd in and searched via a binary search, but it's still quite large. A future tweak will eliminate entries for declarations that have no redeclarations anywhere, and should drastically reduce the size of this table. llvm-svn: 146841
* Split the Windows toolchain definition into its own file. This isChandler Carruth2011-12-176-363/+413
| | | | | | | | | | | | | | | especially nice as the Windows toolchain needs the windows header files, and has lots of platform specific hooks in it. To facilitate the split, hoist a bunch of file-level static helpers into class-level static helpers. Spiff up their doxygen comments while there as they're now more likely to be looked up via docs. Hopefully, this will be followed by further breaking apart of the toolchain definitions. Most of the large and complex ones should likely live on their own. I'm looking at you Darwin. ;] llvm-svn: 146840
* Fix an abiguous-else warning from GCC. I have no idea why Clang doesn'tChandler Carruth2011-12-171-1/+2
| | | | | | have this warning. llvm-svn: 146839
* Revert 146728 as it's causing failures on some of the external bots as well as Chad Rosier2011-12-172-34/+0
| | | | | | | | | | | internal nightly testers. Original commit message: By popular demand, link up types by name if they are isomorphic and one is an autorenamed version of the other. This makes the IR easier to read, because we don't end up with random renamed versions of the types after LTO'ing a large app. llvm-svn: 146838
* Teach the link-step test to verify that we don't pass bad --hash-styleChandler Carruth2011-12-171-0/+23
| | | | | | flags on MIPS paltforms. llvm-svn: 146837
* Update CMake dependencies.Ted Kremenek2011-12-171-0/+1
| | | | llvm-svn: 146836
* Add -mavx2 and -mno-avx2 command line support. Also add core-avx2 processor ↵Craig Topper2011-12-172-2/+29
| | | | | | type. llvm-svn: 146835
* Revert r146822 at Pete Cooper's request as it broke clang self hosting.Kevin Enderby2011-12-172-194/+0
| | | | | | Hope I did this correctly :) llvm-svn: 146834
* Remove an unused X86ISD node type.Craig Topper2011-12-173-3/+0
| | | | llvm-svn: 146833
* X86: Factor the bswap asm matching to be slightly less horrible to read.Benjamin Kramer2011-12-171-74/+63
| | | | llvm-svn: 146831
* Frontend/VerifyDiagnosticConsumer.cpp: Fix an expression that had side-effect.NAKAMURA Takumi2011-12-171-4/+4
| | | | | | | | | It had been causing test "Misc/diag-verify.cpp" failure on ms cl.exe. The emission was ordered unexpectedly as below; First) error: 'error' diagnostics seen but not expected: Second) error: 'error' diagnostics expected but not seen: llvm-svn: 146830
* More renaming.Michael J. Spencer2011-12-172-8/+8
| | | | llvm-svn: 146829
* Rename lold to lld :(.Michael J. Spencer2011-12-172-0/+72
| | | | llvm-svn: 146828
* As Doug pointed out (and I really should know), it is perfectly easy toChandler Carruth2011-12-172-20/+8
| | | | | | | | | make VariadicFunction actually be trivial. Do so, and also make it look more like your standard trivial functor by making it a struct with no access specifiers. The unit test is updated to initialize its functors properly. llvm-svn: 146827
* [PCH] Remove extraneous line in the test that was mistakenly copied.Argyrios Kyrtzidis2011-12-171-2/+0
| | | | | | No functionality change. llvm-svn: 146825
* [PCH] Don't deserialize bodies of interesting decls while iteratingArgyrios Kyrtzidis2011-12-172-41/+51
| | | | | | | | | over them because more interesting decls can be added during body deserialization. Should fix msvc build tests. llvm-svn: 146824
* SimplifyCFG now predicts some conditional branches to true or false ↵Pete Cooper2011-12-172-0/+194
| | | | | | | | | | | | | depending on previous branch on same comparison operands. For example, if (a == b) { if (a > b) // this is false Fixes some of the issues on <rdar://problem/10554090> llvm-svn: 146822
* Deleting the json-bench-test until I understand why it is flaky.Manuel Klimek2011-12-171-5/+0
| | | | llvm-svn: 146821
* Refactor SerializeDiagnosticsPrinter to using DiagnosticRenderer. This ↵Ted Kremenek2011-12-176-77/+222
| | | | | | | | | | gives us comparative diagnostics to TextDiagnosticPrinter. This certainly can be cleaned up a bit. llvm-svn: 146820
* Refactor 'TextDiagnostic' to have a parent class 'DiagnosticRenderer' which ↵Ted Kremenek2011-12-175-320/+471
| | | | | | | | | | | | handles the policy of how diagnostics are lowered/rendered, while TextDiagnostic handles the actual pretty-printing. This is a first part of reworking SerializedDiagnosticPrinter to use the same inclusion-stack/macro-expansion logic as TextDiagnostic. llvm-svn: 146819
* [PCH] Fix bug where we failed to update an identifier for a single tokenArgyrios Kyrtzidis2011-12-172-0/+31
| | | | | | | | macro expansion. rdar://10588825 llvm-svn: 146818
* [PCH] In ASTReader::FinishedDeserializing fully load the interesting decls,Argyrios Kyrtzidis2011-12-171-0/+9
| | | | | | | | | including deserializing their bodies, so that any other declarations that get referenced in the body will be fully deserialized by the time we pass them to the consumer. Could not reduce to a test case unfortunately. rdar://10587158. llvm-svn: 146817
* Add a sanity check in the Redeclarable::redecl_iterator to avoid infinite loopArgyrios Kyrtzidis2011-12-171-1/+13
| | | | | | | | when we formed an invalid redeclaration chain due to a bug. Thanks to Doug for the hint! llvm-svn: 146816
* In Parser::SkipUntil do not stop at '@' unconditionally.Argyrios Kyrtzidis2011-12-173-16/+6
| | | | | | | | | | | | | | | Stopping at '@' was originally intended to avoid skipping an '@' at the @interface context when doing parser recovery, but we should not stop at all '@' tokens because they may be part of expressions (e.g. in @"string", @selector(), etc.), so in most cases we will want to skip them. This commit caused 'test/Parser/method-def-in-class.m' to fail for the cases where we tried to recover from unmatched angle bracket but IMO it is not a big deal to not have good recovery from such broken code and the way we did recovery would not always work anyway (e.g. if there was '@' in an expression). The case that rdar://7029784 is about still passes. llvm-svn: 146815
* After late parsing an objc method, make sure there are no leftover cached ↵Argyrios Kyrtzidis2011-12-171-2/+19
| | | | | | | | | | | | | | | tokens, because the memory associated with them is going to get released. We also don't want them to affect later parsing. (We do the same for C++ inline methods.) The underlying cause for the leftover tokens is going to be addressed in the next commit. Couldn't get a test case for the crash though. rdar://10583033. llvm-svn: 146814
* Add a missing check before trying to evaluate a temporary. PR11595.Eli Friedman2011-12-172-0/+9
| | | | llvm-svn: 146813
* Fixed code rot pointed out by Jim.Johnny Chen2011-12-173-6/+4
| | | | | | SBThread::GetStopReasonDataCount/GetStopReasonDataAtIndex() need to handle eStopReasonWatchpoint. llvm-svn: 146812
* Added a version of the LLVM/Clang checkout andSean Callanan2011-12-171-0/+73
| | | | | | | build script that applies any local patches to LLVM/Clang. llvm-svn: 146811
* Fix _mm_permute_ps and _mm256_permute_ps AVX intrinsics to use "I" (ICE)Chad Rosier2011-12-172-12/+8
| | | | | | | markings. Fix avxintrin.h to take them into account. Part of rdar://10595450 llvm-svn: 146810
* Updating Xcode project version numbers for LLDB-96Sean Callanan2011-12-173-22/+22
| | | | | | and debugserver-156. llvm-svn: 146808
* Revert r146797, which was a partial revert of r146791; It was correct in theChad Rosier2011-12-172-12/+8
| | | | | | first place. The permutevar_* (note the *var*) intrinsics use ymm/mem. llvm-svn: 146807
* Add the ability to capture the return value in a thread's stop info, and ↵Jim Ingham2011-12-1722-40/+316
| | | | | | | | | | | | | print it as part of the thread format output. Currently this is only done for the ThreadPlanStepOut. Add a convenience API ABI::GetReturnValueObject. Change the ValueObject::EvaluationPoint to BE an ExecutionContextScope, rather than trying to hand out one of its subsidiary object's pointers. That way this will always be good. llvm-svn: 146806
* Fix a CPSR liveness tracking bug introduced when I converted IT block to bundle.Evan Cheng2011-12-172-4/+35
| | | | llvm-svn: 146805
* Fix _mm256_extractf128_* AVX intrinsics to use "I" (ICE) markings. FixChad Rosier2011-12-172-18/+12
| | | | | | | avxintrin.h to take them into account. Part of rdar://10595450 llvm-svn: 146804
* Refactor code used in InstCombine::FoldAndOfICmps to new file.Pete Cooper2011-12-174-72/+175
| | | | | | This will be used by SimplifyCfg in a later commit. llvm-svn: 146803
* Modified LLDB to be able to handle our updated __apple_types accelerator tablesGreg Clayton2011-12-171-47/+39
| | | | | | which have the dwarf DIE tag (DW_TAG_XXX enum) and TypeFlags for each type. llvm-svn: 146802
* Add back the MC bits of 126425. Original patch by Nathan Jeffords. I added theRafael Espindola2011-12-1712-4/+77
| | | | | | asm parsing and testcase. llvm-svn: 146801
* Make sure that the lower bits on the VSELECT condition are properly set.Lang Hames2011-12-172-27/+40
| | | | llvm-svn: 146800
OpenPOWER on IntegriCloud