summaryrefslogtreecommitdiffstats
path: root/llvm/include
Commit message (Collapse)AuthorAgeFilesLines
...
* Retrying r91337:Bill Wendling2010-01-161-0/+14
| | | | | | | | 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
* 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-3/+0
| | | | llvm-svn: 93609
* Temporarily revert r93581. It was causing failures in the ExecutionEngine testsBill Wendling2010-01-161-2/+2
| | | | | | on the build bots. llvm-svn: 93606
* supplement CurrentFnName with CurrentFnSym, which will eventuallyChris Lattner2010-01-151-1/+2
| | | | | | | 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/+3
| | | | llvm-svn: 93587
* BumpPtrAllocator: Have the DefaultSlabAllocator created at runtime, not ↵Ted Kremenek2010-01-151-2/+2
| | | | | | initialization time. This removes one of the 'init_constructors' reported in <rdar://problem/7545356>. llvm-svn: 93581
* Remove unneeded argument per review.Dale Johannesen2010-01-151-3/+1
| | | | llvm-svn: 93579
* add another helperChris Lattner2010-01-151-0/+6
| | | | llvm-svn: 93577
* add a AsmPrinter::GetGlobalValueSymbol and GetExternalSymbolSymbolChris Lattner2010-01-151-0/+8
| | | | | | helper method, use it to simplify some code. llvm-svn: 93575
* Add comments to the dump() and dumpr() routines.Dan Gohman2010-01-151-0/+8
| | | | llvm-svn: 93566
* DEBUG_VALUE is now variable sized, as it has aDale Johannesen2010-01-151-1/+1
| | | | | | | | target-dependent memory address representation in it. Restore X86 printing of DEBUG_VALUE; lowering is done in X86RegisterInfo using the normal algorithm. llvm-svn: 93565
* Remove the InlineHint attribute. There are no current or plannedEric Christopher2010-01-152-5/+2
| | | | | | users. llvm-svn: 93558
* Add some debug routines to SelectionDAG to dump full DAGs.David Greene2010-01-151-0/+19
| | | | | | | | | | | 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
* fix a bug in range information for $42, eliminate an Chris Lattner2010-01-151-2/+1
| | | | | | unneeded argument from ParseExpression. llvm-svn: 93536
* extend MCAsmParser::ParseExpression and ParseParenExpressionChris Lattner2010-01-151-3/+5
| | | | | | | to return range information for subexpressions. Use this to provide range info for several new X86Operands. llvm-svn: 93534
* Improve llvm.dbg.declare intrinsic by referring directly to the storage in ↵Victor Hernandez2010-01-153-4/+3
| | | | | | | | | 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-152-2/+16
| | | | | | | | | 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-153-9/+4
| | | | | | auto-upgraded llvm-svn: 93515
* Improve llvm.dbg.declare intrinsic by referring directly to the storage in ↵Victor Hernandez2010-01-153-4/+9
| | | | | | | | 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
* Remove DEBUG_DECLARE, looks like we don't need it.Dale Johannesen2010-01-152-13/+1
| | | | | | Also, DEBUG_VALUE has side effects. llvm-svn: 93498
* Make sure include/llvm/MC/MCParsedAsmOperand.h can be compiled alone.Jeffrey Yasskin2010-01-151-0/+1
| | | | llvm-svn: 93492
* add virtual methods to get the start/end of a MCParsedAsmOperand,Chris Lattner2010-01-141-1/+5
| | | | | | the default implementation returns "unknown". llvm-svn: 93470
* Split the TargetAsmParser "ParseInstruction" interface in half:Chris Lattner2010-01-141-2/+13
| | | | | | | | | | | the new ParseInstruction method just parses and returns a list of target operands. A new MatchInstruction interface is used to turn the operand list into an MCInst. This requires new/deleting all the operands, but it also gives targets the ability to use polymorphic operands if they want to. llvm-svn: 93469
* prune #includes in TargetAsmParser.hChris Lattner2010-01-143-6/+8
| | | | | | | Pass in SMLoc of instr opcode into ParseInstruction. Make AsmToken be a class, not a struct. llvm-svn: 93457
* introduce the MCParsedAsmOperand class.Chris Lattner2010-01-141-0/+28
| | | | llvm-svn: 93454
* Add MDNode::getFunction(), which figures out the metadata's function, if it ↵Victor Hernandez2010-01-141-0/+5
| | | | | | has function that it is local to. llvm-svn: 93400
* Add getSource() to SuccIteratorTobias Grosser2010-01-131-0/+5
| | | | | | Get the source BB of an iterator. llvm-svn: 93364
* Extend SuccIteratorTobias Grosser2010-01-131-1/+62
| | | | | | | Implement most of the missing methods to make SuccIterator random access. operator[] is still missing. llvm-svn: 93363
* makeNameProper is now private!Chris Lattner2010-01-131-11/+13
| | | | llvm-svn: 93357
* expose a static function as a static method on the MCSymbol class.Chris Lattner2010-01-131-0/+5
| | | | llvm-svn: 93350
* Introduce Twine::toStringRef, a variant of toVector which avoids the copy if theBenjamin Kramer2010-01-131-2/+6
| | | | | | | twine can be represented as a single StringRef. Use the new methode to simplify some twine users. llvm-svn: 93317
* add new isSingleStringRef()/getSingleStringRef() methods to twine, Chris Lattner2010-01-131-0/+30
| | | | | | | | and use them to avoid a copy of a string in getNameWithPrefix in the common case. It seems like Value::setName and other places should use this as well? llvm-svn: 93301
* ugh, my last patch just sped up a method and changed all the clientsChris Lattner2010-01-131-0/+12
| | | | | | | | that I want to completely eliminate. Add fixme's so I remember this in the future, and add the missing helper that they should be upgraded to use instead. llvm-svn: 93300
* change Mangler::makeNameProper to return its result in a SmallVectorChris Lattner2010-01-132-3/+4
| | | | | | | | | | | | instead of returning it in an std::string. Based on this change: 1. Change TargetLoweringObjectFileCOFF::getCOFFSection to take a StringRef 2. Change a bunch of targets to call makeNameProper with a smallstring, making several of them *much* more efficient. 3. Rewrite Mangler::makeNameProper to not build names and then prepend prefixes, not use temporary std::strings, and to avoid other crimes. llvm-svn: 93298
* my mistake, Mangler::makeNameProper wants to take a twine, not a stringref!Chris Lattner2010-01-131-2/+2
| | | | llvm-svn: 93296
* change makeNameProper to take a stringref instead of std::string.Chris Lattner2010-01-131-1/+2
| | | | llvm-svn: 93295
* give StringRef a const_iterator member.Chris Lattner2010-01-131-9/+3
| | | | llvm-svn: 93294
* Fix a comment.Dale Johannesen2010-01-131-1/+1
| | | | llvm-svn: 93284
* Add a quick pass to optimize sign / zero extension instructions. For targets ↵Evan Cheng2010-01-132-10/+13
| | | | | | | | where the pre-extension values are available in the subreg of the result of the extension, replace the uses of the pre-extension value with the result + extract_subreg. For now, this pass is fairly conservative. It only perform the replacement when both the pre- and post- extension values are used in the block. It will miss cases where the post-extension values are live, but not used. llvm-svn: 93278
* Further progration of metadata operands. TheDale Johannesen2010-01-132-1/+7
| | | | | | | dumper doesn't really do what I want yet, but at least it doesn't crash now. llvm-svn: 93272
* use consistent tag kinds for ilist_traitsChris Lattner2010-01-121-1/+1
| | | | llvm-svn: 93259
* add a helper function.Chris Lattner2010-01-121-0/+8
| | | | llvm-svn: 93251
* Use Twine, instead of StringRef, for consistency.Devang Patel2010-01-121-3/+3
| | | | llvm-svn: 93249
* Use ilist_tratis to autoinsert and remove NamedMDNode from MDSymbolTable.Devang Patel2010-01-123-6/+6
| | | | llvm-svn: 93247
* Add MO_Metadata as an operand kind. Not used yet.Dale Johannesen2010-01-121-1/+18
| | | | llvm-svn: 93220
* Add TargetInstrInfo::isCoalescableInstr. It returns true if the specifiedEvan Cheng2010-01-121-0/+13
| | | | | | | | | instruction is copy like where the source and destination registers can overlap. This is to be used by the coalescable to coalesce the source and destination registers of instructions like X86::MOVSX64rr32. Apparently some crazy people believe the coalescer is too simple. llvm-svn: 93210
* Remove trailing white spaces in post dominators header fileTobias Grosser2010-01-111-6/+6
| | | | llvm-svn: 93195
* Add getNode() to post dominators.Tobias Grosser2010-01-111-0/+4
| | | | | | Implement the same interface as already available for dominators. llvm-svn: 93194
* Remove unused string functions.Benjamin Kramer2010-01-111-71/+0
| | | | llvm-svn: 93183
OpenPOWER on IntegriCloud