Home
last modified time | relevance | path

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

12

/third_party/skia/third_party/externals/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 …]
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 …]
DDIBuilder.cpp914 return MetadataAsValue::get(VMContext, ValueAsMetadata::get(V)); in getDbgIntrinsicValueImpl()
936 MetadataAsValue::get(VMContext, VarInfo), in insertDeclare()
937 MetadataAsValue::get(VMContext, Expr)}; in insertDeclare()
958 MetadataAsValue::get(VMContext, VarInfo), in insertDbgValueIntrinsic()
959 MetadataAsValue::get(VMContext, Expr)}; in insertDbgValueIntrinsic()
977 Value *Args[] = {MetadataAsValue::get(VMContext, LabelInfo)}; in insertLabel()
DTypeFinder.cpp121 if (const auto *M = dyn_cast<MetadataAsValue>(V)) { in incorporateValue()
DLLVMContextImpl.cpp130 SmallVector<MetadataAsValue *, 8> MDVs; in ~LLVMContextImpl()
DAsmWriter.cpp333 if (const auto *MAV = dyn_cast<MetadataAsValue>(V)) { in getModuleFromVal()
1075 if (auto *V = dyn_cast_or_null<MetadataAsValue>(Op)) in processInstructionMetadata()
2261 if (auto *MD = dyn_cast<MetadataAsValue>(V)) { in WriteAsOperandInternal()
4310 if (auto *V = dyn_cast_or_null<MetadataAsValue>(Op)) in isReferencingMDNode()
4320 else if (isa<Function>(this) || isa<MetadataAsValue>(this)) in print()
4354 } else if (const MetadataAsValue *V = dyn_cast<MetadataAsValue>(this)) { in print()
4374 (!isa<Constant>(V) && !isa<MetadataAsValue>(V))) { in printWithoutType()
4403 M, /* ShouldInitializeAllMetadata */ isa<MetadataAsValue>(this)); in printAsOperand()
/third_party/skia/third_party/externals/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;
DValue.def83 HANDLE_METADATA_VALUE(MetadataAsValue)
/third_party/skia/third_party/externals/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()
DValue.def95 HANDLE_METADATA_VALUE(MetadataAsValue)
/third_party/skia/third_party/externals/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()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DLocal.cpp494 DII->setOperand(0, MetadataAsValue::get(DII->getContext(), in replaceDbgUsesWithUndef()
1484 auto PhiMAV = MetadataAsValue::get(C, ValueAsMetadata::get(PHI)); in insertDebugValuesForPHIs()
1510 auto *MDV = MetadataAsValue::getIfExists(V->getContext(), L); in FindDbgAddrUses()
1530 if (auto *MDV = MetadataAsValue::getIfExists(V->getContext(), L)) in findDbgValues()
1543 if (auto *MDV = MetadataAsValue::getIfExists(V->getContext(), L)) in findDbgUsers()
1602 if (auto *MDV = MetadataAsValue::getIfExists(AI->getContext(), L)) in replaceDbgValueForAlloca()
1611 static MetadataAsValue *wrapValueInMetadata(LLVMContext &C, Value *V) { in wrapValueInMetadata()
1612 return MetadataAsValue::get(C, ValueAsMetadata::get(V)); in wrapValueInMetadata()
1649 DII->setOperand(2, MetadataAsValue::get(Ctx, DIExpr)); in salvageDebugInfoForDbgValues()
1801 DII->setOperand(2, MetadataAsValue::get(Ctx, *DVR)); in rewriteDebugUsers()
DValueMapper.cpp378 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()
DLoopUnroll.cpp74 if (auto *V = dyn_cast<MetadataAsValue>(Op)) in remapInstruction()
82 return Wrapped ? MetadataAsValue::get(C, ValueAsMetadata::get(V)) : V; in remapInstruction()
DLCSSA.cpp233 DVI->setOperand(0, MetadataAsValue::get(Ctx, ValueAsMetadata::get(V))); in formLCSSAForInstructions()
DLoopRotationUtils.cpp174 MetadataAsValue::get(OrigHeaderVal->getContext(), in RewriteUsesOfClonedInstructions()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/
DCrossDSOCFI.cpp150 BitsetTestFn, {&Addr, MetadataAsValue::get( in buildCFICheck()
DThinLTOBitcodeWriter.cpp91 cast<MetadataAsValue>(CI->getArgOperand(ArgNo))->getMetadata(); in promoteTypeIds()
101 MetadataAsValue::get(M.getContext(), GlobalMD)); in promoteTypeIds()
DGlobalDCE.cpp248 auto *TypeId = cast<MetadataAsValue>(TypeIdValue)->getMetadata(); in ScanTypeCheckedLoadIntrinsics()
DInliner.cpp225 if (auto *MDV = MetadataAsValue::getIfExists(AI->getContext(), L)) in mergeInlinedArrayAllocas()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DModuleSummaryAnalysis.cpp170 auto *TypeMDVal = cast<MetadataAsValue>(CI->getArgOperand(1)); in addIntrinsicToSummary()
201 auto *TypeMDVal = cast<MetadataAsValue>(CI->getArgOperand(2)); in addIntrinsicToSummary()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/
DHWAddressSanitizer.cpp1001 Value *Args[] = {MetadataAsValue::get(*C, MD)}; in readRegister()
1048 2, MetadataAsValue::get(*C, DIExpression::prependOpcodes( in instrumentStack()
1199 0, MetadataAsValue::get(*C, LocalAsMetadata::get(NewAI))); in sanitizeFunction()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/
DAArch64StackTagging.cpp685 MetadataAsValue::get(F->getContext(), LocalAsMetadata::get(Info.AI))); in runOnFunction()

12