/external/llvm/include/llvm/IR/ |
D | Metadata.h | 312 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 …]
|
D | TrackingMDRef.h | 134 typedef TypedTrackingMDRef<ValueAsMetadata> TrackingValueAsMetadataRef;
|
D | Metadata.def | 77 HANDLE_METADATA_BRANCH(ValueAsMetadata)
|
D | Value.h | 75 friend class ValueAsMetadata; // Allow access to IsUsedByMD. variable
|
/external/llvm/test/Transforms/GlobalOpt/ |
D | metadata.ll | 17 ; for 'MetadataAsValue::get(ValueAsMetadata::get(Value*))'. When @G drops to 18 ; null, the ValueAsMetadata instance gets replaced by metadata !{}, or
|
/external/llvm/lib/IR/ |
D | Metadata.cpp | 284 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()
|
D | IntrinsicInst.cpp | 41 if (auto *V = dyn_cast<ValueAsMetadata>(MD)) in getVariableLocation()
|
D | TypeFinder.cpp | 124 if (const auto *MDV = dyn_cast<ValueAsMetadata>(M->getMetadata())) in incorporateValue()
|
D | Value.cpp | 71 ValueAsMetadata::handleDeletion(this); in ~Value() 381 ValueAsMetadata::handleRAUW(this, New); in replaceAllUsesWith()
|
D | Verifier.cpp | 358 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()
|
D | Core.cpp | 705 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()
|
D | DIBuilder.cpp | 712 return MetadataAsValue::get(VMContext, ValueAsMetadata::get(V)); in getDbgIntrinsicValueImpl()
|
D | LLVMContextImpl.h | 1061 DenseMap<Value *, ValueAsMetadata *> ValuesAsMetadata;
|
D | AsmWriter.cpp | 1394 else if (auto *MDV = dyn_cast<ValueAsMetadata>(MD)) { in writeMDTuple() 2045 auto *V = cast<ValueAsMetadata>(MD); in WriteAsOperandInternal()
|
/external/llvm/lib/Transforms/IPO/ |
D | CrossDSOCFI.cpp | 69 auto TM = dyn_cast<ValueAsMetadata>(MD->getOperand(1)); in extractNumericTypeId()
|
/external/llvm/unittests/Transforms/Utils/ |
D | ValueMapperTest.cpp | 342 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/ |
D | LoopRotation.cpp | 143 if (auto *VAM = ValueAsMetadata::getIfExists(OrigHeaderVal)) { in RewriteUsesOfClonedInstructions() 170 U = MetadataAsValue::get(C, ValueAsMetadata::get(NewVal)); in RewriteUsesOfClonedInstructions()
|
/external/llvm/lib/CodeGen/ |
D | StackColoring.cpp | 824 ValueAsMetadata::handleRAUW(FromAI, UndefValue::get(FromAI->getType())); in remapInstructions() 828 ValueAsMetadata::handleRAUW(BCI, UndefValue::get(BCI->getType())); in remapInstructions()
|
/external/llvm/unittests/IR/ |
D | MetadataTest.cpp | 2072 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/ |
D | ValueMapper.cpp | 386 return MetadataAsValue::get(V->getContext(), ValueAsMetadata::get(LV)); in mapValue()
|
/external/llvm/lib/Target/X86/ |
D | X86FrameLowering.cpp | 2334 ValueAsMetadata *NodeVal = dyn_cast<ValueAsMetadata>(Node->getOperand(1)); in getHiPELiteral()
|
/external/llvm/lib/Bitcode/Writer/ |
D | BitcodeWriter.cpp | 157 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/ |
D | SPIRVReader.cpp | 2178 KernelMD.push_back(ValueAsMetadata::get(F)); in transKernelMetadata() 2277 MetadataVec.push_back(ValueAsMetadata::get(UndefValue::get(VecHintTy))); in transKernelMetadata()
|
D | SPIRVUtil.cpp | 900 return cast<ValueAsMetadata>(N->getOperand(I))->getType(); in getMDOperandAsType()
|
/external/llvm/lib/Bitcode/Reader/ |
D | BitcodeReader.cpp | 2248 ValueAsMetadata::get(ValueList.getValueFwdRef(Record[i + 1], Ty)); in parseMetadata() 2267 ValueAsMetadata::get(ValueList.getValueFwdRef(Record[1], Ty)), in parseMetadata()
|