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

References

include/llvm/IR/IntrinsicInst.h
  109       return cast<MetadataAsValue>(getArgOperand(1))->getMetadata();
  113       return cast<MetadataAsValue>(getArgOperand(2))->getMetadata();
  194       return cast<MetadataAsValue>(getArgOperand(0))->getMetadata();
lib/Analysis/ModuleSummaryAnalysis.cpp
  170     auto *TypeId = dyn_cast<MDString>(TypeMDVal->getMetadata());
  201     auto *TypeId = dyn_cast<MDString>(TypeMDVal->getMetadata());
lib/Bitcode/Writer/ValueEnumerator.cpp
  411           if (isa<LocalAsMetadata>(MD->getMetadata()))
  414           EnumerateMetadata(&F, MD->getMetadata());
  459     return getMetadataID(MD->getMetadata());
  985           if (auto *Local = dyn_cast<LocalAsMetadata>(MD->getMetadata()))
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
 5676         DAG.getMDNode(cast<MDNode>(cast<MetadataAsValue>(Reg)->getMetadata()));
 5689         DAG.getMDNode(cast<MDNode>(cast<MetadataAsValue>(Reg)->getMetadata()));
 6437     Metadata *MD = cast<MetadataAsValue>(I.getArgOperand(0))->getMetadata();
lib/IR/AsmWriter.cpp
 1073             if (MDNode *N = dyn_cast<MDNode>(V->getMetadata()))
 2259     WriteAsOperandInternal(Out, MD->getMetadata(), TypePrinter, Machine,
 4275             if (isa<MDNode>(V->getMetadata()))
 4319     V->getMetadata()->print(ROS, MST, getModuleFromVal(V));
lib/IR/Core.cpp
  875   Metadata *MD = MAV->getMetadata();
  934     if (isa<MDNode>(MD->getMetadata()) ||
  935         isa<ValueAsMetadata>(MD->getMetadata()))
  942     if (isa<MDString>(MD->getMetadata()))
  986     if (auto *L = dyn_cast<ValueAsMetadata>(MD->getMetadata())) {
  991                                 cast<MDNode>(MD->getMetadata()), Index);
 1081       MD = MDV->getMetadata();
 1109     return wrap(MAV->getMetadata());
 1115     if (const MDString *S = dyn_cast<MDString>(MD->getMetadata())) {
 1125   if (isa<ValueAsMetadata>(MD->getMetadata()))
 1127   return cast<MDNode>(MD->getMetadata())->getNumOperands();
 1180   if (auto *MDV = dyn_cast<ValueAsMetadata>(MD->getMetadata())) {
 1184   const auto *N = cast<MDNode>(MD->getMetadata());
 3048       L ? cast<MDNode>(unwrap<MetadataAsValue>(L)->getMetadata()) : nullptr;
lib/IR/IntrinsicInst.cpp
   44   auto *MD = cast<MetadataAsValue>(Op)->getMetadata();
  109       cast<MetadataAsValue>(getArgOperand(NumOperands - 2))->getMetadata();
  155       cast<MetadataAsValue>(getArgOperand(NumOperands - 1))->getMetadata();
lib/IR/TypeFinder.cpp
  122     if (const auto *N = dyn_cast<MDNode>(M->getMetadata()))
  124     if (const auto *MDV = dyn_cast<ValueAsMetadata>(M->getMetadata()))
lib/IR/Verifier.cpp
  853   Metadata *MD = MDV.getMetadata();
 4917   auto *MD = cast<MetadataAsValue>(DII.getArgOperand(0))->getMetadata();
lib/Transforms/IPO/GlobalDCE.cpp
  246     auto *TypeId = cast<MetadataAsValue>(TypeIdValue)->getMetadata();
lib/Transforms/IPO/LowerTypeTests.cpp
 1031   auto TypeIdStr = dyn_cast<MDString>(TypeIdMDVal->getMetadata());
 2005       auto TypeId = TypeIdMDVal->getMetadata();
lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp
   90         cast<MetadataAsValue>(CI->getArgOperand(ArgNo))->getMetadata();
lib/Transforms/IPO/WholeProgramDevirt.cpp
 1575           cast<MetadataAsValue>(CI->getArgOperand(1))->getMetadata();
 1612     Metadata *TypeId = cast<MetadataAsValue>(TypeIdValue)->getMetadata();
lib/Transforms/Utils/LoopUnroll.cpp
   74       if (auto *Unwrapped = dyn_cast<ValueAsMetadata>(V->getMetadata())) {
lib/Transforms/Utils/ValueMapper.cpp
  379     const Metadata *MD = MDV->getMetadata();
tools/clang/lib/CodeGen/CGExpr.cpp
 1906       cast<llvm::MetadataAsValue>(LV.getGlobalReg())->getMetadata());
 2166       cast<llvm::MetadataAsValue>(Dst.getGlobalReg())->getMetadata());
unittests/IR/MetadataTest.cpp
 2488   EXPECT_EQ(N, V->getMetadata());
 2500   EXPECT_EQ(N2, V->getMetadata());
 2508   EXPECT_EQ(N, V3->getMetadata());
 2519   EXPECT_EQ(MD, V->getMetadata());
 2522   EXPECT_EQ(MD, V2->getMetadata());
unittests/Linker/LinkModulesTest.cpp
  266       cast<MDNode>(cast<MetadataAsValue>(CI->getArgOperand(0))->getMetadata());
  294   EXPECT_EQ(M1, cast<MetadataAsValue>(CI->getArgOperand(0))->getMetadata());
unittests/Transforms/Utils/ValueMapperTest.cpp
  343   EXPECT_TRUE(isa<LocalAsMetadata>(MDA->getMetadata()));
  344   EXPECT_TRUE(isa<ConstantAsMetadata>(MDC->getMetadata()));