/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
D | IntrinsicInst.cpp | 44 auto *MD = cast<MetadataAsValue>(Op)->getMetadata(); in getVariableLocation() 108 cast<MetadataAsValue>(getArgOperand(NumOperands - 2))->getMetadata(); in getRoundingMode() 118 cast<MetadataAsValue>(getArgOperand(NumOperands - 1))->getMetadata(); in getExceptionBehavior() 127 cast<MetadataAsValue>(getArgOperand(2))->getMetadata(); in getPredicate()
|
D | Metadata.cpp | 62 MetadataAsValue::MetadataAsValue(Type *Ty, Metadata *MD) in MetadataAsValue() function in MetadataAsValue 67 MetadataAsValue::~MetadataAsValue() { in ~MetadataAsValue() 105 MetadataAsValue *MetadataAsValue::get(LLVMContext &Context, Metadata *MD) { in get() 109 Entry = new MetadataAsValue(Type::getMetadataTy(Context), MD); in get() 113 MetadataAsValue *MetadataAsValue::getIfExists(LLVMContext &Context, in getIfExists() 120 void MetadataAsValue::handleChangedMetadata(Metadata *MD) { in handleChangedMetadata() 143 void MetadataAsValue::track() { in track() 148 void MetadataAsValue::untrack() { in untrack() 260 if (Owner.is<MetadataAsValue *>()) { in replaceAllUsesWith() 261 Owner.get<MetadataAsValue *>()->handleChangedMetadata(MD); in replaceAllUsesWith() [all …]
|
D | TypeFinder.cpp | 121 if (const auto *M = dyn_cast<MetadataAsValue>(V)) { in incorporateValue()
|
D | Core.cpp | 867 return wrap(MetadataAsValue::get(I->getContext(), MD)); in LLVMGetMetadata() 874 static MDNode *extractMDNode(MetadataAsValue *MAV) { in extractMDNode() 886 MDNode *N = Val ? extractMDNode(unwrap<MetadataAsValue>(Val)) : nullptr; in LLVMSetMetadata() 933 if (auto *MD = dyn_cast_or_null<MetadataAsValue>(unwrap(Val))) in LLVM_FOR_EACH_VALUE_SUBCLASS() 941 if (auto *MD = dyn_cast_or_null<MetadataAsValue>(unwrap(Val))) in LLVMIsAMDString() 980 return wrap(MetadataAsValue::get(Context, Op)); in getMDNodeOperandImpl() 985 if (auto *MD = dyn_cast<MetadataAsValue>(V)) { in LLVMGetOperand() 1008 if (isa<MetadataAsValue>(V)) in LLVMGetNumOperands() 1061 return wrap(MetadataAsValue::get( in LLVMMDStringInContext() 1080 else if (auto *MDV = dyn_cast<MetadataAsValue>(V)) { in LLVMMDNodeInContext() [all …]
|
/external/llvm-project/llvm/lib/IR/ |
D | IntrinsicInst.cpp | 46 auto *MD = cast<MetadataAsValue>(Op)->getMetadata(); in getVariableLocation() 110 cast<MetadataAsValue>(getArgOperand(NumOperands - 2))->getMetadata(); in getRoundingMode() 120 cast<MetadataAsValue>(getArgOperand(NumOperands - 1))->getMetadata(); in getExceptionBehavior() 127 Metadata *MD = cast<MetadataAsValue>(getArgOperand(2))->getMetadata(); in getPredicate()
|
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 | TypeFinder.cpp | 121 if (const auto *M = dyn_cast<MetadataAsValue>(V)) { in incorporateValue()
|
D | Core.cpp | 891 return wrap(MetadataAsValue::get(I->getContext(), MD)); in LLVMGetMetadata() 898 static MDNode *extractMDNode(MetadataAsValue *MAV) { in extractMDNode() 910 MDNode *N = Val ? extractMDNode(unwrap<MetadataAsValue>(Val)) : nullptr; in LLVMSetMetadata() 958 if (auto *MD = dyn_cast_or_null<MetadataAsValue>(unwrap(Val))) in LLVM_FOR_EACH_VALUE_SUBCLASS() 966 if (auto *MD = dyn_cast_or_null<MetadataAsValue>(unwrap(Val))) in LLVMIsAMDString() 1005 return wrap(MetadataAsValue::get(Context, Op)); in getMDNodeOperandImpl() 1010 if (auto *MD = dyn_cast<MetadataAsValue>(V)) { in LLVMGetOperand() 1033 if (isa<MetadataAsValue>(V)) in LLVMGetNumOperands() 1094 return wrap(MetadataAsValue::get( in LLVMMDStringInContext() 1113 else if (auto *MDV = dyn_cast<MetadataAsValue>(V)) { in LLVMMDNodeInContext() [all …]
|
/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 | IntrinsicInst.cpp | 40 auto *MD = cast<MetadataAsValue>(Op)->getMetadata(); in getVariableLocation()
|
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 …]
|
/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;
|
/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/llvm-project/llvm/unittests/Transforms/Utils/ |
D | ValueMapperTest.cpp | 294 auto *MAV = MetadataAsValue::get(C, LAM); in TEST() 306 auto *N0AV = MetadataAsValue::get(C, N0); in TEST() 341 auto *MDA = MetadataAsValue::get(Context, ValueAsMetadata::get(&A)); in TEST() 342 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;
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/ |
D | Metadata.h | 174 class MetadataAsValue : public Value { 180 MetadataAsValue(Type *Ty, Metadata *MD); 186 ~MetadataAsValue(); 188 static MetadataAsValue *get(LLVMContext &Context, Metadata *MD); 189 static MetadataAsValue *getIfExists(LLVMContext &Context, Metadata *MD); 239 static bool track(void *Ref, Metadata &MD, MetadataAsValue &Owner) { in track() 265 using OwnerTy = PointerUnion<MetadataAsValue *, Metadata *>;
|
D | IntrinsicInst.h | 110 return cast<MetadataAsValue>(getArgOperand(1))->getMetadata(); in getRawVariable() 114 return cast<MetadataAsValue>(getArgOperand(2))->getMetadata(); in getRawExpression() 195 return cast<MetadataAsValue>(getArgOperand(0))->getMetadata(); in getRawLabel()
|
/external/llvm-project/llvm/include/llvm/IR/ |
D | Metadata.h | 174 class MetadataAsValue : public Value { 180 MetadataAsValue(Type *Ty, Metadata *MD); 186 ~MetadataAsValue(); 188 static MetadataAsValue *get(LLVMContext &Context, Metadata *MD); 189 static MetadataAsValue *getIfExists(LLVMContext &Context, Metadata *MD); 239 static bool track(void *Ref, Metadata &MD, MetadataAsValue &Owner) { in track() 265 using OwnerTy = PointerUnion<MetadataAsValue *, Metadata *>;
|
/external/llvm-project/llvm/lib/Bitcode/Writer/ |
D | ValueEnumerator.cpp | 85 if (const auto *MAV = dyn_cast<MetadataAsValue>(V)) in skipMetadataWrapper() 445 auto *MD = dyn_cast<MetadataAsValue>(&Op); in ValueEnumerator() 501 if (auto *MD = dyn_cast<MetadataAsValue>(V)) in getValueID() 849 assert(!isa<MetadataAsValue>(V) && "EnumerateValue doesn't handle Metadata!"); in EnumerateValue() 941 assert(!isa<MetadataAsValue>(V) && "Unexpected metadata operand"); in EnumerateOperandType() 1038 if (auto *MD = dyn_cast<MetadataAsValue>(&OI)) in incorporateFunction()
|
/external/llvm-project/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/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-10.0/llvm/lib/Bitcode/Writer/ |
D | ValueEnumerator.cpp | 404 auto *MD = dyn_cast<MetadataAsValue>(&Op); in ValueEnumerator() 458 if (auto *MD = dyn_cast<MetadataAsValue>(V)) in getValueID() 806 assert(!isa<MetadataAsValue>(V) && "EnumerateValue doesn't handle Metadata!"); in EnumerateValue() 895 assert(!isa<MetadataAsValue>(V) && "Unexpected metadata operand"); in EnumerateOperandType() 984 if (auto *MD = dyn_cast<MetadataAsValue>(&OI)) in incorporateFunction()
|