Lines Matching refs:MDNode
55 return MDNode::get(Context, None); in canonicalizeMetadataForValue()
58 auto *N = dyn_cast<MDNode>(MD); in canonicalizeMetadataForValue()
64 return MDNode::get(Context, None); in canonicalizeMetadataForValue()
272 auto *OwnerMD = dyn_cast<MDNode>(Owner.get<Metadata *>()); in resolveAllUses()
282 if (auto *N = dyn_cast<MDNode>(&MD)) in getOrCreate()
288 if (auto *N = dyn_cast<MDNode>(&MD)) in getIfExists()
294 if (auto *N = dyn_cast<MDNode>(&MD)) in isReplaceable()
444 void *MDNode::operator new(size_t Size, unsigned NumOps) { in operator new()
456 void MDNode::operator delete(void *Mem) { in operator delete()
457 MDNode *N = static_cast<MDNode *>(Mem); in operator delete()
467 MDNode::MDNode(LLVMContext &Context, unsigned ID, StorageType Storage, in MDNode() function in MDNode
485 TempMDNode MDNode::clone() const { in clone()
497 if (auto *N = dyn_cast_or_null<MDNode>(Op)) in isOperandUnresolved()
502 void MDNode::countUnresolvedOperands() { in countUnresolvedOperands()
508 void MDNode::makeUniqued() { in makeUniqued()
527 void MDNode::makeDistinct() { in makeDistinct()
539 void MDNode::resolve() { in resolve()
549 void MDNode::dropReplaceableUses() { in dropReplaceableUses()
557 void MDNode::resolveAfterOperandChange(Metadata *Old, Metadata *New) { in resolveAfterOperandChange()
570 void MDNode::decrementUnresolvedOperandCount() { in decrementUnresolvedOperandCount()
584 void MDNode::resolveCycles() { in resolveCycles()
593 auto *N = dyn_cast_or_null<MDNode>(Op); in resolveCycles()
604 static bool hasSelfReference(MDNode *N) { in hasSelfReference()
611 MDNode *MDNode::replaceWithPermanentImpl() { in replaceWithPermanentImpl()
629 MDNode *MDNode::replaceWithUniquedImpl() { in replaceWithUniquedImpl()
631 MDNode *UniquedNode = uniquify(); in replaceWithUniquedImpl()
644 MDNode *MDNode::replaceWithDistinctImpl() { in replaceWithDistinctImpl()
653 void MDNode::dropAllReferences() { in dropAllReferences()
662 void MDNode::handleChangedOperand(void *Ref, Metadata *New) { in handleChangedOperand()
712 void MDNode::deleteAsSubclass() { in deleteAsSubclass()
733 template <class NodeTy> struct MDNode::HasCachedHash {
745 MDNode *MDNode::uniquify() { in uniquify()
764 void MDNode::eraseFromStore() { in eraseFromStore()
794 void MDNode::deleteTemporary(MDNode *N) { in deleteTemporary()
800 void MDNode::storeDistinctInContext() { in storeDistinctInContext()
822 void MDNode::replaceOperandWith(unsigned I, Metadata *New) { in replaceOperandWith()
834 void MDNode::setOperand(unsigned I, Metadata *New) { in setOperand()
845 static MDNode *getOrSelfReference(LLVMContext &Context, in getOrSelfReference()
848 if (MDNode *N = dyn_cast_or_null<MDNode>(Ops[0])) in getOrSelfReference()
852 return MDNode::get(Context, Ops); in getOrSelfReference()
856 return MDNode::get(Context, Ops); in getOrSelfReference()
859 MDNode *MDNode::concatenate(MDNode *A, MDNode *B) { in concatenate()
875 MDNode *MDNode::intersect(MDNode *A, MDNode *B) { in intersect()
889 MDNode *MDNode::getMostGenericAliasScope(MDNode *A, MDNode *B) { in getMostGenericAliasScope()
903 MDNode *MDNode::getMostGenericFPMath(MDNode *A, MDNode *B) { in getMostGenericFPMath()
951 MDNode *MDNode::getMostGenericRange(MDNode *A, MDNode *B) { in getMostGenericRange()
1020 return MDNode::get(A->getContext(), MDs); in getMostGenericRange()
1023 MDNode *MDNode::getMostGenericAlignmentOrDereferenceable(MDNode *A, MDNode *B) { in getMostGenericAlignmentOrDereferenceable()
1055 MDNode *NamedMDNode::getOperand(unsigned i) const { in getOperand()
1058 return cast_or_null<MDNode>(N); in getOperand()
1061 void NamedMDNode::addOperand(MDNode *M) { getNMDOps(Operands).emplace_back(M); } in addOperand()
1063 void NamedMDNode::setOperand(unsigned I, MDNode *New) { in setOperand()
1083 void MDAttachmentMap::set(unsigned ID, MDNode &MD) { in set()
1112 MDNode *MDAttachmentMap::lookup(unsigned ID) const { in lookup()
1120 SmallVectorImpl<std::pair<unsigned, MDNode *>> &Result) const { in getAll()
1128 void MDGlobalAttachmentMap::insert(unsigned ID, MDNode &MD) { in insert()
1133 SmallVectorImpl<MDNode *> &Result) { in get()
1153 SmallVectorImpl<std::pair<unsigned, MDNode *>> &Result) const { in getAll()
1161 [](const std::pair<unsigned, MDNode *> &A, in getAll()
1162 const std::pair<unsigned, MDNode *> &B) { return A.first < B.first; }); in getAll()
1165 void Instruction::setMetadata(StringRef Kind, MDNode *Node) { in setMetadata()
1171 MDNode *Instruction::getMetadataImpl(StringRef Kind) const { in getMetadataImpl()
1203 void Instruction::setMetadata(unsigned KindID, MDNode *Node) { in setMetadata()
1248 MDNode *Instruction::getMetadataImpl(unsigned KindID) const { in getMetadataImpl()
1262 SmallVectorImpl<std::pair<unsigned, MDNode *>> &Result) const { in getAllMetadataImpl()
1281 SmallVectorImpl<std::pair<unsigned, MDNode *>> &Result) const { in getAllMetadataOtherThanDebugLocImpl()
1348 SmallVectorImpl<MDNode *> &MDs) const { in getMetadata()
1354 SmallVectorImpl<MDNode *> &MDs) const { in getMetadata()
1359 void GlobalObject::addMetadata(unsigned KindID, MDNode &MD) { in addMetadata()
1366 void GlobalObject::addMetadata(StringRef Kind, MDNode &MD) { in addMetadata()
1382 SmallVectorImpl<std::pair<unsigned, MDNode *>> &MDs) const { in getAllMetadata()
1398 void GlobalObject::setMetadata(unsigned KindID, MDNode *N) { in setMetadata()
1404 void GlobalObject::setMetadata(StringRef Kind, MDNode *N) { in setMetadata()
1408 MDNode *GlobalObject::getMetadata(unsigned KindID) const { in getMetadata()
1409 SmallVector<MDNode *, 1> MDs; in getMetadata()
1417 MDNode *GlobalObject::getMetadata(StringRef Kind) const { in getMetadata()
1422 SmallVector<std::pair<unsigned, MDNode *>, 8> MDs; in copyMetadata()
1433 *MDNode::get(getContext(), {NewOffsetMD, TypeId})); in copyMetadata()