Home
last modified time | relevance | path

Searched refs:getIfExists (Results 1 – 8 of 8) sorted by relevance

/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DMetadata.h191 static MetadataAsValue *getIfExists(LLVMContext &Context, Metadata *MD);
329 static ReplaceableMetadataImpl *getIfExists(Metadata &MD);
375 static ValueAsMetadata *getIfExists(Value *V);
378 return cast_or_null<ConstantAsMetadata>(getIfExists(C)); in getConstantIfExists()
382 return cast_or_null<LocalAsMetadata>(getIfExists(Local)); in getLocalIfExists()
424 static ConstantAsMetadata *getIfExists(Constant *C) { in getIfExists() function
450 static LocalAsMetadata *getIfExists(Value *Local) { in getIfExists() function
1092 static inline MDTuple *getIfExists(LLVMContext &Context,
1361 static MDTuple *getIfExists(LLVMContext &Context, ArrayRef<Metadata *> MDs) {
1404 MDTuple *MDNode::getIfExists(LLVMContext &Context, ArrayRef<Metadata *> MDs) {
[all …]
H A DDebugInfoMetadata.h54 static CLASS *getIfExists(LLVMContext &Context, \
1409 static void getIfExists() = delete;
/llvm-project-15.0.7/llvm/lib/IR/
H A DDebugInfo.cpp50 auto *L = LocalAsMetadata::getIfExists(V); in FindDbgAddrUses()
53 auto *MDV = MetadataAsValue::getIfExists(V->getContext(), L); in FindDbgAddrUses()
84 if (auto *L = LocalAsMetadata::getIfExists(V)) { in findDbgValues()
85 if (auto *MDV = MetadataAsValue::getIfExists(V->getContext(), L)) { in findDbgValues()
91 if (auto *MDV = MetadataAsValue::getIfExists(V->getContext(), AL)) { in findDbgValues()
111 if (auto *L = LocalAsMetadata::getIfExists(V)) { in findDbgUsers()
112 if (auto *MDV = MetadataAsValue::getIfExists(V->getContext(), L)) { in findDbgUsers()
118 if (auto *MDV = MetadataAsValue::getIfExists(V->getContext(), AL)) { in findDbgUsers()
H A DMetadata.cpp110 MetadataAsValue *MetadataAsValue::getIfExists(LLVMContext &Context, in getIfExists() function in MetadataAsValue
169 if (auto *R = ReplaceableMetadataImpl::getIfExists(MD)) in untrack()
179 if (auto *R = ReplaceableMetadataImpl::getIfExists(MD)) { in retrack()
363 ReplaceableMetadataImpl *ReplaceableMetadataImpl::getIfExists(Metadata &MD) { in getIfExists() function in ReplaceableMetadataImpl
411 ValueAsMetadata *ValueAsMetadata::getIfExists(Value *V) { in getIfExists() function in ValueAsMetadata
/llvm-project-15.0.7/llvm/unittests/IR/
H A DDebugInfoTest.cpp299 auto *E1 = DIEnumerator::getIfExists(Ctx, I1, I1.isSigned(), "name"); in TEST()
302 auto *E2 = DIEnumerator::getIfExists(Ctx, I2, I1.isSigned(), "name"); in TEST()
H A DMetadataTest.cpp194 MDNode *n4 = MDNode::getIfExists(Context, V); in TEST_F()
195 MDNode *n5 = MDNode::getIfExists(Context, c1); in TEST_F()
196 MDNode *n6 = MDNode::getIfExists(Context, c2); in TEST_F()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DInliner.cpp267 if (auto *L = LocalAsMetadata::getIfExists(AI)) in mergeInlinedArrayAllocas()
268 if (auto *MDV = MetadataAsValue::getIfExists(AI->getContext(), L)) in mergeInlinedArrayAllocas()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DLocal.cpp1731 if (auto *L = LocalAsMetadata::getIfExists(AI)) in replaceDbgValueForAlloca()
1732 if (auto *MDV = MetadataAsValue::getIfExists(AI->getContext(), L)) in replaceDbgValueForAlloca()