Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Clear FunctionLocalMDs in purgeFunction along with the rest of the | Dan Gohman | 2010-08-25 | 1 | -1/+1 |
| | | | | | | function-specific state. llvm-svn: 112058 | ||||
* | Fix whitespace. | Dan Gohman | 2010-08-25 | 1 | -1/+1 |
| | | | | llvm-svn: 112056 | ||||
* | Eliminate an unnecessary cast. | Dan Gohman | 2010-08-25 | 1 | -1/+1 |
| | | | | llvm-svn: 112055 | ||||
* | Add braces to fix dangling else. | Dan Gohman | 2010-08-24 | 1 | -2/+2 |
| | | | | llvm-svn: 111896 | ||||
* | Extend function-local metadata to be usable as attachments. | Dan Gohman | 2010-08-24 | 1 | -20/+77 |
| | | | | llvm-svn: 111895 | ||||
* | When we know we have an MDValue or MDString, call EnumerateMetadata | Dan Gohman | 2010-08-24 | 1 | -1/+1 |
| | | | | | | directly instead of going through EnumerateValue. llvm-svn: 111894 | ||||
* | Simplify this code. NamedMDNode operands are MDNodes. | Dan Gohman | 2010-08-24 | 1 | -2/+1 |
| | | | | llvm-svn: 111892 | ||||
* | Make NamedMDNode not be a subclass of Value, and simplify the interface | Dan Gohman | 2010-07-21 | 1 | -22/+7 |
| | | | | | | for creating and populating NamedMDNodes. llvm-svn: 109061 | ||||
* | Fix whitespace. | Dan Gohman | 2010-07-16 | 1 | -2/+2 |
| | | | | llvm-svn: 108569 | ||||
* | Tidy. | Bob Wilson | 2010-06-19 | 1 | -1/+1 |
| | | | | llvm-svn: 106383 | ||||
* | Speedup bitcode writer. Do not walk all values for all functions to emit ↵ | Devang Patel | 2010-06-02 | 1 | -4/+7 |
| | | | | | | function local metadata. In one testcase, probably worst case scenario, the 70x speed up is seen. llvm-svn: 105360 | ||||
* | Add special case bitcode support for DebugLoc. This avoids | Chris Lattner | 2010-04-03 | 1 | -1/+8 |
| | | | | | | | | | | | | having the bitcode writer materialize mdnodes for all the debug location tuples when writing out the bc file and stores the information in a more compact form. For example, the -O0 -g bc file for combine.c in 176.gcc shrinks from 739392 to 512096 bytes. This concludes my planned short-term debug info work. llvm-svn: 100261 | ||||
* | Make the side-numbering of instructions used by metadata (which is needed to | Nick Lewycky | 2010-02-25 | 1 | -2/+1 |
| | | | | | | | | | keep track of instructions that return void) per-function. This fixes PR5278. This breaks backwards compatibility with the metadata format. That's okay because we haven't released the metadata bitcode yet. llvm-svn: 97132 | ||||
* | There are two ways of checking for a given type, for example isa<PointerType>(T) | Duncan Sands | 2010-02-16 | 1 | -1/+1 |
| | | | | | | | and T->isPointerTy(). Convert most instances of the first form to the second form. Requested by Chris. llvm-svn: 96344 | ||||
* | Function-local metadata whose operands had been optimized to no longer refer ↵ | Victor Hernandez | 2010-02-06 | 1 | -2/+2 |
| | | | | | | to function-local IR were not getting written by BitcodeWriter; solution is for these metadata to be enumerated just like global metadata. llvm-svn: 95467 | ||||
* | Fix (and test) function-local metadata that occurs before the instruction ↵ | Victor Hernandez | 2010-02-04 | 1 | -4/+8 |
| | | | | | | that it refers to; fix is to not enumerate operands of function-local metadata until after all instructions have been enumerated llvm-svn: 95269 | ||||
* | Respect operator precedence (and silence a gcc 4.3 warning). | Benjamin Kramer | 2010-01-23 | 1 | -1/+1 |
| | | | | llvm-svn: 94304 | ||||
* | Remove MetadataBase class because it is not adding significant value. | Devang Patel | 2010-01-22 | 1 | -4/+5 |
| | | | | llvm-svn: 94243 | ||||
* | Simplify code that chooses when to enumerate function-local metadata operands | Victor Hernandez | 2010-01-14 | 1 | -26/+28 |
| | | | | llvm-svn: 93446 | ||||
* | Clean up unnecessary return and brackets | Victor Hernandez | 2010-01-14 | 1 | -3/+1 |
| | | | | llvm-svn: 93401 | ||||
* | Enumerate function-local metadata (and its types and operands) only during ↵ | Victor Hernandez | 2010-01-13 | 1 | -17/+31 |
| | | | | | | function-incorporation, global metadata continues to be enumerated during creation of ValueEnumerator llvm-svn: 93338 | ||||
* | NamedMDNode is never used so there is no need to enumerate it here. | Devang Patel | 2010-01-09 | 1 | -1/+1 |
| | | | | llvm-svn: 93039 | ||||
* | Derive NamedMDNode from Value. | Devang Patel | 2010-01-09 | 1 | -10/+22 |
| | | | | llvm-svn: 93032 | ||||
* | Use separate namespace for named metadata. | Devang Patel | 2010-01-07 | 1 | -2/+11 |
| | | | | 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/+2 |
| | | | | 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 | ||||
* | rename "elements" of metadata to "operands". "Elements" are | Chris Lattner | 2009-12-31 | 1 | -6/+6 |
| | | | | | | | 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 | ||||
* | This is a major cleanup of the instruction metadata interfaces that | Chris Lattner | 2009-12-28 | 1 | -9/+4 |
| | | | | | | | | | | | | | | | | | | | | | | 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 | ||||
* | 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 | ||||
* | eliminate the elem_* iterator stuff from NamedMDNode. | Chris Lattner | 2009-12-28 | 1 | -5/+2 |
| | | | | llvm-svn: 92208 | ||||
* | Revert 85678/85680. The decision is to stay with the current form of | Chris Lattner | 2009-11-01 | 1 | -5/+3 |
| | | | | | | | 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 | -3/+5 |
| | | | | | | | | | | | | 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 | -8/+36 |
| | | | | llvm-svn: 85376 | ||||
* | Type.h doesn't need to #include LLVMContext.h | Chris Lattner | 2009-10-27 | 1 | -0/+1 |
| | | | | llvm-svn: 85254 | ||||
* | Fix getMDs() interface such that it does not expose implementation details. | Devang Patel | 2009-10-22 | 1 | -5/+7 |
| | | | | llvm-svn: 84885 | ||||
* | Using TrackingVH instead of WeakVH or WeakMetadataVH. | Devang Patel | 2009-10-22 | 1 | -2/+1 |
| | | | | llvm-svn: 84884 | ||||
* | Do not use SmallVector to store MDNode elements. | Devang Patel | 2009-10-21 | 1 | -4/+3 |
| | | | | llvm-svn: 84784 | ||||
* | s/class Metadata/class MetadataContext/g | Devang Patel | 2009-09-28 | 1 | -3/+3 |
| | | | | llvm-svn: 83019 | ||||
* | Tabs -> spaces, and remove trailing whitespace. | Daniel Dunbar | 2009-09-20 | 1 | -40/+39 |
| | | | | llvm-svn: 82355 | ||||
* | Write and read metadata attachments. | Devang Patel | 2009-09-18 | 1 | -1/+22 |
| | | | | llvm-svn: 82259 | ||||
* | Push LLVMContexts through the IntegerType APIs. | Owen Anderson | 2009-08-13 | 1 | -3/+4 |
| | | | | llvm-svn: 78948 | ||||
* | Use separate ValueList for metadata. | Devang Patel | 2009-08-04 | 1 | -26/+55 |
| | | | | | | This fixes PR4666. llvm-svn: 78056 | ||||
* | Work around a dangling pointer dereference when enumerating NamedMDNodes. | Benjamin Kramer | 2009-07-31 | 1 | -0/+3 |
| | | | | llvm-svn: 77675 | ||||
* | Enumerate NamedMDNode elements first. | Devang Patel | 2009-07-30 | 1 | -4/+0 |
| | | | | llvm-svn: 77636 | ||||
* | Read and write NamedMDNode. | Devang Patel | 2009-07-29 | 1 | -0/+12 |
| | | | | llvm-svn: 77517 | ||||
* | 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 | ||||
* | Derive MDNode from MetadataBase instead of Constant. Emit MDNodes into ↵ | Devang Patel | 2009-07-23 | 1 | -13/+15 |
| | | | | | | METADATA_BLOCK in bitcode file. llvm-svn: 76834 | ||||
* | 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 |