summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/AsmWriter.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Final step in the metadata API restructuring: move the Chris Lattner2009-12-291-2/+1
| | | | | | | | getMDKindID/getMDKindNames methods to LLVMContext (and add convenience methods to Module), eliminating MetadataContext. Move the state that it maintains out to LLVMContext. llvm-svn: 92259
* tidy up debug info comments, use ->isVoidTy() where reasonable.Chris Lattner2009-12-291-25/+25
| | | | llvm-svn: 92249
* This is a major cleanup of the instruction metadata interfaces thatChris Lattner2009-12-281-24/+19
| | | | | | | | | | | | | | | | | | | | | | I asked Devang to do back on Sep 27. Instead of going through the MetadataContext class with methods like getMD() and getMDs(), just ask the instruction directly for its metadata with getMetadata() and getAllMetadata(). This includes a variety of other fixes and improvements: previously all Value*'s were bloated because the HasMetadata bit was thrown into value, adding a 9th bit to a byte. Now this is properly sunk down to the Instruction class (the only place where it makes sense) and it will be folded away somewhere soon. This also fixes some confusion in getMDs and its clients about whether the returned list is indexed by the MDID or densely packed. This is now returned sorted and densely packed and the comments make this clear. This introduces a number of fixme's which I'll follow up on. llvm-svn: 92235
* rename getHandlerNames to getMDKindNames, simplify its interfaceChris Lattner2009-12-281-14/+6
| | | | | | and simplify all the clients that use it. llvm-svn: 92224
* change the strange MetadataContext::getMDs function to expose lessChris Lattner2009-12-281-2/+2
| | | | | | irrelevant internal implementation details to clients. llvm-svn: 92210
* Formalize MDNode's function-localness:Victor Hernandez2009-12-181-5/+4
| | | | | | | | | | | - an MDNode is designated as function-local when created, and continues to be even if its operands are modified not to refer to function-local IR - function-localness is designated via lowest bit in SubclassData - getLocalFunction() descends MDNode tree to see if it is consistently function-local Add verification of MDNodes to checks that MDNodes are consistently function-local. Update AsmWriter to use isFunctionLocal(). llvm-svn: 91708
* Add MSP430 interrupt calling conv. No functionality change yet.Anton Korobeynikov2009-12-071-0/+3
| | | | llvm-svn: 90738
* Avoid creating a metadata slot for all metadata that contains an instructionVictor Hernandez2009-12-041-6/+6
| | | | llvm-svn: 90581
* Fix crasher when N->getElement(n) is NULLVictor Hernandez2009-12-041-1/+1
| | | | llvm-svn: 90572
* Teach AsmWriter to write inline (not via a global metadata slot) metadata ↵Victor Hernandez2009-12-041-1/+25
| | | | | | that contains an instruction llvm-svn: 90512
* Special case FixedStackPseudoSourceValueVal as well. Do we really need to ↵Evan Cheng2009-11-161-1/+2
| | | | | | differentiate PseudoSourceValueVal from FixedStackPseudoSourceValueVal at this level? llvm-svn: 88902
* Remove extraneous commit.Eric Christopher2009-11-131-5/+0
| | | | llvm-svn: 88716
* Print out something, even if it's non-parseable later when we'veEric Christopher2009-11-131-2/+7
| | | | | | got ghost linkage. It's better than aborting. llvm-svn: 88715
* Revert 85678/85680. The decision is to stay with the current form of Chris Lattner2009-11-011-4/+1
| | | | | | | indirectbr, thus we don't need "blockaddr(@func, null)". Eliminate it for simplicity. llvm-svn: 85699
* Make blockaddress(@func, null) be valid, and make 'deleting a basic Chris Lattner2009-10-311-1/+4
| | | | | | | | | | | | block with a blockaddress still referring to it' replace the invalid blockaddress with a new blockaddress(@func, null) instead of a inttoptr(1). This changes the bitcode encoding format, and still needs codegen support (this should produce a non-zero value, referring to the entry block of the function would also be quite reasonable). llvm-svn: 85678
* Simplify this code and avoid an extra space character in the output.Dan Gohman2009-10-301-2/+1
| | | | llvm-svn: 85568
* asmprinter support for BlockAddress.Chris Lattner2009-10-281-0/+9
| | | | llvm-svn: 85367
* rename indbr -> indirectbr to appease the residents of #llvm.Chris Lattner2009-10-281-2/+2
| | | | llvm-svn: 85351
* add enough support for indirect branch for the feature test to passChris Lattner2009-10-271-1/+14
| | | | | | | (assembler,asmprinter, bc reader+writer) and document it. Codegen currently aborts on it. llvm-svn: 85274
* Type.h doesn't need to #include LLVMContext.hChris Lattner2009-10-271-0/+1
| | | | llvm-svn: 85254
* Remove AllocationInst. Since MallocInst went away, AllocaInst is the only ↵Victor Hernandez2009-10-231-1/+1
| | | | | | subclass of AllocationInst, so it no longer is necessary. llvm-svn: 84969
* Fix getMDs() interface such that it does not expose implementation details.Devang Patel2009-10-221-11/+14
| | | | llvm-svn: 84885
* Using TrackingVH instead of WeakVH or WeakMetadataVH.Devang Patel2009-10-221-5/+3
| | | | llvm-svn: 84884
* Fix getHandlerNames() interface. Now it populate clinet supplied small ↵Devang Patel2009-10-221-6/+7
| | | | | | vector with handler names. llvm-svn: 84820
* Rename msasm to alignstack per review.Dale Johannesen2009-10-211-2/+2
| | | | llvm-svn: 84795
* Do not use SmallVector to store MDNode elements.Devang Patel2009-10-211-9/+8
| | | | llvm-svn: 84784
* Add an "msasm" flag to inline asm as suggested in PR 5125.Dale Johannesen2009-10-131-0/+2
| | | | | | | A little ugliness is accepted to keep the binary file format compatible. No functional change yet. llvm-svn: 84020
* Do not assume that the module is set.Devang Patel2009-10-071-15/+18
| | | | llvm-svn: 83462
* Check for null MDNode element while printing comment.Devang Patel2009-09-301-1/+1
| | | | llvm-svn: 83172
* Print tag name for MDNodes that are used to encode debug info. Devang Patel2009-09-301-1/+29
| | | | llvm-svn: 83160
* Parse custom metadata attached with an instruction.Devang Patel2009-09-291-1/+1
| | | | llvm-svn: 83033
* s/class Metadata/class MetadataContext/gDevang Patel2009-09-281-7/+7
| | | | llvm-svn: 83019
* Do not hardcode metadata names.Devang Patel2009-09-281-4/+18
| | | | llvm-svn: 83010
* Remove dead code.Devang Patel2009-09-281-5/+1
| | | | llvm-svn: 82999
* Give MachineMemOperand an operator<<, factoring out code fromDan Gohman2009-09-231-1/+13
| | | | | | | | | | | | two different places for printing MachineMemOperands. Drop the virtual from Value::dump and instead give Value a protected virtual hook that can be overridden by subclasses to implement custom printing. This lets printing be more consistent, and simplifies printing of PseudoSourceValue values. llvm-svn: 82599
* Tabs -> spaces, and remove trailing whitespace.Daniel Dunbar2009-09-201-119/+119
| | | | llvm-svn: 82355
* Print debug info attached with an instruction.Devang Patel2009-09-161-1/+17
| | | | llvm-svn: 82075
* Remove some unused variables and methods warned about byDuncan Sands2009-09-061-2/+0
| | | | | | icc (#177, partial). Patch by Erick Tryzelaar. llvm-svn: 81106
* back out my recent commit (r80858), it seems to break self-hosting ↵Gabor Greif2009-09-031-4/+3
| | | | | | buildbot's stage 2 configure llvm-svn: 80871
* re-commit r66920 (which has been backed out in r66953) I may have more luck ↵Gabor Greif2009-09-031-3/+4
| | | | | | this time. I'll back out if needed... llvm-svn: 80858
* eliminate the std::ostream form of WriteAsOperand and update clients.Chris Lattner2009-08-231-16/+0
| | | | | | This also updates dominator related stuff. llvm-svn: 79825
* remove the std::ostream version of module and type printing.Chris Lattner2009-08-231-9/+0
| | | | llvm-svn: 79823
* eliminate the "Value" printing methods that print to a std::ostream.Chris Lattner2009-08-231-1/+2
| | | | | | This required converting a bunch of stuff off DOUT and other cleanups. llvm-svn: 79819
* Rename hasNoUnsignedOverflow and hasNoSignedOverflow to hasNoUnsignedWrapDan Gohman2009-08-201-2/+2
| | | | | | and hasNoSignedWrap, for consistency with the nuw and nsw properties. llvm-svn: 79539
* the MinPad argument to PadToColumn only really makes sense to be 1,Chris Lattner2009-08-171-3/+3
| | | | | | just remove the argument and replace it with 1. llvm-svn: 79246
* Fix printing of instructions with null operands.Dan Gohman2009-08-171-1/+1
| | | | llvm-svn: 79243
* Always print at least one space before adding a comment.Dan Gohman2009-08-171-3/+3
| | | | llvm-svn: 79242
* Make formatted_raw_ostream restore the buffer settings of theDan Gohman2009-08-131-10/+0
| | | | | | | underlying stream when it is finished, so that clients don't have to do this manually. llvm-svn: 78952
* Take the fast path for any named value and any GlobalValue, which doesn'tDan Gohman2009-08-131-1/+2
| | | | | | | | need TypePrinting despite being a subclass of Constant. This fixes compile-time problems especially visible on 403.gcc when -asm-verbose is enabled. llvm-svn: 78951
* Push LLVMContexts through the IntegerType APIs.Owen Anderson2009-08-131-7/+9
| | | | llvm-svn: 78948
OpenPOWER on IntegriCloud