Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Final step in the metadata API restructuring: move the | Chris Lattner | 2009-12-29 | 1 | -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 Lattner | 2009-12-29 | 1 | -25/+25 | |
| | | | | llvm-svn: 92249 | |||||
* | This is a major cleanup of the instruction metadata interfaces that | Chris Lattner | 2009-12-28 | 1 | -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 interface | Chris Lattner | 2009-12-28 | 1 | -14/+6 | |
| | | | | | | and simplify all the clients that use it. llvm-svn: 92224 | |||||
* | change the strange MetadataContext::getMDs function to expose less | Chris Lattner | 2009-12-28 | 1 | -2/+2 | |
| | | | | | | irrelevant internal implementation details to clients. llvm-svn: 92210 | |||||
* | Formalize MDNode's function-localness: | Victor Hernandez | 2009-12-18 | 1 | -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 Korobeynikov | 2009-12-07 | 1 | -0/+3 | |
| | | | | llvm-svn: 90738 | |||||
* | Avoid creating a metadata slot for all metadata that contains an instruction | Victor Hernandez | 2009-12-04 | 1 | -6/+6 | |
| | | | | llvm-svn: 90581 | |||||
* | Fix crasher when N->getElement(n) is NULL | Victor Hernandez | 2009-12-04 | 1 | -1/+1 | |
| | | | | llvm-svn: 90572 | |||||
* | Teach AsmWriter to write inline (not via a global metadata slot) metadata ↵ | Victor Hernandez | 2009-12-04 | 1 | -1/+25 | |
| | | | | | | that contains an instruction llvm-svn: 90512 | |||||
* | Special case FixedStackPseudoSourceValueVal as well. Do we really need to ↵ | Evan Cheng | 2009-11-16 | 1 | -1/+2 | |
| | | | | | | differentiate PseudoSourceValueVal from FixedStackPseudoSourceValueVal at this level? llvm-svn: 88902 | |||||
* | Remove extraneous commit. | Eric Christopher | 2009-11-13 | 1 | -5/+0 | |
| | | | | llvm-svn: 88716 | |||||
* | Print out something, even if it's non-parseable later when we've | Eric Christopher | 2009-11-13 | 1 | -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 Lattner | 2009-11-01 | 1 | -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 Lattner | 2009-10-31 | 1 | -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 Gohman | 2009-10-30 | 1 | -2/+1 | |
| | | | | llvm-svn: 85568 | |||||
* | asmprinter support for BlockAddress. | Chris Lattner | 2009-10-28 | 1 | -0/+9 | |
| | | | | llvm-svn: 85367 | |||||
* | rename indbr -> indirectbr to appease the residents of #llvm. | Chris Lattner | 2009-10-28 | 1 | -2/+2 | |
| | | | | llvm-svn: 85351 | |||||
* | add enough support for indirect branch for the feature test to pass | Chris Lattner | 2009-10-27 | 1 | -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.h | Chris Lattner | 2009-10-27 | 1 | -0/+1 | |
| | | | | llvm-svn: 85254 | |||||
* | Remove AllocationInst. Since MallocInst went away, AllocaInst is the only ↵ | Victor Hernandez | 2009-10-23 | 1 | -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 Patel | 2009-10-22 | 1 | -11/+14 | |
| | | | | llvm-svn: 84885 | |||||
* | Using TrackingVH instead of WeakVH or WeakMetadataVH. | Devang Patel | 2009-10-22 | 1 | -5/+3 | |
| | | | | llvm-svn: 84884 | |||||
* | Fix getHandlerNames() interface. Now it populate clinet supplied small ↵ | Devang Patel | 2009-10-22 | 1 | -6/+7 | |
| | | | | | | vector with handler names. llvm-svn: 84820 | |||||
* | Rename msasm to alignstack per review. | Dale Johannesen | 2009-10-21 | 1 | -2/+2 | |
| | | | | llvm-svn: 84795 | |||||
* | Do not use SmallVector to store MDNode elements. | Devang Patel | 2009-10-21 | 1 | -9/+8 | |
| | | | | llvm-svn: 84784 | |||||
* | Add an "msasm" flag to inline asm as suggested in PR 5125. | Dale Johannesen | 2009-10-13 | 1 | -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 Patel | 2009-10-07 | 1 | -15/+18 | |
| | | | | llvm-svn: 83462 | |||||
* | Check for null MDNode element while printing comment. | Devang Patel | 2009-09-30 | 1 | -1/+1 | |
| | | | | llvm-svn: 83172 | |||||
* | Print tag name for MDNodes that are used to encode debug info. | Devang Patel | 2009-09-30 | 1 | -1/+29 | |
| | | | | llvm-svn: 83160 | |||||
* | Parse custom metadata attached with an instruction. | Devang Patel | 2009-09-29 | 1 | -1/+1 | |
| | | | | llvm-svn: 83033 | |||||
* | s/class Metadata/class MetadataContext/g | Devang Patel | 2009-09-28 | 1 | -7/+7 | |
| | | | | llvm-svn: 83019 | |||||
* | Do not hardcode metadata names. | Devang Patel | 2009-09-28 | 1 | -4/+18 | |
| | | | | llvm-svn: 83010 | |||||
* | Remove dead code. | Devang Patel | 2009-09-28 | 1 | -5/+1 | |
| | | | | llvm-svn: 82999 | |||||
* | Give MachineMemOperand an operator<<, factoring out code from | Dan Gohman | 2009-09-23 | 1 | -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 Dunbar | 2009-09-20 | 1 | -119/+119 | |
| | | | | llvm-svn: 82355 | |||||
* | Print debug info attached with an instruction. | Devang Patel | 2009-09-16 | 1 | -1/+17 | |
| | | | | llvm-svn: 82075 | |||||
* | Remove some unused variables and methods warned about by | Duncan Sands | 2009-09-06 | 1 | -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 Greif | 2009-09-03 | 1 | -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 Greif | 2009-09-03 | 1 | -3/+4 | |
| | | | | | | this time. I'll back out if needed... llvm-svn: 80858 | |||||
* | eliminate the std::ostream form of WriteAsOperand and update clients. | Chris Lattner | 2009-08-23 | 1 | -16/+0 | |
| | | | | | | This also updates dominator related stuff. llvm-svn: 79825 | |||||
* | remove the std::ostream version of module and type printing. | Chris Lattner | 2009-08-23 | 1 | -9/+0 | |
| | | | | llvm-svn: 79823 | |||||
* | eliminate the "Value" printing methods that print to a std::ostream. | Chris Lattner | 2009-08-23 | 1 | -1/+2 | |
| | | | | | | This required converting a bunch of stuff off DOUT and other cleanups. llvm-svn: 79819 | |||||
* | Rename hasNoUnsignedOverflow and hasNoSignedOverflow to hasNoUnsignedWrap | Dan Gohman | 2009-08-20 | 1 | -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 Lattner | 2009-08-17 | 1 | -3/+3 | |
| | | | | | | just remove the argument and replace it with 1. llvm-svn: 79246 | |||||
* | Fix printing of instructions with null operands. | Dan Gohman | 2009-08-17 | 1 | -1/+1 | |
| | | | | llvm-svn: 79243 | |||||
* | Always print at least one space before adding a comment. | Dan Gohman | 2009-08-17 | 1 | -3/+3 | |
| | | | | llvm-svn: 79242 | |||||
* | Make formatted_raw_ostream restore the buffer settings of the | Dan Gohman | 2009-08-13 | 1 | -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't | Dan Gohman | 2009-08-13 | 1 | -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 Anderson | 2009-08-13 | 1 | -7/+9 | |
| | | | | llvm-svn: 78948 |