/external/llvm/include/llvm/IR/ |
D | MetadataTracking.h | 24 class MetadataAsValue; variable 62 static bool track(void *Ref, Metadata &MD, MetadataAsValue &Owner) { in track() 88 typedef PointerUnion<MetadataAsValue *, Metadata *> OwnerTy;
|
D | IntrinsicInst.h | 93 return cast<MetadataAsValue>(getArgOperand(1))->getMetadata(); in getRawVariable() 96 return cast<MetadataAsValue>(getArgOperand(2))->getMetadata(); in getRawExpression() 126 return cast<MetadataAsValue>(getArgOperand(2))->getMetadata(); in getRawVariable() 129 return cast<MetadataAsValue>(getArgOperand(3))->getMetadata(); in getRawExpression()
|
D | Metadata.h | 160 class MetadataAsValue : public Value { 166 MetadataAsValue(Type *Ty, Metadata *MD); 167 ~MetadataAsValue() override; 173 static MetadataAsValue *get(LLVMContext &Context, Metadata *MD); 174 static MetadataAsValue *getIfExists(LLVMContext &Context, Metadata *MD);
|
/external/llvm/lib/IR/ |
D | Metadata.cpp | 32 MetadataAsValue::MetadataAsValue(Type *Ty, Metadata *MD) in MetadataAsValue() function in MetadataAsValue 37 MetadataAsValue::~MetadataAsValue() { in ~MetadataAsValue() 75 MetadataAsValue *MetadataAsValue::get(LLVMContext &Context, Metadata *MD) { in get() 79 Entry = new MetadataAsValue(Type::getMetadataTy(Context), MD); in get() 83 MetadataAsValue *MetadataAsValue::getIfExists(LLVMContext &Context, in getIfExists() 90 void MetadataAsValue::handleChangedMetadata(Metadata *MD) { in handleChangedMetadata() 113 void MetadataAsValue::track() { in track() 118 void MetadataAsValue::untrack() { in untrack() 189 if (Owner.is<MetadataAsValue *>()) { in replaceAllUsesWith() 190 Owner.get<MetadataAsValue *>()->handleChangedMetadata(MD); in replaceAllUsesWith() [all …]
|
D | DIBuilder.cpp | 724 return MetadataAsValue::get(VMContext, ValueAsMetadata::get(V)); in getDbgIntrinsicValueImpl() 746 MetadataAsValue::get(VMContext, VarInfo), in insertDeclare() 747 MetadataAsValue::get(VMContext, Expr)}; in insertDeclare() 765 MetadataAsValue::get(VMContext, VarInfo), in insertDeclare() 766 MetadataAsValue::get(VMContext, Expr)}; in insertDeclare() 793 MetadataAsValue::get(VMContext, VarInfo), in insertDbgValueIntrinsic() 794 MetadataAsValue::get(VMContext, Expr)}; in insertDbgValueIntrinsic() 816 MetadataAsValue::get(VMContext, VarInfo), in insertDbgValueIntrinsic() 817 MetadataAsValue::get(VMContext, Expr)}; in insertDbgValueIntrinsic()
|
D | IntrinsicInst.cpp | 53 auto *MD = cast<MetadataAsValue>(Op)->getMetadata(); in getValueImpl()
|
D | Core.cpp | 562 return wrap(MetadataAsValue::get(I->getContext(), MD)); in LLVMGetMetadata() 569 static MDNode *extractMDNode(MetadataAsValue *MAV) { in extractMDNode() 581 MDNode *N = Val ? extractMDNode(unwrap<MetadataAsValue>(Val)) : nullptr; in LLVMSetMetadata() 596 if (auto *MD = dyn_cast_or_null<MetadataAsValue>(unwrap(Val))) in LLVM_FOR_EACH_VALUE_SUBCLASS() 604 if (auto *MD = dyn_cast_or_null<MetadataAsValue>(unwrap(Val))) in LLVMIsAMDString() 643 return wrap(MetadataAsValue::get(Context, Op)); in getMDNodeOperandImpl() 648 if (auto *MD = dyn_cast<MetadataAsValue>(V)) { in LLVMGetOperand() 671 if (isa<MetadataAsValue>(V)) in LLVMGetNumOperands() 715 return wrap(MetadataAsValue::get( in LLVMMDStringInContext() 734 else if (auto *MDV = dyn_cast<MetadataAsValue>(V)) { in LLVMMDNodeInContext() [all …]
|
D | TypeFinder.cpp | 128 if (const auto *M = dyn_cast<MetadataAsValue>(V)) { in incorporateValue()
|
D | LLVMContextImpl.cpp | 147 SmallVector<MetadataAsValue *, 8> MDVs; in ~LLVMContextImpl()
|
D | AsmWriter.cpp | 281 if (const auto *MAV = dyn_cast<MetadataAsValue>(V)) { in getModuleFromVal() 818 if (auto *V = dyn_cast_or_null<MetadataAsValue>(Op)) in processInstructionMetadata() 1856 if (auto *MD = dyn_cast<MetadataAsValue>(V)) { in WriteAsOperandInternal() 3123 if (auto *V = dyn_cast_or_null<MetadataAsValue>(Op)) in isReferencingMDNode() 3152 } else if (const MetadataAsValue *V = dyn_cast<MetadataAsValue>(this)) { in print() 3169 bool IsMetadata = isa<MetadataAsValue>(this); in printAsOperand()
|
D | Verifier.cpp | 293 void visitMetadataAsValue(const MetadataAsValue &MD, Function *F); 683 void Verifier::visitMetadataAsValue(const MetadataAsValue &MDV, Function *F) { in visitMetadataAsValue() 3121 if (auto *MD = dyn_cast<MetadataAsValue>(CI.getArgOperand(i))) in visitIntrinsicFunctionCall() 3135 Assert(isa<MetadataAsValue>(CI.getArgOperand(0)), in visitIntrinsicFunctionCall() 3382 auto *MD = cast<MetadataAsValue>(DII.getArgOperand(0))->getMetadata(); in visitDbgIntrinsic()
|
D | LLVMContextImpl.h | 883 DenseMap<Metadata *, MetadataAsValue *> MetadataAsValues;
|
/external/llvm/lib/Bitcode/Writer/ |
D | ValueEnumerator.cpp | 354 auto *MD = dyn_cast<MetadataAsValue>(&Op); in ValueEnumerator() 406 if (auto *MD = dyn_cast<MetadataAsValue>(V)) in getValueID() 575 assert(!isa<MetadataAsValue>(V) && "EnumerateValue doesn't handle Metadata!"); in EnumerateValue() 664 if (auto *MD = dyn_cast<MetadataAsValue>(V)) { in EnumerateOperandType() 757 if (auto *MD = dyn_cast<MetadataAsValue>(&*OI)) in incorporateFunction()
|
/external/llvm/test/Transforms/GlobalOpt/ |
D | metadata.ll | 17 ; for 'MetadataAsValue::get(ValueAsMetadata::get(Value*))'. When @G drops to
|
/external/llvm/lib/Transforms/Utils/ |
D | ValueMapper.cpp | 60 if (const auto *MDV = dyn_cast<MetadataAsValue>(V)) { in MapValue() 76 return VM[V] = MetadataAsValue::get(V->getContext(), MappedMD); in MapValue()
|
D | Local.cpp | 1094 if (auto *MDV = MetadataAsValue::getIfExists(V->getContext(), L)) in FindAllocaDbgDeclare()
|
/external/llvm/unittests/IR/ |
D | MetadataTest.cpp | 375 auto *MAV0 = MetadataAsValue::get(Context, N0); in TEST_F() 376 auto *MAV1 = MetadataAsValue::get(Context, N1); in TEST_F() 1989 auto *V = MetadataAsValue::get(Context, N); in TEST_F() 1993 auto *V2 = MetadataAsValue::get(Context, N); in TEST_F() 2001 auto *V = MetadataAsValue::get(Context, N2); in TEST_F() 2005 auto *V2 = MetadataAsValue::get(Context, N2); in TEST_F() 2008 auto *V3 = MetadataAsValue::get(Context, N); in TEST_F() 2020 auto *V = MetadataAsValue::get(Context, MD); in TEST_F() 2024 auto *V2 = MetadataAsValue::get(Context, N); in TEST_F()
|
/external/clang/lib/CodeGen/ |
D | CGExpr.cpp | 1446 cast<llvm::MetadataAsValue>(LV.getGlobalReg())->getMetadata()); in EmitLoadOfGlobalRegLValue() 1457 F, llvm::MetadataAsValue::get(Ty->getContext(), RegName)); in EmitLoadOfGlobalRegLValue() 1708 cast<llvm::MetadataAsValue>(Dst.getGlobalReg())->getMetadata()); in EmitStoreThroughGlobalRegLValue() 1722 Builder.CreateCall2(F, llvm::MetadataAsValue::get(Ty->getContext(), RegName), in EmitStoreThroughGlobalRegLValue() 1922 llvm::MetadataAsValue::get(CGM.getLLVMContext(), M->getOperand(0)), in EmitGlobalNamedRegister()
|
D | CGClass.cpp | 2195 llvm::Value *BitSetName = llvm::MetadataAsValue::get( in EmitVTablePtrCheck()
|
/external/llvm/lib/Transforms/IPO/ |
D | LowerBitSets.cpp | 584 auto BitSetMDVal = dyn_cast<MetadataAsValue>(CI->getArgOperand(1)); in buildBitSets()
|
/external/llvm/lib/Transforms/Scalar/ |
D | ScalarReplAggregates.cpp | 1063 if (auto *DebugNode = MetadataAsValue::getIfExists(AI->getContext(), L)) { in run()
|
D | SROA.cpp | 1099 if (auto *DebugNode = MetadataAsValue::getIfExists(AI.getContext(), L)) { in run()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAGBuilder.cpp | 4562 DAG.getMDNode(cast<MDNode>(cast<MetadataAsValue>(Reg)->getMetadata())); in visitIntrinsicCall() 4572 DAG.getMDNode(cast<MDNode>(cast<MetadataAsValue>(Reg)->getMetadata())); in visitIntrinsicCall()
|
/external/llvm/lib/Bitcode/Reader/ |
D | BitcodeReader.cpp | 271 return MetadataAsValue::get(Ty->getContext(), getFnMetadataByID(ID)); in getFnValueByID()
|
/external/llvm/lib/AsmParser/ |
D | LLParser.cpp | 3820 V = MetadataAsValue::get(Context, MD); in ParseMetadataAsValue()
|