Home
last modified time | relevance | path

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

12

/external/llvm/include/llvm/IR/
DMetadata.h312 class ValueAsMetadata : public Metadata, ReplaceableMetadataImpl {
324 ValueAsMetadata(unsigned ID, Value *V) in ValueAsMetadata() function
328 ~ValueAsMetadata() = default;
331 static ValueAsMetadata *get(Value *V);
339 static ValueAsMetadata *getIfExists(Value *V);
371 class ConstantAsMetadata : public ValueAsMetadata {
372 friend class ValueAsMetadata; variable
375 : ValueAsMetadata(ConstantAsMetadataKind, C) {} in ConstantAsMetadata()
379 return ValueAsMetadata::getConstant(C); in get()
382 return ValueAsMetadata::getConstantIfExists(C); in getIfExists()
[all …]
DTrackingMDRef.h134 typedef TypedTrackingMDRef<ValueAsMetadata> TrackingValueAsMetadataRef;
DMetadata.def77 HANDLE_METADATA_BRANCH(ValueAsMetadata)
DValue.h75 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/IR/
DMetadata.cpp284 return dyn_cast<ValueAsMetadata>(&MD); in getOrCreate()
290 return dyn_cast<ValueAsMetadata>(&MD); in getIfExists()
296 return dyn_cast<ValueAsMetadata>(&MD); in isReplaceable()
308 ValueAsMetadata *ValueAsMetadata::get(Value *V) { in get()
328 ValueAsMetadata *ValueAsMetadata::getIfExists(Value *V) { in getIfExists()
333 void ValueAsMetadata::handleDeletion(Value *V) { in handleDeletion()
342 ValueAsMetadata *MD = I->second; in handleDeletion()
352 void ValueAsMetadata::handleRAUW(Value *From, Value *To) { in handleRAUW()
371 ValueAsMetadata *MD = I->second; in handleRAUW()
DIntrinsicInst.cpp41 if (auto *V = dyn_cast<ValueAsMetadata>(MD)) in getVariableLocation()
DTypeFinder.cpp124 if (const auto *MDV = dyn_cast<ValueAsMetadata>(M->getMetadata())) in incorporateValue()
DValue.cpp71 ValueAsMetadata::handleDeletion(this); in ~Value()
381 ValueAsMetadata::handleRAUW(this, New); in replaceAllUsesWith()
DVerifier.cpp358 void visitValueAsMetadata(const ValueAsMetadata &MD, Function *F);
714 if (auto *V = dyn_cast<ValueAsMetadata>(Op)) { in visitMDNode()
725 void Verifier::visitValueAsMetadata(const ValueAsMetadata &MD, Function *F) { in visitValueAsMetadata()
763 if (auto *V = dyn_cast<ValueAsMetadata>(MD)) in visitMetadataAsValue()
4155 AssertDI(isa<ValueAsMetadata>(MD) || in visitDbgIntrinsic()
DCore.cpp705 isa<ValueAsMetadata>(MD->getMetadata())) in LLVM_FOR_EACH_VALUE_SUBCLASS()
756 if (auto *L = dyn_cast<ValueAsMetadata>(MD->getMetadata())) { in LLVMGetOperand()
872 if (isa<ValueAsMetadata>(MD->getMetadata())) in LLVMGetMDNodeNumOperands()
879 if (auto *MDV = dyn_cast<ValueAsMetadata>(MD->getMetadata())) { in LLVMGetMDNodeOperands()
DDIBuilder.cpp712 return MetadataAsValue::get(VMContext, ValueAsMetadata::get(V)); in getDbgIntrinsicValueImpl()
DLLVMContextImpl.h1061 DenseMap<Value *, ValueAsMetadata *> ValuesAsMetadata;
DAsmWriter.cpp1394 else if (auto *MDV = dyn_cast<ValueAsMetadata>(MD)) { in writeMDTuple()
2045 auto *V = cast<ValueAsMetadata>(MD); in WriteAsOperandInternal()
/external/llvm/lib/Transforms/IPO/
DCrossDSOCFI.cpp69 auto TM = dyn_cast<ValueAsMetadata>(MD->getOperand(1)); in extractNumericTypeId()
/external/llvm/unittests/Transforms/Utils/
DValueMapperTest.cpp342 auto *MDA = MetadataAsValue::get(Context, ValueAsMetadata::get(&A)); in TEST()
343 auto *MDC = MetadataAsValue::get(Context, ValueAsMetadata::get(&C)); in TEST()
/external/llvm/lib/Transforms/Scalar/
DLoopRotation.cpp143 if (auto *VAM = ValueAsMetadata::getIfExists(OrigHeaderVal)) { in RewriteUsesOfClonedInstructions()
170 U = MetadataAsValue::get(C, ValueAsMetadata::get(NewVal)); in RewriteUsesOfClonedInstructions()
/external/llvm/lib/CodeGen/
DStackColoring.cpp824 ValueAsMetadata::handleRAUW(FromAI, UndefValue::get(FromAI->getType())); in remapInstructions()
828 ValueAsMetadata::handleRAUW(BCI, UndefValue::get(BCI->getType())); in remapInstructions()
/external/llvm/unittests/IR/
DMetadataTest.cpp2072 auto *MD = ValueAsMetadata::get(GV0.get()); in TEST_F()
2118 ValueAsMetadata::handleDeletion(CI->getValue()); in TEST_F()
2133 TypedTrackingMDRef<ValueAsMetadata> MD(ValueAsMetadata::get(GV0.get())); in TEST_F()
2150 TypedTrackingMDRef<ValueAsMetadata> MD(ValueAsMetadata::get(GV.get())); in TEST_F()
/external/llvm/lib/Transforms/Utils/
DValueMapper.cpp386 return MetadataAsValue::get(V->getContext(), ValueAsMetadata::get(LV)); in mapValue()
/external/llvm/lib/Target/X86/
DX86FrameLowering.cpp2334 ValueAsMetadata *NodeVal = dyn_cast<ValueAsMetadata>(Node->getOperand(1)); in getHiPELiteral()
/external/llvm/lib/Bitcode/Writer/
DBitcodeWriter.cpp157 void writeValueAsMetadata(const ValueAsMetadata *MD,
1306 const ValueAsMetadata *MD, SmallVectorImpl<uint64_t> &Record) { in writeValueAsMetadata()
1825 writeValueAsMetadata(cast<ValueAsMetadata>(MD), Record); in writeMetadataRecords()
/external/spirv-llvm/lib/SPIRV/
DSPIRVReader.cpp2178 KernelMD.push_back(ValueAsMetadata::get(F)); in transKernelMetadata()
2277 MetadataVec.push_back(ValueAsMetadata::get(UndefValue::get(VecHintTy))); in transKernelMetadata()
DSPIRVUtil.cpp900 return cast<ValueAsMetadata>(N->getOperand(I))->getType(); in getMDOperandAsType()
/external/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp2248 ValueAsMetadata::get(ValueList.getValueFwdRef(Record[i + 1], Ty)); in parseMetadata()
2267 ValueAsMetadata::get(ValueList.getValueFwdRef(Record[1], Ty)), in parseMetadata()

12