summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Check and allow floating point registers to select the size of theEric Christopher2013-01-312-2/+44
| | | | | | | register for inline asm. This conforms to how gcc allows for effective casting of inputs into gprs (fprs is already handled). llvm-svn: 174008
* LangRef: Add a Rationale for volatile rules.Andrew Trick2013-01-311-0/+10
| | | | llvm-svn: 174007
* Replace some more greps with FileChecks in testsEli Bendersky2013-01-313-22/+30
| | | | llvm-svn: 174006
* Minor code simplification.Dan Gohman2013-01-311-1/+1
| | | | llvm-svn: 174005
* Make sure that the Attribute object represents one attribute only.Bill Wendling2013-01-315-22/+31
| | | | | | | | Several places were still treating the Attribute object as respresenting multiple attributes. Those places now use the AttributeSet to represent multiple attributes. llvm-svn: 174004
* Make sure that the Attribute object represents one attribute only.Bill Wendling2013-01-314-24/+30
| | | | | | | | Several places were still treating the Attribute object as respresenting multiple attributes. Those places now use the AttributeSet to represent multiple attributes. llvm-svn: 174003
* [lit] Add a MANIFEST file and a script for sanity checking the source dist.Daniel Dunbar2013-01-312-0/+51
| | | | llvm-svn: 174002
* [lit] Add a basic discovery test.Daniel Dunbar2013-01-319-0/+41
| | | | llvm-svn: 174001
* [lit] Add a script for checking test coverage.Daniel Dunbar2013-01-313-0/+63
| | | | llvm-svn: 174000
* [lit] Add a test suite for lit itself.Daniel Dunbar2013-01-312-0/+41
| | | | llvm-svn: 173999
* stripAndComputeConstantOffsets is only called on pointers; check thisDan Gohman2013-01-311-10/+1
| | | | | | with an assert instead of failing and requiring callers to check for failure. llvm-svn: 173998
* Rewrite this test properly with a FileCheck instead of grepsEli Bendersky2013-01-311-8/+10
| | | | llvm-svn: 173997
* Fix unused variable warnings in -asserts buildMatt Beaumont-Gay2013-01-311-2/+2
| | | | llvm-svn: 173996
* Fix ConstantFold's folding of icmp instructions to recognize that,Dan Gohman2013-01-312-6/+28
| | | | | | | for example, a one-past-the-end pointer from one global variable may be equal to the base pointer of another global variable. llvm-svn: 173995
* Added a unit test for r173983 that verifies that Target.isiOS() works correctly.Michael Gottesman2013-01-301-0/+30
| | | | | | | As a bonus I put in some extra checks to make sure that we are identifying the machine word of various Mac OS X/iOS targets appropriately. llvm-svn: 173994
* PPC QPX requires a 32-byte aligned stackHal Finkel2013-01-303-1/+31
| | | | | | | On systems which support the QPX vector instructions, the stack must be 32-byte aligned. llvm-svn: 173993
* Remove addRetAttributes and addFnAttributes, which aren't useful abstractions.Bill Wendling2013-01-304-23/+13
| | | | llvm-svn: 173992
* Reinstate r173952, this time limiting it to exactly the formDouglas Gregor2013-01-303-2/+14
| | | | | | | | #define X X for which there is no point warning, ever. llvm-svn: 173991
* Convert typeIncompatible to return an AttributeSet.Bill Wendling2013-01-305-24/+33
| | | | | | | There are still places which treat the Attribute object as a collection of attributes. I'm systematically removing them. llvm-svn: 173990
* expressions + C++11 lambdas == cooooool!!!Greg Clayton2013-01-301-112/+641
| | | | | | | | | | C++11 lambdas that don't capture anything can be used as static callback functions! Heavily modified this python module to be able to not require a dylib in order to traverse the heap allocations. Re-implemented the ptr_refs, objc_refs, malloc_info and cstr_refs to use complex expressions that use lambdas to do all static callback function work. llvm-svn: 173989
* Forgot the test case before.Evan Cheng2013-01-301-0/+40
| | | | llvm-svn: 173988
* Restrict sin/cos optimization to 64-bit only for now. 32-bit is a bit messy ↵Evan Cheng2013-01-302-10/+14
| | | | | | and less critical. llvm-svn: 173987
* Doxygenified some comments in IRBuilder.h.Michael Gottesman2013-01-301-8/+9
| | | | llvm-svn: 173986
* Removed CreateFPExtOrFPTrunc for now until I have the time to get in my ↵Michael Gottesman2013-01-301-14/+0
| | | | | | | | | | vector convert patch. What I thought was going to be a quick thing has extended out a little bit in time *sigh*. So after some thought in order to not cruft up the tree I am removing this for now since it is the right thing to do. llvm-svn: 173985
* Initialize hasQPX in PPCSubtargetHal Finkel2013-01-301-0/+1
| | | | | | This should have gone in with r173973. llvm-svn: 173984
* Encapsulate testing that we have an iOS Triple in Triple.h in the method isiOSMichael Gottesman2013-01-301-1/+6
| | | | | | | so we follow the convention that all other platforms follow by having an is* test method. llvm-svn: 173983
* Verified that the plugin.dynamic-loader.darwin-kernel.scan-typeJason Molenda2013-01-301-6/+0
| | | | | | | setting is working correctly now; remove the #if 0's around its use. llvm-svn: 173982
* Diagnostics: Clarify name of line-length-limiting constant in r173976.Jordan Rose2013-01-301-3/+3
| | | | | | Thanks, Sean. llvm-svn: 173981
* Changed to static_cast, due to post-commit review.Filipe Cabecinhas2013-01-301-2/+2
| | | | llvm-svn: 173980
* TableGen backends: use emitSourceFileHeader() to emit the warning aboutDmitri Gribenko2013-01-305-18/+34
| | | | | | file contents being autogenerated llvm-svn: 173979
* Cast to remove the narrowing conversion error in c++11.Filipe Cabecinhas2013-01-301-2/+2
| | | | llvm-svn: 173978
* [build/clang_darwin] Fix the case reversal in r173465.Daniel Dunbar2013-01-301-1/+1
| | | | | | | - I got confused by the double negative, the test succends on 10.6, in which case we *do* want to perform the filter-out. llvm-svn: 173977
* Diagnostics: if a line is longer than 4096 characters, don't print it.Jordan Rose2013-01-302-2/+20
| | | | | | | | | | | | | Specifically, don't print snippets, caret diagnostics, or ranges for lines over 4096 characters. We copy the line around a few times in our diagnostics machinery, and we have to print a caret line that's just as long. This uses a lot of memory just to create a poor user experience as we print out a line much too long for anyone to read...or spend extra energy trying to fit it to -fmessage-length. <rdar://problem/13106850> llvm-svn: 173976
* Remove redundant code.Bill Wendling2013-01-301-20/+2
| | | | | | | It was creating a new AttrBuilder when we could just fill in the AttrBuilder we're building. llvm-svn: 173975
* ...in light of recent activity related to llvm.memcpy flags. I want toAndrew Trick2013-01-301-0/+5
| | | | | | | | | | | | | | | prevent an llvm developer from mistakenly thinking that just because the intrinsic has volatile flags that volatile operations can be converted to or folded into them. Platforms may rely on volatile loads and stores of natively supported data width to be executed as single instruction. When compiling C, this expectation likely holds for l-values of volatile primitive types with native hardware support, but not necessarily for aggregate types. The frontend upholds these expectations, which are not specified in the IR. llvm-svn: 173974
* Add definitions for the PPC a2q core marked as having QPX availableHal Finkel2013-01-303-0/+19
| | | | | | | | This is the first commit of a large series which will add support for the QPX vector instruction set to the PowerPC backend. This instruction set is used on the IBM Blue Gene/Q supercomputers. llvm-svn: 173973
* Remove a mention of TargetInstrDescriptor, which no longer exists in the codeEli Bendersky2013-01-301-6/+4
| | | | llvm-svn: 173971
* Revert "[preprocessor] Don't warn about "disabled expansion of recursive macro""Argyrios Kyrtzidis2013-01-303-10/+2
| | | | | | This reverts commit r173952 llvm-svn: 173970
* [docs] Guide prospective TableGen backend writers.Sean Silva2013-01-301-0/+4
| | | | | | | Boilerplate is often the hardest part of getting started with these kinds of things, so throw them a bone. llvm-svn: 173969
* [ELF] Fix circular initialization bug.Michael J. Spencer2013-01-302-2/+2
| | | | llvm-svn: 173968
* [ELF] Use the target's LayoutHandler.Michael J. Spencer2013-01-308-9/+25
| | | | llvm-svn: 173966
* Handle passing non-Qualtypes to %diff better. Instead of asserting, fall backRichard Trieu2013-01-302-5/+38
| | | | | | to printing the default case. This is a fix for PR15023. llvm-svn: 173965
* Add OpenCL error that a kernel function must have void return type. Includes ↵Tanya Lattner2013-01-303-1/+14
| | | | | | a test case. llvm-svn: 173963
* Use the number of 'slots' in the AttributeSetImpl being 0 to indicate that ↵Bill Wendling2013-01-301-1/+1
| | | | | | the AttributeSet is empty. llvm-svn: 173962
* Fix comment in test/Lexer/utf8-invalid.c for updates in r173959.Jordan Rose2013-01-301-2/+1
| | | | llvm-svn: 173961
* Clean up whitespace and indentation a bitEli Bendersky2013-01-302-9/+5
| | | | llvm-svn: 173960
* Fix r173881 to properly skip invalid UTF-8 characters in raw lexing and -E.Jordan Rose2013-01-302-0/+7
| | | | | | | | This caused hangs as we processed the same invalid byte over and over. <rdar://problem/13115651> llvm-svn: 173959
* [analyzer] Make shallow mode more shallow.Anna Zaks2013-01-307-12/+53
| | | | | | | | | | | | | | | | Redefine the shallow mode to inline all functions for which we have a definite definition (ipa=inlining). However, only inline functions that are up to 4 basic blocks large and cut the max exploded nodes generated per top level function in half. This makes shallow faster and allows us to keep inlining small functions. For example, we would keep inlining wrapper functions and constructors/destructors. With the new shallow, it takes 104s to analyze sqlite3, whereas the deep mode is 658s and previous shallow is 209s. llvm-svn: 173958
* [analyzer] Use analyzer config for max-inlinable-size option.Anna Zaks2013-01-307-16/+21
| | | | llvm-svn: 173957
* [analyzer] Move report false positive suppression to report visitors.Anna Zaks2013-01-304-39/+65
| | | | llvm-svn: 173956
OpenPOWER on IntegriCloud