Home
last modified time | relevance | path

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

12345

/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DIntrinsicInst.cpp44 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()
DMetadata.cpp62 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 …]
DTypeFinder.cpp121 if (const auto *M = dyn_cast<MetadataAsValue>(V)) { in incorporateValue()
DCore.cpp867 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/
DIntrinsicInst.cpp46 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()
DMetadata.cpp63 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 …]
DTypeFinder.cpp121 if (const auto *M = dyn_cast<MetadataAsValue>(V)) { in incorporateValue()
DCore.cpp891 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/
DMetadata.cpp30 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 …]
DDIBuilder.cpp712 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()
DIntrinsicInst.cpp40 auto *MD = cast<MetadataAsValue>(Op)->getMetadata(); in getVariableLocation()
DCore.cpp669 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/
DIntrinsicInst.h92 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()
DMetadata.h149 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/
DValueMapperTest.cpp295 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/
DValueMapperTest.cpp294 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/
DMetadata.h161 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/
DMetadata.h174 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 *>;
DIntrinsicInst.h110 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/
DMetadata.h174 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/
DValueEnumerator.cpp85 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/
Dmetadata.ll17 ; for 'MetadataAsValue::get(ValueAsMetadata::get(Value*))'. When @G drops to
/external/llvm/test/Transforms/GlobalOpt/
Dmetadata.ll17 ; for 'MetadataAsValue::get(ValueAsMetadata::get(Value*))'. When @G drops to
/external/llvm/lib/Bitcode/Writer/
DValueEnumerator.cpp371 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/
DValueEnumerator.cpp404 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()

12345