Lines Matching refs:MDNode
88 return MDNode::get(Context, None); in canonicalizeMetadataForValue()
91 auto *N = dyn_cast<MDNode>(MD); in canonicalizeMetadataForValue()
97 return MDNode::get(Context, None); in canonicalizeMetadataForValue()
305 auto *OwnerMD = dyn_cast<MDNode>(Owner.get<Metadata *>()); in resolveAllUses()
315 if (auto *N = dyn_cast<MDNode>(&MD)) in getOrCreate()
321 if (auto *N = dyn_cast<MDNode>(&MD)) in getIfExists()
327 if (auto *N = dyn_cast<MDNode>(&MD)) in isReplaceable()
481 void *MDNode::operator new(size_t Size, unsigned NumOps) { in operator new()
493 void MDNode::operator delete(void *Mem) { in operator delete()
494 MDNode *N = static_cast<MDNode *>(Mem); in operator delete()
504 MDNode::MDNode(LLVMContext &Context, unsigned ID, StorageType Storage, in MDNode() function in MDNode
522 TempMDNode MDNode::clone() const { in clone()
534 if (auto *N = dyn_cast_or_null<MDNode>(Op)) in isOperandUnresolved()
539 void MDNode::countUnresolvedOperands() { in countUnresolvedOperands()
545 void MDNode::makeUniqued() { in makeUniqued()
564 void MDNode::makeDistinct() { in makeDistinct()
576 void MDNode::resolve() { in resolve()
586 void MDNode::dropReplaceableUses() { in dropReplaceableUses()
594 void MDNode::resolveAfterOperandChange(Metadata *Old, Metadata *New) { in resolveAfterOperandChange()
607 void MDNode::decrementUnresolvedOperandCount() { in decrementUnresolvedOperandCount()
621 void MDNode::resolveCycles() { in resolveCycles()
630 auto *N = dyn_cast_or_null<MDNode>(Op); in resolveCycles()
641 static bool hasSelfReference(MDNode *N) { in hasSelfReference()
648 MDNode *MDNode::replaceWithPermanentImpl() { in replaceWithPermanentImpl()
666 MDNode *MDNode::replaceWithUniquedImpl() { in replaceWithUniquedImpl()
668 MDNode *UniquedNode = uniquify(); in replaceWithUniquedImpl()
681 MDNode *MDNode::replaceWithDistinctImpl() { in replaceWithDistinctImpl()
690 void MDNode::dropAllReferences() { in dropAllReferences()
699 void MDNode::handleChangedOperand(void *Ref, Metadata *New) { in handleChangedOperand()
749 void MDNode::deleteAsSubclass() { in deleteAsSubclass()
770 template <class NodeTy> struct MDNode::HasCachedHash {
782 MDNode *MDNode::uniquify() { in uniquify()
801 void MDNode::eraseFromStore() { in eraseFromStore()
831 void MDNode::deleteTemporary(MDNode *N) { in deleteTemporary()
837 void MDNode::storeDistinctInContext() { in storeDistinctInContext()
859 void MDNode::replaceOperandWith(unsigned I, Metadata *New) { in replaceOperandWith()
871 void MDNode::setOperand(unsigned I, Metadata *New) { in setOperand()
882 static MDNode *getOrSelfReference(LLVMContext &Context, in getOrSelfReference()
885 if (MDNode *N = dyn_cast_or_null<MDNode>(Ops[0])) in getOrSelfReference()
889 return MDNode::get(Context, Ops); in getOrSelfReference()
893 return MDNode::get(Context, Ops); in getOrSelfReference()
896 MDNode *MDNode::concatenate(MDNode *A, MDNode *B) { in concatenate()
910 MDNode *MDNode::intersect(MDNode *A, MDNode *B) { in intersect()
923 MDNode *MDNode::getMostGenericAliasScope(MDNode *A, MDNode *B) { in getMostGenericAliasScope()
930 MDNode *MDNode::getMostGenericFPMath(MDNode *A, MDNode *B) { in getMostGenericFPMath()
978 MDNode *MDNode::getMostGenericRange(MDNode *A, MDNode *B) { in getMostGenericRange()
1047 return MDNode::get(A->getContext(), MDs); in getMostGenericRange()
1050 MDNode *MDNode::getMostGenericAlignmentOrDereferenceable(MDNode *A, MDNode *B) { in getMostGenericAlignmentOrDereferenceable()
1081 MDNode *NamedMDNode::getOperand(unsigned i) const { in getOperand()
1084 return cast_or_null<MDNode>(N); in getOperand()
1087 void NamedMDNode::addOperand(MDNode *M) { getNMDOps(Operands).emplace_back(M); } in addOperand()
1089 void NamedMDNode::setOperand(unsigned I, MDNode *New) { in setOperand()
1103 void MDAttachmentMap::set(unsigned ID, MDNode &MD) { in set()
1134 MDNode *MDAttachmentMap::lookup(unsigned ID) const { in lookup()
1142 SmallVectorImpl<std::pair<unsigned, MDNode *>> &Result) const { in getAll()
1150 void MDGlobalAttachmentMap::insert(unsigned ID, MDNode &MD) { in insert()
1154 MDNode *MDGlobalAttachmentMap::lookup(unsigned ID) const { in lookup()
1162 SmallVectorImpl<MDNode *> &Result) const { in get()
1177 SmallVectorImpl<std::pair<unsigned, MDNode *>> &Result) const { in getAll()
1185 [](const std::pair<unsigned, MDNode *> &A, in getAll()
1186 const std::pair<unsigned, MDNode *> &B) { return A.first < B.first; }); in getAll()
1189 void Instruction::setMetadata(StringRef Kind, MDNode *Node) { in setMetadata()
1195 MDNode *Instruction::getMetadataImpl(StringRef Kind) const { in getMetadataImpl()
1226 void Instruction::setMetadata(unsigned KindID, MDNode *Node) { in setMetadata()
1271 MDNode *Instruction::getMetadataImpl(unsigned KindID) const { in getMetadataImpl()
1285 SmallVectorImpl<std::pair<unsigned, MDNode *>> &Result) const { in getAllMetadataImpl()
1305 SmallVectorImpl<std::pair<unsigned, MDNode *>> &Result) const { in getAllMetadataOtherThanDebugLocImpl()
1383 SmallVectorImpl<MDNode *> &MDs) const { in getMetadata()
1389 SmallVectorImpl<MDNode *> &MDs) const { in getMetadata()
1394 void GlobalObject::addMetadata(unsigned KindID, MDNode &MD) { in addMetadata()
1401 void GlobalObject::addMetadata(StringRef Kind, MDNode &MD) { in addMetadata()
1418 SmallVectorImpl<std::pair<unsigned, MDNode *>> &MDs) const { in getAllMetadata()
1434 void GlobalObject::setMetadata(unsigned KindID, MDNode *N) { in setMetadata()
1440 void GlobalObject::setMetadata(StringRef Kind, MDNode *N) { in setMetadata()
1444 MDNode *GlobalObject::getMetadata(unsigned KindID) const { in getMetadata()
1450 MDNode *GlobalObject::getMetadata(StringRef Kind) const { in getMetadata()
1455 SmallVector<std::pair<unsigned, MDNode *>, 8> MDs; in copyMetadata()
1466 *MDNode::get(getContext(), {NewOffsetMD, TypeId})); in copyMetadata()
1527 SmallVector<MDNode *, 1> MDs; in getDebugInfo()
1529 for (MDNode *MD : MDs) in getDebugInfo()