Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | IR: Fix MDType fields from unsigned to uint64_t | Duncan P. N. Exon Smith | 2015-02-19 | 1 | -8/+8 | |
| | | | | | | | | | When trying to match the current schema with the new debug info hierarchy, I downgraded `SizeInBits`, `AlignInBits` and `OffsetInBits` to 32-bits (oops!). Caught this while testing my upgrade script to move the hierarchy into place. Bump it back up to 64-bits and update tests. llvm-svn: 229933 | |||||
* | IR: Drop scope from MDTemplateParameter | Duncan P. N. Exon Smith | 2015-02-19 | 1 | -10/+6 | |
| | | | | | | | | | | Follow-up to r229740, which removed `DITemplate*::getContext()` after my upgrade script revealed that scopes are always `nullptr` for template parameters. This is the other shoe: drop `scope:` from `MDTemplateParameter` and its two subclasses. (Note: a bitcode upgrade would be pointless, since the hierarchy hasn't been moved into place.) llvm-svn: 229791 | |||||
* | IR: Allow MDSubrange to have 'count: -1' | Duncan P. N. Exon Smith | 2015-02-18 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | It turns out that `count: -1` is a special value indicating an empty array, such as `Values` in: struct T { unsigned Count; int Values[]; }; Handle it. llvm-svn: 229769 | |||||
* | IR: Swap order of name and value in MDEnum | Duncan P. N. Exon Smith | 2015-02-18 | 1 | -2/+2 | |
| | | | | | | | | | Put the name before the value in assembly for `MDEnum`. While working on the testcase upgrade script for the new hierarchy, I noticed that it "looks nicer" to have the name first, since it lines the names up in the (somewhat typical) case that they have a common prefix. llvm-svn: 229747 | |||||
* | AsmParser: extractvalue requires at least one index operand | David Majnemer | 2015-02-16 | 1 | -0/+1 | |
| | | | | llvm-svn: 229365 | |||||
* | AsmParser: Make sure GlobalVariables have sane types | David Majnemer | 2015-02-16 | 1 | -1/+1 | |
| | | | | llvm-svn: 229364 | |||||
* | AsmParser: Reject alloca with function type | David Majnemer | 2015-02-16 | 1 | -4/+4 | |
| | | | | llvm-svn: 229363 | |||||
* | AsmWriter/Bitcode: MDImportedEntity | Duncan P. N. Exon Smith | 2015-02-13 | 1 | -1/+16 | |
| | | | | llvm-svn: 229025 | |||||
* | AsmWriter/Bitcode: MDObjCProperty | Duncan P. N. Exon Smith | 2015-02-13 | 1 | -1/+19 | |
| | | | | llvm-svn: 229024 | |||||
* | AsmWriter/Bitcode: MDExpression | Duncan P. N. Exon Smith | 2015-02-13 | 3 | -5/+42 | |
| | | | | llvm-svn: 229023 | |||||
* | AsmWriter/Bitcode: MDLocalVariable | Duncan P. N. Exon Smith | 2015-02-13 | 1 | -1/+22 | |
| | | | | llvm-svn: 229022 | |||||
* | AsmWriter/Bitcode: MDGlobalVariable | Duncan P. N. Exon Smith | 2015-02-13 | 1 | -1/+25 | |
| | | | | llvm-svn: 229020 | |||||
* | AsmWriter/Bitcode: MDTemplate{Type,Value}Parameter | Duncan P. N. Exon Smith | 2015-02-13 | 1 | -2/+31 | |
| | | | | llvm-svn: 229019 | |||||
* | AsmWriter/Bitcode: MDNamespace | Duncan P. N. Exon Smith | 2015-02-13 | 1 | -1/+14 | |
| | | | | llvm-svn: 229018 | |||||
* | AsmWriter/Bitcode: MDLexicalBlockFile | Duncan P. N. Exon Smith | 2015-02-13 | 1 | -1/+13 | |
| | | | | llvm-svn: 229017 | |||||
* | AsmWriter/Bitcode: MDLexicalBlock | Duncan P. N. Exon Smith | 2015-02-13 | 1 | -1/+14 | |
| | | | | llvm-svn: 229016 | |||||
* | AsmWriter: MDSubprogram: Recognize DW_VIRTUALITY in 'virtuality' | Duncan P. N. Exon Smith | 2015-02-13 | 3 | -2/+27 | |
| | | | | llvm-svn: 229015 | |||||
* | AsmWriter/Bitcode: MDSubprogram | Duncan P. N. Exon Smith | 2015-02-13 | 2 | -5/+62 | |
| | | | | llvm-svn: 229014 | |||||
* | AsmWriter/Bitcode: MDCompileUnit | Duncan P. N. Exon Smith | 2015-02-13 | 1 | -1/+31 | |
| | | | | llvm-svn: 229013 | |||||
* | AsmWriter/Bitcode: MDSubroutineType | Duncan P. N. Exon Smith | 2015-02-13 | 1 | -1/+8 | |
| | | | | llvm-svn: 229011 | |||||
* | AsmWriter: MDCompositeType: Recognize DW_LANG in 'runtimeLang' | Duncan P. N. Exon Smith | 2015-02-13 | 3 | -1/+43 | |
| | | | | llvm-svn: 229010 | |||||
* | AsmWriter/Bitcode: MDDerivedType and MDCompositeType | Duncan P. N. Exon Smith | 2015-02-13 | 1 | -2/+51 | |
| | | | | llvm-svn: 229009 | |||||
* | AsmWriter/Bitcode: MDFile | Duncan P. N. Exon Smith | 2015-02-13 | 1 | -1/+12 | |
| | | | | llvm-svn: 229007 | |||||
* | AsmWriter: MDBasicType: Recognize DW_ATE in 'encoding' | Duncan P. N. Exon Smith | 2015-02-13 | 3 | -6/+33 | |
| | | | | llvm-svn: 229006 | |||||
* | AsmWriter/Bitcode: MDBasicType | Duncan P. N. Exon Smith | 2015-02-13 | 1 | -1/+15 | |
| | | | | llvm-svn: 229005 | |||||
* | AsmWriter/Bitcode: MDEnumerator | Duncan P. N. Exon Smith | 2015-02-13 | 1 | -1/+11 | |
| | | | | llvm-svn: 229004 | |||||
* | AsmWriter/Bitcode: MDSubrange | Duncan P. N. Exon Smith | 2015-02-13 | 1 | -1/+43 | |
| | | | | llvm-svn: 229003 | |||||
* | AsmParser: Validate alloca's type | David Majnemer | 2015-02-11 | 1 | -0/+3 | |
| | | | | | | An alloca's type should be weird things like metadata. llvm-svn: 228820 | |||||
* | AsmParser: Don't crash when insertvalue has bad operands | David Majnemer | 2015-02-11 | 1 | -1/+6 | |
| | | | | llvm-svn: 228813 | |||||
* | AsmParser: Switch some vectors to maps | David Majnemer | 2015-02-11 | 2 | -21/+12 | |
| | | | | | | This speeds up parsing .ll files with metadata nodes with large IDs. llvm-svn: 228812 | |||||
* | Use ADDITIONAL_HEADER_DIRS in all LLVM CMake projects. | Zachary Turner | 2015-02-11 | 1 | -0/+3 | |
| | | | | | | | | | | This allows IDEs to recognize the entire set of header files for each of the core LLVM projects. Differential Revision: http://reviews.llvm.org/D7526 Reviewed By: Chris Bieneman llvm-svn: 228798 | |||||
* | AsmParser: Add stubs for specialized MDNodes, NFC | Duncan P. N. Exon Smith | 2015-02-10 | 2 | -7/+65 | |
| | | | | | | Well, the exact error from the failed parse will change, but... llvm-svn: 228644 | |||||
* | IR: Allow 32-bits for lines in debug location | Duncan P. N. Exon Smith | 2015-02-06 | 1 | -1/+1 | |
| | | | | | | | | | | | | Remove unnecessary restriction of 24-bits for line numbers in `MDLocation`. The rest of the debug info schema (with the exception of local variables) uses 32-bits for line numbers. As I introduce the specialized nodes, it makes sense to canonicalize on one size or the other. llvm-svn: 228455 | |||||
* | AsmParser: Use DW_TAG_hi_user instead of magic constant, NFC | Duncan P. N. Exon Smith | 2015-02-06 | 1 | -1/+1 | |
| | | | | llvm-svn: 228448 | |||||
* | AsmParser: Split out LineField, NFC | Duncan P. N. Exon Smith | 2015-02-04 | 1 | -2/+17 | |
| | | | | | | | Split out `LineField`, which restricts the legal line numbers. This will make it easier to be consistent between different node parsers. llvm-svn: 228226 | |||||
* | Fix GCC error caused by r228211 | Duncan P. N. Exon Smith | 2015-02-04 | 1 | -0/+4 | |
| | | | | llvm-svn: 228213 | |||||
* | AsmParser: Move MDField details to source file, NFC | Duncan P. N. Exon Smith | 2015-02-04 | 2 | -38/+44 | |
| | | | | | | | | Move all the types of `MDField` to an anonymous namespace in the source file. This also eliminates the duplication of `ParseMDField()` declarations in the header for each new field type. llvm-svn: 228211 | |||||
* | AsmParser: Simplify assertion, NFC | Duncan P. N. Exon Smith | 2015-02-04 | 1 | -1/+1 | |
| | | | | llvm-svn: 228209 | |||||
* | AsmParser: Remove dead code, NFC | Duncan P. N. Exon Smith | 2015-02-04 | 1 | -4/+0 | |
| | | | | | | This condition is checked in the generic `ParseMDField()`. llvm-svn: 228208 | |||||
* | AsmParser: Simplify MDUnsignedField | Duncan P. N. Exon Smith | 2015-02-04 | 2 | -17/+14 | |
| | | | | | | We only need `uint64_t` for storage. llvm-svn: 228205 | |||||
* | AsmParser: Recognize DW_TAG_* constants | Duncan P. N. Exon Smith | 2015-02-03 | 4 | -1/+35 | |
| | | | | | | | Recognize `DW_TAG_` constants in assembly, and output it by default for `GenericDebugNode`. llvm-svn: 228042 | |||||
* | IR: Assembly and bitcode for GenericDebugNode | Duncan P. N. Exon Smith | 2015-02-03 | 2 | -2/+48 | |
| | | | | llvm-svn: 228041 | |||||
* | IR: Split out DebugInfoMetadata.h, NFC | Duncan P. N. Exon Smith | 2015-02-02 | 1 | -0/+1 | |
| | | | | | | | | | Move debug-info-centred `Metadata` subclasses into their own header/source file. A couple of private template functions are needed from both `Metadata.cpp` and `DebugInfoMetadata.cpp`, so I've moved them to `lib/IR/MetadataImpl.h`. llvm-svn: 227835 | |||||
* | Remove unused tokens in the ll lexer. | Sean Silva | 2015-01-29 | 2 | -3/+0 | |
| | | | | | | Patch by Robin Eklind! llvm-svn: 227442 | |||||
* | AsmParser: PARSE_MD_FIELD() => ParseMDField(), NFC | Duncan P. N. Exon Smith | 2015-01-20 | 2 | -13/+13 | |
| | | | | | | Extract most of `PARSE_MD_FIELD()` into a function. llvm-svn: 226539 | |||||
* | AsmParser: Refactor duplicate code, NFC | Duncan P. N. Exon Smith | 2015-01-20 | 1 | -8/+4 | |
| | | | | llvm-svn: 226538 | |||||
* | AsmParser: Abstract more of MDLocation parser, NFC | Duncan P. N. Exon Smith | 2015-01-19 | 1 | -16/+27 | |
| | | | | llvm-svn: 226527 | |||||
* | AsmParser: Split up ParseMDFieldsImpl(), NFC | Duncan P. N. Exon Smith | 2015-01-19 | 2 | -10/+17 | |
| | | | | llvm-svn: 226526 | |||||
* | AsmParser: Fix error location for missing fields | Duncan P. N. Exon Smith | 2015-01-19 | 2 | -10/+13 | |
| | | | | llvm-svn: 226524 | |||||
* | IR: Merge UniquableMDNode back into MDNode, NFC | Duncan P. N. Exon Smith | 2015-01-19 | 1 | -2/+2 | |
| | | | | | | | | | As pointed out in r226501, the distinction between `MDNode` and `UniquableMDNode` is confusing. When we need subclasses of `MDNode` that don't use all its functionality it might make sense to break it apart again, but until then this makes the code clearer. llvm-svn: 226520 |