/external/llvm/lib/IR/ |
D | Metadata.cpp | 30 MetadataAsValue::MetadataAsValue(Type *Ty, Metadata *MD) in MetadataAsValue() function in MetadataAsValue 35 MetadataAsValue::~MetadataAsValue() { in ~MetadataAsValue() 73 MetadataAsValue *MetadataAsValue::get(LLVMContext &Context, Metadata *MD) { in get() 77 Entry = new MetadataAsValue(Type::getMetadataTy(Context), MD); in get() 81 MetadataAsValue *MetadataAsValue::getIfExists(LLVMContext &Context, in getIfExists() 88 void MetadataAsValue::handleChangedMetadata(Metadata *MD) { in handleChangedMetadata() 111 void MetadataAsValue::track() { in track() 116 void MetadataAsValue::untrack() { in untrack() 228 if (Owner.is<MetadataAsValue *>()) { in replaceAllUsesWith() 229 Owner.get<MetadataAsValue *>()->handleChangedMetadata(MD); in replaceAllUsesWith() [all …]
|
D | DIBuilder.cpp | 712 return MetadataAsValue::get(VMContext, ValueAsMetadata::get(V)); in getDbgIntrinsicValueImpl() 734 MetadataAsValue::get(VMContext, VarInfo), in insertDeclare() 735 MetadataAsValue::get(VMContext, Expr)}; in insertDeclare() 753 MetadataAsValue::get(VMContext, VarInfo), in insertDeclare() 754 MetadataAsValue::get(VMContext, Expr)}; in insertDeclare() 781 MetadataAsValue::get(VMContext, VarInfo), in insertDbgValueIntrinsic() 782 MetadataAsValue::get(VMContext, Expr)}; in insertDbgValueIntrinsic() 804 MetadataAsValue::get(VMContext, VarInfo), in insertDbgValueIntrinsic() 805 MetadataAsValue::get(VMContext, Expr)}; in insertDbgValueIntrinsic()
|
D | Core.cpp | 669 return wrap(MetadataAsValue::get(I->getContext(), MD)); in LLVMGetMetadata() 676 static MDNode *extractMDNode(MetadataAsValue *MAV) { in extractMDNode() 688 MDNode *N = Val ? extractMDNode(unwrap<MetadataAsValue>(Val)) : nullptr; in LLVMSetMetadata() 703 if (auto *MD = dyn_cast_or_null<MetadataAsValue>(unwrap(Val))) in LLVM_FOR_EACH_VALUE_SUBCLASS() 711 if (auto *MD = dyn_cast_or_null<MetadataAsValue>(unwrap(Val))) in LLVMIsAMDString() 750 return wrap(MetadataAsValue::get(Context, Op)); in getMDNodeOperandImpl() 755 if (auto *MD = dyn_cast<MetadataAsValue>(V)) { in LLVMGetOperand() 778 if (isa<MetadataAsValue>(V)) in LLVMGetNumOperands() 821 return wrap(MetadataAsValue::get( in LLVMMDStringInContext() 840 else if (auto *MDV = dyn_cast<MetadataAsValue>(V)) { in LLVMMDNodeInContext() [all …]
|
D | IntrinsicInst.cpp | 40 auto *MD = cast<MetadataAsValue>(Op)->getMetadata(); in getVariableLocation()
|
D | TypeFinder.cpp | 121 if (const auto *M = dyn_cast<MetadataAsValue>(V)) { in incorporateValue()
|
D | LLVMContextImpl.cpp | 130 SmallVector<MetadataAsValue *, 8> MDVs; in ~LLVMContextImpl()
|
D | AsmWriter.cpp | 288 if (const auto *MAV = dyn_cast<MetadataAsValue>(V)) { in getModuleFromVal() 910 if (auto *V = dyn_cast_or_null<MetadataAsValue>(Op)) in processInstructionMetadata() 1973 if (auto *MD = dyn_cast<MetadataAsValue>(V)) { in WriteAsOperandInternal() 3383 if (auto *V = dyn_cast_or_null<MetadataAsValue>(Op)) in isReferencingMDNode() 3393 else if (isa<Function>(this) || isa<MetadataAsValue>(this)) in print() 3427 } else if (const MetadataAsValue *V = dyn_cast<MetadataAsValue>(this)) { in print() 3447 (!isa<Constant>(V) && !isa<MetadataAsValue>(V))) { in printWithoutType() 3478 M, /* ShouldInitializeAllMetadata */ isa<MetadataAsValue>(this)); in printAsOperand()
|
D | Verifier.cpp | 357 void visitMetadataAsValue(const MetadataAsValue &MD, Function *F); 751 void Verifier::visitMetadataAsValue(const MetadataAsValue &MDV, Function *F) { in visitMetadataAsValue() 3800 if (auto *MD = dyn_cast<MetadataAsValue>(V)) in visitIntrinsicCallSite() 3814 Assert(isa<MetadataAsValue>(CS.getArgOperand(0)), in visitIntrinsicCallSite() 4154 auto *MD = cast<MetadataAsValue>(DII.getArgOperand(0))->getMetadata(); in visitDbgIntrinsic()
|
/external/llvm/include/llvm/IR/ |
D | IntrinsicInst.h | 92 return cast<MetadataAsValue>(getArgOperand(1))->getMetadata(); in getRawVariable() 95 return cast<MetadataAsValue>(getArgOperand(2))->getMetadata(); in getRawExpression() 125 return cast<MetadataAsValue>(getArgOperand(2))->getMetadata(); in getRawVariable() 128 return cast<MetadataAsValue>(getArgOperand(3))->getMetadata(); in getRawExpression()
|
D | Metadata.h | 149 class MetadataAsValue : public Value { 155 MetadataAsValue(Type *Ty, Metadata *MD); 156 ~MetadataAsValue() override; 162 static MetadataAsValue *get(LLVMContext &Context, Metadata *MD); 163 static MetadataAsValue *getIfExists(LLVMContext &Context, Metadata *MD); 212 static bool track(void *Ref, Metadata &MD, MetadataAsValue &Owner) { in track() 238 typedef PointerUnion<MetadataAsValue *, Metadata *> OwnerTy;
|
D | Value.def | 83 HANDLE_METADATA_VALUE(MetadataAsValue)
|
/external/llvm/unittests/Transforms/Utils/ |
D | ValueMapperTest.cpp | 295 auto *MAV = MetadataAsValue::get(C, LAM); in TEST() 307 auto *N0AV = MetadataAsValue::get(C, N0); in TEST() 342 auto *MDA = MetadataAsValue::get(Context, ValueAsMetadata::get(&A)); in TEST() 343 auto *MDC = MetadataAsValue::get(Context, ValueAsMetadata::get(&C)); in TEST()
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/ |
D | Metadata.h | 161 class MetadataAsValue : public Value { 167 MetadataAsValue(Type *Ty, Metadata *MD); 168 ~MetadataAsValue() override; 174 static MetadataAsValue *get(LLVMContext &Context, Metadata *MD); 175 static MetadataAsValue *getIfExists(LLVMContext &Context, Metadata *MD); 224 static bool track(void *Ref, Metadata &MD, MetadataAsValue &Owner) { in track() 250 typedef PointerUnion<MetadataAsValue *, Metadata *> OwnerTy;
|
D | Value.def | 83 HANDLE_METADATA_VALUE(MetadataAsValue)
|
/external/llvm/lib/Bitcode/Writer/ |
D | ValueEnumerator.cpp | 371 auto *MD = dyn_cast<MetadataAsValue>(&Op); in ValueEnumerator() 427 if (auto *MD = dyn_cast<MetadataAsValue>(V)) in getValueID() 775 assert(!isa<MetadataAsValue>(V) && "EnumerateValue doesn't handle Metadata!"); in EnumerateValue() 864 assert(!isa<MetadataAsValue>(V) && "Unexpected metadata operand"); in EnumerateOperandType() 948 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/unittests/Linker/ |
D | LinkModulesTest.cpp | 267 cast<MDNode>(cast<MetadataAsValue>(CI->getArgOperand(0))->getMetadata()); in TEST_F() 295 EXPECT_EQ(M1, cast<MetadataAsValue>(CI->getArgOperand(0))->getMetadata()); in TEST_F()
|
/external/llvm/lib/Transforms/IPO/ |
D | CrossDSOCFI.cpp | 136 BitsetTestFn, {&Addr, MetadataAsValue::get( in buildCFICheck()
|
D | WholeProgramDevirt.cpp | 683 cast<MetadataAsValue>(CI->getArgOperand(1))->getMetadata(); in scanTypeTestUsers() 717 Metadata *TypeId = cast<MetadataAsValue>(TypeIdValue)->getMetadata(); in scanTypeCheckedLoadUsers()
|
D | Inliner.cpp | 182 if (auto *MDV = MetadataAsValue::getIfExists(AI->getContext(), L)) in InlineCallIfPossible()
|
/external/llvm/lib/Transforms/Utils/ |
D | ValueMapper.cpp | 378 if (const auto *MDV = dyn_cast<MetadataAsValue>(V)) { in mapValue() 386 return MetadataAsValue::get(V->getContext(), ValueAsMetadata::get(LV)); in mapValue() 393 : MetadataAsValue::get(V->getContext(), in mapValue() 406 return getVM()[V] = MetadataAsValue::get(V->getContext(), MappedMD); in mapValue()
|
/external/llvm/unittests/IR/ |
D | MetadataTest.cpp | 383 auto *MAV0 = MetadataAsValue::get(Context, N0); in TEST_F() 384 auto *MAV1 = MetadataAsValue::get(Context, N1); in TEST_F() 2026 auto *V = MetadataAsValue::get(Context, N); in TEST_F() 2030 auto *V2 = MetadataAsValue::get(Context, N); in TEST_F() 2038 auto *V = MetadataAsValue::get(Context, N2); in TEST_F() 2042 auto *V2 = MetadataAsValue::get(Context, N2); in TEST_F() 2045 auto *V3 = MetadataAsValue::get(Context, N); in TEST_F() 2057 auto *V = MetadataAsValue::get(Context, MD); in TEST_F() 2061 auto *V2 = MetadataAsValue::get(Context, N); in TEST_F() 2340 TEST_F(DistinctMDOperandPlaceholderTest, MetadataAsValue) { in TEST_F() argument [all …]
|
/external/llvm/lib/Transforms/Scalar/ |
D | LoopRotation.cpp | 144 if (auto *MAV = MetadataAsValue::getIfExists(C, VAM)) { in RewriteUsesOfClonedInstructions() 170 U = MetadataAsValue::get(C, ValueAsMetadata::get(NewVal)); in RewriteUsesOfClonedInstructions()
|
/external/clang/lib/CodeGen/ |
D | CGClass.cpp | 2620 llvm::MetadataAsValue::get(CGM.getLLVMContext(), MD); in EmitTypeMetadataCodeForVCall() 2722 llvm::Value *TypeId = llvm::MetadataAsValue::get(getLLVMContext(), MD); in EmitVTablePtrCheck() 2763 llvm::Value *AllVtables = llvm::MetadataAsValue::get( in EmitVTablePtrCheck() 2791 llvm::Value *TypeId = llvm::MetadataAsValue::get(CGM.getLLVMContext(), MD); in EmitVTableTypeCheckedLoad()
|
D | CGExpr.cpp | 1572 cast<llvm::MetadataAsValue>(LV.getGlobalReg())->getMetadata()); in EmitLoadOfGlobalRegLValue() 1583 F, llvm::MetadataAsValue::get(Ty->getContext(), RegName)); in EmitLoadOfGlobalRegLValue() 1824 cast<llvm::MetadataAsValue>(Dst.getGlobalReg())->getMetadata()); in EmitStoreThroughGlobalRegLValue() 1839 F, {llvm::MetadataAsValue::get(Ty->getContext(), RegName), Value}); in EmitStoreThroughGlobalRegLValue() 2068 llvm::MetadataAsValue::get(CGM.getLLVMContext(), M->getOperand(0)); in EmitGlobalNamedRegister() 2698 llvm::Value *AllVtables = llvm::MetadataAsValue::get( in EmitCfiCheckFail() 4070 llvm::Value *TypeId = llvm::MetadataAsValue::get(getLLVMContext(), MD); in EmitCall()
|