Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Rework the CIndex API for displaying diagnostics. Instead of printing | Douglas Gregor | 2010-02-22 | 5 | -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 and | Jim Grosbach | 2010-02-22 | 6 | -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 Gohman | 2010-02-22 | 1 | -1/+10 |
| | | | | llvm-svn: 96820 | ||||
* | Early support for declaring ivars in class extensions. wip. | Fariborz Jahanian | 2010-02-22 | 4 | -4/+24 |
| | | | | llvm-svn: 96819 | ||||
* | Clean up a bit and fix for when SPAdj != 0 | Jim Grosbach | 2010-02-22 | 1 | -3/+2 |
| | | | | llvm-svn: 96818 | ||||
* | The predicate index isn't fixed, so scan for it to make sure we get the proper | Jim Grosbach | 2010-02-22 | 1 | -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 commutative | Dan Gohman | 2010-02-22 | 3 | -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 Lattner | 2010-02-22 | 1 | -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 node | Chris Lattner | 2010-02-22 | 5 | -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 Lattner | 2010-02-22 | 1 | -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 Lattner | 2010-02-22 | 1 | -0/+12 |
| | | | | llvm-svn: 96812 | ||||
* | remove dupes now. | Chris Lattner | 2010-02-22 | 1 | -2/+0 |
| | | | | llvm-svn: 96811 | ||||
* | move #includes earlier. | Chris Lattner | 2010-02-22 | 2 | -2/+3 |
| | | | | llvm-svn: 96810 | ||||
* | MC/Mach-O: Remove non-sensical comment, and add a missing AddValueSymbols call. | Daniel Dunbar | 2010-02-22 | 1 | -3/+1 |
| | | | | llvm-svn: 96809 | ||||
* | Minor formatting cleanup. | Dan Gohman | 2010-02-22 | 1 | -2/+1 |
| | | | | llvm-svn: 96808 | ||||
* | Use Instruction::isCommutative instead of duplicating it. | Dan Gohman | 2010-02-22 | 1 | -24/+1 |
| | | | | llvm-svn: 96807 | ||||
* | Added SEL, SXTB16, SXTAB16, UXTAB16, SMMULR, SMMLAR, SMMLSR, SMUAD, and SMUSD, | Johnny Chen | 2010-02-22 | 1 | -5/+83 |
| | | | | | | for disassembly only. llvm-svn: 96806 | ||||
* | Erase deleted instructions from GVN's ValueTable. This fixes assertion | Bob Wilson | 2010-02-22 | 1 | -0/+7 |
| | | | | | | failures from ValueTable::verifyRemoved() when using -debug. llvm-svn: 96805 | ||||
* | Fixes a rewriting of byref variable when its initializer is | Fariborz Jahanian | 2010-02-22 | 2 | -13/+57 |
| | | | | | | itself rewritten. Radar 7669784. llvm-svn: 96798 | ||||
* | Actually enable the -enable-unsafe-fp-math tests. | Dan Gohman | 2010-02-22 | 1 | -144/+144 |
| | | | | llvm-svn: 96796 | ||||
* | Added a bunch of instructions for disassembly only: | Johnny Chen | 2010-02-22 | 1 | -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 invalid | Douglas Gregor | 2010-02-22 | 1 | -1/+2 |
| | | | | | | declaration. This is the trivial part of PR6365. llvm-svn: 96792 | ||||
* | Set access specifiers on imported declarations. | Douglas Gregor | 2010-02-22 | 1 | -0/+7 |
| | | | | llvm-svn: 96788 | ||||
* | Do not require a complete type when checking for a pointer conversion | Douglas Gregor | 2010-02-22 | 2 | -0/+22 |
| | | | | | | between cv1 T* and cv2 T*. llvm-svn: 96787 | ||||
* | Change the name of the vtable-debugging environment variable to | Douglas Gregor | 2010-02-22 | 1 | -1/+1 |
| | | | | | | CLANG_VTABLE_DEBUG. llvm-svn: 96785 | ||||
* | Don't use NamedDecl::getNameAsCString() when dealing with C++ methods, | Douglas Gregor | 2010-02-22 | 1 | -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 address | Arnold Schwaighofer | 2010-02-22 | 2 | -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 to | Daniel Dunbar | 2010-02-22 | 1 | -28/+28 |
| | | | | | | not be guaranteed. llvm-svn: 96782 | ||||
* | LLVMC/MultiplePluginPriorities.td: Generally XFAIL this test for now, it is | Daniel Dunbar | 2010-02-22 | 1 | -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 Gohman | 2010-02-22 | 4 | -50/+28 |
| | | | | llvm-svn: 96780 | ||||
* | Fix various doxygen warnings. | Dan Gohman | 2010-02-22 | 10 | -35/+31 |
| | | | | llvm-svn: 96779 | ||||
* | Fix a typo in a comment. | Dan Gohman | 2010-02-22 | 1 | -1/+1 |
| | | | | llvm-svn: 96778 | ||||
* | Constant-fold certain comparisons with infinity and negative infinity. | Dan Gohman | 2010-02-22 | 2 | -0/+181 |
| | | | | llvm-svn: 96777 | ||||
* | Rename a variable to avoid a -Wshadow warning. | Dan Gohman | 2010-02-22 | 1 | -1/+1 |
| | | | | llvm-svn: 96776 | ||||
* | Remove the logic for reasoning about NaNs from the code that forms | Dan Gohman | 2010-02-22 | 2 | -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-incremented | Dan Gohman | 2010-02-22 | 2 | -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 Xu | 2010-02-22 | 1 | -2/+0 |
| | | | | llvm-svn: 96773 | ||||
* | Simplify code: Succ is guaranteed to be not NULL. | Zhongxing Xu | 2010-02-22 | 1 | -28/+28 |
| | | | | llvm-svn: 96772 | ||||
* | This cast<Instruction> is unnecessary. | Dan Gohman | 2010-02-22 | 1 | -1/+1 |
| | | | | llvm-svn: 96771 | ||||
* | enhance my hack for flags handling, this allows us to pass | Chris Lattner | 2010-02-22 | 1 | -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 Lattner | 2010-02-22 | 5 | -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 to | Chris Lattner | 2010-02-22 | 1 | -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 Lattner | 2010-02-21 | 2 | -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 Gregor | 2010-02-21 | 11 | -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 Dunbar | 2010-02-21 | 1 | -1/+1 |
| | | | | llvm-svn: 96765 | ||||
* | Add missing include, noticed by ace2001ac on IRC. | Daniel Dunbar | 2010-02-21 | 1 | -0/+1 |
| | | | | llvm-svn: 96764 | ||||
* | MC/X86: Add stub AsmBackend. | Daniel Dunbar | 2010-02-21 | 5 | -3/+50 |
| | | | | llvm-svn: 96763 | ||||
* | MC: Sketch registry support for target specific assembler backends. | Daniel Dunbar | 2010-02-21 | 3 | -0/+107 |
| | | | | llvm-svn: 96762 | ||||
* | Formatting tweaks (trailing whitespace, ordering, comments). | Daniel Dunbar | 2010-02-21 | 1 | -89/+91 |
| | | | | llvm-svn: 96761 | ||||
* | Remove unused includes. | Daniel Dunbar | 2010-02-21 | 1 | -2/+0 |
| | | | | llvm-svn: 96760 |