summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/VMCore/MetadataTest.cpp
Commit message (Collapse)AuthorAgeFilesLines
* I noticed in passing that the Metadata getIfExists method was creating a newDuncan Sands2012-03-311-0/+7
| | | | | | node and returning it if one didn't exist. llvm-svn: 153798
* Fix C++0x narrowing errors when char is unsigned.Jeffrey Yasskin2011-08-301-1/+1
| | | | | | | In the case of EDInstInfo, this would actually cause a bug when -1 became 255 and was then compared >=0 in llvm-mc/Disassembler.cpp. llvm-svn: 138825
* PR9214: Convert Metadata API to use ArrayRef.Jay Foad2011-04-211-6/+6
| | | | llvm-svn: 129932
* Make NamedMDNode not be a subclass of Value, and simplify the interfaceDan Gohman2010-07-211-3/+4
| | | | | | for creating and populating NamedMDNodes. llvm-svn: 109061
* Remove a memory leak from MetadataTest.Jeffrey Yasskin2010-03-131-2/+2
| | | | | Tested: valgrind --leak-check=full unittests/VMCore/Debug/VMCoreTests llvm-svn: 98412
* Stop leaking MDStrings.Jeffrey Yasskin2010-03-041-11/+18
| | | | llvm-svn: 97763
* NamedMDNode is a collection MDNodes.Devang Patel2010-01-051-1/+1
| | | | llvm-svn: 92761
* don't unittest mdnode printing, we have disassembler tests for this.Chris Lattner2009-12-311-18/+1
| | | | llvm-svn: 92328
* rename "elements" of metadata to "operands". "Elements" areChris Lattner2009-12-311-6/+6
| | | | | | | things that occur in types. "operands" are things that occur in values. llvm-svn: 92322
* Type.h doesn't need to #include LLVMContext.hChris Lattner2009-10-271-0/+1
| | | | llvm-svn: 85254
* Update unittests for MDNode uniquing disable.Daniel Dunbar2009-09-071-0/+4
| | | | llvm-svn: 81142
* Now Bitcode reader bug is fixed. Reapply 80839.Devang Patel2009-09-031-1/+1
| | | | | | | | Use CallbackVH, instead of WeakVH, to hold MDNode elements. Use FoldingSetNode to unique MDNodes in a context. Use CallbackVH hooks to update context's MDNodeSet appropriately. llvm-svn: 80868
* Revert 80839 for now. It causes test failures.Devang Patel2009-09-021-1/+1
| | | | llvm-svn: 80841
* Use CallbackVH, instead of WeakVH, to hold MDNode elements. Devang Patel2009-09-021-1/+1
| | | | | | | Use FoldingSetNode to unique MDNodes in a context. Use CallbackVH hooks to update context's MDNodeSet appropriately. llvm-svn: 80839
* Disable uniqueness test for now.Devang Patel2009-09-021-1/+1
| | | | llvm-svn: 80741
* upgrade for removed functions.Chris Lattner2009-08-231-11/+16
| | | | llvm-svn: 79822
* Push LLVMContexts through the IntegerType APIs.Owen Anderson2009-08-131-5/+5
| | | | llvm-svn: 78948
* Fix unit tests.Owen Anderson2009-07-311-14/+16
| | | | llvm-svn: 77734
* fix a unitialized pointer in NamedMDNode (and reenable unittest)Benjamin Kramer2009-07-301-3/+0
| | | | llvm-svn: 77597
* Disable the NamedMDNodeTest, it is failing everywhere.Daniel Dunbar2009-07-301-0/+3
| | | | llvm-svn: 77569
* Add NamedMDNode test.Devang Patel2009-07-301-0/+22
| | | | llvm-svn: 77550
* fix unittestBenjamin Kramer2009-07-281-1/+1
| | | | llvm-svn: 77375
* Finish migrating VMCore to StringRef/Twine based APIs.Daniel Dunbar2009-07-251-8/+8
| | | | llvm-svn: 77051
* Revert the ConstantInt constructors back to their 2.5 forms where possible, ↵Owen Anderson2009-07-241-2/+2
| | | | | | thanks to contexts-on-types. More to come. llvm-svn: 77011
* MDStringDevang Patel2009-07-231-8/+8
| | | | | | | - 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 Patel2009-07-231-19/+0
| | | | | | METADATA_BLOCK in bitcode file. llvm-svn: 76834
* Move EVER MORE stuff over to LLVMContext.Owen Anderson2009-07-141-17/+17
| | | | llvm-svn: 75703
* Drop "constant" from Devang Patel2009-07-081-4/+4
| | | | | | !0 = constant metadata !{...} llvm-svn: 75057
* Update SLotTracker to handle MDNode slots.Devang Patel2009-07-081-4/+4
| | | | | | Simplify MDNode printing. llvm-svn: 75053
* Give embedded metadata its own type instead of relying on EmptyStructTy.Nick Lewycky2009-05-301-5/+7
| | | | llvm-svn: 72610
* Make MDNode use CallbackVH. Also change MDNode to store Value* instead ofNick Lewycky2009-05-101-9/+49
| | | | | | | Constant* in preperation of a future change to support holding non-Constants in an MDNode. llvm-svn: 71407
* Fix pointer casting problem.Nick Lewycky2009-04-091-1/+2
| | | | llvm-svn: 68668
* Add support for embedded metadata to LLVM. This introduces two new types ofNick Lewycky2009-04-041-0/+96
Constant, MDString and MDNode which can only be used by globals with a name that starts with "llvm." or as arguments to a function with the same naming restriction. llvm-svn: 68420
OpenPOWER on IntegriCloud