Searched refs:LocalAsMetadata (Results 1 – 15 of 15) sorted by relevance
34 class LocalAsMetadata; variable64 SmallVector<const LocalAsMetadata *, 8> FunctionLocalMDs;161 const SmallVectorImpl<const LocalAsMetadata *> &getFunctionLocalMDs() const { in getFunctionLocalMDs()195 void EnumerateFunctionLocalMetadata(const LocalAsMetadata *Local);
361 if (isa<LocalAsMetadata>(MD->getMetadata())) in ValueEnumerator()522 assert(!isa<LocalAsMetadata>(MD) && "MDNodes cannot be function-local"); in EnumerateMDNodeOperands()558 const LocalAsMetadata *Local) { in EnumerateFunctionLocalMetadata()665 assert(!isa<LocalAsMetadata>(MD->getMetadata()) && in EnumerateOperandType()751 SmallVector<LocalAsMetadata *, 8> FnLocalMDVector; in incorporateFunction()758 if (auto *Local = dyn_cast<LocalAsMetadata>(MD->getMetadata())) in incorporateFunction()
775 assert(!(MD && isa<LocalAsMetadata>(MD)) && in WriteMDTuple()1257 const SmallVectorImpl<const LocalAsMetadata *> &MDs = in WriteFunctionLocalMetadata()
263 static LocalAsMetadata *getLocal(Value *Local) { in getLocal()264 return cast<LocalAsMetadata>(get(Local)); in getLocal()271 static LocalAsMetadata *getLocalIfExists(Value *Local) { in getLocalIfExists()272 return cast_or_null<LocalAsMetadata>(getIfExists(Local)); in getLocalIfExists()322 class LocalAsMetadata : public ValueAsMetadata {325 LocalAsMetadata(Value *Local) in LocalAsMetadata() function331 static LocalAsMetadata *get(Value *Local) { in get()334 static LocalAsMetadata *getIfExists(Value *Local) { in getIfExists()
60 HANDLE_METADATA_LEAF(LocalAsMetadata)
64 if (!isa<LocalAsMetadata>(MD) && (Flags & RF_NoModuleLevelChanges)) in MapValue()
1093 if (auto *L = LocalAsMetadata::getIfExists(V)) in FindAllocaDbgDeclare()
265 Entry = new LocalAsMetadata(V); in get()319 if (isa<LocalAsMetadata>(MD)) { in handleRAUW()
736 assert(!isa<LocalAsMetadata>(MD) && "Unexpected function-local metadata " in LLVMMDNodeInContext()742 return wrap(MetadataAsValue::get(Context, LocalAsMetadata::get(V))); in LLVMMDNodeInContext()
640 Assert(!isa<LocalAsMetadata>(Op), "Invalid operand for global metadata!", in visitMDNode()662 auto *L = dyn_cast<LocalAsMetadata>(&MD); in visitValueAsMetadata()
1927 assert((FromValue || !isa<LocalAsMetadata>(V)) && in WriteAsOperandInternal()
1644 LocalAsMetadata::get(ValueList.getValueFwdRef(Record[1], Ty)), in ParseMetadata()3240 if (isa<LocalAsMetadata>(Node)) in ParseMetadataAttachment()
1062 if (auto *L = LocalAsMetadata::getIfExists(AI)) { in run()
1098 if (auto *L = LocalAsMetadata::getIfExists(&AI)) { in run()
210 Metadata *const V = LocalAsMetadata::get(I); in TEST_F()