Lines Matching refs:getContext
66 getType()->getContext().pImpl->MetadataAsValues.erase(MD); in ~MetadataAsValue()
119 LLVMContext &Context = getContext(); in handleChangedMetadata()
327 LLVMContext &Context = C.getType()->getContext(); in SalvageDebugInfo()
489 auto &Context = V->getContext(); in get()
507 return V->getContext().pImpl->ValuesAsMetadata.lookup(V); in getIfExists()
513 auto &Store = V->getType()->getContext().pImpl->ValuesAsMetadata; in handleDeletion()
533 assert(&From->getContext() == &To->getContext() && "Expected same context"); in handleRAUW()
535 LLVMContext &Context = From->getType()->getContext(); in handleRAUW()
997 return uniquifyImpl(SubclassThis, getContext().pImpl->CLASS##s); \ in uniquify()
1009 getContext().pImpl->CLASS##s.erase(cast<CLASS>(this)); \ in eraseFromStore()
1059 getContext().pImpl->DistinctMDNodes.push_back(this); in storeDistinctInContext()
1110 return getOrSelfReference(A->getContext(), MDs.getArrayRef()); in concatenate()
1123 return getOrSelfReference(A->getContext(), MDs.getArrayRef()); in intersect()
1155 : getOrSelfReference(A->getContext(), MDs.getArrayRef()); in getMostGenericAliasScope()
1176 auto &Ctx = AInstr->getContext(); in mergeDirectCallProfMetadata()
1339 return MDNode::get(A->getContext(), MDs); in getMostGenericRange()
1449 unsigned KindID = getContext().getMDKindID(Kind); in getMetadata()
1454 const LLVMContext &Ctx = getContext(); in getMetadataImpl()
1461 getContext().pImpl->ValueMetadata.at(this).get(KindID, MDs); in getMetadata()
1466 getMetadata(getContext().getMDKindID(Kind), MDs); in getMetadata()
1472 assert(getContext().pImpl->ValueMetadata.count(this) && in getAllMetadata()
1474 const MDAttachments &Info = getContext().pImpl->ValueMetadata.at(this); in getAllMetadata()
1484 MDAttachments &Info = getContext().pImpl->ValueMetadata[this]; in setMetadata()
1493 assert((HasMetadata == (getContext().pImpl->ValueMetadata.count(this) > 0)) && in setMetadata()
1497 MDAttachments &Info = getContext().pImpl->ValueMetadata.find(this)->second; in setMetadata()
1503 getContext().pImpl->ValueMetadata.erase(this); in setMetadata()
1510 setMetadata(getContext().getMDKindID(Kind), Node); in setMetadata()
1517 getContext().pImpl->ValueMetadata[this].insert(KindID, MD); in addMetadata()
1521 addMetadata(getContext().getMDKindID(Kind), MD); in addMetadata()
1529 MDAttachments &Store = getContext().pImpl->ValueMetadata.find(this)->second; in eraseMetadata()
1540 auto &MetadataStore = getContext().pImpl->ValueMetadata; in eraseMetadataIf()
1554 assert(getContext().pImpl->ValueMetadata.count(this) && in clearMetadata()
1556 getContext().pImpl->ValueMetadata.erase(this); in clearMetadata()
1563 setMetadata(getContext().getMDKindID(Kind), Node); in setMetadata()
1567 const LLVMContext &Ctx = getContext(); in getMetadataImpl()
1597 auto &IDToInstrs = getContext().pImpl->AssignmentIDToInstrs; in updateDIAssignIDMapping()
1670 MDBuilder MDB(getContext()); in addAnnotationMetadata()
1674 MDNode *InfoTuple = MDTuple::get(getContext(), MDAnnotationStrings); in addAnnotationMetadata()
1676 MDNode *MD = MDTuple::get(getContext(), Names); in addAnnotationMetadata()
1692 MDBuilder MDB(getContext()); in addAnnotationMetadata()
1694 MDNode *MD = MDTuple::get(getContext(), Names); in addAnnotationMetadata()
1703 const MDAttachments &Info = getContext().pImpl->ValueMetadata.at(this); in getAAMetadata()
1721 llvm::MDNode::get(getContext(), std::nullopt)); in setNoSanitizeMetadata()
1759 *MDNode::get(getContext(), {NewOffsetMD, TypeId})); in copyMetadata()
1781 E = DIExpression::get(getContext(), Elements); in copyMetadata()
1782 Attachment = DIGlobalVariableExpression::get(getContext(), GV, E); in copyMetadata()
1791 *MDTuple::get(getContext(), in addTypeMetadata()
1793 Type::getInt64Ty(getContext()), Offset)), in addTypeMetadata()
1802 *MDNode::get(getContext(), in setVCallVisibilityMetadata()
1804 Type::getInt64Ty(getContext()), Visibility))})); in setVCallVisibilityMetadata()