Lines Matching refs:Metadata
159 Metadata *mapMetadata(const Metadata *MD);
184 std::optional<Metadata *> mapSimpleMetadata(const Metadata *MD);
186 Metadata *mapToMetadata(const Metadata *Key, Metadata *Val);
187 Metadata *mapToSelf(const Metadata *MD);
202 SmallDenseMap<const Metadata *, Data, 32> Info; // Node properties.
212 Metadata &getFwdReference(MDNode &Op);
219 SmallDenseMap<const Metadata *, Data, 32> InfoStorage;
243 Metadata *map(const MDNode &N);
265 Metadata *mapTopLevelUniquedNode(const MDNode &FirstN);
276 std::optional<Metadata *> tryToMapOperand(const Metadata *Op);
288 std::optional<Metadata *> getMappedOp(const Metadata *Op) const;
380 const Metadata *MD = MDV->getMetadata(); in mapValue()
608 Metadata *Mapper::mapToMetadata(const Metadata *Key, Metadata *Val) { in mapToMetadata()
613 Metadata *Mapper::mapToSelf(const Metadata *MD) { in mapToSelf()
614 return mapToMetadata(MD, const_cast<Metadata *>(MD)); in mapToSelf()
617 std::optional<Metadata *> MDNodeMapper::tryToMapOperand(const Metadata *Op) { in tryToMapOperand()
621 if (std::optional<Metadata *> MappedOp = M.mapSimpleMetadata(Op)) { in tryToMapOperand()
643 Metadata *NewM = nullptr; in mapDistinctNode()
665 std::optional<Metadata *> MDNodeMapper::getMappedOp(const Metadata *Op) const { in getMappedOp()
669 if (std::optional<Metadata *> MappedOp = M.getVM().getMappedMD(Op)) in getMappedOp()
673 return const_cast<Metadata *>(Op); in getMappedOp()
681 Metadata &MDNodeMapper::UniquedGraph::getFwdReference(MDNode &Op) { in getFwdReference()
700 Metadata *Old = N.getOperand(I); in remapOperands()
701 Metadata *New = mapOperand(Old); in remapOperands()
762 Metadata *Op = *I++; // Increment even on early return. in visitOperands()
763 if (std::optional<Metadata *> MappedOp = tryToMapOperand(Op)) { in visitOperands()
788 if (llvm::none_of(N->operands(), [&](const Metadata *Op) { in propagateChanges()
815 remapOperands(*ClonedN, [this, &D, &G](Metadata *Old) { in mapNodesInPOT()
816 if (std::optional<Metadata *> MappedOp = getMappedOp(Old)) in mapNodesInPOT()
843 Metadata *MDNodeMapper::map(const MDNode &N) { in map()
851 Metadata *MappedN = in map()
854 remapOperands(*DistinctWorklist.pop_back_val(), [this](Metadata *Old) { in map()
855 if (std::optional<Metadata *> MappedOp = tryToMapOperand(Old)) in map()
862 Metadata *MDNodeMapper::mapTopLevelUniquedNode(const MDNode &FirstN) { in mapTopLevelUniquedNode()
884 std::optional<Metadata *> Mapper::mapSimpleMetadata(const Metadata *MD) { in mapSimpleMetadata()
886 if (std::optional<Metadata *> NewMD = getVM().getMappedMD(MD)) in mapSimpleMetadata()
890 return const_cast<Metadata *>(MD); in mapSimpleMetadata()
895 return const_cast<Metadata *>(MD); in mapSimpleMetadata()
910 Metadata *Mapper::mapMetadata(const Metadata *MD) { in mapMetadata()
914 if (std::optional<Metadata *> NewMD = mapSimpleMetadata(MD)) in mapMetadata()
1227 Metadata *ValueMapper::mapMetadata(const Metadata &MD) { in mapMetadata()