summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Update the xcode project for real and don't check in a failing test.Anders Carlsson2010-01-271-4/+6
| | | | llvm-svn: 94655
* Update xcode project.Anders Carlsson2010-01-271-0/+24
| | | | llvm-svn: 94654
* XFAIL this for now.Anders Carlsson2010-01-271-1/+1
| | | | llvm-svn: 94653
* Fix test/CodeGenCXX/default-destructor-synthesis.cpp not to rely on asm output.Anders Carlsson2010-01-271-47/+25
| | | | llvm-svn: 94652
* Fix attr.cpp by not checking the generated assembler output.Anders Carlsson2010-01-271-24/+5
| | | | llvm-svn: 94651
* merge two ifsChris Lattner2010-01-271-3/+1
| | | | llvm-svn: 94650
* some cleanups.Chris Lattner2010-01-271-14/+15
| | | | llvm-svn: 94649
* no need to check for nullChris Lattner2010-01-271-1/+1
| | | | llvm-svn: 94648
* Implement access control for overloaded functions. Suppress access controlJohn McCall2010-01-2711-105/+276
| | | | | | | diagnostics in "early" lookups, such as during typename checks and when building unresolved lookup expressions. llvm-svn: 94647
* Remove a dead target hook.Evan Cheng2010-01-271-13/+0
| | | | llvm-svn: 94646
* Clarify the documentation of ext_vector, and add a small example. HopefullyOwen Anderson2010-01-271-3/+19
| | | | | | | | this will alleviate some confusion about the existence of this feature. Comments/improvements welcome. llvm-svn: 94645
* Support -marm by treating it as an alias for -mno-thumb.Daniel Dunbar2010-01-271-0/+3
| | | | llvm-svn: 94644
* ppc/linux isn't ready for this and it was an accident that it was included.Chris Lattner2010-01-271-2/+0
| | | | | | This should fix a bunch of linux buildbot failures. llvm-svn: 94643
* Driver/Darwin: Eliminate invalid uses of DarwinVersion -- this fixes a number ofDaniel Dunbar2010-01-273-22/+29
| | | | | | defaults when targetting iPhoneOS (blocks, non-fragile ABI, stack protector). llvm-svn: 94642
* Driver/Darwin: Simplify target version checks.Daniel Dunbar2010-01-273-65/+32
| | | | llvm-svn: 94641
* Driver/Darwin: Fix a few link arguments when targetting different iPhoneOSDaniel Dunbar2010-01-273-7/+59
| | | | | | versions to match gcc (which is matching linker changes). llvm-svn: 94640
* Driver/Darwin: Switch clang -triple synthesis to use computed target ↵Daniel Dunbar2010-01-271-31/+17
| | | | | | information. llvm-svn: 94639
* Driver/Darwin: Eliminate confusing IsIPhoneOS parameter -- this was actuallyDaniel Dunbar2010-01-273-38/+19
| | | | | | just indicating whether the default target should be iPhoneOS. llvm-svn: 94638
* Driver/Darwin: Switch to using isTargetIPhoneOS where appropriate.Daniel Dunbar2010-01-272-7/+7
| | | | llvm-svn: 94637
* Driver/Darwin: Disallow -m{macosx,iphoneos}-version-min as -Xarch arguments.Daniel Dunbar2010-01-271-2/+2
| | | | llvm-svn: 94636
* Driver/Darwin: Track target platform more explicitly in tool chain, eventuallyDaniel Dunbar2010-01-273-13/+78
| | | | | | | this should just be part of the tool chain itself once we have eliminated argument translation. llvm-svn: 94635
* When converting dbg.declare to dbg.value, attach promoted store's debug ↵Victor Hernandez2010-01-272-3/+7
| | | | | | metadata to dbg.value llvm-svn: 94634
* Add const version of ObjCMethodDecl::getCanonicalDecl().Ted Kremenek2010-01-271-0/+3
| | | | llvm-svn: 94633
* Linker needs to do deep-copy of function-local metadata to update references ↵Victor Hernandez2010-01-271-1/+13
| | | | | | to function arguments llvm-svn: 94632
* use existing basic block numbers instead of recomputing Chris Lattner2010-01-271-23/+4
| | | | | | a new set of them. llvm-svn: 94631
* Switch MSP430, CellSPU, SystemZ, Darwin/PPC, Alpha, and Sparc to Chris Lattner2010-01-277-210/+16
| | | | | | | | EmitFunctionHeader: 7 files changed, 16 insertions(+), 210 deletions(-) llvm-svn: 94630
* Clarify what -tailcallopt option actually do.Evan Cheng2010-01-271-1/+1
| | | | llvm-svn: 94628
* Adjust setjmp instruction sequence to not need 32-bit alignment paddingJim Grosbach2010-01-272-5/+4
| | | | llvm-svn: 94627
* Eliminate target hook IsEligibleForTailCallOptimization.Evan Cheng2010-01-2726-77/+84
| | | | | | | | | Target independent isel should always pass along the "tail call" property. Change target hook LowerCall's parameter "isTailCall" into a refernce. If the target decides it's impossible to honor the tail call request, it should set isTailCall to false to make target independent isel happy. llvm-svn: 94626
* Restore to pre-94570 state.Evan Cheng2010-01-271-0/+6
| | | | llvm-svn: 94625
* mcize label emission for functions.Chris Lattner2010-01-261-5/+5
| | | | llvm-svn: 94624
* use EmitLinkage for functions as well as globals. One outputChris Lattner2010-01-262-32/+5
| | | | | | | | | change is that we now use ".linkonce discard" for global variables instead of ".linkonce samesize". These should be the same, just less strict. If anyone is interested in mcizing MCSection for COFF targets, this should be easy to fix. llvm-svn: 94623
* Teach RegionStore to handle initialization of incomplete arrays in ↵Ted Kremenek2010-01-263-12/+55
| | | | | | structures using a compound value. Fixes <rdar://problem/7515938>. llvm-svn: 94622
* pull linkage emission code out to a new EmitLinkage function.Chris Lattner2010-01-262-43/+48
| | | | llvm-svn: 94621
* rearrange some directives, no functionality change.Chris Lattner2010-01-261-3/+3
| | | | llvm-svn: 94620
* Roll r94484 (avoiding RTTI problems in tests) forward again in a way that isn'tJeffrey Yasskin2010-01-264-22/+5
| | | | | | broken by setting CXXFLAGS on the command line. llvm-svn: 94619
* Avoid extra calls to MD->getNumOperands()Victor Hernandez2010-01-261-1/+1
| | | | llvm-svn: 94618
* Ignore 'forced' tailcall opt in fastisel mode.Evan Cheng2010-01-261-5/+0
| | | | llvm-svn: 94617
* remove a noop function.Chris Lattner2010-01-262-7/+0
| | | | llvm-svn: 94616
* Fix inline cost predictions with SCIENCE.Jakob Stoklund Olesen2010-01-262-29/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | After running a batch of measurements, it is clear that the inliner metrics need some adjustments: Own argument bonus: 20 -> 5 Outgoing argument penalty: 0 -> 5 Alloca bonus: 10 -> 5 Constant instr bonus: 7 -> 5 Dead successor bonus: 40 -> 5*(avg instrs/block) The new cost metrics are generaly 25 points higher than before, so we may need to move thresholds. With this change, InlineConstants::CallPenalty becomes a political correction: if (!isa<IntrinsicInst>(II) && !callIsSmall(CS.getCalledFunction())) NumInsts += InlineConstants::CallPenalty + CS.arg_size(); The code size is accurately modelled by CS.arg_size(). CallPenalty is added because calls tend to take a long time, so it may not be worth it to inline a function with lots of calls. All of the political corrections are in the InlineConstants namespace: IndirectCallBonus, CallPenalty, LastCallToStaticBonus, ColdccPenalty, NoreturnPenalty. llvm-svn: 94615
* now that enough stuff is constified, move function header printingChris Lattner2010-01-264-90/+96
| | | | | | | logic up from X86 into the common code. The other targets will hopefully start using this soon. llvm-svn: 94614
* constify a bunch of dwarf stuff now that the registerinfo methodChris Lattner2010-01-267-15/+15
| | | | | | is constified. llvm-svn: 94613
* constify a method argument.Chris Lattner2010-01-268-18/+21
| | | | llvm-svn: 94612
* Allow some automatic tailcall optimization without changing ABI.Evan Cheng2010-01-261-6/+1
| | | | llvm-svn: 94611
* Delete blank lines that bug me.Evan Cheng2010-01-261-2/+0
| | | | llvm-svn: 94610
* Move 'LocalCheckers.h' to the 'Checkers' subdirectory.Ted Kremenek2010-01-2613-12/+12
| | | | llvm-svn: 94609
* Move 'include/Checkers/PathSensitive/Checkers' directory to 'include/Checkers'.Ted Kremenek2010-01-263-2/+2
| | | | llvm-svn: 94608
* Patch to add 'volatile' to first argument of allFariborz Jahanian2010-01-262-10/+14
| | | | | | | | sync compare_and_swap to match them with gcc. It also fixes a few incorrect argument defitions. (fixes radar 7540291). llvm-svn: 94607
* Refine the non-virtual this adjustments for thunks by using the offsetMike Stump2010-01-261-0/+6
| | | | | | to the declaring class from the nearest virtual base class. WIP. llvm-svn: 94606
* call emitconstantpool and emitjumptable like other targets.Chris Lattner2010-01-261-0/+4
| | | | llvm-svn: 94601
OpenPOWER on IntegriCloud