summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
Commit message (Collapse)AuthorAgeFilesLines
* remove the MAI argument to MCExpr::print and switch overthing to use << when ↵Chris Lattner2010-01-181-2/+1
| | | | | | printing them. llvm-svn: 93699
* now that MCSymbol::print doesn't use it's MAI argument, we can Chris Lattner2010-01-173-79/+41
| | | | | | | remove it and change all the code that prints MCSymbols to use << instead, which is much simpler and cleaner. llvm-svn: 93695
* now that mangler is in libtarget, it can use MCAsmInfo instead of clientsChris Lattner2010-01-172-3/+2
| | | | | | having to pass various fields from it in. Simplify. llvm-svn: 93686
* Switch some functions to take Twines, eliminate uses of StringExtras.h.Benjamin Kramer2010-01-174-36/+16
| | | | llvm-svn: 93680
* Add a note for the macho streamer and remove a used of the mangler from the ↵Nate Begeman2010-01-171-6/+0
| | | | | | soon to be defunct machowriter pass. llvm-svn: 93670
* When checking for sret-demotion, it needs to use legal types. When using ↵Kenneth Uildriks2010-01-161-11/+41
| | | | | | the return value of an sret-demoted call, it needs to use possibly illegal types that match the declared Type of the callee. llvm-svn: 93667
* move the mangler into libtarget from vmcore.Chris Lattner2010-01-165-6/+6
| | | | llvm-svn: 93664
* reapply the mangler gutting patch.Chris Lattner2010-01-161-6/+0
| | | | llvm-svn: 93656
* unbreak the build.Chris Lattner2010-01-161-6/+0
| | | | llvm-svn: 93654
* Revert 93648.Rafael Espindola2010-01-161-0/+6
| | | | | | | | Mangler::getMangledName is used from lto Mangler::setUseQuotes is used in the AsmPrinter Mangler::setSymbolsCanStartWithDigit is used in the AsmPrinter llvm-svn: 93652
* Mangler::getMangledName is now dead, remove it and all the other stuff in ↵Chris Lattner2010-01-161-6/+0
| | | | | | Mangler that is now transitively dead. woo. llvm-svn: 93648
* Change DIEObjectLabel to take an MCSymbol instead of std::string.Chris Lattner2010-01-166-10/+23
| | | | llvm-svn: 93647
* rename GetPrivateGlobalValueSymbolStub -> GetSymbolWithGlobalValueBase,Chris Lattner2010-01-163-26/+45
| | | | | | | | and add an explicit ForcePrivate argument. Switch FunctionEHFrameInfo to be MCSymbol based instead of string based. llvm-svn: 93646
* eliminate uses of getMangledName from AsmPrinter.cpp, last up is Chris Lattner2010-01-161-5/+9
| | | | | | dwarf emission which is going to be more invasive. llvm-svn: 93645
* No need to use WeakVH here.Devang Patel2010-01-161-2/+1
| | | | llvm-svn: 93631
* Replace DebugLocTuple with DILocation.Devang Patel2010-01-164-32/+38
| | | | llvm-svn: 93630
* remove a couple of actively incorrect uses of getMangledName.Chris Lattner2010-01-161-4/+6
| | | | llvm-svn: 93627
* Retrying r91337:Bill Wendling2010-01-161-8/+19
| | | | | | | | The CIE says that the LSDA point in the FDE section is an "sdata4". That's fine, but we need it to actually be 4-bytes in the FDE for some platforms. Allow individual platforms to decide for themselves. llvm-svn: 93616
* fix inverted conditionalChris Lattner2010-01-161-1/+1
| | | | llvm-svn: 93614
* CurrentFnName is now dead, remove it.Chris Lattner2010-01-161-2/+1
| | | | llvm-svn: 93612
* remove the string form of printVisibility.Chris Lattner2010-01-161-20/+18
| | | | llvm-svn: 93609
* Treat indirect branches specially only during pre-regalloc tail duplication,Bob Wilson2010-01-161-13/+13
| | | | | | not during the later post-alloc tail duplication. llvm-svn: 93600
* Run the pre-register allocation tail duplication pass by default. RemoveBob Wilson2010-01-161-5/+3
| | | | | | | the -pre-regalloc-taildup command-line option, and add a new -disable-early-taildup option. llvm-svn: 93597
* supplement CurrentFnName with CurrentFnSym, which will eventuallyChris Lattner2010-01-151-0/+1
| | | | | | | replace it. Upgrade Alpha, Blackfin, and part of CellSPU to not use mangler anymore. CellSPU needs more invasive surgery. llvm-svn: 93589
* add a version of AsmPrinter::printVisibility that takes an MCSymbol.Chris Lattner2010-01-151-0/+17
| | | | llvm-svn: 93587
* add another helperChris Lattner2010-01-151-0/+11
| | | | llvm-svn: 93577
* add a AsmPrinter::GetGlobalValueSymbol and GetExternalSymbolSymbolChris Lattner2010-01-151-0/+16
| | | | | | helper method, use it to simplify some code. llvm-svn: 93575
* Update CMake build.Ted Kremenek2010-01-151-1/+0
| | | | llvm-svn: 93571
* Add FIXME.Devang Patel2010-01-151-0/+1
| | | | llvm-svn: 93562
* Don't make changes to the MBB in MachineBasicBlock::canFallThrough().Jakob Stoklund Olesen2010-01-151-1/+1
| | | | | | | This fixes the regression for -pre-regalloc-taildup in MultiSource/Applications/lambda-0.1.3. llvm-svn: 93541
* Simplify logic. Any functional change is unintended.Jakob Stoklund Olesen2010-01-151-6/+2
| | | | llvm-svn: 93540
* Add some debug routines to SelectionDAG to dump full DAGs.David Greene2010-01-152-1/+44
| | | | | | | | | | | print/dumpWithDepth allows one to dump a DAG up to N levels deep. dump/printWithFullDepth prints the whole DAG, subject to a depth limit on 100 in the default case (to prevent infinite recursion). Have CannotYetSelect to a dumpWithFullDepth so it is clearer exactly what the non-matching DAG looks like. llvm-svn: 93538
* Improve llvm.dbg.declare intrinsic by referring directly to the storage in ↵Victor Hernandez2010-01-151-2/+0
| | | | | | | | | its first argument, via function-local metadata (instead of via a bitcast). This patch also cleans up code that expects there to be a bitcast in the first argument and testcases that call llvm.dbg.declare. It also strips old llvm.dbg.declare intrinsics that did not pass metadata as the first argument. llvm-svn: 93531
* Hook up llc's -filetype=obj to use MCStreamer if an MCCodeEmitter is available.Nate Begeman2010-01-156-1549/+127
| | | | | | | | | Remove most of old Mach-O Writer support, it has been replaced by MCMachOStreamer Further refactoring to completely remove MachOWriter and drive the object file writer with the AsmPrinter MCInst/MCSection logic is forthcoming. llvm-svn: 93527
* Revert r93504 because older uses of llvm.dbg.declare intrinsics need to be ↵Victor Hernandez2010-01-151-0/+2
| | | | | | auto-upgraded llvm-svn: 93515
* Change pre-regalloc tail duplication to only duplicate indirect branch blocks.Bob Wilson2010-01-151-4/+11
| | | | | | | | | The pre-regalloc pass caused some regressions in both compile time and performance of the generated code, and it did not improve performance, except for indirect branches. I also moved the check for single-block loops to speed up the common case when running the taildup pass before reg allocation. llvm-svn: 93505
* Improve llvm.dbg.declare intrinsic by referring directly to the storage in ↵Victor Hernandez2010-01-151-2/+0
| | | | | | | | its first argument, via function-local metadata (instead of via a bitcast). This patch also cleans up code that expects there to be a bitcast in the first argument and testcases that call llvm.dbg.declare. llvm-svn: 93504
* Do not use AT_specification die for static variables. It confuses gdb.Devang Patel2010-01-151-3/+6
| | | | llvm-svn: 93494
* fix 80-column violationsJim Grosbach2010-01-151-12/+14
| | | | llvm-svn: 93487
* Fix 80 column violations and clean up whitespaceJim Grosbach2010-01-151-5/+4
| | | | llvm-svn: 93484
* Do not emit multiple AT_container_type attributes. Devang Patel2010-01-151-1/+2
| | | | | | We need to find a better way to emit this info. llvm-svn: 93481
* Fix a comment.Dale Johannesen2010-01-141-1/+1
| | | | llvm-svn: 93463
* Add comment explaining the necessity of r93456Jim Grosbach2010-01-141-0/+5
| | | | llvm-svn: 93459
* Dwarf EH prepare needs to be run after SjLj prepare. Otherwise,Jim Grosbach2010-01-141-1/+1
| | | | | | | | | catch info can get misplaced when a selector ends up more than one block removed from the parent invoke(s). This could happen when a landing pad is shared by multiple invokes and is also a target of a normal edge from elsewhere. llvm-svn: 93456
* Fix a codegen abort seen in 483.xalancbmk.Dan Gohman2010-01-141-0/+3
| | | | llvm-svn: 93417
* Commit some changes I had managed to lose last night while refactoring the ↵Evan Cheng2010-01-131-1/+6
| | | | | | | | code. Avoid change use of PHI instructions because it's not legal to insert any instructions before them. This fixes PR6027. llvm-svn: 93335
* Re-enable extension optimization pass.Evan Cheng2010-01-131-0/+1
| | | | llvm-svn: 93313
* Add comment; refactor; avoid pulling in DT if it's not used.Evan Cheng2010-01-131-79/+110
| | | | llvm-svn: 93306
* remove uses of deprecated functions, this generates slightlyChris Lattner2010-01-131-6/+7
| | | | | | | | | different BlockAddress labels, but nothing semantically important. Add a FIXME that BlockAddress codegen is broken if the LLVM BB has an empty name (e.g. strip was run). llvm-svn: 93303
* use the new form of getNameWithPrefix, not makeNameProper.Chris Lattner2010-01-131-1/+1
| | | | | | | | | Among other things, this would do very weird things if the basic block name had (e.g.) a space in it on darwin: makeNameProper would add quotes, then the mcsymbol would escape the quotes. llvm-svn: 93302
OpenPOWER on IntegriCloud