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()
324 auto *OwnerMD = dyn_cast<MDNode>(Owner.get<Metadata *>()); in resolveAllUses()
334 if (auto *N = dyn_cast<MDNode>(&MD)) in getOrCreate()
340 if (auto *N = dyn_cast<MDNode>(&MD)) in getIfExists()
346 if (auto *N = dyn_cast<MDNode>(&MD)) in isReplaceable()
500 void *MDNode::operator new(size_t Size, unsigned NumOps) { in operator new()
514 LLVM_NO_SANITIZE_MEMORY_ATTRIBUTE void MDNode::operator delete(void *Mem) { in operator delete()
515 MDNode *N = static_cast<MDNode *>(Mem); in operator delete()
525 MDNode::MDNode(LLVMContext &Context, unsigned ID, StorageType Storage, in MDNode() function in MDNode
543 TempMDNode MDNode::clone() const { in clone()
555 if (auto *N = dyn_cast_or_null<MDNode>(Op)) in isOperandUnresolved()
560 void MDNode::countUnresolvedOperands() { in countUnresolvedOperands()
566 void MDNode::makeUniqued() { in makeUniqued()
585 void MDNode::makeDistinct() { in makeDistinct()
597 void MDNode::resolve() { in resolve()
607 void MDNode::dropReplaceableUses() { in dropReplaceableUses()
615 void MDNode::resolveAfterOperandChange(Metadata *Old, Metadata *New) { in resolveAfterOperandChange()
628 void MDNode::decrementUnresolvedOperandCount() { in decrementUnresolvedOperandCount()
642 void MDNode::resolveCycles() { in resolveCycles()
651 auto *N = dyn_cast_or_null<MDNode>(Op); in resolveCycles()
662 static bool hasSelfReference(MDNode *N) { in hasSelfReference()
666 MDNode *MDNode::replaceWithPermanentImpl() { in replaceWithPermanentImpl()
684 MDNode *MDNode::replaceWithUniquedImpl() { in replaceWithUniquedImpl()
686 MDNode *UniquedNode = uniquify(); in replaceWithUniquedImpl()
699 MDNode *MDNode::replaceWithDistinctImpl() { in replaceWithDistinctImpl()
708 void MDNode::dropAllReferences() { in dropAllReferences()
717 void MDNode::handleChangedOperand(void *Ref, Metadata *New) { in handleChangedOperand()
767 void MDNode::deleteAsSubclass() { in deleteAsSubclass()
788 template <class NodeTy> struct MDNode::HasCachedHash {
800 MDNode *MDNode::uniquify() { in uniquify()
819 void MDNode::eraseFromStore() { in eraseFromStore()
849 void MDNode::deleteTemporary(MDNode *N) { in deleteTemporary()
855 void MDNode::storeDistinctInContext() { in storeDistinctInContext()
877 void MDNode::replaceOperandWith(unsigned I, Metadata *New) { in replaceOperandWith()
889 void MDNode::setOperand(unsigned I, Metadata *New) { in setOperand()
900 static MDNode *getOrSelfReference(LLVMContext &Context, in getOrSelfReference()
903 if (MDNode *N = dyn_cast_or_null<MDNode>(Ops[0])) in getOrSelfReference()
907 return MDNode::get(Context, Ops); in getOrSelfReference()
911 return MDNode::get(Context, Ops); in getOrSelfReference()
914 MDNode *MDNode::concatenate(MDNode *A, MDNode *B) { in concatenate()
928 MDNode *MDNode::intersect(MDNode *A, MDNode *B) { in intersect()
941 MDNode *MDNode::getMostGenericAliasScope(MDNode *A, MDNode *B) { in getMostGenericAliasScope()
947 SmallPtrSet<const MDNode *, 16> ADomains; in getMostGenericAliasScope()
948 SmallPtrSet<const MDNode *, 16> IntersectDomains; in getMostGenericAliasScope()
951 if (const MDNode *NAMD = dyn_cast<MDNode>(MDOp)) in getMostGenericAliasScope()
952 if (const MDNode *Domain = AliasScopeNode(NAMD).getDomain()) in getMostGenericAliasScope()
956 if (const MDNode *NAMD = dyn_cast<MDNode>(MDOp)) in getMostGenericAliasScope()
957 if (const MDNode *Domain = AliasScopeNode(NAMD).getDomain()) in getMostGenericAliasScope()
964 if (const MDNode *NAMD = dyn_cast<MDNode>(MDOp)) in getMostGenericAliasScope()
965 if (const MDNode *Domain = AliasScopeNode(NAMD).getDomain()) in getMostGenericAliasScope()
973 MDNode *MDNode::getMostGenericFPMath(MDNode *A, MDNode *B) { in getMostGenericFPMath()
1021 MDNode *MDNode::getMostGenericRange(MDNode *A, MDNode *B) { in getMostGenericRange()
1090 return MDNode::get(A->getContext(), MDs); in getMostGenericRange()
1093 MDNode *MDNode::getMostGenericAlignmentOrDereferenceable(MDNode *A, MDNode *B) { in getMostGenericAlignmentOrDereferenceable()
1124 MDNode *NamedMDNode::getOperand(unsigned i) const { in getOperand()
1127 return cast_or_null<MDNode>(N); in getOperand()
1130 void NamedMDNode::addOperand(MDNode *M) { getNMDOps(Operands).emplace_back(M); } in addOperand()
1132 void NamedMDNode::setOperand(unsigned I, MDNode *New) { in setOperand()
1147 MDNode *MDAttachments::lookup(unsigned ID) const { in lookup()
1154 void MDAttachments::get(unsigned ID, SmallVectorImpl<MDNode *> &Result) const { in get()
1161 SmallVectorImpl<std::pair<unsigned, MDNode *>> &Result) const { in getAll()
1171 void MDAttachments::set(unsigned ID, MDNode *MD) { in set()
1177 void MDAttachments::insert(unsigned ID, MDNode &MD) { in insert()
1197 MDNode *Value::getMetadata(unsigned KindID) const { in getMetadata()
1205 MDNode *Value::getMetadata(StringRef Kind) const { in getMetadata()
1213 void Value::getMetadata(unsigned KindID, SmallVectorImpl<MDNode *> &MDs) const { in getMetadata()
1218 void Value::getMetadata(StringRef Kind, SmallVectorImpl<MDNode *> &MDs) const { in getMetadata()
1224 SmallVectorImpl<std::pair<unsigned, MDNode *>> &MDs) const { in getAllMetadata()
1234 void Value::setMetadata(unsigned KindID, MDNode *Node) { in setMetadata()
1262 void Value::setMetadata(StringRef Kind, MDNode *Node) { in setMetadata()
1268 void Value::addMetadata(unsigned KindID, MDNode &MD) { in addMetadata()
1275 void Value::addMetadata(StringRef Kind, MDNode &MD) { in addMetadata()
1300 void Instruction::setMetadata(StringRef Kind, MDNode *Node) { in setMetadata()
1306 MDNode *Instruction::getMetadataImpl(StringRef Kind) const { in getMetadataImpl()
1336 void Instruction::setMetadata(unsigned KindID, MDNode *Node) { in setMetadata()
1366 MDNode *MD = MDTuple::get(getContext(), Names); in addAnnotationMetadata()
1377 MDNode *Instruction::getMetadataImpl(unsigned KindID) const { in getMetadataImpl()
1385 SmallVectorImpl<std::pair<unsigned, MDNode *>> &Result) const { in getAllMetadataImpl()
1458 SmallVector<std::pair<unsigned, MDNode *>, 8> MDs; in copyMetadata()
1469 *MDNode::get(getContext(), {NewOffsetMD, TypeId})); in copyMetadata()
1512 *MDNode::get(getContext(), in setVCallVisibilityMetadata()
1518 if (MDNode *MD = getMetadata(LLVMContext::MD_vcall_visibility)) { in getVCallVisibility()
1551 SmallVector<MDNode *, 1> MDs; in getDebugInfo()
1553 for (MDNode *MD : MDs) in getDebugInfo()