Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | 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 | |||||
* | 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 | |||||
* | llvm_unreachable->llvm_unreachable(0), LLVM_UNREACHABLE->llvm_unreachable. | Torok Edwin | 2009-07-14 | 1 | -20/+20 | |
| | | | | | | | | | This adds location info for all llvm_unreachable calls (which is a macro now) in !NDEBUG builds. In NDEBUG builds location info and the message is off (it only prints "UREACHABLE executed"). llvm-svn: 75640 | |||||
* | assert(0) -> LLVM_UNREACHABLE. | Torok Edwin | 2009-07-11 | 1 | -20/+21 | |
| | | | | | | | | | Make llvm_unreachable take an optional string, thus moving the cerr<< out of line. LLVM_UNREACHABLE is now a simple wrapper that makes the message go away for NDEBUG builds. llvm-svn: 75379 | |||||
* | Remove the vicmp and vfcmp instructions. Because we never had a release with | Nick Lewycky | 2009-07-08 | 1 | -19/+3 | |
| | | | | | | | these instructions, no autoupgrade or backwards compatibility support is provided. llvm-svn: 74991 | |||||
* | Don't remove aggregate-typed module level constants before encoding functions | Nick Lewycky | 2009-06-12 | 1 | -10/+0 | |
| | | | | | | since functions may contain aggregate constants too. llvm-svn: 73220 | |||||
* | Split the Add, Sub, and Mul instruction opcodes into separate | Dan Gohman | 2009-06-04 | 1 | -3/+6 | |
| | | | | | | | | | | | | | | | integer and floating-point opcodes, introducing FAdd, FSub, and FMul. For now, the AsmParser, BitcodeReader, and IRBuilder all preserve backwards compatability, and the Core LLVM APIs preserve backwards compatibility for IR producers. Most front-ends won't need to change immediately. This implements the first step of the plan outlined here: http://nondot.org/sabre/LLVMNotes/IntegerOverflow.txt llvm-svn: 72897 | |||||
* | Give embedded metadata its own type instead of relying on EmptyStructTy. | Nick Lewycky | 2009-05-30 | 1 | -0/+1 | |
| | | | | llvm-svn: 72610 |