Home
last modified time | relevance | path

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

123

/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DDebugProgramInstruction.cpp282 return isa<MetadataAsValue>(V) ? dyn_cast<ValueAsMetadata>( in getAsMetadata()
283 cast<MetadataAsValue>(V)->getMetadata()) in getAsMetadata()
306 setRawLocation(isa<MetadataAsValue>(NewValue) in replaceVariableLocationOp()
307 ? cast<MetadataAsValue>(NewValue)->getMetadata() in replaceVariableLocationOp()
326 setRawLocation(isa<MetadataAsValue>(NewValue) in replaceVariableLocationOp()
327 ? cast<MetadataAsValue>(NewValue)->getMetadata() in replaceVariableLocationOp()
437 MetadataAsValue::get(Context, getRawLocation()), in createDebugIntrinsic()
438 MetadataAsValue::get(Context, getVariable()), in createDebugIntrinsic()
439 MetadataAsValue::get(Context, getExpression()), in createDebugIntrinsic()
440 MetadataAsValue::get(Context, getAssignID()), in createDebugIntrinsic()
[all …]
H A DIntrinsicInst.cpp116 return isa<MetadataAsValue>(V) ? dyn_cast<ValueAsMetadata>( in getAsMetadata()
117 cast<MetadataAsValue>(V)->getMetadata()) in getAsMetadata()
149 Value *NewOperand = isa<MetadataAsValue>(NewValue) in replaceVariableLocationOp()
151 : MetadataAsValue::get( in replaceVariableLocationOp()
160 0, MetadataAsValue::get(getContext(), DIArgList::get(getContext(), MDs))); in replaceVariableLocationOp()
166 Value *NewOperand = isa<MetadataAsValue>(NewValue) in replaceVariableLocationOp()
168 : MetadataAsValue::get( in replaceVariableLocationOp()
178 0, MetadataAsValue::get(getContext(), DIArgList::get(getContext(), MDs))); in replaceVariableLocationOp()
188 setArgOperand(2, MetadataAsValue::get(getContext(), NewExpr)); in addVariableLocationOps()
195 0, MetadataAsValue::get(getContext(), DIArgList::get(getContext(), MDs))); in addVariableLocationOps()
[all …]
H A DMetadata.cpp60 MetadataAsValue::MetadataAsValue(Type *Ty, Metadata *MD) in MetadataAsValue() function in MetadataAsValue
65 MetadataAsValue::~MetadataAsValue() { in ~MetadataAsValue()
103 MetadataAsValue *MetadataAsValue::get(LLVMContext &Context, Metadata *MD) { in get()
107 Entry = new MetadataAsValue(Type::getMetadataTy(Context), MD); in get()
111 MetadataAsValue *MetadataAsValue::getIfExists(LLVMContext &Context, in getIfExists()
118 void MetadataAsValue::handleChangedMetadata(Metadata *MD) { in handleChangedMetadata()
141 void MetadataAsValue::track() { in track()
146 void MetadataAsValue::untrack() { in untrack()
351 if (isa<MetadataAsValue *>(Owner)) { in SalvageDebugInfo()
352 cast<MetadataAsValue *>(Owner)->handleChangedMetadata( in SalvageDebugInfo()
[all …]
H A DCore.cpp1084 return wrap(MetadataAsValue::get(I->getContext(), MD)); in LLVMGetMetadata()
1091 static MDNode *extractMDNode(MetadataAsValue *MAV) { in extractMDNode()
1103 MDNode *N = Val ? extractMDNode(unwrap<MetadataAsValue>(Val)) : nullptr; in LLVMSetMetadata()
1151 if (auto *MD = dyn_cast_or_null<MetadataAsValue>(unwrap(Val))) in LLVM_FOR_EACH_VALUE_SUBCLASS()
1159 if (auto *MD = dyn_cast_or_null<MetadataAsValue>(unwrap(Val))) in LLVMIsAValueAsMetadata()
1166 if (auto *MD = dyn_cast_or_null<MetadataAsValue>(unwrap(Val))) in LLVMIsAMDString()
1205 return wrap(MetadataAsValue::get(Context, Op)); in getMDNodeOperandImpl()
1210 if (auto *MD = dyn_cast<MetadataAsValue>(V)) { in LLVMGetOperand()
1233 if (isa<MetadataAsValue>(V)) in LLVMGetNumOperands()
1294 return wrap(MetadataAsValue::get( in LLVMMDStringInContext()
[all …]
H A DTypeFinder.cpp148 if (const auto *M = dyn_cast<MetadataAsValue>(V)) { in incorporateValue()
H A DLLVMContextImpl.cpp135 SmallVector<MetadataAsValue *, 8> MDVs; in ~LLVMContextImpl()
H A DAsmWriter.cpp118 if (const auto *MAV = dyn_cast<MetadataAsValue>(V)) in skipMetadataWrapper()
317 if (const auto *MAV = dyn_cast<MetadataAsValue>(V)) { in getModuleFromVal()
1240 if (auto *V = dyn_cast_or_null<MetadataAsValue>(Op)) in processInstructionMetadata()
2753 if (auto *MD = dyn_cast<MetadataAsValue>(V)) { in WriteAsOperandInternal()
5146 if (auto *V = dyn_cast_or_null<MetadataAsValue>(Op)) in isReferencingMDNode()
5222 else if (isa<Function>(this) || isa<MetadataAsValue>(this)) in print()
5260 } else if (const MetadataAsValue *V = dyn_cast<MetadataAsValue>(this)) { in print()
5281 (!isa<Constant>(V) && !isa<MetadataAsValue>(V))) { in printWithoutType()
5311 M, /* ShouldInitializeAllMetadata */ isa<MetadataAsValue>(this)); in printAsOperand()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DIntrinsicInst.h327 setArgOperand(1, MetadataAsValue::get(NewVar->getContext(), NewVar)); in setVariable()
331 setArgOperand(2, MetadataAsValue::get(NewExpr->getContext(), NewExpr)); in setExpression()
380 return cast<MetadataAsValue>(getArgOperand(0))->getMetadata(); in getRawLocation()
388 return cast<MetadataAsValue>(getArgOperand(1))->getMetadata(); in getRawVariable()
392 return cast<MetadataAsValue>(getArgOperand(2))->getMetadata(); in getRawExpression()
399 return setArgOperand(0, MetadataAsValue::get(getContext(), Location)); in setRawLocation()
505 return cast<MetadataAsValue>(getArgOperand(OpAddress))->getMetadata(); in getRawAddress()
508 return cast<MetadataAsValue>(getArgOperand(OpAssignID))->getMetadata(); in getRawAssignID()
512 return cast<MetadataAsValue>(getArgOperand(OpAddressExpr))->getMetadata(); in getRawAddressExpression()
519 MetadataAsValue::get(NewExpr->getContext(), NewExpr)); in setAddressExpression()
[all …]
H A DMetadata.h182 class MetadataAsValue : public Value {
188 MetadataAsValue(Type *Ty, Metadata *MD);
194 LLVM_ABI ~MetadataAsValue();
196 LLVM_ABI static MetadataAsValue *get(LLVMContext &Context, Metadata *MD);
197 LLVM_ABI static MetadataAsValue *getIfExists(LLVMContext &Context,
340 static bool track(void *Ref, Metadata &MD, MetadataAsValue &Owner) { in track()
375 using OwnerTy = PointerUnion<MetadataAsValue *, Metadata *, DebugValueUser *>;
H A DValue.def116 HANDLE_METADATA_VALUE(MetadataAsValue)
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Writer/
H A DValueEnumerator.cpp154 if (const auto *MAV = dyn_cast<MetadataAsValue>(V)) in orderModule()
299 if (const auto *MAV = dyn_cast<MetadataAsValue>(Op)) in predictUseListOrder()
465 auto *MD = dyn_cast<MetadataAsValue>(&Op); in ValueEnumerator()
523 if (auto *MD = dyn_cast<MetadataAsValue>(V)) in getValueID()
908 assert(!isa<MetadataAsValue>(V) && "EnumerateValue doesn't handle Metadata!"); in EnumerateValue()
1002 assert(!isa<MetadataAsValue>(V) && "Unexpected metadata operand"); in EnumerateOperandType()
1129 if (auto *MD = dyn_cast<MetadataAsValue>(&OI)) in incorporateFunction()
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/DXILWriter/
H A DDXILValueEnumerator.cpp146 if (const auto *MAV = dyn_cast<MetadataAsValue>(V)) { in orderModule()
451 auto *MD = dyn_cast<MetadataAsValue>(&Op); in ValueEnumerator()
518 if (auto *MD = dyn_cast<MetadataAsValue>(V)) in getValueID()
873 assert(!isa<MetadataAsValue>(V) && "EnumerateValue doesn't handle Metadata!"); in EnumerateValue()
967 assert(!isa<MetadataAsValue>(V) && "Unexpected metadata operand"); in EnumerateOperandType()
1073 if (auto *MD = dyn_cast<MetadataAsValue>(&OI)) { in incorporateFunction()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVRegularizer.cpp139 } else if (auto MDAsVal = dyn_cast<MetadataAsValue>(Op)) { in runLowerConstExpr()
152 Value *RepMDVal = MetadataAsValue::get(Ctx, RepMD); in runLowerConstExpr()
H A DSPIRVCallLowering.cpp241 MetadataAsValue *VMD = cast<MetadataAsValue>(II->getOperand(1)); in getArgSPIRVType()
253 MetadataAsValue *VMD = cast<MetadataAsValue>(II->getOperand(1)); in getArgSPIRVType()
H A DSPIRVUtils.h440 inline MetadataAsValue *buildMD(Value *Arg) { in buildMD()
442 return MetadataAsValue::get( in buildMD()
H A DSPIRVEmitIntrinsics.cpp313 I, MetadataAsValue::get( in emitAssignName()
376 MetadataAsValue *MD = cast<MetadataAsValue>(CI->getArgOperand(1)); in reconstructType()
1283 {I, MetadataAsValue::get(Ctx, MDNode::get(Ctx, {Node}))}); in createDecorationIntrinsic()
1320 MetadataAsValue::get(Ctx, MDNode::get(Ctx, ConstraintString))}; in visitCallInst()
1449 cast<MetadataAsValue>(AssignCI->getOperand(1))->getMetadata()) in insertAssignPtrTypeTargetExt()
1479 MetadataAsValue *VMD = buildMD(ExpectedElementVal); in replacePointerOperandWithPtrCast()
2017 {I, MetadataAsValue::get(I->getContext(), MD)}); in insertSpirvDecorations()
2029 MetadataAsValue::get(I->getContext(), AliasListMD)}; in insertSpirvDecorations()
2050 {I, MetadataAsValue::get(I->getContext(), MD)}); in insertSpirvDecorations()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DValueMapper.cpp381 if (const auto *MDV = dyn_cast<MetadataAsValue>(V)) { in mapValue()
389 return MetadataAsValue::get(V->getContext(), ValueAsMetadata::get(LV)); in mapValue()
396 : MetadataAsValue::get(V->getContext(), in mapValue()
420 return MetadataAsValue::get(V->getContext(), in mapValue()
433 return getVM()[V] = MetadataAsValue::get(V->getContext(), MappedMD); in mapValue()
H A DFunctionComparator.cpp895 const MetadataAsValue *MetadataValueL = dyn_cast<MetadataAsValue>(L); in cmpValues()
896 const MetadataAsValue *MetadataValueR = dyn_cast<MetadataAsValue>(R); in cmpValues()
H A DCloneFunction.cpp490 Args.push_back(MetadataAsValue::get(Ctx, MDString::get(Ctx, PredName))); in cloneInstruction()
498 MetadataAsValue::get(Ctx, MDString::get(Ctx, "round.tonearest"))); in cloneInstruction()
500 MetadataAsValue::get(Ctx, MDString::get(Ctx, "fpexcept.ignore"))); in cloneInstruction()
H A DMemoryTaggingSupport.cpp266 Value *Args[] = {MetadataAsValue::get(M->getContext(), MD)}; in readRegister()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DCrossDSOCFI.cpp131 MetadataAsValue::get(Ctx, ConstantAsMetadata::get(CaseTypeId))}); in buildCFICheck()
H A DThinLTOBitcodeWriter.cpp111 cast<MetadataAsValue>(CI->getArgOperand(ArgNo))->getMetadata(); in promoteTypeIds()
121 MetadataAsValue::get(M.getContext(), GlobalMD)); in promoteTypeIds()
H A DGlobalDCE.cpp201 auto *TypeId = cast<MetadataAsValue>(TypeIdValue)->getMetadata(); in ScanTypeCheckedLoadIntrinsics()
/freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/
H A DValue.h304 assert((isa<llvm::MetadataAsValue>(Val) || isa<llvm::InlineAsm>(Val)) && in verify()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DModuleSummaryAnalysis.cpp222 auto *TypeMDVal = cast<MetadataAsValue>(CI->getArgOperand(1)); in addIntrinsicToSummary()
251 auto *TypeMDVal = cast<MetadataAsValue>(CI->getArgOperand(2)); in addIntrinsicToSummary()

123