summaryrefslogtreecommitdiffstats
path: root/llvm/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* more random whitespace cleanup, eliminate #define, avoid copyingChris Lattner2009-07-213-67/+59
| | | | | | vectors needlessly, doxygenify comments, improve constness, etc. llvm-svn: 76585
* some simple whitespace cleanup, avoid copying vectors for no reasonChris Lattner2009-07-211-31/+24
| | | | | | as much, etc. llvm-svn: 76578
* Another rewriter bug exposed by recent coalescer changes. ↵Evan Cheng2009-07-211-23/+27
| | | | | | ReuseInfo::GetRegForReload() should make sure the "switched" register is in the desired register class. I'm surprised this hasn't caused more failures in the past. llvm-svn: 76558
* Add missing include.Daniel Dunbar2009-07-211-0/+1
| | | | llvm-svn: 76555
* Switch this API to StringRef.Daniel Dunbar2009-07-212-5/+6
| | | | llvm-svn: 76554
* Simplify / normalize some uses of Value::getName.Daniel Dunbar2009-07-214-4/+4
| | | | llvm-svn: 76553
* Remove some unused code.Daniel Dunbar2009-07-211-3/+0
| | | | llvm-svn: 76541
* Support adding relocations for data sections, handling the cases whereBruno Cardoso Lopes2009-07-214-25/+60
| | | | | | | global declared symbols are initialized with references from other global symbols. llvm-svn: 76540
* Add jumps with 8-bit relocation for assembler / disassembler. Patch by Sean ↵Evan Cheng2009-07-211-0/+24
| | | | | | Callanan. llvm-svn: 76536
* Fix a dagga combiner bug: avoid creating illegal constant.Evan Cheng2009-07-211-9/+12
| | | | | | | | Is this really a winning transformation? fold (shl (srl x, c1), c2) -> (shl (and x, (shl -1, c1)), (sub c2, c1)) or (srl (and x, (shl -1, c1)), (sub c1, c2)) llvm-svn: 76535
* Move a bit more state over to the LLVMContext.Owen Anderson2009-07-215-43/+49
| | | | llvm-svn: 76533
* Add the following functions:Bill Wendling2009-07-211-0/+12
| | | | | | | | | | | | - SYSCALL (normal fast system call instruction) [0f 05] - SYSENTER (system call entry instruction) [0f 34] - SYSEXIT (system call exit instruction) [0f 35] - SYSEXIT64 (system call exit instruction to 64-bit user code) [REX.W 0f 35] - SYSRET (system call return instruction) [0f 07] Patch by Sean Callanan. llvm-svn: 76528
* Make the range calculations for addrecs to be more conservative,Dan Gohman2009-07-211-3/+9
| | | | | | | as they aren't currently prepared to handle complicated overflow cases. llvm-svn: 76524
* Whitespace cleanups.Dan Gohman2009-07-211-3/+3
| | | | llvm-svn: 76523
* Minor code simplification.Dan Gohman2009-07-211-1/+1
| | | | llvm-svn: 76521
* Fix ARM isle code that optimize multiply by constants which are power-of-2 ↵Evan Cheng2009-07-211-16/+26
| | | | | | +/- 1. llvm-svn: 76520
* Cross RC coalescing is now on by default.Evan Cheng2009-07-211-4/+4
| | | | llvm-svn: 76519
* revert 76503 while I figure out what's going onDale Johannesen2009-07-211-2/+5
| | | | llvm-svn: 76517
* Add a comment to clarify why there isn't any code in this spot.Dan Gohman2009-07-201-0/+2
| | | | llvm-svn: 76505
* Remove the code that tried to evaluate whether (A pred B) is knownDan Gohman2009-07-201-42/+0
| | | | | | | by determining if (B pred (B-A)) is known, as it doesn't handle overflow correctly. llvm-svn: 76504
* Make sure a global matching asm 'i' constraint gets itsDale Johannesen2009-07-201-5/+2
| | | | | | | | | | flags set properly. (hasMemory is clearly irrelevant when matching 'i', I don't understand what this was supposed to be doing.) gcc.apple/asm-block-25.c (test passed before by accident, but generated code was wrong) llvm-svn: 76503
* Move stripping of bitcasts in inline asm argumentsDale Johannesen2009-07-202-12/+7
| | | | | | | to a place where it affects everything. Occurs only on calls AFAIK. llvm-svn: 76502
* Minor code simplification.Dan Gohman2009-07-201-1/+1
| | | | llvm-svn: 76496
* The upper argument of ConstantRange is exclusive, not inclusive.Dan Gohman2009-07-201-1/+3
| | | | llvm-svn: 76492
* clean up some formatting, indent by 2 instead of 4.Chris Lattner2009-07-201-19/+9
| | | | llvm-svn: 76490
* CMP and TST define CPSR, not use it.David Goodwin2009-07-201-1/+1
| | | | llvm-svn: 76489
* Re-apply 75490, 75806 and 76177 with fixes and tests. Efficiency comesDavid Greene2009-07-201-0/+2
| | | | | | next. llvm-svn: 76486
* Simplify the code in DarwinTargetAsmInfo::emitUsedDirectiveFor so that ↵Bill Wendling2009-07-202-17/+16
| | | | | | humans can understand it. llvm-svn: 76480
* Pass in the unfortunately named "LessPrivatePrefix" for theBill Wendling2009-07-205-5/+10
| | | | | | | | "LinkerPrivatePrefix". It seems to have been used in only one place before I started this "linker_private" business. I'm thinking that a rename is in order... llvm-svn: 76479
* Assembly and Bitcode support for unsigned/signed overflow flags andDan Gohman2009-07-206-4/+173
| | | | | | exact sdiv flags. llvm-svn: 76475
* Use TII->findCommutedOpIndices to find the commute operands (rather than ↵Evan Cheng2009-07-201-4/+8
| | | | | | guessing). llvm-svn: 76472
* Change the casting of linkage types into a map. This makes this much more robustBill Wendling2009-07-201-3/+88
| | | | | | | as it no longer depends upon two different enums being kept in sync with each other. llvm-svn: 76465
* Removed the DumpSymbolsandMacros and LoadSymbolsandMacros MCStreamer API asKevin Enderby2009-07-201-12/+0
| | | | | | | | | the parsing of the .dump and .load should be done in the assembly parser and not have any need for an MCStreamer API. Changed the code for now so these just produce an error saying these specific directives are not yet implemented since they are likely no longer used and may never need to be implemented. llvm-svn: 76462
* Add MCAsmLexer interface.Daniel Dunbar2009-07-203-8/+51
| | | | | | - This provides the AsmLexer interface to the target specific assembly parsers. llvm-svn: 76460
* Fix some sub-reg coalescing bugs where the coalescer wasn't updating the ↵Evan Cheng2009-07-202-34/+55
| | | | | | resulting interval's register class. llvm-svn: 76458
* Rename Mangler linkage enums to something less gross.Bill Wendling2009-07-203-19/+15
| | | | llvm-svn: 76456
* Refactor metadata parsing routines into separate functions.Devang Patel2009-07-202-27/+46
| | | | llvm-svn: 76455
* Add MCAsmParser interface.Daniel Dunbar2009-07-203-0/+28
| | | | | | | - This provides the AsmParser interface to the target specific assembly parsers. llvm-svn: 76453
* remove TargetAsmInfo::ExpandInlineAsmChris Lattner2009-07-202-104/+2
| | | | llvm-svn: 76445
* use ExpandInlineAsm on TargetLowering instead of TargetAsmInfo.Chris Lattner2009-07-201-14/+10
| | | | llvm-svn: 76442
* Copy ExpandInlineAsm to TargetLowering from TargetAsmInfo.Chris Lattner2009-07-202-0/+97
| | | | llvm-svn: 76441
* Update this comment.Dan Gohman2009-07-201-7/+5
| | | | llvm-svn: 76438
* Revert the addition of hasNoPointerOverflow to GEPOperator.Dan Gohman2009-07-206-117/+9
| | | | | | | | | | | | Getelementptrs that are defined to wrap are virtually useless to optimization, and getelementptrs that are undefined on any kind of overflow are too restrictive -- it's difficult to ensure that all intermediate addresses are within bounds. I'm going to take a different approach. Remove a few optimizations that depended on this flag. llvm-svn: 76437
* rename TargetAsmInfo::getASDirective -> getDataASDirectiveChris Lattner2009-07-202-16/+12
| | | | llvm-svn: 76431
* Hide the DOUT static variable behind a function interface.David Greene2009-07-201-0/+8
| | | | llvm-svn: 76425
* Use t2LDRri12 for frame index loads.David Goodwin2009-07-201-3/+11
| | | | llvm-svn: 76424
* For PC relative relocations where symbols are defined in the same section theyBruno Cardoso Lopes2009-07-204-41/+103
| | | | | | | are referenced, ignore the relocation entry and patch the relocatable field with the computed symbol offset directly llvm-svn: 76414
* Fix PR4567. Thumb1 target was using the wrong instruction to handle sp = sub ↵Evan Cheng2009-07-202-3/+15
| | | | | | fp, #c. llvm-svn: 76401
* implement a new magic global "llvm.compiler.used" which is like llvm.used, butChris Lattner2009-07-205-25/+23
| | | | | | doesn't cause ".no_dead_strip" to be emitted on darwin. llvm-svn: 76399
* use stripPointerCasts to simplify some code.Chris Lattner2009-07-201-6/+4
| | | | llvm-svn: 76397
OpenPOWER on IntegriCloud