Home
last modified time | relevance | path

Searched refs:ValueAsMetadata (Results 1 – 22 of 22) sorted by relevance

/external/llvm/include/llvm/IR/
DMetadata.h252 class ValueAsMetadata : public Metadata, ReplaceableMetadataImpl {
264 ValueAsMetadata(unsigned ID, Value *V) in ValueAsMetadata() function
268 ~ValueAsMetadata() = default;
271 static ValueAsMetadata *get(Value *V);
279 static ValueAsMetadata *getIfExists(Value *V);
311 class ConstantAsMetadata : public ValueAsMetadata {
312 friend class ValueAsMetadata; variable
315 : ValueAsMetadata(ConstantAsMetadataKind, C) {} in ConstantAsMetadata()
319 return ValueAsMetadata::getConstant(C); in get()
322 return ValueAsMetadata::getConstantIfExists(C); in getIfExists()
[all …]
DTrackingMDRef.h24 class ValueAsMetadata; variable
139 typedef TypedTrackingMDRef<ValueAsMetadata> TrackingValueAsMetadataRef;
DMetadata.def77 HANDLE_METADATA_BRANCH(ValueAsMetadata)
DValue.h72 friend class ValueAsMetadata; // Allow access to IsUsedByMD. variable
/external/llvm/test/Transforms/GlobalOpt/
Dmetadata.ll17 ; for 'MetadataAsValue::get(ValueAsMetadata::get(Value*))'. When @G drops to
18 ; null, the ValueAsMetadata instance gets replaced by metadata !{}, or
/external/llvm/lib/Transforms/IPO/
DCrossDSOCFI.cpp79 auto TM = dyn_cast<ValueAsMetadata>(MD->getOperand(0)); in extractBitSetTypeId()
88 auto FM = dyn_cast_or_null<ValueAsMetadata>(MD->getOperand(1)); in extractBitSetTypeId()
/external/llvm/lib/IR/
DMetadata.cpp251 ValueAsMetadata *ValueAsMetadata::get(Value *V) { in get()
271 ValueAsMetadata *ValueAsMetadata::getIfExists(Value *V) { in getIfExists()
276 void ValueAsMetadata::handleDeletion(Value *V) { in handleDeletion()
285 ValueAsMetadata *MD = I->second; in handleDeletion()
295 void ValueAsMetadata::handleRAUW(Value *From, Value *To) { in handleRAUW()
314 ValueAsMetadata *MD = I->second; in handleRAUW()
DIntrinsicInst.cpp54 if (auto *V = dyn_cast<ValueAsMetadata>(MD)) in getValueImpl()
DMetadataTracking.cpp22 return dyn_cast<ValueAsMetadata>(&MD); in get()
DTypeFinder.cpp128 if (const auto *MDV = dyn_cast<ValueAsMetadata>(M->getMetadata())) in incorporateValue()
DValue.cpp68 ValueAsMetadata::handleDeletion(this); in ~Value()
372 ValueAsMetadata::handleRAUW(this, New); in replaceAllUsesWith()
DVerifier.cpp309 void visitValueAsMetadata(const ValueAsMetadata &MD, Function *F);
655 if (auto *V = dyn_cast<ValueAsMetadata>(Op)) { in visitMDNode()
666 void Verifier::visitValueAsMetadata(const ValueAsMetadata &MD, Function *F) { in visitValueAsMetadata()
704 if (auto *V = dyn_cast<ValueAsMetadata>(MD)) in visitMetadataAsValue()
3782 Assert(isa<ValueAsMetadata>(MD) || in visitDbgIntrinsic()
DCore.cpp614 isa<ValueAsMetadata>(MD->getMetadata())) in LLVM_FOR_EACH_VALUE_SUBCLASS()
665 if (auto *L = dyn_cast<ValueAsMetadata>(MD->getMetadata())) { in LLVMGetOperand()
783 if (isa<ValueAsMetadata>(MD->getMetadata())) in LLVMGetMDNodeNumOperands()
791 if (auto *MDV = dyn_cast<ValueAsMetadata>(MD->getMetadata())) { in LLVMGetMDNodeOperands()
DDIBuilder.cpp767 return MetadataAsValue::get(VMContext, ValueAsMetadata::get(V)); in getDbgIntrinsicValueImpl()
DLLVMContextImpl.h929 DenseMap<Value *, ValueAsMetadata *> ValuesAsMetadata;
DAsmWriter.cpp1350 else if (auto *MDV = dyn_cast<ValueAsMetadata>(MD)) { in writeMDTuple()
1991 auto *V = cast<ValueAsMetadata>(MD); in WriteAsOperandInternal()
/external/llvm/lib/Transforms/Utils/
DValueMapper.cpp336 if (const auto *VMD = dyn_cast<ValueAsMetadata>(MD)) { in MapMetadataImpl()
350 return mapToMetadata(VM, MD, ValueAsMetadata::get(MappedV), Materializer, in MapMetadataImpl()
/external/llvm/unittests/IR/
DMetadataTest.cpp2052 auto *MD = ValueAsMetadata::get(GV0.get()); in TEST_F()
2081 ValueAsMetadata::handleDeletion(CI->getValue()); in TEST_F()
2096 TypedTrackingMDRef<ValueAsMetadata> MD(ValueAsMetadata::get(GV0.get())); in TEST_F()
2113 TypedTrackingMDRef<ValueAsMetadata> MD(ValueAsMetadata::get(GV.get())); in TEST_F()
/external/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp1997 ValueAsMetadata::get(ValueList.getValueFwdRef(Record[i + 1], Ty)); in parseMetadata()
2016 ValueAsMetadata::get(ValueList.getValueFwdRef(Record[1], Ty)), in parseMetadata()
/external/llvm/lib/Bitcode/Writer/
DBitcodeWriter.cpp830 static void WriteValueAsMetadata(const ValueAsMetadata *MD, in WriteValueAsMetadata()
/external/clang/lib/CodeGen/
DCodeGenModule.cpp3807 Context, llvm::ValueAsMetadata::getConstant(DAddr))); in EmitDeclMetadata()
/external/llvm/lib/AsmParser/
DLLParser.cpp4104 MD = ValueAsMetadata::get(V); in ParseValueAsMetadata()