Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 | ||||
* | Enumerate NamedMDNode elements first. | Devang Patel | 2009-07-30 | 1 | -4/+0 |
| | | | | llvm-svn: 77636 | ||||
* | Read and write NamedMDNode. | Devang Patel | 2009-07-29 | 2 | -1/+41 |
| | | | | 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 | 2 | -2/+2 |
| | | | | | | 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 | 2 | -33/+41 |
| | | | | | | METADATA_BLOCK in bitcode file. llvm-svn: 76834 | ||||
* | Fix indentation. | Devang Patel | 2009-07-22 | 1 | -6/+6 |
| | | | | llvm-svn: 76787 | ||||
* | Use isa<> instead of dyn_cast<>. | Devang Patel | 2009-07-22 | 1 | -1/+1 |
| | | | | llvm-svn: 76767 | ||||
* | Fixed build warning. No functionality change. | Sanjiv Gupta | 2009-07-22 | 1 | -1/+1 |
| | | | | llvm-svn: 76761 | ||||
* | Introduce MetadataBase, a base class for MDString and MDNode. | Devang Patel | 2009-07-22 | 2 | -29/+49 |
| | | | | | | | Derive MDString directly from MetadataBase. Introduce new bitcode block to hold metadata. llvm-svn: 76759 | ||||
* | Assembly and Bitcode support for unsigned/signed overflow flags and | Dan Gohman | 2009-07-20 | 1 | -0/+38 |
| | | | | | | exact sdiv flags. llvm-svn: 76475 | ||||
* | Add plumbing for the `linker_private' linkage type. This type is meant for | Bill Wendling | 2009-07-20 | 1 | -13/+14 |
| | | | | | | | | | "private" symbols which the assember shouldn't strip, but which the linker may remove after evaluation. This is mostly useful for Objective-C metadata. This is plumbing, so we don't have a use of it yet. More to come, etc. llvm-svn: 76385 |