summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
Commit message (Collapse)AuthorAgeFilesLines
...
* switch GC_LABEL to use an MCSymbol operand instead of a label ID operand.Chris Lattner2010-03-144-36/+33
| | | | llvm-svn: 98474
* Fix some EH failures on NNT I introduced in r98461Chris Lattner2010-03-141-4/+6
| | | | llvm-svn: 98471
* fix a bug I introduced in r98459, causing some NNT failures.Chris Lattner2010-03-141-1/+1
| | | | llvm-svn: 98470
* change the LabelSDNode to be EHLabelSDNode and make it holdChris Lattner2010-03-147-37/+42
| | | | | | | | an MCSymbol. Make the EH_LABEL MachineInstr hold its label with an MCSymbol instead of ID. Fix a bug in MMI.cpp which would return labels named "Label4" instead of "label4". llvm-svn: 98463
* eliminate InvalidateLabel and LabelIDList from MMI and replaceChris Lattner2010-03-144-38/+4
| | | | | | them with a counter. llvm-svn: 98462
* use Label->isDefined() instead of isLabelDeleted() now that weChris Lattner2010-03-142-8/+9
| | | | | | | consistently use MCSymbol and only call this predicate after they should have been emitted. llvm-svn: 98461
* change EH related stuff (other than EH_LABEL) to use MCSymbolChris Lattner2010-03-145-82/+72
| | | | | | | | | | | | | | | | instead of label ID's. This cleans up and regularizes a bunch of code and makes way for future progress. Unfortunately, this pointed out to me that JITDwarfEmitter.cpp is largely copy and paste from DwarfException/MachineModuleInfo and other places. This is very sad and disturbing. :( One major change here is that TidyLandingPads moved from being called in DwarfException::BeginFunction to being called in DwarfException::EndFunction. There should not be any functionality change from doing this, but I'm not an EH expert. llvm-svn: 98459
* eliminate the now-unneeded context argument of MBB::getSymbol()Chris Lattner2010-03-132-8/+9
| | | | llvm-svn: 98451
* rearrange MCContext ownership. Before LLVMTargetMachine created it Chris Lattner2010-03-135-37/+50
| | | | | | | | | | | and passing off ownership to AsmPrinter. Now MachineModuleInfo creates it and owns it by value. This allows us to use MCSymbols more consistently throughout the rest of the code generator, and simplifies a bit of code. This also allows MachineFunction to keep an MCContext reference handy, and cleans up the TargetRegistry interfaces for AsmPrinters. llvm-svn: 98450
* add support for MCSymbols as operands to MachineInstrs.Chris Lattner2010-03-131-25/+34
| | | | llvm-svn: 98433
* simplify EmitFrameMoves to take BaseLabel in as a symbolChris Lattner2010-03-134-18/+13
| | | | | | | instead of as a stem+idx pair, simplify the "is a new location" check to use symbol comparison. llvm-svn: 98432
* factor some labels, simplify some code.Chris Lattner2010-03-133-14/+15
| | | | llvm-svn: 98429
* various cleanups.Chris Lattner2010-03-131-16/+17
| | | | llvm-svn: 98426
* reimplement the string pool used for inlined functionChris Lattner2010-03-132-23/+38
| | | | | | entries to not thrash std::strings and MCSymbols. llvm-svn: 98415
* remove gone method, grr symlinks.Chris Lattner2010-03-121-6/+0
| | | | llvm-svn: 98392
* inline the now-trivial implementation of GetGlobalValueSymbol intoChris Lattner2010-03-122-13/+10
| | | | | | some of its callers. llvm-svn: 98388
* give Mangler access to TargetData.Chris Lattner2010-03-122-2/+2
| | | | llvm-svn: 98378
* finally give Mangler a getSymbol method, which returns an MCSymbolChris Lattner2010-03-121-6/+1
| | | | | | for a global instead of messing around with string buffers. llvm-svn: 98366
* remove dead code.Chris Lattner2010-03-122-24/+0
| | | | llvm-svn: 98365
* make the mangler take an MCContext instead of an MAI.Chris Lattner2010-03-123-6/+4
| | | | | | No functionality change. llvm-svn: 98363
* remove MAI argument from createAsmStreamer since itChris Lattner2010-03-121-1/+1
| | | | | | can get it from the context now. llvm-svn: 98361
* fix a bug emitting .secrel32 that I introduced, PR6587, patchChris Lattner2010-03-121-2/+3
| | | | | | by A.Mazur! llvm-svn: 98360
* Free DbgScopes in DwarfDebug::endFunction(). Also increased the const-ness ofJeffrey Yasskin2010-03-123-37/+37
| | | | | | several fields to make it easier to figure out where bugs might be creeping in. llvm-svn: 98358
* Revert turning copysignl into a COPYSIGN node for the moment:Duncan Sands2010-03-121-1/+1
| | | | | | | ppc calls copysignl with a 128 bit ppc long double, resulting in a node that the type legalizer doesn't know how to expand. llvm-svn: 98357
* Now that it's supported, turn copysignl into a COPYSIGN node.Duncan Sands2010-03-121-1/+1
| | | | llvm-svn: 98348
* Fix PR6522: implement copysign expansion for x86 long doubleDuncan Sands2010-03-121-23/+39
| | | | | | | | (it seems that FreeBSD doesn't have copysignl). Done by removing a bunch of assumptions from the code. This may also help with sparc 128 bit floats. llvm-svn: 98346
* fix PR6577, a bug in sdbuilder lowering select instructionsChris Lattner2010-03-121-1/+2
| | | | | | whose true value was not Val#0. llvm-svn: 98336
* There is no need to create specification DIE for definitions at DIFile level.Devang Patel2010-03-111-1/+2
| | | | llvm-svn: 98302
* Extract methods from LocalRewriter::RewriteMBB bringing it down to 666 lines.Jakob Stoklund Olesen2010-03-111-168/+197
| | | | llvm-svn: 98295
* change MCContext to always have an MCAsmInfo.Chris Lattner2010-03-112-3/+3
| | | | llvm-svn: 98293
* fix a fixme in TargetLoweringObjectFile::getExprForDwarfReferenceChris Lattner2010-03-112-4/+5
| | | | | | | | | where we used ot create an MCSymbol for ".". Now emit an assembler temporary label and reference it instead of "." textually. rdar://7739457 llvm-svn: 98292
* Remove getWidenVectorType, which is no longer used.Dan Gohman2010-03-111-14/+0
| | | | llvm-svn: 98289
* rename getSymbolForDwarf* to getExprForDwarf* since it returnsChris Lattner2010-03-112-12/+16
| | | | | | | | | an MCExpr and not an MCSymbol. Change it to take an MCStreamer, which is currently unused. No functionality change. llvm-svn: 98278
* In case of tail call size of Ins and InVals may not match.Evan Cheng2010-03-111-6/+7
| | | | llvm-svn: 98277
* Avoid leaking CompileUnits in DwarfDebug.cpp.Jeffrey Yasskin2010-03-112-14/+15
| | | | llvm-svn: 98268
* Add a new jump table encoding to indicate jump tables entriesRichard Osborne2010-03-112-0/+7
| | | | | | are inside the function by the target at the point of use. llvm-svn: 98255
* The check for coalescing a virtual register to a physical register, e.g.Evan Cheng2010-03-112-10/+21
| | | | | | | | | cl = EXTRACT_SUBREG reg1024, 1, is overly conservative. It should check for overlaps of vr's live interval with the super registers of the physical register (ECX in this case) and let JoinIntervals() handle checking the coalescing feasibility against the physical register (cl in this case). llvm-svn: 98251
* Remove dead include.Daniel Dunbar2010-03-111-1/+0
| | | | llvm-svn: 98225
* Fix debug_value handling.Dale Johannesen2010-03-111-2/+6
| | | | llvm-svn: 98224
* MC: Provide MCAssembler with a TargetAsmBackend.Daniel Dunbar2010-03-111-4/+5
| | | | llvm-svn: 98222
* VirtRegRewriter spring cleaning. No functional change.Jakob Stoklund Olesen2010-03-111-1255/+1292
| | | | | | | Move methods out of line and M-x whitespace-cleanup. Promote common method arguments to member variables. llvm-svn: 98207
* fix PR6533 by updating the br(xor) code to remember the caseChris Lattner2010-03-101-5/+7
| | | | | | when it looked past a trunc. llvm-svn: 98203
* Cosmetic: lengthen names and improve comments.Dale Johannesen2010-03-102-16/+15
| | | | llvm-svn: 98202
* Add a bit along with the MCSymbols stored in the MachineModuleInfo maps thatBill Wendling2010-03-102-13/+22
| | | | | | | | indicates that an MCSymbol is external or not. (It's true if it's external.) This will be used to specify the correct information to add to non-lazy pointers. That will be explained further when this bit is used. llvm-svn: 98199
* Progress towards shepherding debug info through SelectionDAG.Dale Johannesen2010-03-107-28/+176
| | | | | | | No functional effect yet. This is still evolving and should not be viewed as final. llvm-svn: 98195
* Fix another bitwidth calculation to handle vector types; based on aDan Gohman2010-03-101-1/+1
| | | | | | patch by Micah Villmow for PR6572. llvm-svn: 98188
* Fix another place where DEBUG_VALUE affected codegen.Dale Johannesen2010-03-101-1/+12
| | | | llvm-svn: 98181
* Fix a bug in DEBUG_VALUE handling Devang ran into.Dale Johannesen2010-03-101-6/+3
| | | | | | I'll get this loop right yet. llvm-svn: 98155
* move three lowering hooks from MAI to TLOF and make one of themChris Lattner2010-03-102-6/+14
| | | | | | | semantic instead of syntactic. This completes MCization of darwin/x86[-64]! llvm-svn: 98145
* This survived a bootstrap, so let's try 98104 again.Dale Johannesen2010-03-101-4/+69
| | | | llvm-svn: 98137
OpenPOWER on IntegriCloud