Lines Matching refs:getContext
66 getType()->getContext().pImpl->MetadataAsValues.erase(MD); in ~MetadataAsValue()
119 LLVMContext &Context = getContext(); in handleChangedMetadata()
336 LLVMContext &Context = C.getType()->getContext(); in SalvageDebugInfo()
498 auto &Context = V->getContext(); in get()
516 return V->getContext().pImpl->ValuesAsMetadata.lookup(V); in getIfExists()
522 auto &Store = V->getType()->getContext().pImpl->ValuesAsMetadata; in handleDeletion()
542 assert(&From->getContext() == &To->getContext() && "Expected same context"); in handleRAUW()
544 LLVMContext &Context = From->getType()->getContext(); in handleRAUW()
1006 return uniquifyImpl(SubclassThis, getContext().pImpl->CLASS##s); \ in uniquify()
1018 getContext().pImpl->CLASS##s.erase(cast<CLASS>(this)); \ in eraseFromStore()
1068 getContext().pImpl->DistinctMDNodes.push_back(this); in storeDistinctInContext()
1119 return getOrSelfReference(A->getContext(), MDs.getArrayRef()); in concatenate()
1132 return getOrSelfReference(A->getContext(), MDs.getArrayRef()); in intersect()
1164 : getOrSelfReference(A->getContext(), MDs.getArrayRef()); in getMostGenericAliasScope()
1185 auto &Ctx = AInstr->getContext(); in mergeDirectCallProfMetadata()
1348 return MDNode::get(A->getContext(), MDs); in getMostGenericRange()
1458 unsigned KindID = getContext().getMDKindID(Kind); in getMetadata()
1463 const LLVMContext &Ctx = getContext(); in getMetadataImpl()
1470 getContext().pImpl->ValueMetadata.at(this).get(KindID, MDs); in getMetadata()
1475 getMetadata(getContext().getMDKindID(Kind), MDs); in getMetadata()
1481 assert(getContext().pImpl->ValueMetadata.count(this) && in getAllMetadata()
1483 const MDAttachments &Info = getContext().pImpl->ValueMetadata.at(this); in getAllMetadata()
1493 MDAttachments &Info = getContext().pImpl->ValueMetadata[this]; in setMetadata()
1502 assert((HasMetadata == (getContext().pImpl->ValueMetadata.count(this) > 0)) && in setMetadata()
1506 MDAttachments &Info = getContext().pImpl->ValueMetadata.find(this)->second; in setMetadata()
1512 getContext().pImpl->ValueMetadata.erase(this); in setMetadata()
1519 setMetadata(getContext().getMDKindID(Kind), Node); in setMetadata()
1526 getContext().pImpl->ValueMetadata[this].insert(KindID, MD); in addMetadata()
1530 addMetadata(getContext().getMDKindID(Kind), MD); in addMetadata()
1538 MDAttachments &Store = getContext().pImpl->ValueMetadata.find(this)->second; in eraseMetadata()
1549 auto &MetadataStore = getContext().pImpl->ValueMetadata; in eraseMetadataIf()
1563 assert(getContext().pImpl->ValueMetadata.count(this) && in clearMetadata()
1565 getContext().pImpl->ValueMetadata.erase(this); in clearMetadata()
1572 setMetadata(getContext().getMDKindID(Kind), Node); in setMetadata()
1576 const LLVMContext &Ctx = getContext(); in getMetadataImpl()
1606 auto &IDToInstrs = getContext().pImpl->AssignmentIDToInstrs; in updateDIAssignIDMapping()
1679 MDBuilder MDB(getContext()); in addAnnotationMetadata()
1683 MDNode *InfoTuple = MDTuple::get(getContext(), MDAnnotationStrings); in addAnnotationMetadata()
1685 MDNode *MD = MDTuple::get(getContext(), Names); in addAnnotationMetadata()
1701 MDBuilder MDB(getContext()); in addAnnotationMetadata()
1703 MDNode *MD = MDTuple::get(getContext(), Names); in addAnnotationMetadata()
1712 const MDAttachments &Info = getContext().pImpl->ValueMetadata.at(this); in getAAMetadata()
1730 llvm::MDNode::get(getContext(), std::nullopt)); in setNoSanitizeMetadata()
1768 *MDNode::get(getContext(), {NewOffsetMD, TypeId})); in copyMetadata()
1790 E = DIExpression::get(getContext(), Elements); in copyMetadata()
1791 Attachment = DIGlobalVariableExpression::get(getContext(), GV, E); in copyMetadata()
1800 *MDTuple::get(getContext(), in addTypeMetadata()
1802 Type::getInt64Ty(getContext()), Offset)), in addTypeMetadata()
1811 *MDNode::get(getContext(), in setVCallVisibilityMetadata()
1813 Type::getInt64Ty(getContext()), Visibility))})); in setVCallVisibilityMetadata()