aboutsummaryrefslogtreecommitdiff
path: root/lib/VMCore/Metadata.cpp
AgeCommit message (Expand)Author
2010-03-05Revert r97788 because it broke test/FrontendC/2010-02-16-DbgVarScope.c.Jeffrey Yasskin
2010-03-05Free MDNodes when the LLVMContext is destroyed. Leak found by Valgrind.Jeffrey Yasskin
2010-02-18Destroy MDNodes gracefully while deleting llvm context.Devang Patel
2010-01-26Add MDNode::getIfExists(), an efficient way to determine if a value is used b...Victor Hernandez
2010-01-22Remove MetadataBase class because it is not adding significant value.Devang Patel
2010-01-21tidy upChris Lattner
2010-01-20Fix if/else brackets; getFunctionForValue() is to be called for non-metadata ...Victor Hernandez
2010-01-20Fix the conditions to unambiguously show the logic they represent. This is theChandler Carruth
2010-01-20Refactor common parts of MDNode::getFunction() and assertLocalFunction() into...Victor Hernandez
2010-01-18Add comment that MDNode::getFunction() is not to be used by performance-criti...Victor Hernandez
2010-01-18Simplify MDNode::getFunction() and assertLocalFunction() by avoiding extra Fu...Victor Hernandez
2010-01-14In debug builds, assert that function-local metadata has only 1 parent functionVictor Hernandez
2010-01-14Add MDNode::getFunction(), which figures out the metadata's function, if it h...Victor Hernandez
2010-01-13Introduce Twine::toStringRef, a variant of toVector which avoids the copy if theBenjamin Kramer
2010-01-12Use Twine, instead of StringRef, for consistency.Devang Patel
2010-01-12Use ilist_tratis to autoinsert and remove NamedMDNode from MDSymbolTable.Devang Patel
2010-01-10Suppress a warning on gcc 4.4.Mikhail Glushenkov
2010-01-10Compute isFunctionLocal in MDNode ctor or via argument in new function getWhe...Victor Hernandez
2010-01-09Derive NamedMDNode from Value.Devang Patel
2010-01-07Use separate namespace for named metadata.Devang Patel
2010-01-05NamedMDNode is a collection MDNodes.Devang Patel
2009-12-31rename "elements" of metadata to "operands". "Elements" areChris Lattner
2009-12-31Optimize MDNode to coallocate the operand list immediatelyChris Lattner
2009-12-30do not bother reuniquing mdnodes whose operands drop to null. DoingChris Lattner
2009-12-29Final step in the metadata API restructuring: move the Chris Lattner
2009-12-29privatize another interface.Chris Lattner
2009-12-29the only call to this function (from clang) has been removed, zap it.Chris Lattner
2009-12-29remove some unneeded Metadata interfaces.Chris Lattner
2009-12-29When doing v1->RAUW(v2), don't do anything to metadata. We don't knowChris Lattner
2009-12-29sink the Instruction::HasMetadata bit into SubclassData.Chris Lattner
2009-12-29add a layer of accessors around the Value::SubClassData member, and use Chris Lattner
2009-12-28This is a major cleanup of the instruction metadata interfaces thatChris Lattner
2009-12-28rename getMDKind -> getMDKindID, make it autoinsert if an MD KindChris Lattner
2009-12-28rename getHandlerNames to getMDKindNames, simplify its interfaceChris Lattner
2009-12-28tidy up and delete a dead smallvector.Chris Lattner
2009-12-28avoid a completely unneeded linear walk.Chris Lattner
2009-12-28Eliminate two bits of ugliness in MDNode::replaceElement:Chris Lattner
2009-12-28rearrange some methods, no functionality change.Chris Lattner
2009-12-28avoid temporary CallbackVH's.Chris Lattner
2009-12-28Rewrite the function-local validation logic for MDNodes (most of r91708).Chris Lattner
2009-12-28rename MDNode instance variables to something meaningful.Chris Lattner
2009-12-28snip one more #include from Metadata.hChris Lattner
2009-12-28prune some #includesChris Lattner
2009-12-28change the strange MetadataContext::getMDs function to expose lessChris Lattner
2009-12-28change NamedMDNode to use a pimpl for its operand list insteadChris Lattner
2009-12-28move ElementVH out of the MDNode class into the MDNode.cpp file. AmongChris Lattner
2009-12-18Fix gcc warning.Eli Friedman
2009-12-18Formalize MDNode's function-localness:Victor Hernandez
2009-12-16Use different name for argument and fieldVictor Hernandez
2009-12-16MDNodes that refer to an instruction are local to a function; in that case, e...Victor Hernandez