summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/CodeGen/DIEHashTest.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [cleanup] Re-sort all the #include lines in LLVM usingChandler Carruth2015-01-141-1/+1
| | | | | | | | | | | utils/sort_includes.py. I clearly haven't done this in a while, so more changed than usual. This even uncovered a missing include from the InstrProf library that I've added. No functionality changed here, just mechanical cleanup of the include order. llvm-svn: 225974
* Make DIE.h a public CodeGen header.Frederic Riss2015-01-051-1/+1
| | | | | | | | | | | | | | dsymutil would like to use all the AsmPrinter/MCStreamer infrastructure to stream out the DWARF. In order to do so, it will reuse the DIE object and so this header needs to be public. The interface exposed here has some corners that cannot be used without a DwarfDebug object, but clients that want to stream Dwarf can just avoid these. Differential Revision: http://reviews.llvm.org/D6695 llvm-svn: 225208
* DIE: Pass ownership of children via std::unique_ptr rather than raw pointer.David Blaikie2014-04-251-62/+64
| | | | | | | | | | | This should reduce the chance of memory leaks like those fixed in r207240. There's still some unclear ownership of DIEs happening in DwarfDebug. Pushing unique_ptr and references through more APIs should help expose the cases where ownership is a bit fuzzy. llvm-svn: 207263
* DIEEntry: Refer to the specified DIE via reference rather than pointer.David Blaikie2014-04-251-29/+29
| | | | | | | Makes some more cases (the unit tests, specifically), lexically compatible with a change to unique_ptr. llvm-svn: 207261
* PR19554: Fix some memory leaks in DIEHashTest.cppDavid Blaikie2014-04-251-11/+11
| | | | llvm-svn: 207240
* Add support for hashing attributes with DW_FORM_block. This requiredEric Christopher2014-02-201-0/+55
| | | | | | | | | | | | | passing down an AsmPrinter instance so we could compute the size of the block which could be target specific. All of the test cases in the unittest don't have any target specific data so we can use a NULL AsmPrinter there. This also depends upon block data being added as integers. We can now hash the entire fission-cu.ll compile unit so turn the flag on there with the hash value. llvm-svn: 201752
* This tests DW_FORM_sdata, not DW_FORM_block. Make the test say so.Eric Christopher2014-02-201-1/+1
| | | | llvm-svn: 201749
* Fix commit thinkos from splitting out patches.Eric Christopher2014-02-201-3/+1
| | | | llvm-svn: 201748
* Add support for hashing DW_FORM_sdata and a small testcase.Eric Christopher2014-02-201-0/+47
| | | | llvm-svn: 201747
* Format.Eric Christopher2014-02-201-4/+8
| | | | llvm-svn: 201746
* Add support for DW_FORM_flag and DW_FORM_flag_present to the DIE hashingEric Christopher2014-01-311-0/+31
| | | | | | | | algorithm. Sink the 'A' + Attribute hash into each form so we don't have to check valid forms before deciding whether or not we're going to hash which will let the default be to return without doing anything. llvm-svn: 200571
* Fix name of nested type in comment to match code.Eric Christopher2014-01-311-1/+1
| | | | llvm-svn: 200570
* Re-sort all of the includes with ./utils/sort_includes.py so thatChandler Carruth2014-01-071-1/+1
| | | | | | | | | | subsequent changes are easier to review. About to fix some layering issues, and wanted to separate out the necessary churn. Also comment and sink the include of "Windows.h" in three .inc files to match the usage in Memory.inc. llvm-svn: 198685
* DIEHash: Summary hashing of member functionsDavid Blaikie2013-10-251-0/+18
| | | | llvm-svn: 193432
* DIEHash: Summary hashing of nested typesDavid Blaikie2013-10-251-0/+19
| | | | llvm-svn: 193427
* DIEHash: Const correct and use references where non-null/non-rebound.David Blaikie2013-10-241-16/+16
| | | | llvm-svn: 193363
* DIEHash: Do not use shallow type hashing for unnamed typesDavid Blaikie2013-10-241-0/+35
| | | | llvm-svn: 193361
* DWARF type hashing: pointers to membersDavid Blaikie2013-10-221-0/+178
| | | | | | | | | Includes a test case/FIXME demonstrating a bug/limitation in pointer to member hashing. To be honest I'm not sure why we don't just always use summary hashing for referenced types... but perhaps I'm missing something. llvm-svn: 193175
* DWARF Type Hashing: Include reference and rvalue reference type in the ↵David Blaikie2013-10-211-0/+66
| | | | | | | | declarable summary hashing path More support for 7.25 Part 5. llvm-svn: 193129
* DWARF type hashing: begin implementing Step 5, summary hashing in declarable ↵David Blaikie2013-10-211-6/+35
| | | | | | | | | contexts There are several other tag types that need similar handling but to ensure test coverage they'll be coming incrementally. llvm-svn: 193126
* DIEHashTest: Correct the order of operands to the TEST macroDavid Blaikie2013-10-211-7/+7
| | | | | | And add the 'Test' suffix so the test case name matches the file name. llvm-svn: 193119
* DWARF type hashing: Handle multiple (including recursive) references to the ↵David Blaikie2013-10-211-1/+58
| | | | | | | | | | same type This uses a map, keeping the type DIE numbering separate from the DIEs themselves - alternatively we could do things the way GCC does if we want to add an integer to the DIE type to record the numbering there. llvm-svn: 193105
* DIEHash: Support for simple (non-recursive, non-reused) type referencesDavid Blaikie2013-10-171-7/+29
| | | | llvm-svn: 192924
* DIEHash: Include the type's context in the type hash.David Blaikie2013-10-171-7/+56
| | | | llvm-svn: 192856
* DIEHash: Use DW_FORM_sdata for integers, per spec.David Blaikie2013-10-161-1/+17
| | | | | | | This allows us to produce the same hash as GCC for at least some simple examples. llvm-svn: 192855
* Invert arguments to ASSERT_EQ to match gtest diagnostic printingDavid Blaikie2013-10-161-1/+1
| | | | | | | | GTest assumes the left hand side of the assert is the expectation and the right hand side is the test result. It's easier to read gtest failures when these things are ordered correctly. llvm-svn: 192854
* DIEHash: Include the trailing zero byte after the children of a DIEDavid Blaikie2013-10-161-1/+1
| | | | llvm-svn: 192836
* Use ASSERT_EQ rather than ASSERT_TRUE for better unit test failures.David Blaikie2013-10-151-3/+3
| | | | | | | Also minor using namespace move so it's not hard-up against the function definition and outside the namespace as is usual. llvm-svn: 192744
* Plug a memory leak in a unit test. Stack allocation is sufficient here.Benjamin Kramer2013-09-291-5/+4
| | | | llvm-svn: 191638
* It's a very large constant. Say so.Eric Christopher2013-09-041-1/+1
| | | | llvm-svn: 189899
* Add a hashing routine that handles hashing types. Add a test forEric Christopher2013-09-031-0/+29
hashing the contents of DW_FORM_data1 on top of a type with attributes. llvm-svn: 189862
OpenPOWER on IntegriCloud