Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Make WriteConstants() more robust against stray values in ValueEnumerator's ↵ | Victor Hernandez | 2010-01-12 | 1 | -0/+5 | |
| | | | | | | ValueList llvm-svn: 93270 | |||||
* | Compute isFunctionLocal in MDNode ctor or via argument in new function ↵ | Victor Hernandez | 2010-01-10 | 1 | -1/+3 | |
| | | | | | | | | getWhenValsUnresolved(). Document PFS argument to ParseValID() and ConvertGlobalOrMetadataValIDToValue(). llvm-svn: 93108 | |||||
* | Use separate namespace for named metadata. | Devang Patel | 2010-01-07 | 1 | -4/+3 | |
| | | | | llvm-svn: 92931 | |||||
* | Allow null to be an element of NamedMDNode. e.g. !llvm.stuff = !{!0, !1, null} | Devang Patel | 2010-01-05 | 1 | -1/+1 | |
| | | | | llvm-svn: 92783 | |||||
* | rename "elements" of metadata to "operands". "Elements" are | Chris Lattner | 2009-12-31 | 1 | -8/+8 | |
| | | | | | | | things that occur in types. "operands" are things that occur in values. llvm-svn: 92322 | |||||
* | Final step in the metadata API restructuring: move the | Chris Lattner | 2009-12-29 | 1 | -4/+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 | |||||
* | This is a major cleanup of the instruction metadata interfaces that | Chris Lattner | 2009-12-28 | 1 | -21/+18 | |
| | | | | | | | | | | | | | | | | | | | | | | 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 | -21/+16 | |
| | | | | | | 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 | -1/+1 | |
| | | | | | | irrelevant internal implementation details to clients. llvm-svn: 92210 | |||||
* | Revert 85678/85680. The decision is to stay with the current form of | Chris Lattner | 2009-11-01 | 1 | -2/+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/+2 | |
| | | | | | | | | | | | | 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 | |||||
* | bitcode writer support for blockaddress. | Chris Lattner | 2009-10-28 | 1 | -0/+7 | |
| | | | | llvm-svn: 85376 | |||||
* | Previously, all operands to Constant were themselves constant. | Chris Lattner | 2009-10-28 | 1 | -3/+4 | |
| | | | | | | | | | In the new world order, BlockAddress can have a BasicBlock operand. This doesn't permute much, because if you have a ConstantExpr (or anything more specific than Constant) we still know the operand has to be a Constant. llvm-svn: 85375 | |||||
* | 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/+8 | |
| | | | | | | | (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 FreeInst. | Victor Hernandez | 2009-10-26 | 1 | -5/+0 | |
| | | | | | | | Remove LowerAllocations pass. Update some more passes to treate free calls just like they were treating FreeInst. llvm-svn: 85176 | |||||
* | Fix getMDs() interface such that it does not expose implementation details. | Devang Patel | 2009-10-22 | 1 | -4/+6 | |
| | | | | llvm-svn: 84885 | |||||
* | Using TrackingVH instead of WeakVH or WeakMetadataVH. | Devang Patel | 2009-10-22 | 1 | -7/+5 | |
| | | | | llvm-svn: 84884 | |||||
* | Fix getHandlerNames() interface. Now it populate clinet supplied small ↵ | Devang Patel | 2009-10-22 | 1 | -5/+7 | |
| | | | | | | vector with handler names. llvm-svn: 84820 | |||||
* | Rename msasm to alignstack per review. | Dale Johannesen | 2009-10-21 | 1 | -1/+1 | |
| | | | | llvm-svn: 84795 | |||||
* | simplify. | Chris Lattner | 2009-10-19 | 1 | -3/+1 | |
| | | | | llvm-svn: 84465 | |||||
* | Remove MallocInst from LLVM Instructions. | Victor Hernandez | 2009-10-17 | 1 | -7/+0 | |
| | | | | llvm-svn: 84299 | |||||
* | Add an "msasm" flag to inline asm as suggested in PR 5125. | Dale Johannesen | 2009-10-13 | 1 | -1/+2 | |
| | | | | | | | A little ugliness is accepted to keep the binary file format compatible. No functional change yet. llvm-svn: 84020 | |||||
* | Do not write empty METADATA_ATTACHMENT record. | Devang Patel | 2009-10-13 | 1 | -5/+7 | |
| | | | | llvm-svn: 84006 | |||||
* | strength reduce a ton of type equality tests to check the typeid (Through | Chris Lattner | 2009-10-05 | 1 | -5/+3 | |
| | | | | | | | | the new predicates I added) instead of going through a context and doing a pointer comparison. Besides being cheaper, this allows a smart compiler to turn the if sequence into a switch. llvm-svn: 83297 | |||||
* | s/class Metadata/class MetadataContext/g | Devang Patel | 2009-09-28 | 1 | -5/+5 | |
| | | | | llvm-svn: 83019 | |||||
* | Tabs -> spaces, and remove trailing whitespace. | Daniel Dunbar | 2009-09-20 | 1 | -137/+137 | |
| | | | | llvm-svn: 82355 | |||||
* | Write and read metadata attachments. | Devang Patel | 2009-09-18 | 1 | -2/+74 | |
| | | | | llvm-svn: 82259 | |||||
* | back out my recent commit (r80858), it seems to break self-hosting ↵ | Gabor Greif | 2009-09-03 | 1 | -2/+2 | |
| | | | | | | 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 | -2/+2 | |
| | | | | | | this time. I'll back out if needed... llvm-svn: 80858 | |||||
* | eliminate the std::ostream forms of the bitcode writing APIs. | Chris Lattner | 2009-08-23 | 1 | -11/+0 | |
| | | | | llvm-svn: 79840 | |||||
* | Rename hasNoUnsignedOverflow and hasNoSignedOverflow to hasNoUnsignedWrap | Dan Gohman | 2009-08-20 | 1 | -4/+4 | |
| | | | | | | and hasNoSignedWrap, for consistency with the nuw and nsw properties. llvm-svn: 79539 | |||||
* | Push LLVMContexts through the IntegerType APIs. | Owen Anderson | 2009-08-13 | 1 | -5/+7 | |
| | | | | llvm-svn: 78948 | |||||
* | revert r78048, it isn't worth using assertingvh here. | Chris Lattner | 2009-08-04 | 1 | -1/+1 | |
| | | | | llvm-svn: 78119 | |||||
* | Use separate ValueList for metadata. | Devang Patel | 2009-08-04 | 1 | -3/+1 | |
| | | | | | | This fixes PR4666. llvm-svn: 78056 | |||||
* | Revert recent bitcode writer patches. | Devang Patel | 2009-08-04 | 1 | -84/+94 | |
| | | | | llvm-svn: 78053 | |||||
* | switch ValueMap to using AssertingVH. This is an old patch I had laying | Chris Lattner | 2009-08-04 | 1 | -1/+1 | |
| | | | | | | around in a tree I forgot about. llvm-svn: 78048 | |||||
* | Remove dead code. | Devang Patel | 2009-08-04 | 1 | -2/+0 | |
| | | | | llvm-svn: 78035 | |||||
* | Fix MDString Abbrev setup. | Devang Patel | 2009-08-04 | 1 | -4/+2 | |
| | | | | llvm-svn: 78034 | |||||
* | Constants and Metadata share ValueList. This means they must be emitted ↵ | Devang Patel | 2009-08-04 | 1 | -91/+85 | |
| | | | | | | interleaved (using appropriate BLOCK_IDs) otherwise ValuePtrs index gets out of sync. llvm-svn: 78033 | |||||
* | Do not use abbrev while writing NamedMDNode name. | Devang Patel | 2009-07-30 | 1 | -9/+4 | |
| | | | | llvm-svn: 77637 | |||||
* | Read and write NamedMDNode. | Devang Patel | 2009-07-29 | 1 | -1/+29 | |
| | | | | llvm-svn: 77517 | |||||
* | Refactor. Fix indentation. | Devang Patel | 2009-07-29 | 1 | -38/+44 | |
| | | | | llvm-svn: 77482 | |||||
* | Rename MDNode.h header. It defines MDnode and other metadata classes. | Devang Patel | 2009-07-28 | 1 | -1/+1 | |
| | | | | | | New name is Metadata.h. llvm-svn: 77370 | |||||
* | Add a new keyword 'inbounds' for use with getelementptr. See the | Dan Gohman | 2009-07-27 | 1 | -0/+4 | |
| | | | | | | LangRef.html changes for details. llvm-svn: 77259 | |||||
* | MDString | Devang Patel | 2009-07-23 | 1 | -1/+1 | |
| | | | | | | | - Rename member function size(). New name is length(). - Store string beginning and length. Earlier it used to store string end. llvm-svn: 76841 | |||||
* | Derive MDNode from MetadataBase instead of Constant. Emit MDNodes into ↵ | Devang Patel | 2009-07-23 | 1 | -20/+26 | |
| | | | | | | METADATA_BLOCK in bitcode file. llvm-svn: 76834 | |||||
* | Fix indentation. | Devang Patel | 2009-07-22 | 1 | -6/+6 | |
| | | | | llvm-svn: 76787 | |||||
* | Introduce MetadataBase, a base class for MDString and MDNode. | Devang Patel | 2009-07-22 | 1 | -26/+42 | |
| | | | | | | | Derive MDString directly from MetadataBase. Introduce new bitcode block to hold metadata. llvm-svn: 76759 |