Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Derive NamedMDNode from Value. | Devang Patel | 2010-01-09 | 2 | -10/+24 | |
| | | | | llvm-svn: 93032 | |||||
* | Use separate namespace for named metadata. | Devang Patel | 2010-01-07 | 3 | -6/+16 | |
| | | | | llvm-svn: 92931 | |||||
* | Allow null to be an element of NamedMDNode. e.g. !llvm.stuff = !{!0, !1, null} | Devang Patel | 2010-01-05 | 2 | -2/+3 | |
| | | | | llvm-svn: 92783 | |||||
* | Avoid going through the LLVMContext for type equality where it's safe to ↵ | Benjamin Kramer | 2010-01-05 | 1 | -1/+1 | |
| | | | | | | dereference the type pointer. llvm-svn: 92726 | |||||
* | Remove derelict serialization code. | Ted Kremenek | 2009-12-31 | 4 | -170/+0 | |
| | | | | llvm-svn: 92374 | |||||
* | rename "elements" of metadata to "operands". "Elements" are | Chris Lattner | 2009-12-31 | 2 | -14/+14 | |
| | | | | | | | things that occur in types. "operands" are things that occur in values. llvm-svn: 92322 | |||||
* | tidy | Chris Lattner | 2009-12-31 | 1 | -3/+4 | |
| | | | | llvm-svn: 92320 | |||||
* | 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 | 2 | -30/+22 | |
| | | | | | | | | | | | | | | | | | | | | | | 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 | 2 | -2/+2 | |
| | | | | | | irrelevant internal implementation details to clients. llvm-svn: 92210 | |||||
* | eliminate the elem_* iterator stuff from NamedMDNode. | Chris Lattner | 2009-12-28 | 1 | -5/+2 | |
| | | | | llvm-svn: 92208 | |||||
* | Change errs() to dbgs(). | David Greene | 2009-12-24 | 1 | -1/+1 | |
| | | | | llvm-svn: 92092 | |||||
* | Revert 85678/85680. The decision is to stay with the current form of | Chris Lattner | 2009-11-01 | 2 | -7/+4 | |
| | | | | | | | 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 | 2 | -4/+7 | |
| | | | | | | | | | | | | 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 | 3 | -8/+52 | |
| | | | | 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 | 2 | -0/+2 | |
| | | | | 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 | 2 | -9/+13 | |
| | | | | llvm-svn: 84885 | |||||
* | Using TrackingVH instead of WeakVH or WeakMetadataVH. | Devang Patel | 2009-10-22 | 2 | -9/+6 | |
| | | | | 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 | |||||
* | Do not use SmallVector to store MDNode elements. | Devang Patel | 2009-10-21 | 1 | -4/+3 | |
| | | | | llvm-svn: 84784 | |||||
* | 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 | 2 | -8/+8 | |
| | | | | llvm-svn: 83019 | |||||
* | Tabs -> spaces, and remove trailing whitespace. | Daniel Dunbar | 2009-09-20 | 2 | -177/+176 | |
| | | | | llvm-svn: 82355 | |||||
* | Write and read metadata attachments. | Devang Patel | 2009-09-18 | 3 | -5/+106 | |
| | | | | 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 | |||||
* | Make LLVM command-line tools overwrite their output files without -f. | Dan Gohman | 2009-08-25 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | | This is conventional command-line tool behavior. -f now just means "enable binary output on terminals". Add a -f option to llvm-extract and llvm-link, for consistency. Remove F_Force from raw_fd_ostream and enable overwriting and truncating by default. Introduce an F_Excl flag to permit users to enable a failure when the file already exists. This flag is currently unused. Update Makefiles and documentation accordingly. llvm-svn: 79990 | |||||
* | remove some uses of llvm/Support/Streams.h | Chris Lattner | 2009-08-23 | 1 | -6/+3 | |
| | | | | llvm-svn: 79842 | |||||
* | eliminate the std::ostream forms of the bitcode writing APIs. | Chris Lattner | 2009-08-23 | 3 | -49/+11 | |
| | | | | 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 | 2 | -8/+11 | |
| | | | | 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 | 3 | -36/+64 | |
| | | | | | | 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 | |||||
* | Work around a dangling pointer dereference when enumerating NamedMDNodes. | Benjamin Kramer | 2009-07-31 | 1 | -0/+3 | |
| | | | | llvm-svn: 77675 | |||||
* | Do not use abbrev while writing NamedMDNode name. | Devang Patel | 2009-07-30 | 1 | -9/+4 | |
| | | | | llvm-svn: 77637 |