summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* fix ConstantFoldCompareInstOperands to take the LHS/RHS asChris Lattner2009-11-095-36/+28
| | | | | | individual operands instead of taking a temporary array llvm-svn: 86619
* Add StringSwitch::Cases overloads, for matching multiple strings to a singleDaniel Dunbar2009-11-091-0/+19
| | | | | | value. llvm-svn: 86618
* Privatize InitHeaderSearch, this functionality is only exposed viaDaniel Dunbar2009-11-095-113/+92
| | | | | | ApplyHeaderSearchOptions now. llvm-svn: 86617
* use instructionsimplify instead of a weak clone of ad-hoc folding stuff.Chris Lattner2009-11-091-22/+2
| | | | llvm-svn: 86616
* Update testJim Grosbach2009-11-091-1/+1
| | | | llvm-svn: 86614
* stub out a new libanalysis "instruction simplify" interface thatChris Lattner2009-11-093-0/+95
| | | | | | | | takes decimated instructions and applies identities to them. This is pretty minimal at this point, but I plan to pull some instcombine logic out into these and similar routines. llvm-svn: 86613
* Move LangOptions, HeaderSearchOptions, and the target feature map intoDaniel Dunbar2009-11-092-38/+69
| | | | | | CompilerInvocation. llvm-svn: 86612
* Switch Target* to Target&.Daniel Dunbar2009-11-091-9/+9
| | | | llvm-svn: 86611
* Add default initializer for Sysroot ivar.Daniel Dunbar2009-11-091-1/+1
| | | | llvm-svn: 86610
* Change clang-cc to expect that all inputs have the same language (so we can ↵Daniel Dunbar2009-11-091-48/+79
| | | | | | only construct a single LangInfo). This matches how it is used in practice (since the compiler only it invokes it for one file at a time). llvm-svn: 86609
* (llvm up) Convert clang-cc.cpp:GetLanguage to StringSwitch.Daniel Dunbar2009-11-091-26/+15
| | | | llvm-svn: 86608
* Enable the use of the new llvm objectsize intrinsic.Mike Stump2009-11-092-6/+4
| | | | llvm-svn: 86607
* Remove dlsym stubs, with Nate Begeman's permission.Jeffrey Yasskin2009-11-098-166/+9
| | | | llvm-svn: 86606
* Enable dynamic stack realignment by default.Jim Grosbach2009-11-091-1/+1
| | | | llvm-svn: 86604
* stub out a new form of BasicBlock::RemovePredecessorAndSimplify whichChris Lattner2009-11-091-5/+65
| | | | | | | simplifies instruction users of PHIs when the phi is eliminated. This will be moved to transforms/utils after some other refactoring. llvm-svn: 86603
* Set dynamic stack realignment to real values.Jim Grosbach2009-11-091-11/+3
| | | | llvm-svn: 86602
* Remove an unneeded #include.Dan Gohman2009-11-091-1/+0
| | | | llvm-svn: 86601
* Fix for 64-bit builds.Mike Stump2009-11-091-1/+1
| | | | llvm-svn: 86600
* Further change in a comment.Fariborz Jahanian2009-11-091-1/+2
| | | | llvm-svn: 86599
* Removed a FIXME on nested type specifier warning.Fariborz Jahanian2009-11-091-1/+0
| | | | llvm-svn: 86598
* Changed error for nested type qualifier mismatch toFariborz Jahanian2009-11-093-5/+5
| | | | | | | warning, to match gcc. It used to be warning, so better keep it a warning (it broke a certain project). llvm-svn: 86597
* Make sure that Type::getAs<ArrayType>() (or Type::getAs<subclass ofDouglas Gregor2009-11-097-6/+20
| | | | | | | ArrayType>()) does not instantiate. Update all callers that used this unsafe feature to use the appropriate ASTContext::getAs*ArrayType method. llvm-svn: 86596
* Remove stale FIXME.Ted Kremenek2009-11-091-3/+0
| | | | llvm-svn: 86595
* Similar to r86588, but for Darwin this time.Bill Wendling2009-11-091-3/+3
| | | | llvm-svn: 86592
* Make sure that we look into nested, transparent declaration contextsDouglas Gregor2009-11-093-4/+16
| | | | | | | when looking for a name within a given DeclContext. Now enumerators will show up in code-completion results. llvm-svn: 86591
* The jump table was being generated before the end label for exception handlingBill Wendling2009-11-091-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | was generated. This caused code like this: ## The asm code for the function .section __TEXT,__const .align 2 lJTI11_0: LJTI11_0: .long LBB11_16 .long LBB11_4 .long LBB11_5 .long LBB11_6 .long LBB11_7 .long LBB11_8 .long LBB11_9 .long LBB11_10 .long LBB11_11 .long LBB11_12 .long LBB11_13 .long LBB11_14 Leh_func_end11: ## <---now in the wrong section! The `Leh_func_end11' would then end up in the wrong section, causing the resulting EH frame information to be wrong: __ZL11CheckRightsjPKcbRbRP6NSData.eh: .set Lset500eh,Leh_frame_end11-Leh_frame_begin11 .long Lset500eh ; Length of Frame Information Entry Leh_frame_begin11: .long Leh_frame_begin11-Leh_frame_common .long Leh_func_begin11-. .set Lset501eh,Leh_func_end11-Leh_func_begin11 .long Lset501eh ; FDE address range `Lset501eh' is now something huge instead of the real value. The X86 back-end generates the jump table after the EH information is emitted. Do the same here. llvm-svn: 86588
* For array pointee type, get its cvr qualifier fromFariborz Jahanian2009-11-092-0/+12
| | | | | | its element type. Fixes pr5432. llvm-svn: 86587
* Add CompilerInvocation object, to capture all the options one needs to invokeDaniel Dunbar2009-11-092-43/+101
| | | | | | the compiler, and start flood filling it into clang-cc. llvm-svn: 86586
* Stub out a few more warning groups.Eli Friedman2009-11-091-0/+3
| | | | llvm-svn: 86585
* Fix build after r86579.Benjamin Kramer2009-11-091-1/+1
| | | | llvm-svn: 86584
* Print "..." instead of all the uninteresting register clobbers on callDan Gohman2009-11-092-14/+60
| | | | | | | | | | | | instructions. This makes CodeGen dumps significantly less noisy. Example before: BL <ga:@bar>, %R0<imp-def>, %R1<imp-def,dead>, %R2<imp-def,dead>, %R3<imp-def,dead>, %R12<imp-def,dead>, %LR<imp-def,dead>, %D0<imp-def,dead>, %D1<imp-def,dead>, %D2<imp-def,dead>, %D3<imp-def,dead>, %D4<imp-def,dead>, %D5<imp-def,dead>, %D6<imp-def,dead>, %D7<imp-def,dead>, %D16<imp-def,dead>, %D17<imp-def,dead>, %D18<imp-def,dead>, %D19<imp-def,dead>, %D20<imp-def,dead>, %D21<imp-def,dead>, %D22<imp-def,dead>, %D23<imp-def,dead>, %D24<imp-def,dead>, %D25<imp-def,dead>, %D26<imp-def,dead>, %D27<imp-def,dead>, %D28<imp-def,dead>, %D29<imp-def,dead>, %D30<imp-def,dead>, %D31<imp-def,dead>, %CPSR<imp-def,dead>, %FPSCR<imp-def,dead> Same example after: BL <ga:@bar>, %R0<imp-def>, %R1<imp-def,dead>, %LR<imp-def,dead>, %CPSR<imp-def,dead>, ... llvm-svn: 86583
* Default-addressspace null pointers don't alias anything. This allowsDan Gohman2009-11-092-0/+29
| | | | | | GVN to be more aggressive. Patch by Hans Wennborg! (with a comment added by me) llvm-svn: 86582
* Make sure that we instantiate default function arguments for anDouglas Gregor2009-11-092-3/+23
| | | | | | overloaded operator(). llvm-svn: 86581
* Fix dependencies added to model memory aliasing for post-RA scheduling. The ↵David Goodwin2009-11-091-96/+97
| | | | | | dependencies were overly conservative for memory access that are known not to alias. llvm-svn: 86580
* Add additional note to mark the cause of synthesized constructors. MarkEli Friedman2009-11-095-8/+27
| | | | | | | declaration invalid if the constructor can't be properly built. Addresses remaining review comments from Fariborz for r86500. llvm-svn: 86579
* Improve instantiation of default template arguments for nestedDouglas Gregor2009-11-095-45/+175
| | | | | | | | | templates. The instantiation of these default arguments must be (and now, is) delayed until the template argument is actually used, at which point we substitute all levels of template arguments concurrently. llvm-svn: 86578
* Factor CXString creation into a helper method.Benjamin Kramer2009-11-091-39/+36
| | | | llvm-svn: 86577
* The inbounds keyword isn't relevant to overindexing ofDan Gohman2009-11-091-7/+6
| | | | | | static array types. Thanks to Duncan for pointing this out! llvm-svn: 86576
* Fix a comment in a typo that Duncan noticed.Dan Gohman2009-11-091-1/+1
| | | | llvm-svn: 86575
* Add code generation test for r86500.Eli Friedman2009-11-091-0/+8
| | | | llvm-svn: 86574
* Test case for Sean Hunt's patch which I left out.Fariborz Jahanian2009-11-091-0/+10
| | | | llvm-svn: 86573
* Remove the "special case" for zero-length arrays, and rephrase thisDan Gohman2009-11-091-6/+7
| | | | | | paragraph to be more precise. llvm-svn: 86572
* Add support for cdecl attribute. (As far as I know, it doesn't affect CodeGenEli Friedman2009-11-097-0/+46
| | | | | | | | unless we start implementing command-line switches which override the default calling convention, so the effect is mostly to silence unknown attribute warnings.) llvm-svn: 86571
* Slightly more testing for instantiation of non-type template parameters in ↵Douglas Gregor2009-11-091-0/+13
| | | | | | nested templates, for my own sanity's sake llvm-svn: 86570
* Generalize LCSSA to handle loops with exits with predecessors outsideDan Gohman2009-11-092-2/+649
| | | | | | | | | | | | the loop. This is needed because with indirectbr it may not be possible for LoopSimplify to guarantee that all loop exit predecessors are inside the loop. This fixes PR5437. LCCSA no longer actually requires LoopSimplify form, but for now it must still have the dependency because the PassManager doesn't know how to schedule LoopSimplify otherwise. llvm-svn: 86569
* Writing to a struct passed by value is pointless. Remove dead code.Benjamin Kramer2009-11-091-7/+2
| | | | | | | | - free(NULL) is a nop anyway. - if someone thinks calling clang_disposeString twice should be legal please change the method to take a pointer. llvm-svn: 86568
* Fix an 80-column violation.Dan Gohman2009-11-091-2/+2
| | | | llvm-svn: 86567
* Improve c-index-test's parsing of the -code-completion-at=file:line:column ↵Douglas Gregor2009-11-091-21/+24
| | | | | | argument llvm-svn: 86566
* Minor tidiness fixes.Dan Gohman2009-11-091-4/+3
| | | | llvm-svn: 86565
* Constify MachineFunctionAnalysis' TargetMachine reference.Dan Gohman2009-11-092-2/+2
| | | | llvm-svn: 86564
OpenPOWER on IntegriCloud