summaryrefslogtreecommitdiffstats
path: root/llvm/lib
Commit message (Collapse)AuthorAgeFilesLines
* Remove dead check.Eli Friedman2009-07-181-3/+1
| | | | llvm-svn: 76301
* Canonicalize insert/extractelement from single-element vectors into Eli Friedman2009-07-181-6/+16
| | | | | | | | | bitcasts. It would also be possible to canonicalize the other way; does anyone have a preference? llvm-svn: 76300
* Fix simplifylibcalls memset recognition to work on 64-bit platforms Eli Friedman2009-07-181-2/+2
| | | | | | where int is 32 bits. llvm-svn: 76293
* Replace intersectWith with maximalIntersectWith. The latter guarantees thatNick Lewycky2009-07-183-58/+19
| | | | | | | | all values belonging to the intersection will belong to the resulting range. The former was inconsistent about that point (either way is fine, just pick one.) This is part of PR4545. llvm-svn: 76289
* Fix the inline cost calculation to take into account instructions Eli Friedman2009-07-181-0/+7
| | | | | | | which cannot be folded even if they have constant operands. Significantly helps if_spppsubr.c attached to PR4573. llvm-svn: 76285
* Add line breaks to make the debug output a bit more readable.Eli Friedman2009-07-181-4/+4
| | | | llvm-svn: 76284
* Catch more coalescing opportunities.Evan Cheng2009-07-181-4/+7
| | | | llvm-svn: 76282
* Enable cross register class coalescing.Evan Cheng2009-07-184-14/+141
| | | | llvm-svn: 76281
* Make GetElementPtr ConstantExprs default to having no pointer overflow.Dan Gohman2009-07-181-1/+5
| | | | llvm-svn: 76280
* Revert 76177 for now. It's messing up ARM asm printing. Also this ↵Evan Cheng2009-07-181-2/+0
| | | | | | significant debate about its efficiency. llvm-svn: 76279
* Fix this accidentally inverted condition.Dan Gohman2009-07-181-1/+1
| | | | llvm-svn: 76278
* Add EngineBuilder to ExecutionEngine in favor of the five optional argument ↵Reid Kleckner2009-07-187-55/+109
| | | | | | | | EE::create(). Also a test commit. llvm-svn: 76276
* Convert more code to use Operator instead of explicitly handling bothDan Gohman2009-07-172-43/+15
| | | | | | | ConstantExpr and Instruction. This involves duplicating some code between GetElementPtrInst and GEPOperator, but it's not a lot. llvm-svn: 76265
* Update CMake file.Ted Kremenek2009-07-171-0/+1
| | | | llvm-svn: 76264
* Fix pr4552. Stack slot coloring with register must take care not to generate ↵Evan Cheng2009-07-171-0/+16
| | | | | | illegal ams. llvm-svn: 76258
* llvm-mc: Add -triple, and start fetching the target asm printer.Daniel Dunbar2009-07-171-0/+19
| | | | llvm-svn: 76257
* Make BasicAliasAnalysis and Value::getUnderlyingObject useDan Gohman2009-07-173-16/+28
| | | | | | | | GEPOperator's hasNoPointer0verflow(), and make a few places in instcombine that create GEPs that may overflow clear the NoOverflow value. Among other things, this partially addresses PR2831. llvm-svn: 76252
* Fix some typos in a comment.Dan Gohman2009-07-171-7/+7
| | | | llvm-svn: 76249
* Fix x86 inline ams 'q' constraint support. In 32-bit mode, it's just like ↵Evan Cheng2009-07-171-1/+31
| | | | | | 'Q', i.e. EAX, EDX, ECX, EBX. In 64-bit mode, it just means all the i64r registers. Yeah, that makes sense. llvm-svn: 76248
* remove AsmPrinter::findGlobalValue, just use Value::stripPointerCasts instead.Chris Lattner2009-07-171-28/+3
| | | | llvm-svn: 76246
* Add a GEPOperator class, and move the hasNoPointerOverflowDan Gohman2009-07-171-3/+5
| | | | | | accessors into it. llvm-svn: 76245
* Simplify some more.Evan Cheng2009-07-172-80/+5
| | | | llvm-svn: 76239
* Use more terse and precise linkage checks.Chris Lattner2009-07-171-15/+6
| | | | llvm-svn: 76237
* Eliminate yet another copy of getOpcode.Dan Gohman2009-07-171-17/+6
| | | | llvm-svn: 76236
* these two pieces of code are the same because we alwaysChris Lattner2009-07-171-12/+3
| | | | | | | emit the EHFrame label next to the section_eh_frame and eh_frame_common labels. llvm-svn: 76234
* Fix a typo that Duncan spotted.Dan Gohman2009-07-171-1/+1
| | | | llvm-svn: 76233
* Add a new Operator class, for handling Instructions and ConstantExprsDan Gohman2009-07-173-35/+15
| | | | | | | | | in a convenient manner, factoring out some common code from InstructionCombining and ValueTracking. Move the contents of BinaryOperators.h into Operator.h and use Operator to generalize them to support ConstantExprs as well as Instructions. llvm-svn: 76232
* Untangle a snarl that I discovered when updating the mangler,Chris Lattner2009-07-175-18/+16
| | | | | | | | | | | | | | starting in getCurrentFunctionEHName. Among other problems, we would try to privative a "foo.eh" label, but end up emitting the label as _Lfoo.eh instead of L_foo.eh on darwin. This is really bad, and the linker has always tolerated these labels existing. For now, just emit them as _foo.eh. This patch also fixes problems with ".eh" labels on unnamed functions and eliminates two strangely defined TargetAsmInfo hooks. llvm-svn: 76231
* Sketch support for target specific assembly parser.Daniel Dunbar2009-07-174-1/+62
| | | | | | - Not fully enabled yet, need a configure regeneration. llvm-svn: 76230
* Trailing whitespace.Mikhail Glushenkov2009-07-171-15/+15
| | | | llvm-svn: 76229
* fix include guard.Chris Lattner2009-07-171-2/+2
| | | | llvm-svn: 76228
* Simplify the coalescer (finally!) by making ↵Evan Cheng2009-07-173-159/+46
| | | | | | LiveIntervals::processImplicitDefs a little more aggressive and teaching liveintervals to make use of isUndef marker on MachineOperands. llvm-svn: 76223
* GetElementPtr instructions default to having no overflow.Dan Gohman2009-07-171-0/+9
| | | | llvm-svn: 76222
* Start generating AsmMatcher.inc for X86.Daniel Dunbar2009-07-172-1/+2
| | | | llvm-svn: 76213
* r76102 added the MachineCodeEmitter::processDebugLoc call and called it fromJeffrey Yasskin2009-07-173-6/+4
| | | | | | | the X86 Emitter. This patch extends that to the rest of the targets that can write to a MachineCodeEmitter: ARM, Alpha, and PPC. llvm-svn: 76211
* Fix compile warning.Daniel Dunbar2009-07-171-0/+2
| | | | llvm-svn: 76210
* Add missed returnAnton Korobeynikov2009-07-171-1/+1
| | | | llvm-svn: 76209
* Add support for naked functionsAnton Korobeynikov2009-07-175-3/+11
| | | | llvm-svn: 76198
* revert one of the loops to use indicies over iterators because there are ↵Bruno Cardoso Lopes2009-07-171-4/+3
| | | | | | vector insertions inside the loop llvm-svn: 76195
* Add a SubclassOptionalData field to Value. See the doxygen comment forDan Gohman2009-07-171-1/+2
| | | | | | details. llvm-svn: 76189
* Initialize another Context, in the hopes of unbreaking CBE.Daniel Dunbar2009-07-171-0/+3
| | | | llvm-svn: 76184
* Provide slightly more refined error message when trying to lookup a target, andDaniel Dunbar2009-07-171-1/+18
| | | | | | none are registered. llvm-svn: 76181
* Add logic to align instruction operands to columns for pretty-printing.David Greene2009-07-171-0/+2
| | | | | | | No target uses this currently. This patch only adds the mechanism so that local installations can choose to enable this. llvm-svn: 76177
* Avoid a compiler warning when assertions are turned off.Duncan Sands2009-07-171-3/+2
| | | | llvm-svn: 76176
* Oops, accidentally set a legal operation to expand.Eli Friedman2009-07-171-1/+0
| | | | llvm-svn: 76165
* Expand misc operations from test/CodeGen/Generic.Eli Friedman2009-07-171-0/+17
| | | | llvm-svn: 76163
* Handle void in XCoreTargetLowering::isLegalAddressingMode. Triggers in Eli Friedman2009-07-171-0/+5
| | | | | | test/CodeGen/Generic. llvm-svn: 76162
* Remove some unnecessary expansion markings. Add a few expansion Eli Friedman2009-07-171-24/+7
| | | | | | markings that show up in test/CodeGen/Generic. llvm-svn: 76160
* Add operation expansion/promotion for a bunch of operations, many of Eli Friedman2009-07-171-5/+54
| | | | | | which show up in test/CodeGen/Generic. llvm-svn: 76158
* Fix tSUBspi operand definition. It reads and writes sp, which is a high ↵Evan Cheng2009-07-171-1/+1
| | | | | | register. llvm-svn: 76155
OpenPOWER on IntegriCloud