]> granicus.if.org Git - llvm/commit
IR: Add isUniqued() and isTemporary()
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 19 Jan 2015 18:45:35 +0000 (18:45 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 19 Jan 2015 18:45:35 +0000 (18:45 +0000)
commit1d72e18caa25556d4dd6da3c05f49eba40bdc53f
tree51098a01136165a248b2e33d0af80686a95ac4ee
parent5f50874b3d398025c31b56f18230c773e71893e8
IR: Add isUniqued() and isTemporary()

Change `MDNode::isDistinct()` to only apply to 'distinct' nodes (not
temporaries), and introduce `MDNode::isUniqued()` and
`MDNode::isTemporary()` for the other two possibilities.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226482 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/Metadata.h
lib/IR/Metadata.cpp
lib/Transforms/Utils/ValueMapper.cpp
unittests/IR/MetadataTest.cpp