Home
last modified time | relevance | path

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

/external/llvm/include/llvm/IR/
DMetadataTracking.h24 class MetadataAsValue; variable
62 static bool track(void *Ref, Metadata &MD, MetadataAsValue &Owner) { in track()
88 typedef PointerUnion<MetadataAsValue *, Metadata *> OwnerTy;
DIntrinsicInst.h93 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()
DMetadata.h160 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/
DMetadata.cpp32 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 …]
DDIBuilder.cpp724 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()
DIntrinsicInst.cpp53 auto *MD = cast<MetadataAsValue>(Op)->getMetadata(); in getValueImpl()
DCore.cpp562 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 …]
DTypeFinder.cpp128 if (const auto *M = dyn_cast<MetadataAsValue>(V)) { in incorporateValue()
DLLVMContextImpl.cpp147 SmallVector<MetadataAsValue *, 8> MDVs; in ~LLVMContextImpl()
DAsmWriter.cpp281 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()
DVerifier.cpp293 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()
DLLVMContextImpl.h883 DenseMap<Metadata *, MetadataAsValue *> MetadataAsValues;
/external/llvm/lib/Bitcode/Writer/
DValueEnumerator.cpp354 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/
Dmetadata.ll17 ; for 'MetadataAsValue::get(ValueAsMetadata::get(Value*))'. When @G drops to
/external/llvm/lib/Transforms/Utils/
DValueMapper.cpp60 if (const auto *MDV = dyn_cast<MetadataAsValue>(V)) { in MapValue()
76 return VM[V] = MetadataAsValue::get(V->getContext(), MappedMD); in MapValue()
DLocal.cpp1094 if (auto *MDV = MetadataAsValue::getIfExists(V->getContext(), L)) in FindAllocaDbgDeclare()
/external/llvm/unittests/IR/
DMetadataTest.cpp375 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/
DCGExpr.cpp1446 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()
DCGClass.cpp2195 llvm::Value *BitSetName = llvm::MetadataAsValue::get( in EmitVTablePtrCheck()
/external/llvm/lib/Transforms/IPO/
DLowerBitSets.cpp584 auto BitSetMDVal = dyn_cast<MetadataAsValue>(CI->getArgOperand(1)); in buildBitSets()
/external/llvm/lib/Transforms/Scalar/
DScalarReplAggregates.cpp1063 if (auto *DebugNode = MetadataAsValue::getIfExists(AI->getContext(), L)) { in run()
DSROA.cpp1099 if (auto *DebugNode = MetadataAsValue::getIfExists(AI.getContext(), L)) { in run()
/external/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.cpp4562 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/
DBitcodeReader.cpp271 return MetadataAsValue::get(Ty->getContext(), getFnMetadataByID(ID)); in getFnValueByID()
/external/llvm/lib/AsmParser/
DLLParser.cpp3820 V = MetadataAsValue::get(Context, MD); in ParseMetadataAsValue()