Home
last modified time | relevance | path

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

/external/llvm/include/llvm/IR/
DMetadata.h240 class ValueAsMetadata : public Metadata, ReplaceableMetadataImpl {
252 ValueAsMetadata(unsigned ID, Value *V) in ValueAsMetadata() function
256 ~ValueAsMetadata() = default;
259 static ValueAsMetadata *get(Value *V);
267 static ValueAsMetadata *getIfExists(Value *V);
299 class ConstantAsMetadata : public ValueAsMetadata {
300 friend class ValueAsMetadata; variable
303 : ValueAsMetadata(ConstantAsMetadataKind, C) {} in ConstantAsMetadata()
307 return ValueAsMetadata::getConstant(C); in get()
310 return ValueAsMetadata::getConstantIfExists(C); in getIfExists()
[all …]
DTrackingMDRef.h24 class ValueAsMetadata; variable
139 typedef TypedTrackingMDRef<ValueAsMetadata> TrackingValueAsMetadataRef;
DMetadata.def58 HANDLE_METADATA_BRANCH(ValueAsMetadata)
DValue.h72 friend class ValueAsMetadata; // Allow access to NameAndIsUsedByMD. 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/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.cpp131 if (const auto *MDV = dyn_cast<ValueAsMetadata>(M->getMetadata())) in incorporateValue()
DValue.cpp68 ValueAsMetadata::handleDeletion(this); in ~Value()
331 ValueAsMetadata::handleRAUW(this, New); in replaceAllUsesWith()
DVerifier.cpp294 void visitValueAsMetadata(const ValueAsMetadata &MD, Function *F);
646 if (auto *V = dyn_cast<ValueAsMetadata>(Op)) { in visitMDNode()
657 void Verifier::visitValueAsMetadata(const ValueAsMetadata &MD, Function *F) { in visitValueAsMetadata()
695 if (auto *V = dyn_cast<ValueAsMetadata>(MD)) in visitMetadataAsValue()
3383 Assert(isa<ValueAsMetadata>(MD) || in visitDbgIntrinsic()
DCore.cpp598 isa<ValueAsMetadata>(MD->getMetadata())) in LLVM_FOR_EACH_VALUE_SUBCLASS()
649 if (auto *L = dyn_cast<ValueAsMetadata>(MD->getMetadata())) { in LLVMGetOperand()
767 if (isa<ValueAsMetadata>(MD->getMetadata())) in LLVMGetMDNodeNumOperands()
775 if (auto *MDV = dyn_cast<ValueAsMetadata>(MD->getMetadata())) { in LLVMGetMDNodeOperands()
DDIBuilder.cpp724 return MetadataAsValue::get(VMContext, ValueAsMetadata::get(V)); in getDbgIntrinsicValueImpl()
DLLVMContextImpl.h882 DenseMap<Value *, ValueAsMetadata *> ValuesAsMetadata;
DAsmWriter.cpp1331 else if (auto *MDV = dyn_cast<ValueAsMetadata>(MD)) { in writeMDTuple()
1925 auto *V = cast<ValueAsMetadata>(MD); in WriteAsOperandInternal()
/external/llvm/lib/Transforms/Utils/
DValueMapper.cpp277 if (const auto *VMD = dyn_cast<ValueAsMetadata>(MD)) { in MapMetadataImpl()
290 return mapToMetadata(VM, MD, ValueAsMetadata::get(MappedV)); in MapMetadataImpl()
/external/llvm/unittests/IR/
DMetadataTest.cpp2035 auto *MD = ValueAsMetadata::get(GV0.get()); in TEST_F()
2064 ValueAsMetadata::handleDeletion(CI->getValue()); in TEST_F()
2079 TypedTrackingMDRef<ValueAsMetadata> MD(ValueAsMetadata::get(GV0.get())); in TEST_F()
2096 TypedTrackingMDRef<ValueAsMetadata> MD(ValueAsMetadata::get(GV.get())); in TEST_F()
/external/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp1663 ValueAsMetadata::get(ValueList.getValueFwdRef(Record[i + 1], Ty)); in ParseMetadata()
1682 ValueAsMetadata::get(ValueList.getValueFwdRef(Record[1], Ty)), in ParseMetadata()
/external/llvm/lib/Bitcode/Writer/
DBitcodeWriter.cpp758 static void WriteValueAsMetadata(const ValueAsMetadata *MD, in WriteValueAsMetadata()
/external/clang/lib/CodeGen/
DCodeGenModule.cpp3566 Context, llvm::ValueAsMetadata::getConstant(DAddr))); in EmitDeclMetadata()
/external/llvm/lib/AsmParser/
DLLParser.cpp3841 MD = ValueAsMetadata::get(V); in ParseValueAsMetadata()