Lines Matching refs:MDNode
84 return MDNode::get(Context, None); in canonicalizeMetadataForValue()
87 auto *N = dyn_cast<MDNode>(MD); in canonicalizeMetadataForValue()
93 return MDNode::get(Context, None); in canonicalizeMetadataForValue()
268 auto *OwnerMD = dyn_cast<MDNode>(Owner.get<Metadata *>()); in SalvageDebugInfo()
348 auto *OwnerMD = dyn_cast<MDNode>(Owner.get<Metadata *>()); in resolveAllUses()
358 if (auto *N = dyn_cast<MDNode>(&MD)) in getOrCreate()
364 if (auto *N = dyn_cast<MDNode>(&MD)) in getIfExists()
370 if (auto *N = dyn_cast<MDNode>(&MD)) in isReplaceable()
524 void *MDNode::operator new(size_t Size, size_t NumOps, StorageType Storage) { in operator new()
534 void MDNode::operator delete(void *N) { in operator delete()
541 MDNode::MDNode(LLVMContext &Context, unsigned ID, StorageType Storage, in MDNode() function in MDNode
558 TempMDNode MDNode::clone() const { in clone()
569 MDNode::Header::Header(size_t NumOps, StorageType Storage) { in Header()
585 MDNode::Header::~Header() { in ~Header()
595 void *MDNode::Header::getSmallPtr() { in getSmallPtr()
602 void MDNode::Header::resize(size_t NumOps) { in resize()
615 void MDNode::Header::resizeSmall(size_t NumOps) { in resizeSmall()
632 void MDNode::Header::resizeSmallToLarge(size_t NumOps) { in resizeSmallToLarge()
644 if (auto *N = dyn_cast_or_null<MDNode>(Op)) in isOperandUnresolved()
649 void MDNode::countUnresolvedOperands() { in countUnresolvedOperands()
655 void MDNode::makeUniqued() { in makeUniqued()
674 void MDNode::makeDistinct() { in makeDistinct()
686 void MDNode::resolve() { in resolve()
696 void MDNode::dropReplaceableUses() { in dropReplaceableUses()
704 void MDNode::resolveAfterOperandChange(Metadata *Old, Metadata *New) { in resolveAfterOperandChange()
717 void MDNode::decrementUnresolvedOperandCount() { in decrementUnresolvedOperandCount()
732 void MDNode::resolveCycles() { in resolveCycles()
741 auto *N = dyn_cast_or_null<MDNode>(Op); in resolveCycles()
752 static bool hasSelfReference(MDNode *N) { in hasSelfReference()
756 MDNode *MDNode::replaceWithPermanentImpl() { in replaceWithPermanentImpl()
774 MDNode *MDNode::replaceWithUniquedImpl() { in replaceWithUniquedImpl()
776 MDNode *UniquedNode = uniquify(); in replaceWithUniquedImpl()
789 MDNode *MDNode::replaceWithDistinctImpl() { in replaceWithDistinctImpl()
798 void MDNode::dropAllReferences() { in dropAllReferences()
807 void MDNode::handleChangedOperand(void *Ref, Metadata *New) { in handleChangedOperand()
857 void MDNode::deleteAsSubclass() { in deleteAsSubclass()
878 template <class NodeTy> struct MDNode::HasCachedHash {
890 MDNode *MDNode::uniquify() { in uniquify()
909 void MDNode::eraseFromStore() { in eraseFromStore()
940 void MDNode::deleteTemporary(MDNode *N) { in deleteTemporary()
946 void MDNode::storeDistinctInContext() { in storeDistinctInContext()
968 void MDNode::replaceOperandWith(unsigned I, Metadata *New) { in replaceOperandWith()
980 void MDNode::setOperand(unsigned I, Metadata *New) { in setOperand()
991 static MDNode *getOrSelfReference(LLVMContext &Context, in getOrSelfReference()
994 if (MDNode *N = dyn_cast_or_null<MDNode>(Ops[0])) in getOrSelfReference()
998 return MDNode::get(Context, Ops); in getOrSelfReference()
1002 return MDNode::get(Context, Ops); in getOrSelfReference()
1005 MDNode *MDNode::concatenate(MDNode *A, MDNode *B) { in concatenate()
1019 MDNode *MDNode::intersect(MDNode *A, MDNode *B) { in intersect()
1032 MDNode *MDNode::getMostGenericAliasScope(MDNode *A, MDNode *B) { in getMostGenericAliasScope()
1038 SmallPtrSet<const MDNode *, 16> ADomains; in getMostGenericAliasScope()
1039 SmallPtrSet<const MDNode *, 16> IntersectDomains; in getMostGenericAliasScope()
1042 if (const MDNode *NAMD = dyn_cast<MDNode>(MDOp)) in getMostGenericAliasScope()
1043 if (const MDNode *Domain = AliasScopeNode(NAMD).getDomain()) in getMostGenericAliasScope()
1047 if (const MDNode *NAMD = dyn_cast<MDNode>(MDOp)) in getMostGenericAliasScope()
1048 if (const MDNode *Domain = AliasScopeNode(NAMD).getDomain()) in getMostGenericAliasScope()
1055 if (const MDNode *NAMD = dyn_cast<MDNode>(MDOp)) in getMostGenericAliasScope()
1056 if (const MDNode *Domain = AliasScopeNode(NAMD).getDomain()) in getMostGenericAliasScope()
1064 MDNode *MDNode::getMostGenericFPMath(MDNode *A, MDNode *B) { in getMostGenericFPMath()
1112 MDNode *MDNode::getMostGenericRange(MDNode *A, MDNode *B) { in getMostGenericRange()
1181 return MDNode::get(A->getContext(), MDs); in getMostGenericRange()
1184 MDNode *MDNode::getMostGenericAlignmentOrDereferenceable(MDNode *A, MDNode *B) { in getMostGenericAlignmentOrDereferenceable()
1215 MDNode *NamedMDNode::getOperand(unsigned i) const { in getOperand()
1218 return cast_or_null<MDNode>(N); in getOperand()
1221 void NamedMDNode::addOperand(MDNode *M) { getNMDOps(Operands).emplace_back(M); } in addOperand()
1223 void NamedMDNode::setOperand(unsigned I, MDNode *New) { in setOperand()
1238 MDNode *MDAttachments::lookup(unsigned ID) const { in lookup()
1245 void MDAttachments::get(unsigned ID, SmallVectorImpl<MDNode *> &Result) const { in get()
1252 SmallVectorImpl<std::pair<unsigned, MDNode *>> &Result) const { in getAll()
1262 void MDAttachments::set(unsigned ID, MDNode *MD) { in set()
1268 void MDAttachments::insert(unsigned ID, MDNode &MD) { in insert()
1288 MDNode *Value::getMetadata(unsigned KindID) const { in getMetadata()
1296 MDNode *Value::getMetadata(StringRef Kind) const { in getMetadata()
1304 void Value::getMetadata(unsigned KindID, SmallVectorImpl<MDNode *> &MDs) const { in getMetadata()
1309 void Value::getMetadata(StringRef Kind, SmallVectorImpl<MDNode *> &MDs) const { in getMetadata()
1315 SmallVectorImpl<std::pair<unsigned, MDNode *>> &MDs) const { in getAllMetadata()
1325 void Value::setMetadata(unsigned KindID, MDNode *Node) { in setMetadata()
1353 void Value::setMetadata(StringRef Kind, MDNode *Node) { in setMetadata()
1359 void Value::addMetadata(unsigned KindID, MDNode &MD) { in addMetadata()
1366 void Value::addMetadata(StringRef Kind, MDNode &MD) { in addMetadata()
1391 void Instruction::setMetadata(StringRef Kind, MDNode *Node) { in setMetadata()
1397 MDNode *Instruction::getMetadataImpl(StringRef Kind) const { in getMetadataImpl()
1427 void Instruction::setMetadata(unsigned KindID, MDNode *Node) { in setMetadata()
1457 MDNode *MD = MDTuple::get(getContext(), Names); in addAnnotationMetadata()
1477 MDNode *Instruction::getMetadataImpl(unsigned KindID) const { in getMetadataImpl()
1485 SmallVectorImpl<std::pair<unsigned, MDNode *>> &Result) const { in getAllMetadataImpl()
1558 SmallVector<std::pair<unsigned, MDNode *>, 8> MDs; in copyMetadata()
1569 *MDNode::get(getContext(), {NewOffsetMD, TypeId})); in copyMetadata()
1612 *MDNode::get(getContext(), in setVCallVisibilityMetadata()
1618 if (MDNode *MD = getMetadata(LLVMContext::MD_vcall_visibility)) { in getVCallVisibility()
1651 SmallVector<MDNode *, 1> MDs; in getDebugInfo()
1653 for (MDNode *MD : MDs) in getDebugInfo()