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

Declarations

include/llvm/IR/Instruction.h
  280   void setMetadata(unsigned KindID, MDNode *Node);

References

include/llvm/IR/IRBuilder.h
  867       I->setMetadata(LLVMContext::MD_prof, Weights);
  869       I->setMetadata(LLVMContext::MD_unpredictable, Unpredictable);
 1088       I->setMetadata(LLVMContext::MD_fpmath, FPMD);
 2548       Fn->setMetadata(LLVMContext::MD_preserve_access_index, DbgInfo);
 2567       Fn->setMetadata(LLVMContext::MD_preserve_access_index, DbgInfo);
 2591       Fn->setMetadata(LLVMContext::MD_preserve_access_index, DbgInfo);
include/llvm/IR/Instructions.h
 3487       SI.setMetadata(LLVMContext::MD_prof, buildProfBranchWeightsMD());
lib/Analysis/LoopInfo.cpp
  522     BB->getTerminator()->setMetadata(LLVMContext::MD_loop, LoopID);
lib/Analysis/VectorUtils.cpp
  631     Inst->setMetadata(Kind, MD);
lib/AsmParser/LLParser.cpp
  231       Inst->setMetadata(LLVMContext::MD_tbaa, UpgradedMD);
 2042     Inst.setMetadata(MDK, N);
lib/Bitcode/Reader/BitcodeReader.cpp
  167       I.setMetadata(LLVMContext::MD_tbaa, nullptr);
lib/Bitcode/Reader/MetadataLoader.cpp
 2058         Inst->setMetadata(I->second, MD);
lib/CodeGen/CodeGenPrepare.cpp
 6976     LI->setMetadata(LLVMContext::MD_invariant_group, nullptr);
 6989     SI->setMetadata(LLVMContext::MD_invariant_group, nullptr);
 7293         Br1->setMetadata(LLVMContext::MD_prof, MDBuilder(Br1->getContext())
 7299         Br2->setMetadata(LLVMContext::MD_prof, MDBuilder(Br2->getContext())
 7326         Br1->setMetadata(LLVMContext::MD_prof, MDBuilder(Br1->getContext())
 7332         Br2->setMetadata(LLVMContext::MD_prof, MDBuilder(Br2->getContext())
lib/IR/AutoUpgrade.cpp
 1687       SI->setMetadata(M->getMDKindID("nontemporal"), Node);
 1712       SI->setMetadata(M->getMDKindID("nontemporal"), Node);
 3034       LI->setMetadata(M->getMDKindID("nontemporal"), Node);
lib/IR/Core.cpp
  888   unwrap<Instruction>(Inst)->setMetadata(KindID, N);
lib/IR/DebugInfo.cpp
  344         TermInst->setMetadata(LLVMContext::MD_loop, NewLoopID);
lib/IR/IRBuilder.cpp
  116     CI->setMetadata(LLVMContext::MD_tbaa, TBAATag);
  119     CI->setMetadata(LLVMContext::MD_alias_scope, ScopeTag);
  122     CI->setMetadata(LLVMContext::MD_noalias, NoAliasTag);
  146     CI->setMetadata(LLVMContext::MD_tbaa, TBAATag);
  149     CI->setMetadata(LLVMContext::MD_alias_scope, ScopeTag);
  152     CI->setMetadata(LLVMContext::MD_noalias, NoAliasTag);
  181     CI->setMetadata(LLVMContext::MD_tbaa, TBAATag);
  185     CI->setMetadata(LLVMContext::MD_tbaa_struct, TBAAStructTag);
  188     CI->setMetadata(LLVMContext::MD_alias_scope, ScopeTag);
  191     CI->setMetadata(LLVMContext::MD_noalias, NoAliasTag);
  222     CI->setMetadata(LLVMContext::MD_tbaa, TBAATag);
  226     CI->setMetadata(LLVMContext::MD_tbaa_struct, TBAAStructTag);
  229     CI->setMetadata(LLVMContext::MD_alias_scope, ScopeTag);
  232     CI->setMetadata(LLVMContext::MD_noalias, NoAliasTag);
  261     CI->setMetadata(LLVMContext::MD_tbaa, TBAATag);
  264     CI->setMetadata(LLVMContext::MD_alias_scope, ScopeTag);
  267     CI->setMetadata(LLVMContext::MD_noalias, NoAliasTag);
  299     CI->setMetadata(LLVMContext::MD_tbaa, TBAATag);
  303     CI->setMetadata(LLVMContext::MD_tbaa_struct, TBAAStructTag);
  306     CI->setMetadata(LLVMContext::MD_alias_scope, ScopeTag);
  309     CI->setMetadata(LLVMContext::MD_noalias, NoAliasTag);
lib/IR/Instruction.cpp
  704   setMetadata(LLVMContext::MD_prof,
  723       setMetadata(MD.first, MD.second);
  753   setMetadata(LLVMContext::MD_prof, MDB.createBranchWeights(Weights));
lib/IR/Instructions.cpp
  512   setMetadata(LLVMContext::MD_prof, MDNode::get(getContext(), Vals));
lib/IR/Metadata.cpp
 1188   setMetadata(getContext().getMDKindID(Kind), Node);
 1262   setMetadata(LLVMContext::MD_tbaa, N.TBAA);
 1263   setMetadata(LLVMContext::MD_alias_scope, N.Scope);
 1264   setMetadata(LLVMContext::MD_noalias, N.NoAlias);
lib/ProfileData/InstrProf.cpp
  973   Inst.setMetadata(LLVMContext::MD_prof, MDNode::get(Ctx, Vals));
lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
  953         WidenLoad->setMetadata(LLVMContext::MD_range, nullptr);
  961         WidenLoad->setMetadata(LLVMContext::MD_range,
lib/Target/AMDGPU/AMDGPULowerKernelArguments.cpp
  164     Load->setMetadata(LLVMContext::MD_invariant_load, MDNode::get(Ctx, {}));
  170         Load->setMetadata(LLVMContext::MD_nonnull, MDNode::get(Ctx, {}));
  174         Load->setMetadata(
  183         Load->setMetadata(
  192         Load->setMetadata(
lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
  258   LoadXY->setMetadata(LLVMContext::MD_invariant_load, MD);
  259   LoadZU->setMetadata(LLVMContext::MD_invariant_load, MD);
lib/Target/AMDGPU/AMDGPUSubtarget.cpp
  490   I->setMetadata(LLVMContext::MD_range, MaxWorkGroupSizeRange);
lib/Target/NVPTX/NVVMIntrRange.cpp
   76   C->setMetadata(LLVMContext::MD_range, MDNode::get(Context, LowAndHigh));
lib/Transforms/IPO/CalledValuePropagation.cpp
  396     C->setMetadata(LLVMContext::MD_callees, Callees);
lib/Transforms/IPO/CrossDSOCFI.cpp
  152     BI->setMetadata(LLVMContext::MD_prof, VeryLikelyWeights);
lib/Transforms/IPO/LowerTypeTests.cpp
  785         NewBr->setMetadata(LLVMContext::MD_prof,
lib/Transforms/IPO/SampleProfile.cpp
 1450           I.setMetadata(LLVMContext::MD_prof,
 1503       TI->setMetadata(LLVMContext::MD_prof,
lib/Transforms/InstCombine/InstCombineCalls.cpp
  191     L->setMetadata(LLVMContext::MD_tbaa, CopyMD);
  195     L->setMetadata(LLVMContext::MD_mem_parallel_loop_access, LoopMemParallelMD);
  198     L->setMetadata(LLVMContext::MD_access_group, AccessGroupMD);
  205     S->setMetadata(LLVMContext::MD_tbaa, CopyMD);
  207     S->setMetadata(LLVMContext::MD_mem_parallel_loop_access, LoopMemParallelMD);
  209     S->setMetadata(LLVMContext::MD_access_group, AccessGroupMD);
 1250     II.setMetadata(LLVMContext::MD_range,
 1287     II.setMetadata(LLVMContext::MD_range,
 3959       LHS->setMetadata(LLVMContext::MD_nonnull, MD);
lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
  511       NewStore->setMetadata(ID, N);
lib/Transforms/InstCombine/InstCombinePHI.cpp
  615     NewLI->setMetadata(ID, FirstLI->getMetadata(ID));
lib/Transforms/InstCombine/InstCombineSelect.cpp
 2483             cast<SelectInst>(NewMinMax)->setMetadata(LLVMContext::MD_prof, MD);
lib/Transforms/Instrumentation/ControlHeightReduction.cpp
 1875   MergedBR->setMetadata(LLVMContext::MD_prof, MDB.createBranchWeights(Weights));
lib/Transforms/Instrumentation/IndirectCallPromotion.cpp
  314     NewInst->setMetadata(
  370     I->setMetadata(LLVMContext::MD_prof, nullptr);
lib/Transforms/Instrumentation/PGOInstrumentation.cpp
 1713   TI->setMetadata(LLVMContext::MD_prof, MDB.createBranchWeights(Weights));
 1746   TI->setMetadata(llvm::LLVMContext::MD_irr_loop,
lib/Transforms/Instrumentation/PGOMemOPSizeOpt.cpp
  359   MI->setMetadata(LLVMContext::MD_prof, nullptr);
lib/Transforms/Instrumentation/SanitizerCoverage.cpp
  220     I->setMetadata(I->getModule()->getMDKindID("nosanitize"),
lib/Transforms/ObjCARC/ObjCARCOpts.cpp
  865         NewCall->setMetadata(MDKindCache.get(ARCMDKindID::ImpreciseRelease),
 1597       Call->setMetadata(MDKindCache.get(ARCMDKindID::ImpreciseRelease), M);
lib/Transforms/Scalar/GVN.cpp
 1257       NewLoad->setMetadata(LLVMContext::MD_invariant_load, MD);
 1259       NewLoad->setMetadata(LLVMContext::MD_invariant_group, InvGroupMD);
 1261       NewLoad->setMetadata(LLVMContext::MD_range, RangeMD);
lib/Transforms/Scalar/JumpThreading.cpp
  289     PredBr->setMetadata(LLVMContext::MD_prof,
 2251     TI->setMetadata(
lib/Transforms/Scalar/LoopVersioningLICM.cpp
  554       Inst.setMetadata(
  559       Inst.setMetadata(
lib/Transforms/Scalar/LowerExpectIntrinsic.cpp
   78   SI.setMetadata(
   86   SI.setMetadata(LLVMContext::MD_prof,
  227       BI->setMetadata(
  231       BI->setMetadata(
  300   BSI.setMetadata(LLVMContext::MD_misexpect, ExpNode);
  309   BSI.setMetadata(LLVMContext::MD_prof, Node);
lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
 2468       I.setMetadata(LLVMContext::MD_tbaa, MutableTBAA);
lib/Transforms/Scalar/Scalarizer.cpp
  408           New->setMetadata(MD.first, MD.second);
lib/Transforms/Scalar/StructurizeCFG.cpp
 1026           Term->setMetadata(UniformMDKindID, MD);
lib/Transforms/Utils/BasicBlockUtils.cpp
  833   HeadNewTerm->setMetadata(LLVMContext::MD_prof, BranchWeights);
  878   HeadNewTerm->setMetadata(LLVMContext::MD_prof, BranchWeights);
lib/Transforms/Utils/CallPromotionUtils.cpp
  376   CS.getInstruction()->setMetadata(LLVMContext::MD_prof, nullptr);
  377   CS.getInstruction()->setMetadata(LLVMContext::MD_callees, nullptr);
lib/Transforms/Utils/CodeExtractor.cpp
 1380   TI->setMetadata(
lib/Transforms/Utils/GuardUtils.cpp
   45     CheckBI->setMetadata(LLVMContext::MD_make_implicit, MD);
   48   CheckBI->setMetadata(LLVMContext::MD_prof,
lib/Transforms/Utils/InlineFunction.cpp
  792       NI->setMetadata(LLVMContext::MD_mem_parallel_loop_access, M);
  794         NI->setMetadata(LLVMContext::MD_mem_parallel_loop_access, M);
  801       NI->setMetadata(LLVMContext::MD_access_group, UnitedAccGroups);
  892       NI->setMetadata(LLVMContext::MD_alias_scope, NewMD);
  896         NI->setMetadata(LLVMContext::MD_alias_scope, M);
  907       NI->setMetadata(LLVMContext::MD_noalias, NewMD);
  910         NI->setMetadata(LLVMContext::MD_noalias, M);
 1105         NI->setMetadata(LLVMContext::MD_noalias,
 1131         NI->setMetadata(
 1416         BI->setMetadata(LLVMContext::MD_loop, NewLoopID);
lib/Transforms/Utils/Local.cpp
  201           SI->setMetadata(LLVMContext::MD_prof,
  283         NewBr->setMetadata(LLVMContext::MD_prof,
  292         NewBr->setMetadata(LLVMContext::MD_make_implicit, MakeImplicitMD);
 1053         Pred->getTerminator()->setMetadata(LoopMDKind, LoopMD);
 2294         K->setMetadata(Kind, nullptr); // Remove unknown metadata
 2299         K->setMetadata(Kind, MDNode::getMostGenericTBAA(JMD, KMD));
 2302         K->setMetadata(Kind, MDNode::getMostGenericAliasScope(JMD, KMD));
 2306         K->setMetadata(Kind, MDNode::intersect(JMD, KMD));
 2309         K->setMetadata(LLVMContext::MD_access_group,
 2321           K->setMetadata(Kind, MDNode::getMostGenericRange(JMD, KMD));
 2324         K->setMetadata(Kind, MDNode::getMostGenericFPMath(JMD, KMD));
 2328         K->setMetadata(Kind, JMD);
 2333           K->setMetadata(Kind, JMD);
 2339         K->setMetadata(Kind,
 2344         K->setMetadata(Kind,
 2360       K->setMetadata(LLVMContext::MD_invariant_group, JMD);
 2405       Dest.setMetadata(ID, N);
 2417         Dest.setMetadata(ID, N);
 2547     NewLI.setMetadata(LLVMContext::MD_nonnull, N);
 2562   NewLI.setMetadata(LLVMContext::MD_range,
 2580     NewLI.setMetadata(LLVMContext::MD_nonnull, NN);
lib/Transforms/Utils/LoopSimplify.cpp
  449     TI->setMetadata(LoopMDKind, nullptr);
  452   BEBlock->getTerminator()->setMetadata(LoopMDKind, LoopMD);
lib/Transforms/Utils/LoopUnrollPeel.cpp
  413   LatchBR->setMetadata(LLVMContext::MD_prof, WeightNode);
  455   LatchBR->setMetadata(LLVMContext::MD_prof, WeightNode);
  719     LatchBRCopy->setMetadata(LLVMContext::MD_loop, nullptr);
lib/Transforms/Utils/LoopVersioning.cpp
  235     VersionedInst->setMetadata(
  244       VersionedInst->setMetadata(
lib/Transforms/Utils/SimplifyCFG.cpp
  794   SI->setMetadata(LLVMContext::MD_prof, N);
  808   I->setMetadata(LLVMContext::MD_prof, N);
 2811         PBI->setMetadata(LLVMContext::MD_prof, nullptr);
 2862       PBI->setMetadata(LLVMContext::MD_loop, LoopMD);
lib/Transforms/Utils/ValueMapper.cpp
  884       I->setMetadata(MI.first, New);
tools/clang/lib/CodeGen/CGBuiltin.cpp
  482     Call->setMetadata(llvm::LLVMContext::MD_range, RNode);
11355     SI->setMetadata(CGM.getModule().getMDKindID("nontemporal"), Node);
tools/clang/lib/CodeGen/CGExpr.cpp
 1676     Load->setMetadata(CGM.getModule().getMDKindID("nontemporal"), Node);
 1686       Load->setMetadata(llvm::LLVMContext::MD_range, RangeInfo);
 1758     Store->setMetadata(CGM.getModule().getMDKindID("nontemporal"), Node);
 3059   Branch->setMetadata(llvm::LLVMContext::MD_prof, Node);
 3125   BI->setMetadata(llvm::LLVMContext::MD_prof, Node);
 5005   cast<llvm::Instruction>(Val)->setMetadata(llvm::LLVMContext::MD_fpmath, Node);
tools/clang/lib/CodeGen/CGExprAgg.cpp
 2019     Inst->setMetadata(llvm::LLVMContext::MD_tbaa_struct, TBAAStructTag);
tools/clang/lib/CodeGen/CGExprComplex.cpp
  722       Branch->setMetadata(llvm::LLVMContext::MD_prof, BrWeight);
  729       Branch->setMetadata(llvm::LLVMContext::MD_prof, BrWeight);
tools/clang/lib/CodeGen/CGLoopInfo.cpp
  790         I->setMetadata(llvm::LLVMContext::MD_loop, L.getLoopID());
tools/clang/lib/CodeGen/CGObjC.cpp
  135     cast<llvm::LoadInst>(Ptr)->setMetadata(
tools/clang/lib/CodeGen/CGObjCGNU.cpp
  694     imp->setMetadata(msgSendMDKind, node);
  777       slot->setMetadata(msgSendMDKind, node);
 2051     imp->setMetadata(msgSendMDKind, node);
 2607   call->setMetadata(msgSendMDKind, node);
 2725   call->setMetadata(msgSendMDKind, node);
tools/clang/lib/CodeGen/CGObjCMac.cpp
 7076           ->setMetadata(CGM.getModule().getMDKindID("invariant.load"),
 7480   LI->setMetadata(CGM.getModule().getMDKindID("invariant.load"),
tools/clang/lib/CodeGen/CGStmt.cpp
 1714       SwitchInsn->setMetadata(llvm::LLVMContext::MD_unpredictable,
 1724       SwitchInsn->setMetadata(llvm::LLVMContext::MD_prof,
tools/clang/lib/CodeGen/CodeGenModule.cpp
  719     Inst->setMetadata(llvm::LLVMContext::MD_tbaa, Tag);
  724   I->setMetadata(llvm::LLVMContext::MD_invariant_group,
 5636       Alloca->setMetadata(
tools/clang/lib/CodeGen/ItaniumCXXABI.cpp
 1805       VFuncLoad->setMetadata(
tools/clang/lib/CodeGen/SanitizerMetadata.cpp
   86   I->setMetadata(CGM.getModule().getMDKindID("nosanitize"),
tools/llvm-reduce/deltas/ReduceMetadata.cpp
   49       MDUser.setMetadata(I, NULL);
unittests/Analysis/MemorySSATest.cpp
  787   Load->setMetadata(LLVMContext::MD_invariant_load, MDNode::get(C, {}));
unittests/Analysis/ProfileSummaryInfoTest.cpp
  200   CI2->setMetadata(llvm::LLVMContext::MD_prof, MDB.createBranchWeights({400}));
  243   CI2->setMetadata(LLVMContext::MD_prof, MDB.createBranchWeights(Weights));
  251   CI2->setMetadata(llvm::LLVMContext::MD_prof, MDB.createBranchWeights({400}));
unittests/Analysis/TBAATest.cpp
   55   SI->setMetadata(LLVMContext::MD_tbaa, MD2);
   84   SI->setMetadata(LLVMContext::MD_tbaa, GenericMD);
unittests/IR/InstructionsTest.cpp
  774   SI->setMetadata(LLVMContext::MD_prof,
unittests/ProfileData/InstrProfTest.cpp
  330   Inst->setMetadata(LLVMContext::MD_prof, 0);
  350   Inst->setMetadata(LLVMContext::MD_prof, 0);