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

References

lib/Transforms/Instrumentation/InstrProfiling.cpp
  494   this->M = &M;
  617     Call = Builder.CreateCall(getOrInsertValueProfilingCall(*M, *TLI), Args);
  627         Builder.CreateCall(getOrInsertValueProfilingCall(*M, *TLI, true), Args);
  760   bool NeedComdat = needsComdatForCounter(*Fn, *M);
  773       GV->setComdat(M->getOrInsertComdat(GV->getName()));
  777   LLVMContext &Ctx = M->getContext();
  782       new GlobalVariable(*M, CounterTy, false, Linkage,
  804           new GlobalVariable(*M, ValuesTy, false, Linkage,
  838   auto *Data = new GlobalVariable(*M, DataTy, false, Linkage,
  894   auto &Ctx = M->getContext();
  903       *M, VNodesTy, false, GlobalValue::PrivateLinkage,
  922   auto &Ctx = M->getContext();
  925   NamesVar = new GlobalVariable(*M, NamesVal->getType(), true,
  946   auto *VoidTy = Type::getVoidTy(M->getContext());
  947   auto *VoidPtrTy = Type::getInt8PtrTy(M->getContext());
  948   auto *Int64Ty = Type::getInt64Ty(M->getContext());
  951                                      getInstrProfRegFuncsName(), M);
  959                        getInstrProfRegFuncName(), M);
  961   IRBuilder<> IRB(BasicBlock::Create(M->getContext(), "", RegisterF));
  972                          getInstrProfNamesRegFuncName(), M);
  987   if (M->getGlobalVariable(getInstrProfRuntimeHookVarName()))
  991   auto *Int32Ty = Type::getInt32Ty(M->getContext());
  993       new GlobalVariable(*M, Int32Ty, false, GlobalValue::ExternalLinkage,
  999                                 getInstrProfRuntimeHookVarUseFuncName(), M);
 1005     User->setComdat(M->getOrInsertComdat(User->getName()));
 1007   IRBuilder<> IRB(BasicBlock::Create(M->getContext(), "", User));
 1018     appendToUsed(*M, UsedVars);
 1027     createProfileFileNameVar(*M, Options.InstrProfileOutput);
 1028   Function *RegisterF = M->getFunction(getInstrProfRegFuncsName());
 1033   auto *VoidTy = Type::getVoidTy(M->getContext());
 1036                              getInstrProfInitFuncName(), M);
 1043   IRBuilder<> IRB(BasicBlock::Create(M->getContext(), "", F));
 1047   appendToGlobalCtors(*M, F, 0);