Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | more random whitespace cleanup, eliminate #define, avoid copying | Chris Lattner | 2009-07-21 | 3 | -67/+59 | |
| | | | | | | vectors needlessly, doxygenify comments, improve constness, etc. llvm-svn: 76585 | |||||
* | some simple whitespace cleanup, avoid copying vectors for no reason | Chris Lattner | 2009-07-21 | 1 | -31/+24 | |
| | | | | | | as much, etc. llvm-svn: 76578 | |||||
* | Another rewriter bug exposed by recent coalescer changes. ↵ | Evan Cheng | 2009-07-21 | 1 | -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 Dunbar | 2009-07-21 | 1 | -0/+1 | |
| | | | | llvm-svn: 76555 | |||||
* | Switch this API to StringRef. | Daniel Dunbar | 2009-07-21 | 2 | -5/+6 | |
| | | | | llvm-svn: 76554 | |||||
* | Simplify / normalize some uses of Value::getName. | Daniel Dunbar | 2009-07-21 | 4 | -4/+4 | |
| | | | | llvm-svn: 76553 | |||||
* | Remove some unused code. | Daniel Dunbar | 2009-07-21 | 1 | -3/+0 | |
| | | | | llvm-svn: 76541 | |||||
* | Support adding relocations for data sections, handling the cases where | Bruno Cardoso Lopes | 2009-07-21 | 4 | -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 Cheng | 2009-07-21 | 1 | -0/+24 | |
| | | | | | | Callanan. llvm-svn: 76536 | |||||
* | Fix a dagga combiner bug: avoid creating illegal constant. | Evan Cheng | 2009-07-21 | 1 | -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 Anderson | 2009-07-21 | 5 | -43/+49 | |
| | | | | llvm-svn: 76533 | |||||
* | Add the following functions: | Bill Wendling | 2009-07-21 | 1 | -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 Gohman | 2009-07-21 | 1 | -3/+9 | |
| | | | | | | | as they aren't currently prepared to handle complicated overflow cases. llvm-svn: 76524 | |||||
* | Whitespace cleanups. | Dan Gohman | 2009-07-21 | 1 | -3/+3 | |
| | | | | llvm-svn: 76523 | |||||
* | Minor code simplification. | Dan Gohman | 2009-07-21 | 1 | -1/+1 | |
| | | | | llvm-svn: 76521 | |||||
* | Fix ARM isle code that optimize multiply by constants which are power-of-2 ↵ | Evan Cheng | 2009-07-21 | 1 | -16/+26 | |
| | | | | | | +/- 1. llvm-svn: 76520 | |||||
* | Cross RC coalescing is now on by default. | Evan Cheng | 2009-07-21 | 1 | -4/+4 | |
| | | | | llvm-svn: 76519 | |||||
* | revert 76503 while I figure out what's going on | Dale Johannesen | 2009-07-21 | 1 | -2/+5 | |
| | | | | llvm-svn: 76517 | |||||
* | Add a comment to clarify why there isn't any code in this spot. | Dan Gohman | 2009-07-20 | 1 | -0/+2 | |
| | | | | llvm-svn: 76505 | |||||
* | Remove the code that tried to evaluate whether (A pred B) is known | Dan Gohman | 2009-07-20 | 1 | -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 its | Dale Johannesen | 2009-07-20 | 1 | -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 arguments | Dale Johannesen | 2009-07-20 | 2 | -12/+7 | |
| | | | | | | | to a place where it affects everything. Occurs only on calls AFAIK. llvm-svn: 76502 | |||||
* | Minor code simplification. | Dan Gohman | 2009-07-20 | 1 | -1/+1 | |
| | | | | llvm-svn: 76496 | |||||
* | The upper argument of ConstantRange is exclusive, not inclusive. | Dan Gohman | 2009-07-20 | 1 | -1/+3 | |
| | | | | llvm-svn: 76492 | |||||
* | clean up some formatting, indent by 2 instead of 4. | Chris Lattner | 2009-07-20 | 1 | -19/+9 | |
| | | | | llvm-svn: 76490 | |||||
* | CMP and TST define CPSR, not use it. | David Goodwin | 2009-07-20 | 1 | -1/+1 | |
| | | | | llvm-svn: 76489 | |||||
* | Re-apply 75490, 75806 and 76177 with fixes and tests. Efficiency comes | David Greene | 2009-07-20 | 1 | -0/+2 | |
| | | | | | | next. llvm-svn: 76486 | |||||
* | Simplify the code in DarwinTargetAsmInfo::emitUsedDirectiveFor so that ↵ | Bill Wendling | 2009-07-20 | 2 | -17/+16 | |
| | | | | | | humans can understand it. llvm-svn: 76480 | |||||
* | Pass in the unfortunately named "LessPrivatePrefix" for the | Bill Wendling | 2009-07-20 | 5 | -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 and | Dan Gohman | 2009-07-20 | 6 | -4/+173 | |
| | | | | | | exact sdiv flags. llvm-svn: 76475 | |||||
* | Use TII->findCommutedOpIndices to find the commute operands (rather than ↵ | Evan Cheng | 2009-07-20 | 1 | -4/+8 | |
| | | | | | | guessing). llvm-svn: 76472 | |||||
* | Change the casting of linkage types into a map. This makes this much more robust | Bill Wendling | 2009-07-20 | 1 | -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 as | Kevin Enderby | 2009-07-20 | 1 | -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 Dunbar | 2009-07-20 | 3 | -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 Cheng | 2009-07-20 | 2 | -34/+55 | |
| | | | | | | resulting interval's register class. llvm-svn: 76458 | |||||
* | Rename Mangler linkage enums to something less gross. | Bill Wendling | 2009-07-20 | 3 | -19/+15 | |
| | | | | llvm-svn: 76456 | |||||
* | Refactor metadata parsing routines into separate functions. | Devang Patel | 2009-07-20 | 2 | -27/+46 | |
| | | | | llvm-svn: 76455 | |||||
* | Add MCAsmParser interface. | Daniel Dunbar | 2009-07-20 | 3 | -0/+28 | |
| | | | | | | | - This provides the AsmParser interface to the target specific assembly parsers. llvm-svn: 76453 | |||||
* | remove TargetAsmInfo::ExpandInlineAsm | Chris Lattner | 2009-07-20 | 2 | -104/+2 | |
| | | | | llvm-svn: 76445 | |||||
* | use ExpandInlineAsm on TargetLowering instead of TargetAsmInfo. | Chris Lattner | 2009-07-20 | 1 | -14/+10 | |
| | | | | llvm-svn: 76442 | |||||
* | Copy ExpandInlineAsm to TargetLowering from TargetAsmInfo. | Chris Lattner | 2009-07-20 | 2 | -0/+97 | |
| | | | | llvm-svn: 76441 | |||||
* | Update this comment. | Dan Gohman | 2009-07-20 | 1 | -7/+5 | |
| | | | | llvm-svn: 76438 | |||||
* | Revert the addition of hasNoPointerOverflow to GEPOperator. | Dan Gohman | 2009-07-20 | 6 | -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 -> getDataASDirective | Chris Lattner | 2009-07-20 | 2 | -16/+12 | |
| | | | | llvm-svn: 76431 | |||||
* | Hide the DOUT static variable behind a function interface. | David Greene | 2009-07-20 | 1 | -0/+8 | |
| | | | | llvm-svn: 76425 | |||||
* | Use t2LDRri12 for frame index loads. | David Goodwin | 2009-07-20 | 1 | -3/+11 | |
| | | | | llvm-svn: 76424 | |||||
* | For PC relative relocations where symbols are defined in the same section they | Bruno Cardoso Lopes | 2009-07-20 | 4 | -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 Cheng | 2009-07-20 | 2 | -3/+15 | |
| | | | | | | fp, #c. llvm-svn: 76401 | |||||
* | implement a new magic global "llvm.compiler.used" which is like llvm.used, but | Chris Lattner | 2009-07-20 | 5 | -25/+23 | |
| | | | | | | doesn't cause ".no_dead_strip" to be emitted on darwin. llvm-svn: 76399 | |||||
* | use stripPointerCasts to simplify some code. | Chris Lattner | 2009-07-20 | 1 | -6/+4 | |
| | | | | llvm-svn: 76397 |