summaryrefslogtreecommitdiffstats
path: root/llvm/lib
Commit message (Collapse)AuthorAgeFilesLines
* Add a ConstantSignedRange class, which does for signed integersDan Gohman2009-07-091-19/+572
| | | | | | | | | | | | | what ConstantRange does for unsigned integers. Factor out a common base class for common functionality. Add some new functions for performing arithmetic on constant ranges. Some of these are currently just stubbed out with conservative implementations. Add unittests for ConstantRange and ConstantSignedRange. llvm-svn: 75177
* Make EXTRACT_VECTOR_ELT a bit more flexible in terms of the returned Eli Friedman2009-07-094-55/+24
| | | | | | | | | value. Adjust other code to deal with that correctly. Make DAGTypeLegalizer::PromoteIntRes_EXTRACT_VECTOR_ELT take advantage of this new flexibility to simplify the code and make it deal with unusual vectors (like <4 x i1>) correctly. Fixes PR3037. llvm-svn: 75176
* Add a Thumb readme entry.Evan Cheng2009-07-091-0/+6
| | | | llvm-svn: 75173
* Correct comment.Evan Cheng2009-07-091-1/+1
| | | | llvm-svn: 75172
* bug 4524: Add MSP430 to the cmake build.Richard Pennington2009-07-091-4/+5
| | | | llvm-svn: 75170
* Handle 'A' modifier in inline asms.Dale Johannesen2009-07-091-0/+9
| | | | | | | gcc.apple/asm-block-13.c gcc.apple/asm-block-57.c llvm-svn: 75169
* Remove some duplication.Mikhail Glushenkov2009-07-091-17/+17
| | | | llvm-svn: 75163
* Rename -t to --temp-dir.Mikhail Glushenkov2009-07-091-2/+2
| | | | | | | -t is already used by gcc in the meaning 'ld -t' (trace). The Base plugin may want to emulate this behaviour. llvm-svn: 75162
* As Chris pointed out, we don't actually need to pass the context around here.Owen Anderson2009-07-092-3/+3
| | | | llvm-svn: 75161
* back out r75156 for now.Chris Lattner2009-07-091-47/+0
| | | | llvm-svn: 75160
* A little bit more LLVMContextification.Owen Anderson2009-07-091-2/+4
| | | | llvm-svn: 75159
* Handle Thumb-2 addressing modes during FP elimination.David Goodwin2009-07-091-0/+13
| | | | llvm-svn: 75158
* Add some classes to produce pretty-printed asm. We'll use theseDavid Greene2009-07-091-0/+47
| | | | | | | shortly to provide nicely printed comments and other goodies in asm files. llvm-svn: 75156
* Fixed handling of -t. It gets the prirority for temp dir name.Sanjiv Gupta2009-07-091-0/+1
| | | | llvm-svn: 75154
* Thread LLVMContext through MVT and related parts of SDISel.Owen Anderson2009-07-0921-96/+120
| | | | llvm-svn: 75153
* add llvm-mc support for parsing the .lcomm directive, patch by Kevin Enderby!Chris Lattner2009-07-091-3/+6
| | | | llvm-svn: 75148
* Add support for other GraphViz display tools. This can helpDavid Greene2009-07-091-6/+48
| | | | | | | with very large graphs, where dot isn't necessarily the most visually pleasing way of looking at the graph. llvm-svn: 75144
* remove dead function.Chris Lattner2009-07-091-9/+0
| | | | llvm-svn: 75143
* Misc encoding fixes; reported on llvmdev.Eli Friedman2009-07-091-4/+4
| | | | llvm-svn: 75142
* eraseFromDisk no longer throws.Chris Lattner2009-07-091-4/+1
| | | | llvm-svn: 75139
* There's no need to consider PHI nodes in the same block as the instructionNick Lewycky2009-07-091-0/+4
| | | | | | we're inserting sigma/phi functions for. Patch by Andre Tavares. llvm-svn: 75138
* Add some statistics to SSI so we can see what it's up to.Nick Lewycky2009-07-091-0/+43
| | | | | | Add an -ssi-everything pass which calls createSSI on everything in the function. llvm-svn: 75135
* Missing )Bill Wendling2009-07-091-1/+1
| | | | llvm-svn: 75126
* Add a -t="dir" option to the driver. This can be used to specify the ↵Sanjiv Gupta2009-07-092-0/+11
| | | | | | directory to be used as TempDir if somebody doesn't want to use the standard /tmp. llvm-svn: 75121
* simplify this logic a bit more.Chris Lattner2009-07-091-6/+2
| | | | llvm-svn: 75118
* move reasoning about darwin $non_lazy_ptr stubs from asmprinter intoChris Lattner2009-07-094-40/+98
| | | | | | isel. llvm-svn: 75117
* Targets sometimes assign fixed stack object to spill certain callee-savedEvan Cheng2009-07-094-8/+29
| | | | | | | | | | registers based on dynamic conditions. For example, X86 EBP/RBP, when used as frame register has to be spilled in the first fixed object. It should inform PEI this so it doesn't get allocated another stack object. Also, it should not be spilled as other callee-saved registers but rather its spilling and restoring are being handled by emitPrologue and emitEpilogue. Avoid spilling it twice. llvm-svn: 75116
* Reorg includes.Evan Cheng2009-07-092-2/+1
| | | | llvm-svn: 75115
* rearrange some code, no functionality change.Chris Lattner2009-07-091-23/+28
| | | | llvm-svn: 75113
* make direct calls set MO_PLT or MO_DARWIN_STUB as appropriate with fast isel.Chris Lattner2009-07-091-7/+36
| | | | llvm-svn: 75112
* reduce nesting by rearranging branches.Chris Lattner2009-07-091-17/+12
| | | | llvm-svn: 75110
* make isel use MO_PIC_BASE_OFFSET when lowering globalvalues on darwin in picChris Lattner2009-07-092-6/+5
| | | | | | mode, instead of having asmprinter just "know" to print them. llvm-svn: 75109
* various minor cleanups, no functionality change.Chris Lattner2009-07-091-6/+6
| | | | llvm-svn: 75108
* make isel decide whether to emit $stub's on darwin instead of asmprinter.Chris Lattner2009-07-093-48/+48
| | | | llvm-svn: 75107
* pc-relative references are *always* to functions, never to globals. ISel Chris Lattner2009-07-091-21/+8
| | | | | | is incapable of lowering direct references to globals like this, zap the code. llvm-svn: 75106
* make cygwin use its own stubs set, instead of overloading a darwin one.Chris Lattner2009-07-092-4/+3
| | | | llvm-svn: 75105
* Make isel determine where to emit PLT-relative calls instead of havingChris Lattner2009-07-092-18/+31
| | | | | | asmprinter do it. llvm-svn: 75104
* isPICStyleStub() is now never true in -static mode, so simplify code.Chris Lattner2009-07-091-9/+4
| | | | llvm-svn: 75102
* simplify some code based on the fact that picstyles != none are only valid Chris Lattner2009-07-094-23/+16
| | | | | | in pic or dynamic-no-pic mode. Also, x86-64 never used picstylegot. llvm-svn: 75101
* all this logic always returns true because GOT mode is never active in ↵Chris Lattner2009-07-091-16/+5
| | | | | | | | x86-64 mode. Simplify it away, someone should evaluate this. llvm-svn: 75100
* isPICStyleRIPRel() and friends are never true in -static mode.Chris Lattner2009-07-092-36/+29
| | | | | | Simplify code based on this. llvm-svn: 75099
* Move PR4517 to README.txt.Nick Lewycky2009-07-091-0/+22
| | | | llvm-svn: 75098
* Improved tracking of value number kills. VN kills are now representedLang Hames2009-07-096-42/+102
| | | | | | | | | | | | as an (index,bool) pair. The bool flag records whether the kill is a PHI kill or not. This code will be used to enable splitting of live intervals containing PHI-kills. A slight change to live interval weights introduced an extra spill into lsr-code-insertion (outside the critical sections). The test condition has been updated to reflect this. llvm-svn: 75097
* .o file writing shouldn't mess around with pic/relo models like the JIT does.Chris Lattner2009-07-091-18/+0
| | | | llvm-svn: 75096
* move a hack out of the asm-printer specific path to the main target ↵Chris Lattner2009-07-091-12/+17
| | | | | | selection path. llvm-svn: 75095
* many more cleanups, for example if in the "none" pic-style,Chris Lattner2009-07-091-26/+26
| | | | | | | make sure we're set to static codegen. Simplify the decision tree of target->picstyle/picmode settings. llvm-svn: 75094
* Reduce indentation in GVRequiresExtraLoad. Return true for windowsChris Lattner2009-07-091-26/+28
| | | | | | with DLLImport symbols even when in -static mode. llvm-svn: 75093
* When in -static mode, force the PIC style to none. Doing this requires fixingChris Lattner2009-07-093-19/+33
| | | | | | | code which conflated RIPRel PIC with x86-64. Fix these to just check for X86-64 directly. llvm-svn: 75092
* merge two identical functions and simplify things that are GOT specificChris Lattner2009-07-091-41/+33
| | | | llvm-svn: 75091
* hoist check for IsTailCall to callers. Eliminate redundant check for Chris Lattner2009-07-091-10/+6
| | | | | | x86-64: GOT-style PIC is never used on x86-64. llvm-svn: 75090
OpenPOWER on IntegriCloud