Lines Matching refs:MDNode

85     return MDNode::get(Context, std::nullopt);  in canonicalizeMetadataForValue()
88 auto *N = dyn_cast<MDNode>(MD); in canonicalizeMetadataForValue()
94 return MDNode::get(Context, std::nullopt); in canonicalizeMetadataForValue()
342 auto *OwnerMD = dyn_cast_if_present<MDNode>(cast<Metadata *>(Owner)); in SalvageDebugInfo()
429 auto *OwnerMD = dyn_cast_if_present<MDNode>(cast<Metadata *>(Owner)); in resolveAllUses()
442 if (auto *N = dyn_cast<MDNode>(&MD)) { in getOrCreate()
453 if (auto *N = dyn_cast<MDNode>(&MD)) { in getIfExists()
464 if (auto *N = dyn_cast<MDNode>(&MD)) in isReplaceable()
618 void *MDNode::operator new(size_t Size, size_t NumOps, StorageType Storage) { in operator new()
628 void MDNode::operator delete(void *N) { in operator delete()
635 MDNode::MDNode(LLVMContext &Context, unsigned ID, StorageType Storage, in MDNode() function in MDNode
652 TempMDNode MDNode::clone() const { in clone()
663 MDNode::Header::Header(size_t NumOps, StorageType Storage) { in Header()
679 MDNode::Header::~Header() { in ~Header()
689 void *MDNode::Header::getSmallPtr() { in getSmallPtr()
696 void MDNode::Header::resize(size_t NumOps) { in resize()
709 void MDNode::Header::resizeSmall(size_t NumOps) { in resizeSmall()
726 void MDNode::Header::resizeSmallToLarge(size_t NumOps) { in resizeSmallToLarge()
738 if (auto *N = dyn_cast_or_null<MDNode>(Op)) in isOperandUnresolved()
743 void MDNode::countUnresolvedOperands() { in countUnresolvedOperands()
749 void MDNode::makeUniqued() { in makeUniqued()
768 void MDNode::makeDistinct() { in makeDistinct()
780 void MDNode::resolve() { in resolve()
790 void MDNode::dropReplaceableUses() { in dropReplaceableUses()
798 void MDNode::resolveAfterOperandChange(Metadata *Old, Metadata *New) { in resolveAfterOperandChange()
811 void MDNode::decrementUnresolvedOperandCount() { in decrementUnresolvedOperandCount()
826 void MDNode::resolveCycles() { in resolveCycles()
835 auto *N = dyn_cast_or_null<MDNode>(Op); in resolveCycles()
846 static bool hasSelfReference(MDNode *N) { in hasSelfReference()
850 MDNode *MDNode::replaceWithPermanentImpl() { in replaceWithPermanentImpl()
868 MDNode *MDNode::replaceWithUniquedImpl() { in replaceWithUniquedImpl()
870 MDNode *UniquedNode = uniquify(); in replaceWithUniquedImpl()
883 MDNode *MDNode::replaceWithDistinctImpl() { in replaceWithDistinctImpl()
892 void MDNode::dropAllReferences() { in dropAllReferences()
901 void MDNode::handleChangedOperand(void *Ref, Metadata *New) { in handleChangedOperand()
951 void MDNode::deleteAsSubclass() { in deleteAsSubclass()
972 template <class NodeTy> struct MDNode::HasCachedHash {
984 MDNode *MDNode::uniquify() { in uniquify()
1003 void MDNode::eraseFromStore() { in eraseFromStore()
1034 void MDNode::deleteTemporary(MDNode *N) { in deleteTemporary()
1040 void MDNode::storeDistinctInContext() { in storeDistinctInContext()
1062 void MDNode::replaceOperandWith(unsigned I, Metadata *New) { in replaceOperandWith()
1074 void MDNode::setOperand(unsigned I, Metadata *New) { in setOperand()
1085 static MDNode *getOrSelfReference(LLVMContext &Context, in getOrSelfReference()
1088 if (MDNode *N = dyn_cast_or_null<MDNode>(Ops[0])) in getOrSelfReference()
1092 return MDNode::get(Context, Ops); in getOrSelfReference()
1096 return MDNode::get(Context, Ops); in getOrSelfReference()
1099 MDNode *MDNode::concatenate(MDNode *A, MDNode *B) { in concatenate()
1113 MDNode *MDNode::intersect(MDNode *A, MDNode *B) { in intersect()
1126 MDNode *MDNode::getMostGenericAliasScope(MDNode *A, MDNode *B) { in getMostGenericAliasScope()
1132 SmallPtrSet<const MDNode *, 16> ADomains; in getMostGenericAliasScope()
1133 SmallPtrSet<const MDNode *, 16> IntersectDomains; in getMostGenericAliasScope()
1136 if (const MDNode *NAMD = dyn_cast<MDNode>(MDOp)) in getMostGenericAliasScope()
1137 if (const MDNode *Domain = AliasScopeNode(NAMD).getDomain()) in getMostGenericAliasScope()
1141 if (const MDNode *NAMD = dyn_cast<MDNode>(MDOp)) in getMostGenericAliasScope()
1142 if (const MDNode *Domain = AliasScopeNode(NAMD).getDomain()) in getMostGenericAliasScope()
1149 if (const MDNode *NAMD = dyn_cast<MDNode>(MDOp)) in getMostGenericAliasScope()
1150 if (const MDNode *Domain = AliasScopeNode(NAMD).getDomain()) in getMostGenericAliasScope()
1158 MDNode *MDNode::getMostGenericFPMath(MDNode *A, MDNode *B) { in getMostGenericFPMath()
1172 MDNode *MDNode::mergeDirectCallProfMetadata(MDNode *A, MDNode *B, in mergeDirectCallProfMetadata()
1196 return MDNode::get(Ctx, in mergeDirectCallProfMetadata()
1208 MDNode *MDNode::getMergedProfMetadata(MDNode *A, MDNode *B, in getMergedProfMetadata()
1270 MDNode *MDNode::getMostGenericRange(MDNode *A, MDNode *B) { in getMostGenericRange()
1339 return MDNode::get(A->getContext(), MDs); in getMostGenericRange()
1342 MDNode *MDNode::getMostGenericAlignmentOrDereferenceable(MDNode *A, MDNode *B) { in getMostGenericAlignmentOrDereferenceable()
1373 MDNode *NamedMDNode::getOperand(unsigned i) const { in getOperand()
1376 return cast_or_null<MDNode>(N); in getOperand()
1379 void NamedMDNode::addOperand(MDNode *M) { getNMDOps(Operands).emplace_back(M); } in addOperand()
1381 void NamedMDNode::setOperand(unsigned I, MDNode *New) { in setOperand()
1396 MDNode *MDAttachments::lookup(unsigned ID) const { in lookup()
1403 void MDAttachments::get(unsigned ID, SmallVectorImpl<MDNode *> &Result) const { in get()
1410 SmallVectorImpl<std::pair<unsigned, MDNode *>> &Result) const { in getAll()
1420 void MDAttachments::set(unsigned ID, MDNode *MD) { in set()
1426 void MDAttachments::insert(unsigned ID, MDNode &MD) { in insert()
1446 MDNode *Value::getMetadata(StringRef Kind) const { in getMetadata()
1453 MDNode *Value::getMetadataImpl(unsigned KindID) const { in getMetadataImpl()
1459 void Value::getMetadata(unsigned KindID, SmallVectorImpl<MDNode *> &MDs) const { in getMetadata()
1464 void Value::getMetadata(StringRef Kind, SmallVectorImpl<MDNode *> &MDs) const { in getMetadata()
1470 SmallVectorImpl<std::pair<unsigned, MDNode *>> &MDs) const { in getAllMetadata()
1479 void Value::setMetadata(unsigned KindID, MDNode *Node) { in setMetadata()
1507 void Value::setMetadata(StringRef Kind, MDNode *Node) { in setMetadata()
1513 void Value::addMetadata(unsigned KindID, MDNode &MD) { in addMetadata()
1520 void Value::addMetadata(StringRef Kind, MDNode &MD) { in addMetadata()
1536 void Value::eraseMetadataIf(function_ref<bool(unsigned, MDNode *)> Pred) { in eraseMetadataIf()
1560 void Instruction::setMetadata(StringRef Kind, MDNode *Node) { in setMetadata()
1566 MDNode *Instruction::getMetadataImpl(StringRef Kind) const { in getMetadataImpl()
1574 void Instruction::eraseMetadataIf(function_ref<bool(unsigned, MDNode *)> Pred) { in eraseMetadataIf()
1591 Value::eraseMetadataIf([&KnownSet](unsigned MDKind, MDNode *Node) { in dropUnknownNonDebugMetadata()
1627 void Instruction::setMetadata(unsigned KindID, MDNode *Node) { in setMetadata()
1674 MDNode *InfoTuple = MDTuple::get(getContext(), MDAnnotationStrings); in addAnnotationMetadata()
1676 MDNode *MD = MDTuple::get(getContext(), Names); in addAnnotationMetadata()
1694 MDNode *MD = MDTuple::get(getContext(), Names); in addAnnotationMetadata()
1721 llvm::MDNode::get(getContext(), std::nullopt)); in setNoSanitizeMetadata()
1725 SmallVectorImpl<std::pair<unsigned, MDNode *>> &Result) const { in getAllMetadataImpl()
1748 SmallVector<std::pair<unsigned, MDNode *>, 8> MDs; in copyMetadata()
1759 *MDNode::get(getContext(), {NewOffsetMD, TypeId})); in copyMetadata()
1802 *MDNode::get(getContext(), in setVCallVisibilityMetadata()
1808 if (MDNode *MD = getMetadata(LLVMContext::MD_vcall_visibility)) { in getVCallVisibility()
1841 SmallVector<MDNode *, 1> MDs; in getDebugInfo()
1843 for (MDNode *MD : MDs) in getDebugInfo()