summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Rework the CIndex API for displaying diagnostics. Instead of printingDouglas Gregor2010-02-225-38/+56
| | | | | | | the diagnostics to a FILE*, return a CXString containing the formatted diagnostic. llvm-svn: 96823
* Updated version of r96634 (which was reverted due to failing 176.gcc andJim Grosbach2010-02-226-5/+34
| | | | | | | | 126.gcc nightly tests. These failures uncovered latent bugs that machine DCE could remove one half of a stack adjust down/up pair, causing PEI to assert. This update fixes that, and the tests now pass. llvm-svn: 96822
* Add a test for canonicalizing ConstantExpr operands.Dan Gohman2010-02-221-1/+10
| | | | llvm-svn: 96820
* Early support for declaring ivars in class extensions. wip.Fariborz Jahanian2010-02-224-4/+24
| | | | llvm-svn: 96819
* Clean up a bit and fix for when SPAdj != 0Jim Grosbach2010-02-221-3/+2
| | | | llvm-svn: 96818
* The predicate index isn't fixed, so scan for it to make sure we get the properJim Grosbach2010-02-221-2/+3
| | | | | | | | | value. Thumb2 uses the tADJCALLSTACK* instructions, and doesn't need t2 versions, so remove the FIXME entry. llvm-svn: 96817
* Canonicalize ConstantInts to the right operand of commutativeDan Gohman2010-02-223-3/+7
| | | | | | | | | | operators. The test difference is just due to the multiplication operands being commuted (and thus requiring a more elaborate match). In optimized code, that expression would be folded. llvm-svn: 96816
* expand my hack to work with nodes that have flags but no chains and the Chris Lattner2010-02-221-1/+2
| | | | | | | isel doesn't know the correct # results. This fixes 8 codegen tests, down to 22 failures. llvm-svn: 96815
* add a new CheckMultiOpcode opcode for checking that a nodeChris Lattner2010-02-225-3/+51
| | | | | | | has one of the list of acceptable opcodes for a complex pattern. This fixes 4 regtest failures. llvm-svn: 96814
* When matching patterns that have a complex pattern as their root, make Chris Lattner2010-02-221-1/+16
| | | | | | | | sure to only run the complex pattern on nodes where the target opts in. This patch only handles targets with one opcode specified so far, but fixes 16 failures, only 34 left. llvm-svn: 96813
* add some debug hooks for tracking the behavior of the isel.Chris Lattner2010-02-221-0/+12
| | | | llvm-svn: 96812
* remove dupes now.Chris Lattner2010-02-221-2/+0
| | | | llvm-svn: 96811
* move #includes earlier.Chris Lattner2010-02-222-2/+3
| | | | llvm-svn: 96810
* MC/Mach-O: Remove non-sensical comment, and add a missing AddValueSymbols call.Daniel Dunbar2010-02-221-3/+1
| | | | llvm-svn: 96809
* Minor formatting cleanup.Dan Gohman2010-02-221-2/+1
| | | | llvm-svn: 96808
* Use Instruction::isCommutative instead of duplicating it.Dan Gohman2010-02-221-24/+1
| | | | llvm-svn: 96807
* Added SEL, SXTB16, SXTAB16, UXTAB16, SMMULR, SMMLAR, SMMLSR, SMUAD, and SMUSD,Johnny Chen2010-02-221-5/+83
| | | | | | for disassembly only. llvm-svn: 96806
* Erase deleted instructions from GVN's ValueTable. This fixes assertionBob Wilson2010-02-221-0/+7
| | | | | | failures from ValueTable::verifyRemoved() when using -debug. llvm-svn: 96805
* Fixes a rewriting of byref variable when its initializer isFariborz Jahanian2010-02-222-13/+57
| | | | | | itself rewritten. Radar 7669784. llvm-svn: 96798
* Actually enable the -enable-unsafe-fp-math tests.Dan Gohman2010-02-221-144/+144
| | | | llvm-svn: 96796
* Added a bunch of instructions for disassembly only:Johnny Chen2010-02-221-19/+145
| | | | | | | | | | o signed/unsigned add/subtract o signed/unsigned halving add/subtract o unsigned sum of absolute difference [and accumulate] o signed/unsigned saturate o signed multiply accumulate/subtract [long] dual llvm-svn: 96795
* Don't assert that we have a valid access specifier on an invalidDouglas Gregor2010-02-221-1/+2
| | | | | | declaration. This is the trivial part of PR6365. llvm-svn: 96792
* Set access specifiers on imported declarations.Douglas Gregor2010-02-221-0/+7
| | | | llvm-svn: 96788
* Do not require a complete type when checking for a pointer conversionDouglas Gregor2010-02-222-0/+22
| | | | | | between cv1 T* and cv2 T*. llvm-svn: 96787
* Change the name of the vtable-debugging environment variable toDouglas Gregor2010-02-221-1/+1
| | | | | | CLANG_VTABLE_DEBUG. llvm-svn: 96785
* Don't use NamedDecl::getNameAsCString() when dealing with C++ methods,Douglas Gregor2010-02-221-13/+13
| | | | | | since they may not have normal identifiers for names. Fixes PR6369. llvm-svn: 96784
* Mark the return address stack slot as mutable when moving the return addressArnold Schwaighofer2010-02-222-2/+57
| | | | | | | | | | | | | | | | | during a tail call. A parameter might overwrite this stack slot during the tail call. The sequence during a tail call is: 1.) load return address to temp reg 2.) move parameters (might involve storing to return address stack slot) 3.) store return address to new location from temp reg If the stack location is marked immutable CodeGen can colocate load (1) with the store (3). This fixes bug 6225. llvm-svn: 96783
* Revert "Simplify code: Succ is guaranteed to be not NULL.", which turns out toDaniel Dunbar2010-02-221-28/+28
| | | | | | not be guaranteed. llvm-svn: 96782
* LLVMC/MultiplePluginPriorities.td: Generally XFAIL this test for now, it isDaniel Dunbar2010-02-221-0/+4
| | | | | | | still failing during (one) llvm-gcc powerpc build, and is also failing on my x86_64-apple-darwin10. llvm-svn: 96781
* Remove unused variables and parameters.Dan Gohman2010-02-224-50/+28
| | | | llvm-svn: 96780
* Fix various doxygen warnings.Dan Gohman2010-02-2210-35/+31
| | | | llvm-svn: 96779
* Fix a typo in a comment.Dan Gohman2010-02-221-1/+1
| | | | llvm-svn: 96778
* Constant-fold certain comparisons with infinity and negative infinity.Dan Gohman2010-02-222-0/+181
| | | | llvm-svn: 96777
* Rename a variable to avoid a -Wshadow warning.Dan Gohman2010-02-221-1/+1
| | | | llvm-svn: 96776
* Remove the logic for reasoning about NaNs from the code that formsDan Gohman2010-02-222-132/+179
| | | | | | | | | | SSE min and max instructions. The real thing this code needs to be concerned about is negative zero. Update the sse-minmax.ll test accordingly, and add tests for -enable-unsafe-fp-math mode as well. llvm-svn: 96775
* When emitting an instruction which depends on both a post-incrementedDan Gohman2010-02-222-2/+36
| | | | | | | | | induction variable value and a loop-variant value, don't force the insert position to be at the post-increment position, because it may not be dominated by the loop-variant value. This fixes a use-before-def problem noticed on PPC. llvm-svn: 96774
* Remove dead code.Zhongxing Xu2010-02-221-2/+0
| | | | llvm-svn: 96773
* Simplify code: Succ is guaranteed to be not NULL.Zhongxing Xu2010-02-221-28/+28
| | | | llvm-svn: 96772
* This cast<Instruction> is unnecessary.Dan Gohman2010-02-221-1/+1
| | | | llvm-svn: 96771
* enhance my hack for flags handling, this allows us to passChris Lattner2010-02-221-1/+2
| | | | | | CodeGen/X86/pr2182.ll. Down to 13 x86 failures out of ~1100 llvm-svn: 96770
* Add 'previous declaration is here' note for param redefinition Chris Lattner2010-02-225-8/+9
| | | | | | | | | | | | | errors, e.g.: t.c:1:21: error: redefinition of parameter 'x' int test(int x, int x); ^ t.c:1:14: note: previous declaration is here int test(int x, int x); ^ llvm-svn: 96769
* fix an incorrect VT: eflags is always i32. The bug was causing us toChris Lattner2010-02-221-1/+1
| | | | | | | | create an X86ISD::Cmp node with result type i64 on the CodeGen/X86/shift-i256.ll testcase and the new isel was assert on it downstream. llvm-svn: 96768
* fix most of the failures in the x86 suite by handling multiple Chris Lattner2010-02-212-9/+50
| | | | | | | | | | result nodes correctly. Note that this includes a horrible hack in DAGISelHeader which cannot be fixed reasonably without eliminating (parallel) from input patterns. That, in turn, can't be done until we support writing multiple result patterns for the X86and_flag and related multiple-result nodes. llvm-svn: 96767
* Eliminate the default arguments to ASTContext::getFunctionType(),Douglas Gregor2010-02-2111-42/+114
| | | | | | | | fixing up a few callers that thought they were propagating NoReturn information but were in fact saying something about exception specifications. llvm-svn: 96766
* Spell string.h correctly.Daniel Dunbar2010-02-211-1/+1
| | | | llvm-svn: 96765
* Add missing include, noticed by ace2001ac on IRC.Daniel Dunbar2010-02-211-0/+1
| | | | llvm-svn: 96764
* MC/X86: Add stub AsmBackend.Daniel Dunbar2010-02-215-3/+50
| | | | llvm-svn: 96763
* MC: Sketch registry support for target specific assembler backends.Daniel Dunbar2010-02-213-0/+107
| | | | llvm-svn: 96762
* Formatting tweaks (trailing whitespace, ordering, comments).Daniel Dunbar2010-02-211-89/+91
| | | | llvm-svn: 96761
* Remove unused includes.Daniel Dunbar2010-02-211-2/+0
| | | | llvm-svn: 96760
OpenPOWER on IntegriCloud