Home
last modified time | relevance | path

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

123

/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DDebugProgramInstruction.cpp281 return isa<MetadataAsValue>(V) ? dyn_cast<ValueAsMetadata>( in getAsMetadata()
282 cast<MetadataAsValue>(V)->getMetadata()) in getAsMetadata()
305 setRawLocation(isa<MetadataAsValue>(NewValue) in replaceVariableLocationOp()
306 ? cast<MetadataAsValue>(NewValue)->getMetadata() in replaceVariableLocationOp()
325 setRawLocation(isa<MetadataAsValue>(NewValue) in replaceVariableLocationOp()
326 ? cast<MetadataAsValue>(NewValue)->getMetadata() in replaceVariableLocationOp()
436 MetadataAsValue::get(Context, getRawLocation()), in createDebugIntrinsic()
437 MetadataAsValue::get(Context, getVariable()), in createDebugIntrinsic()
438 MetadataAsValue::get(Context, getExpression()), in createDebugIntrinsic()
439 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()
389 if (isa<MetadataAsValue *>(Owner)) { in replaceAllUsesWith()
390 cast<MetadataAsValue *>(Owner)->handleChangedMetadata(MD); in replaceAllUsesWith()
H A DDIBuilder.cpp997 MetadataAsValue::get(Ctx, ValueAsMetadata::get(Val)), in insertDbgAssign()
998 MetadataAsValue::get(Ctx, SrcVar), in insertDbgAssign()
999 MetadataAsValue::get(Ctx, ValExpr), in insertDbgAssign()
1000 MetadataAsValue::get(Ctx, Link), in insertDbgAssign()
1001 MetadataAsValue::get(Ctx, ValueAsMetadata::get(Addr)), in insertDbgAssign()
1002 MetadataAsValue::get(Ctx, AddrExpr), in insertDbgAssign()
1059 return MetadataAsValue::get(VMContext, ValueAsMetadata::get(V)); in getDbgIntrinsicValueImpl()
1105 MetadataAsValue::get(VMContext, VarInfo), in insertDeclare()
1106 MetadataAsValue::get(VMContext, Expr)}; in insertDeclare()
1150 MetadataAsValue::get(VMContext, VarInfo), in insertDbgIntrinsic()
[all …]
H A DCore.cpp1081 return wrap(MetadataAsValue::get(I->getContext(), MD)); in LLVMGetMetadata()
1088 static MDNode *extractMDNode(MetadataAsValue *MAV) { in extractMDNode()
1100 MDNode *N = Val ? extractMDNode(unwrap<MetadataAsValue>(Val)) : nullptr; in LLVMSetMetadata()
1148 if (auto *MD = dyn_cast_or_null<MetadataAsValue>(unwrap(Val))) in LLVM_FOR_EACH_VALUE_SUBCLASS()
1156 if (auto *MD = dyn_cast_or_null<MetadataAsValue>(unwrap(Val))) in LLVMIsAValueAsMetadata()
1163 if (auto *MD = dyn_cast_or_null<MetadataAsValue>(unwrap(Val))) in LLVMIsAMDString()
1202 return wrap(MetadataAsValue::get(Context, Op)); in getMDNodeOperandImpl()
1207 if (auto *MD = dyn_cast<MetadataAsValue>(V)) { in LLVMGetOperand()
1230 if (isa<MetadataAsValue>(V)) in LLVMGetNumOperands()
1291 return wrap(MetadataAsValue::get( in LLVMMDStringInContext()
[all …]
H A DTypeFinder.cpp148 if (const auto *M = dyn_cast<MetadataAsValue>(V)) { in incorporateValue()
H A DLLVMContextImpl.cpp139 SmallVector<MetadataAsValue *, 8> MDVs; in ~LLVMContextImpl()
H A DAsmWriter.cpp107 if (const auto *MAV = dyn_cast<MetadataAsValue>(V)) in skipMetadataWrapper()
278 if (const auto *MAV = dyn_cast<MetadataAsValue>(V)) { in getModuleFromVal()
1175 if (auto *V = dyn_cast_or_null<MetadataAsValue>(Op)) in processInstructionMetadata()
2590 if (auto *MD = dyn_cast<MetadataAsValue>(V)) { in WriteAsOperandInternal()
4950 if (auto *V = dyn_cast_or_null<MetadataAsValue>(Op)) in isReferencingMDNode()
5026 else if (isa<Function>(this) || isa<MetadataAsValue>(this)) in print()
5064 } else if (const MetadataAsValue *V = dyn_cast<MetadataAsValue>(this)) { in print()
5085 (!isa<Constant>(V) && !isa<MetadataAsValue>(V))) { in printWithoutType()
5115 M, /* ShouldInitializeAllMetadata */ isa<MetadataAsValue>(this)); in printAsOperand()
H A DDiagnosticInfo.cpp184 } else if (auto *MD = dyn_cast<MetadataAsValue>(V)) { in Argument()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DIntrinsicInst.h325 setArgOperand(1, MetadataAsValue::get(NewVar->getContext(), NewVar)); in setVariable()
329 setArgOperand(2, MetadataAsValue::get(NewExpr->getContext(), NewExpr)); in setExpression()
370 return cast<MetadataAsValue>(getArgOperand(0))->getMetadata(); in getRawLocation()
378 return cast<MetadataAsValue>(getArgOperand(1))->getMetadata(); in getRawVariable()
382 return cast<MetadataAsValue>(getArgOperand(2))->getMetadata(); in getRawExpression()
389 return setArgOperand(0, MetadataAsValue::get(getContext(), Location)); in setRawLocation()
495 return cast<MetadataAsValue>(getArgOperand(OpAddress))->getMetadata(); in getRawAddress()
498 return cast<MetadataAsValue>(getArgOperand(OpAssignID))->getMetadata(); in getRawAssignID()
502 return cast<MetadataAsValue>(getArgOperand(OpAddressExpr))->getMetadata(); in getRawAddressExpression()
509 MetadataAsValue::get(NewExpr->getContext(), NewExpr)); in setAddressExpression()
[all …]
H A DMetadata.h176 class MetadataAsValue : public Value {
182 MetadataAsValue(Type *Ty, Metadata *MD);
188 ~MetadataAsValue();
190 static MetadataAsValue *get(LLVMContext &Context, Metadata *MD);
191 static MetadataAsValue *getIfExists(LLVMContext &Context, Metadata *MD);
333 static bool track(void *Ref, Metadata &MD, MetadataAsValue &Owner) { in track()
368 using OwnerTy = PointerUnion<MetadataAsValue *, Metadata *, DebugValueUser *>;
H A DValue.def114 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()
296 if (const auto *MAV = dyn_cast<MetadataAsValue>(Op)) in predictUseListOrder()
462 auto *MD = dyn_cast<MetadataAsValue>(&Op); in ValueEnumerator()
520 if (auto *MD = dyn_cast<MetadataAsValue>(V)) in getValueID()
905 assert(!isa<MetadataAsValue>(V) && "EnumerateValue doesn't handle Metadata!"); in EnumerateValue()
999 assert(!isa<MetadataAsValue>(V) && "Unexpected metadata operand"); in EnumerateOperandType()
1126 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 DSPIRVCallLowering.cpp234 MetadataAsValue *VMD = cast<MetadataAsValue>(II->getOperand(1)); in getArgSPIRVType()
245 MetadataAsValue *VMD = cast<MetadataAsValue>(II->getOperand(1)); in getArgSPIRVType()
H A DSPIRVRegularizer.cpp145 } else if (auto MDAsVal = dyn_cast<MetadataAsValue>(Op)) { in runLowerConstExpr()
158 Value *RepMDVal = MetadataAsValue::get(Ctx, RepMD); in runLowerConstExpr()
H A DSPIRVEmitIntrinsics.cpp58 inline MetadataAsValue *buildMD(Value *Arg) { in buildMD()
60 return MetadataAsValue::get( in buildMD()
278 MetadataAsValue *MD = cast<MetadataAsValue>(CI->getArgOperand(1)); in reconstructType()
933 MetadataAsValue::get(Ctx, MDNode::get(Ctx, ConstraintString))}; in visitCallInst()
1033 cast<MetadataAsValue>(AssignCI->getOperand(1))->getMetadata()) in insertAssignPtrTypeTargetExt()
1065 MetadataAsValue *VMD = buildMD(PoisonValue::get(ExpectedElementType)); in replacePointerOperandWithPtrCast()
1496 {I, MetadataAsValue::get(I->getContext(), MD)}); in insertSpirvDecorations()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DValueMapper.cpp379 if (const auto *MDV = dyn_cast<MetadataAsValue>(V)) { in mapValue()
387 return MetadataAsValue::get(V->getContext(), ValueAsMetadata::get(LV)); in mapValue()
394 : MetadataAsValue::get( in mapValue()
419 return MetadataAsValue::get(V->getContext(), in mapValue()
432 return getVM()[V] = MetadataAsValue::get(V->getContext(), MappedMD); in mapValue()
H A DFunctionComparator.cpp881 const MetadataAsValue *MetadataValueL = dyn_cast<MetadataAsValue>(L); in cmpValues()
882 const MetadataAsValue *MetadataValueR = dyn_cast<MetadataAsValue>(R); in cmpValues()
H A DCloneFunction.cpp440 Args.push_back(MetadataAsValue::get(Ctx, MDString::get(Ctx, PredName))); in cloneInstruction()
448 MetadataAsValue::get(Ctx, MDString::get(Ctx, "round.tonearest"))); in cloneInstruction()
450 MetadataAsValue::get(Ctx, MDString::get(Ctx, "fpexcept.ignore"))); in cloneInstruction()
H A DMemoryTaggingSupport.cpp255 Value *Args[] = {MetadataAsValue::get(M->getContext(), MD)}; in readRegister()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DCrossDSOCFI.cpp131 BitsetTestFn, {&Addr, MetadataAsValue::get( 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.cpp204 auto *TypeId = cast<MetadataAsValue>(TypeIdValue)->getMetadata(); in ScanTypeCheckedLoadIntrinsics()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DModuleSummaryAnalysis.cpp216 auto *TypeMDVal = cast<MetadataAsValue>(CI->getArgOperand(1)); in addIntrinsicToSummary()
244 auto *TypeMDVal = cast<MetadataAsValue>(CI->getArgOperand(2)); in addIntrinsicToSummary()

123