Home
last modified time | relevance | path

Searched refs:ReplaceableMetadataImpl (Results 1 – 4 of 4) sorted by relevance

/external/llvm/lib/IR/
DMetadataTracking.cpp19 ReplaceableMetadataImpl *ReplaceableMetadataImpl::get(Metadata &MD) { in get()
29 if (auto *R = ReplaceableMetadataImpl::get(MD)) { in track()
38 if (auto *R = ReplaceableMetadataImpl::get(MD)) in untrack()
46 if (auto *R = ReplaceableMetadataImpl::get(MD)) { in retrack()
54 return ReplaceableMetadataImpl::get(const_cast<Metadata &>(MD)); in isReplaceable()
DMetadata.cpp123 void ReplaceableMetadataImpl::addRef(void *Ref, OwnerTy Owner) { in addRef()
134 void ReplaceableMetadataImpl::dropRef(void *Ref) { in dropRef()
140 void ReplaceableMetadataImpl::moveRef(void *Ref, void *New, in moveRef()
158 void ReplaceableMetadataImpl::replaceAllUsesWith(Metadata *MD) { in replaceAllUsesWith()
209 void ReplaceableMetadataImpl::resolveAllUses(bool ResolveUsers) { in resolveAllUses()
434 this->Context.makeReplaceable(make_unique<ReplaceableMetadataImpl>(Context)); in MDNode()
/external/llvm/include/llvm/IR/
DMetadata.h43 friend class ReplaceableMetadataImpl; variable
173 friend class ReplaceableMetadataImpl; variable
204 class ReplaceableMetadataImpl {
216 ReplaceableMetadataImpl(LLVMContext &Context) in ReplaceableMetadataImpl() function
218 ~ReplaceableMetadataImpl() { in ~ReplaceableMetadataImpl()
241 static ReplaceableMetadataImpl *get(Metadata &MD);
252 class ValueAsMetadata : public Metadata, ReplaceableMetadataImpl {
253 friend class ReplaceableMetadataImpl; variable
260 ReplaceableMetadataImpl::resolveAllUses(/* ResolveUsers */ false); in dropUsers()
265 : Metadata(ID, Uniqued), ReplaceableMetadataImpl(V->getContext()), V(V) { in ValueAsMetadata()
[all …]
/external/llvm/unittests/IR/
DMetadataTest.cpp38 ContextAndReplaceableUses CRU(make_unique<ReplaceableMetadataImpl>(Context)); in TEST()
47 CRU.makeReplaceable(make_unique<ReplaceableMetadataImpl>(Context)); in TEST()
55 auto ReplaceableUses = make_unique<ReplaceableMetadataImpl>(Context); in TEST()