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()
351 auto *OwnerMD = dyn_cast_if_present<MDNode>(cast<Metadata *>(Owner)); in SalvageDebugInfo()
438 auto *OwnerMD = dyn_cast_if_present<MDNode>(cast<Metadata *>(Owner)); in resolveAllUses()
451 if (auto *N = dyn_cast<MDNode>(&MD)) { in getOrCreate()
462 if (auto *N = dyn_cast<MDNode>(&MD)) { in getIfExists()
473 if (auto *N = dyn_cast<MDNode>(&MD)) in isReplaceable()
627 void *MDNode::operator new(size_t Size, size_t NumOps, StorageType Storage) { in operator new()
637 void MDNode::operator delete(void *N) { in operator delete()
644 MDNode::MDNode(LLVMContext &Context, unsigned ID, StorageType Storage, in MDNode() function in MDNode
661 TempMDNode MDNode::clone() const { in clone()
672 MDNode::Header::Header(size_t NumOps, StorageType Storage) { in Header()
688 MDNode::Header::~Header() { in ~Header()
698 void *MDNode::Header::getSmallPtr() { in getSmallPtr()
705 void MDNode::Header::resize(size_t NumOps) { in resize()
718 void MDNode::Header::resizeSmall(size_t NumOps) { in resizeSmall()
735 void MDNode::Header::resizeSmallToLarge(size_t NumOps) { in resizeSmallToLarge()
747 if (auto *N = dyn_cast_or_null<MDNode>(Op)) in isOperandUnresolved()
752 void MDNode::countUnresolvedOperands() { in countUnresolvedOperands()
758 void MDNode::makeUniqued() { in makeUniqued()
777 void MDNode::makeDistinct() { in makeDistinct()
789 void MDNode::resolve() { in resolve()
799 void MDNode::dropReplaceableUses() { in dropReplaceableUses()
807 void MDNode::resolveAfterOperandChange(Metadata *Old, Metadata *New) { in resolveAfterOperandChange()
820 void MDNode::decrementUnresolvedOperandCount() { in decrementUnresolvedOperandCount()
835 void MDNode::resolveCycles() { in resolveCycles()
844 auto *N = dyn_cast_or_null<MDNode>(Op); in resolveCycles()
855 static bool hasSelfReference(MDNode *N) { in hasSelfReference()
859 MDNode *MDNode::replaceWithPermanentImpl() { in replaceWithPermanentImpl()
877 MDNode *MDNode::replaceWithUniquedImpl() { in replaceWithUniquedImpl()
879 MDNode *UniquedNode = uniquify(); in replaceWithUniquedImpl()
892 MDNode *MDNode::replaceWithDistinctImpl() { in replaceWithDistinctImpl()
901 void MDNode::dropAllReferences() { in dropAllReferences()
910 void MDNode::handleChangedOperand(void *Ref, Metadata *New) { in handleChangedOperand()
960 void MDNode::deleteAsSubclass() { in deleteAsSubclass()
981 template <class NodeTy> struct MDNode::HasCachedHash {
993 MDNode *MDNode::uniquify() { in uniquify()
1012 void MDNode::eraseFromStore() { in eraseFromStore()
1043 void MDNode::deleteTemporary(MDNode *N) { in deleteTemporary()
1049 void MDNode::storeDistinctInContext() { in storeDistinctInContext()
1071 void MDNode::replaceOperandWith(unsigned I, Metadata *New) { in replaceOperandWith()
1083 void MDNode::setOperand(unsigned I, Metadata *New) { in setOperand()
1094 static MDNode *getOrSelfReference(LLVMContext &Context, in getOrSelfReference()
1097 if (MDNode *N = dyn_cast_or_null<MDNode>(Ops[0])) in getOrSelfReference()
1101 return MDNode::get(Context, Ops); in getOrSelfReference()
1105 return MDNode::get(Context, Ops); in getOrSelfReference()
1108 MDNode *MDNode::concatenate(MDNode *A, MDNode *B) { in concatenate()
1122 MDNode *MDNode::intersect(MDNode *A, MDNode *B) { in intersect()
1135 MDNode *MDNode::getMostGenericAliasScope(MDNode *A, MDNode *B) { in getMostGenericAliasScope()
1141 SmallPtrSet<const MDNode *, 16> ADomains; in getMostGenericAliasScope()
1142 SmallPtrSet<const MDNode *, 16> IntersectDomains; in getMostGenericAliasScope()
1145 if (const MDNode *NAMD = dyn_cast<MDNode>(MDOp)) in getMostGenericAliasScope()
1146 if (const MDNode *Domain = AliasScopeNode(NAMD).getDomain()) in getMostGenericAliasScope()
1150 if (const MDNode *NAMD = dyn_cast<MDNode>(MDOp)) in getMostGenericAliasScope()
1151 if (const MDNode *Domain = AliasScopeNode(NAMD).getDomain()) in getMostGenericAliasScope()
1158 if (const MDNode *NAMD = dyn_cast<MDNode>(MDOp)) in getMostGenericAliasScope()
1159 if (const MDNode *Domain = AliasScopeNode(NAMD).getDomain()) in getMostGenericAliasScope()
1167 MDNode *MDNode::getMostGenericFPMath(MDNode *A, MDNode *B) { in getMostGenericFPMath()
1181 MDNode *MDNode::mergeDirectCallProfMetadata(MDNode *A, MDNode *B, in mergeDirectCallProfMetadata()
1204 return MDNode::get(Ctx, in mergeDirectCallProfMetadata()
1216 MDNode *MDNode::getMergedProfMetadata(MDNode *A, MDNode *B, in getMergedProfMetadata()
1278 MDNode *MDNode::getMostGenericRange(MDNode *A, MDNode *B) { in getMostGenericRange()
1348 return MDNode::get(A->getContext(), MDs); in getMostGenericRange()
1351 MDNode *MDNode::getMostGenericAlignmentOrDereferenceable(MDNode *A, MDNode *B) { in getMostGenericAlignmentOrDereferenceable()
1382 MDNode *NamedMDNode::getOperand(unsigned i) const { in getOperand()
1385 return cast_or_null<MDNode>(N); in getOperand()
1388 void NamedMDNode::addOperand(MDNode *M) { getNMDOps(Operands).emplace_back(M); } in addOperand()
1390 void NamedMDNode::setOperand(unsigned I, MDNode *New) { in setOperand()
1405 MDNode *MDAttachments::lookup(unsigned ID) const { in lookup()
1412 void MDAttachments::get(unsigned ID, SmallVectorImpl<MDNode *> &Result) const { in get()
1419 SmallVectorImpl<std::pair<unsigned, MDNode *>> &Result) const { in getAll()
1429 void MDAttachments::set(unsigned ID, MDNode *MD) { in set()
1435 void MDAttachments::insert(unsigned ID, MDNode &MD) { in insert()
1455 MDNode *Value::getMetadata(StringRef Kind) const { in getMetadata()
1462 MDNode *Value::getMetadataImpl(unsigned KindID) const { in getMetadataImpl()
1468 void Value::getMetadata(unsigned KindID, SmallVectorImpl<MDNode *> &MDs) const { in getMetadata()
1473 void Value::getMetadata(StringRef Kind, SmallVectorImpl<MDNode *> &MDs) const { in getMetadata()
1479 SmallVectorImpl<std::pair<unsigned, MDNode *>> &MDs) const { in getAllMetadata()
1488 void Value::setMetadata(unsigned KindID, MDNode *Node) { in setMetadata()
1516 void Value::setMetadata(StringRef Kind, MDNode *Node) { in setMetadata()
1522 void Value::addMetadata(unsigned KindID, MDNode &MD) { in addMetadata()
1529 void Value::addMetadata(StringRef Kind, MDNode &MD) { in addMetadata()
1545 void Value::eraseMetadataIf(function_ref<bool(unsigned, MDNode *)> Pred) { in eraseMetadataIf()
1569 void Instruction::setMetadata(StringRef Kind, MDNode *Node) { in setMetadata()
1575 MDNode *Instruction::getMetadataImpl(StringRef Kind) const { in getMetadataImpl()
1583 void Instruction::eraseMetadataIf(function_ref<bool(unsigned, MDNode *)> Pred) { in eraseMetadataIf()
1600 Value::eraseMetadataIf([&KnownSet](unsigned MDKind, MDNode *Node) { in dropUnknownNonDebugMetadata()
1636 void Instruction::setMetadata(unsigned KindID, MDNode *Node) { in setMetadata()
1683 MDNode *InfoTuple = MDTuple::get(getContext(), MDAnnotationStrings); in addAnnotationMetadata()
1685 MDNode *MD = MDTuple::get(getContext(), Names); in addAnnotationMetadata()
1703 MDNode *MD = MDTuple::get(getContext(), Names); in addAnnotationMetadata()
1730 llvm::MDNode::get(getContext(), std::nullopt)); in setNoSanitizeMetadata()
1734 SmallVectorImpl<std::pair<unsigned, MDNode *>> &Result) const { in getAllMetadataImpl()
1757 SmallVector<std::pair<unsigned, MDNode *>, 8> MDs; in copyMetadata()
1768 *MDNode::get(getContext(), {NewOffsetMD, TypeId})); in copyMetadata()
1811 *MDNode::get(getContext(), in setVCallVisibilityMetadata()
1817 if (MDNode *MD = getMetadata(LLVMContext::MD_vcall_visibility)) { in getVCallVisibility()
1850 SmallVector<MDNode *, 1> MDs; in getDebugInfo()
1852 for (MDNode *MD : MDs) in getDebugInfo()