reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

include/llvm/IR/Metadata.h
  187   static MetadataAsValue *get(LLVMContext &Context, Metadata *MD);

References

include/llvm/IR/IRBuilder.h
 1113     return MetadataAsValue::get(Context, RoundingMDS);
 1129     return MetadataAsValue::get(Context, ExceptMDS);
lib/AsmParser/LLParser.cpp
 5058   V = MetadataAsValue::get(Context, MD);
lib/Bitcode/Reader/BitcodeReader.cpp
  630       return MetadataAsValue::get(Ty->getContext(), getFnMetadataByID(ID));
lib/Bitcode/Reader/MetadataLoader.cpp
  543               DDI->setOperand(2, MetadataAsValue::get(Context, E));
lib/CodeGen/CodeGenPrepare.cpp
 2558         auto *MV = MetadataAsValue::get(Ctx, ValueAsMetadata::get(Inst));
lib/IR/Core.cpp
  867     return wrap(MetadataAsValue::get(I->getContext(), MD));
  980   return wrap(MetadataAsValue::get(Context, Op));
 1061   return wrap(MetadataAsValue::get(
 1088       return wrap(MetadataAsValue::get(Context, LocalAsMetadata::get(V)));
 1093   return wrap(MetadataAsValue::get(Context, MDNode::get(Context, MDs)));
 1101   return wrap(MetadataAsValue::get(*unwrap(C), unwrap(MD)));
 1205     Dest[i] = wrap(MetadataAsValue::get(Context, N->getOperand(i)));
 3054   return wrap(MetadataAsValue::get(
lib/IR/DIBuilder.cpp
  911   return MetadataAsValue::get(VMContext, ValueAsMetadata::get(V));
  933                    MetadataAsValue::get(VMContext, VarInfo),
  934                    MetadataAsValue::get(VMContext, Expr)};
  955                    MetadataAsValue::get(VMContext, VarInfo),
  956                    MetadataAsValue::get(VMContext, Expr)};
  974   Value *Args[] = {MetadataAsValue::get(VMContext, LabelInfo)};
lib/Target/AArch64/AArch64StackTagging.cpp
  684           MetadataAsValue::get(F->getContext(), LocalAsMetadata::get(Info.AI)));
lib/Transforms/IPO/CrossDSOCFI.cpp
  149         BitsetTestFn, {&Addr, MetadataAsValue::get(
lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp
  100                         MetadataAsValue::get(M.getContext(), GlobalMD));
lib/Transforms/InstCombine/InstCombineCalls.cpp
 3693         Value *Args[] = {MetadataAsValue::get(II->getContext(), MD)};
lib/Transforms/InstCombine/InstructionCombining.cpp
 3175             0, MetadataAsValue::get(I->getContext(),
 3192         DII->setOperand(0, MetadataAsValue::get(DII->getContext(),
lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
 1025   Value *Args[] = {MetadataAsValue::get(*C, MD)};
 1069       DDI->setArgOperand(2, MetadataAsValue::get(*C, NewExpr));
 1218                   0, MetadataAsValue::get(*C, LocalAsMetadata::get(NewAI)));
lib/Transforms/Utils/LCSSA.cpp
  232         DVI->setOperand(0, MetadataAsValue::get(Ctx, ValueAsMetadata::get(V)));
lib/Transforms/Utils/Local.cpp
  494     DII->setOperand(0, MetadataAsValue::get(DII->getContext(),
 1474     auto PhiMAV = MetadataAsValue::get(C, ValueAsMetadata::get(PHI));
 1602   return MetadataAsValue::get(C, ValueAsMetadata::get(V));
 1634     DII->setOperand(2, MetadataAsValue::get(Ctx, DIExpr));
 1774     DII->setOperand(2, MetadataAsValue::get(Ctx, *DVR));
lib/Transforms/Utils/LoopRotationUtils.cpp
  167                            MetadataAsValue::get(OrigHeaderVal->getContext(),
lib/Transforms/Utils/LoopUnroll.cpp
   81       return Wrapped ? MetadataAsValue::get(C, ValueAsMetadata::get(V)) : V;
lib/Transforms/Utils/ValueMapper.cpp
  386         return MetadataAsValue::get(V->getContext(), ValueAsMetadata::get(LV));
  393                  : MetadataAsValue::get(V->getContext(),
  406     return getVM()[V] = MetadataAsValue::get(V->getContext(), MappedMD);
tools/clang/lib/CodeGen/CGBuiltin.cpp
 3130     Builder.CreateCall(F, MetadataAsValue::get(getLLVMContext(), StrTuple));
 5931   llvm::Value *Metadata = llvm::MetadataAsValue::get(Context, RegName);
 7257     llvm::Value *Metadata = llvm::MetadataAsValue::get(Context, RegName);
 7430     llvm::Value *Metadata = llvm::MetadataAsValue::get(Context, RegName);
tools/clang/lib/CodeGen/CGClass.cpp
 2648         llvm::MetadataAsValue::get(CGM.getLLVMContext(), MD);
 2756   llvm::Value *TypeId = llvm::MetadataAsValue::get(getLLVMContext(), MD);
 2779   llvm::Value *AllVtables = llvm::MetadataAsValue::get(
 2813   llvm::Value *TypeId = llvm::MetadataAsValue::get(CGM.getLLVMContext(), MD);
tools/clang/lib/CodeGen/CGExpr.cpp
 1917       F, llvm::MetadataAsValue::get(Ty->getContext(), RegName));
 2181       F, {llvm::MetadataAsValue::get(Ty->getContext(), RegName), Value});
 2459     llvm::MetadataAsValue::get(CGM.getLLVMContext(), M->getOperand(0));
 3237   llvm::Value *AllVtables = llvm::MetadataAsValue::get(
 4853     llvm::Value *TypeId = llvm::MetadataAsValue::get(getLLVMContext(), MD);
tools/clang/lib/CodeGen/ItaniumCXXABI.cpp
  667       TypeId = llvm::MetadataAsValue::get(CGF.getLLVMContext(), MD);
  715         llvm::Value *AllVtables = llvm::MetadataAsValue::get(
  758             llvm::MetadataAsValue::get(CGF.getLLVMContext(), MD);
unittests/IR/BasicBlockTest.cpp
  106   Value *DIV = MetadataAsValue::get(Ctx, (Metadata *)nullptr);
unittests/IR/MetadataTest.cpp
  383   auto *MAV0 = MetadataAsValue::get(Context, N0);
  384   auto *MAV1 = MetadataAsValue::get(Context, N1);
 2486   auto *V = MetadataAsValue::get(Context, N);
 2490   auto *V2 = MetadataAsValue::get(Context, N);
 2498   auto *V = MetadataAsValue::get(Context, N2);
 2502   auto *V2 = MetadataAsValue::get(Context, N2);
 2505   auto *V3 = MetadataAsValue::get(Context, N);
 2517   auto *V = MetadataAsValue::get(Context, MD);
 2521   auto *V2 = MetadataAsValue::get(Context, N);
unittests/Transforms/Utils/ValueMapperTest.cpp
  294   auto *MAV = MetadataAsValue::get(C, LAM);
  306   auto *N0AV = MetadataAsValue::get(C, N0);
  341   auto *MDA = MetadataAsValue::get(Context, ValueAsMetadata::get(&A));
  342   auto *MDC = MetadataAsValue::get(Context, ValueAsMetadata::get(&C));