/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/ |
D | IntrinsicInst.cpp | 43 auto *MD = cast<MetadataAsValue>(Op)->getMetadata(); in getVariableLocation() 112 dyn_cast<MetadataAsValue>(getArgOperand(NumOperands - 2))->getMetadata(); in getRoundingMode() 132 dyn_cast<MetadataAsValue>(getArgOperand(NumOperands - 1))->getMetadata(); in getExceptionBehavior()
|
D | Metadata.cpp | 63 MetadataAsValue::MetadataAsValue(Type *Ty, Metadata *MD) in MetadataAsValue() function in MetadataAsValue 68 MetadataAsValue::~MetadataAsValue() { in ~MetadataAsValue() 106 MetadataAsValue *MetadataAsValue::get(LLVMContext &Context, Metadata *MD) { in get() 110 Entry = new MetadataAsValue(Type::getMetadataTy(Context), MD); in get() 114 MetadataAsValue *MetadataAsValue::getIfExists(LLVMContext &Context, in getIfExists() 121 void MetadataAsValue::handleChangedMetadata(Metadata *MD) { in handleChangedMetadata() 144 void MetadataAsValue::track() { in track() 149 void MetadataAsValue::untrack() { in untrack() 261 if (Owner.is<MetadataAsValue *>()) { in replaceAllUsesWith() 262 Owner.get<MetadataAsValue *>()->handleChangedMetadata(MD); in replaceAllUsesWith() [all …]
|
D | Core.cpp | 847 return wrap(MetadataAsValue::get(I->getContext(), MD)); in LLVMGetMetadata() 854 static MDNode *extractMDNode(MetadataAsValue *MAV) { in extractMDNode() 866 MDNode *N = Val ? extractMDNode(unwrap<MetadataAsValue>(Val)) : nullptr; in LLVMSetMetadata() 881 if (auto *MD = dyn_cast_or_null<MetadataAsValue>(unwrap(Val))) in LLVM_FOR_EACH_VALUE_SUBCLASS() 889 if (auto *MD = dyn_cast_or_null<MetadataAsValue>(unwrap(Val))) in LLVMIsAMDString() 928 return wrap(MetadataAsValue::get(Context, Op)); in getMDNodeOperandImpl() 933 if (auto *MD = dyn_cast<MetadataAsValue>(V)) { in LLVMGetOperand() 956 if (isa<MetadataAsValue>(V)) in LLVMGetNumOperands() 999 return wrap(MetadataAsValue::get( in LLVMMDStringInContext() 1018 else if (auto *MDV = dyn_cast<MetadataAsValue>(V)) { in LLVMMDNodeInContext() [all …]
|
D | DIBuilder.cpp | 903 return MetadataAsValue::get(VMContext, ValueAsMetadata::get(V)); in getDbgIntrinsicValueImpl() 925 MetadataAsValue::get(VMContext, VarInfo), in insertDeclare() 926 MetadataAsValue::get(VMContext, Expr)}; in insertDeclare() 947 MetadataAsValue::get(VMContext, VarInfo), in insertDbgValueIntrinsic() 948 MetadataAsValue::get(VMContext, Expr)}; in insertDbgValueIntrinsic() 966 Value *Args[] = {MetadataAsValue::get(VMContext, LabelInfo)}; in insertLabel()
|
D | TypeFinder.cpp | 122 if (const auto *M = dyn_cast<MetadataAsValue>(V)) { in incorporateValue()
|
/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()
|
/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/swiftshader/third_party/llvm-7.0/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/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/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/ |
D | Metadata.h | 172 class MetadataAsValue : public Value { 178 MetadataAsValue(Type *Ty, Metadata *MD); 184 ~MetadataAsValue(); 186 static MetadataAsValue *get(LLVMContext &Context, Metadata *MD); 187 static MetadataAsValue *getIfExists(LLVMContext &Context, Metadata *MD); 237 static bool track(void *Ref, Metadata &MD, MetadataAsValue &Owner) { in track() 263 using OwnerTy = PointerUnion<MetadataAsValue *, Metadata *>;
|
D | IntrinsicInst.h | 89 return cast<MetadataAsValue>(getArgOperand(1))->getMetadata(); in getRawVariable() 93 return cast<MetadataAsValue>(getArgOperand(2))->getMetadata(); in getRawExpression() 175 return cast<MetadataAsValue>(getArgOperand(0))->getMetadata(); in getRawVariable()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
D | Local.cpp | 1463 auto PhiMAV = MetadataAsValue::get(C, ValueAsMetadata::get(PHI)); in insertDebugValuesForPHIs() 1489 auto *MDV = MetadataAsValue::getIfExists(V->getContext(), L); in FindDbgAddrUses() 1509 if (auto *MDV = MetadataAsValue::getIfExists(V->getContext(), L)) in findDbgValues() 1522 if (auto *MDV = MetadataAsValue::getIfExists(V->getContext(), L)) in findDbgUsers() 1586 if (auto *MDV = MetadataAsValue::getIfExists(AI->getContext(), L)) in replaceDbgValueForAlloca() 1595 static MetadataAsValue *wrapValueInMetadata(LLVMContext &C, Value *V) { in wrapValueInMetadata() 1596 return MetadataAsValue::get(C, ValueAsMetadata::get(V)); in wrapValueInMetadata() 1620 DII->setOperand(2, MetadataAsValue::get(Ctx, DIExpr)); in salvageDebugInfo() 1641 MetadataAsValue *CastSrc = wrapMD(I.getOperand(0)); in salvageDebugInfo() 1707 MetadataAsValue *AddrMD = wrapMD(I.getOperand(0)); in salvageDebugInfo() [all …]
|
/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/swiftshader/third_party/llvm-7.0/llvm/lib/Bitcode/Writer/ |
D | ValueEnumerator.cpp | 405 auto *MD = dyn_cast<MetadataAsValue>(&Op); in ValueEnumerator() 461 if (auto *MD = dyn_cast<MetadataAsValue>(V)) in getValueID() 808 assert(!isa<MetadataAsValue>(V) && "EnumerateValue doesn't handle Metadata!"); in EnumerateValue() 897 assert(!isa<MetadataAsValue>(V) && "Unexpected metadata operand"); in EnumerateOperandType() 984 if (auto *MD = dyn_cast<MetadataAsValue>(&OI)) in incorporateFunction()
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/GlobalOpt/ |
D | metadata.ll | 17 ; for 'MetadataAsValue::get(ValueAsMetadata::get(Value*))'. When @G drops to
|
/external/llvm/test/Transforms/GlobalOpt/ |
D | metadata.ll | 17 ; for 'MetadataAsValue::get(ValueAsMetadata::get(Value*))'. When @G drops to
|
/external/swiftshader/third_party/llvm-7.0/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/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()
|