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

Derived Classes

include/llvm/IR/ModuleSummaryIndex.h
  426 class AliasSummary : public GlobalValueSummary {
  490 class FunctionSummary : public GlobalValueSummary {
  749 class GlobalVarSummary : public GlobalValueSummary {

Declarations

include/llvm/IR/ModuleSummaryIndex.h
  118 class GlobalValueSummary;

References

include/llvm/ADT/DenseMapInfo.h
   39   static inline T* getEmptyKey() {
   41     Val <<= PointerLikeTypeTraits<T*>::NumLowBitsAvailable;
   45   static inline T* getTombstoneKey() {
   47     Val <<= PointerLikeTypeTraits<T*>::NumLowBitsAvailable;
   51   static unsigned getHashValue(const T *PtrVal) {
   56   static bool isEqual(const T *LHS, const T *RHS) { return LHS == RHS; }
   56   static bool isEqual(const T *LHS, const T *RHS) { return LHS == RHS; }
include/llvm/IR/ModuleSummaryIndex.h
  120 using GlobalValueSummaryList = std::vector<std::unique_ptr<GlobalValueSummary>>;
  183   ArrayRef<std::unique_ptr<GlobalValueSummary>> getSummaryList() const {
  419   GlobalValueSummary *getBaseObject();
  420   const GlobalValueSummary *getBaseObject() const;
  426 class AliasSummary : public GlobalValueSummary {
  433   GlobalValueSummary *AliaseeSummary;
  441   static bool classof(const GlobalValueSummary *GVS) {
  445   void setAliasee(ValueInfo &AliaseeVI, GlobalValueSummary *Aliasee) {
  457   const GlobalValueSummary &getAliasee() const {
  462   GlobalValueSummary &getAliasee() {
  476 const inline GlobalValueSummary *GlobalValueSummary::getBaseObject() const {
  482 inline GlobalValueSummary *GlobalValueSummary::getBaseObject() {
  490 class FunctionSummary : public GlobalValueSummary {
  616   static bool classof(const GlobalValueSummary *GVS) {
  749 class GlobalVarSummary : public GlobalValueSummary {
  773   static bool classof(const GlobalValueSummary *GVS) {
  884 using GVSummaryMapTy = DenseMap<GlobalValue::GUID, GlobalValueSummary *>;
 1084   bool isGlobalValueLive(const GlobalValueSummary *GVS) const {
 1141                              std::unique_ptr<GlobalValueSummary> Summary) {
 1147                              std::unique_ptr<GlobalValueSummary> Summary) {
 1154                              std::unique_ptr<GlobalValueSummary> Summary) {
 1175   GlobalValueSummary *findSummaryInModule(ValueInfo VI, StringRef ModuleId) const {
 1189   GlobalValueSummary *findSummaryInModule(GlobalValue::GUID ValueGUID,
 1199   GlobalValueSummary *getGlobalValueSummary(const GlobalValue &GV,
 1208   GlobalValueSummary *getGlobalValueSummary(GlobalValue::GUID ValueGUID,
 1421     std::unique_ptr<GlobalValueSummary> Root =
 1431 static inline bool canImportGlobalVar(GlobalValueSummary *S) {
include/llvm/LTO/LTO.h
   51     function_ref<bool(GlobalValue::GUID, const GlobalValueSummary *)>
   63     function_ref<bool(GlobalValue::GUID, const GlobalValueSummary *)>
include/llvm/Support/Casting.h
   57   static inline bool doit(const From &Val) {
   66   static inline bool doit(const From &) { return true; }
  104   static inline bool doit(const From *Val) {
  106     return isa_impl<To, From>::doit(*Val);
  106     return isa_impl<To, From>::doit(*Val);
  122     return isa_impl_wrap<To, SimpleFrom,
  132     return isa_impl_cl<To,FromTy>::doit(Val);
  142   return isa_impl_wrap<X, const Y,
  172   using ret_type = To *;       // Pointer arg case, return Ty*
  176   using ret_type = const To *; // Constant pointer arg case, return const Ty*
  198   using ret_type = typename cast_retty<To, SimpleFrom>::ret_type;
  204   using ret_type = typename cast_retty_impl<To,FromTy>::ret_type;
  210       To, From, typename simplify_type<From>::SimpleType>::ret_type;
  227   static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  228     typename cast_retty<To, FromTy>::ret_type Res2
  256 inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
  263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  265   return cast_convert_val<X, Y*,
  265   return cast_convert_val<X, Y*,
  266                           typename simplify_type<Y*>::SimpleType>::doit(Val);
  342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
  342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
  366 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type
  367 dyn_cast_or_null(Y *Val) {
include/llvm/Support/PointerLikeTypeTraits.h
   56   static inline void *getAsVoidPointer(T *P) { return P; }
   57   static inline T *getFromVoidPointer(void *P) { return static_cast<T *>(P); }
   59   enum { NumLowBitsAvailable = detail::ConstantLog2<alignof(T)>::value };
   91   typedef PointerLikeTypeTraits<T *> NonConst;
   93   static inline const void *getAsVoidPointer(const T *P) {
   96   static inline const T *getFromVoidPointer(const void *P) {
include/llvm/Transforms/IPO/FunctionImport.h
   92                std::tuple<unsigned, const GlobalValueSummary *,
lib/Analysis/ModuleSummaryAnalysis.cpp
  460   GlobalValueSummary::GVFlags Flags(F.getLinkage(), NotEligibleForImport,
  577   GlobalValueSummary::GVFlags Flags(V.getLinkage(), NonRenamableLocal,
  616   GlobalValueSummary::GVFlags Flags(A.getLinkage(), NonRenamableLocal,
  690           GlobalValueSummary::GVFlags GVFlags(GlobalValue::InternalLinkage,
  768     auto *Summary = Index.getGlobalValueSummary(*V);
lib/AsmParser/LLParser.cpp
 7916     unsigned ID, std::unique_ptr<GlobalValueSummary> Summary) {
 8066   GlobalValueSummary::GVFlags GVFlags = GlobalValueSummary::GVFlags(
 8136   GlobalValueSummary::GVFlags GVFlags = GlobalValueSummary::GVFlags(
 8192   GlobalValueSummary::GVFlags GVFlags = GlobalValueSummary::GVFlags(
 8747 bool LLParser::ParseGVFlags(GlobalValueSummary::GVFlags &GVFlags) {
lib/AsmParser/LLParser.h
  354     bool ParseGVFlags(GlobalValueSummary::GVFlags &GVFlags);
  387                                std::unique_ptr<GlobalValueSummary> Summary);
lib/Bitcode/Reader/BitcodeReader.cpp
  967 static GlobalValueSummary::GVFlags getDecodedGVSummaryFlags(uint64_t RawFlags,
 5774   GlobalValueSummary *LastSeenSummary = nullptr;
lib/Bitcode/Writer/BitcodeWriter.cpp
  210                                            GlobalValueSummary *Summary,
  435   using GVInfo = std::pair<GlobalValue::GUID, GlobalValueSummary *>;
 1012 static uint64_t getEncodedGVSummaryFlags(GlobalValueSummary::GVFlags Flags) {
 3638     SmallVector<uint64_t, 64> &NameVals, GlobalValueSummary *Summary,
 3690   auto *Summary = VI.getSummaryList()[0].get();
 3847     auto *Summary = VI.getSummaryList()[0].get();
 3866     auto *Summary = Index->getGlobalValueSummary(A);
 3967   DenseMap<const GlobalValueSummary *, unsigned> SummaryToValueIdMap;
 3987     GlobalValueSummary *S = I.second;
 4095         auto *GVSum = Index.getGlobalValueSummary(GUID, false);
 4097             GVSum->getSummaryKind() == GlobalValueSummary::GlobalVarKind)
lib/IR/AsmWriter.cpp
 2368   DenseMap<const GlobalValueSummary *, GlobalValue::GUID> SummaryToGUIDMap;
 2416   void printSummary(const GlobalValueSummary &Summary);
 2872 static const char *getSummaryKindName(GlobalValueSummary::SummaryKind SK) {
 2874   case GlobalValueSummary::AliasKind:
 2876   case GlobalValueSummary::FunctionKind:
 2878   case GlobalValueSummary::GlobalVarKind:
 3079 void AssemblyWriter::printSummary(const GlobalValueSummary &Summary) {
 3080   GlobalValueSummary::GVFlags GVFlags = Summary.flags();
 3092   if (Summary.getSummaryKind() == GlobalValueSummary::AliasKind)
 3094   else if (Summary.getSummaryKind() == GlobalValueSummary::FunctionKind)
lib/IR/ModuleSummaryIndex.cpp
   83 GlobalValueSummary *
  107 static void propagateAttributesToRefs(GlobalValueSummary *S) {
  307 static std::string getSummaryAttributes(GlobalValueSummary* GVS) {
  324 static std::string getNodeLabel(const ValueInfo &VI, GlobalValueSummary *GVS) {
  354 static bool hasReadOnlyFlag(const GlobalValueSummary *S) {
  360 static bool hasWriteOnlyFlag(const GlobalValueSummary *S) {
  369   using GVSOrderedMapTy = std::map<GlobalValue::GUID, GlobalValueSummary *>;
  460       auto *GVS = SummaryIt.second;
lib/LTO/LTO.cpp
  232       GlobalValueSummary *S = Index.findSummaryInModule(ImpF, ImpM.first());
  302     ValueInfo VI, DenseSet<GlobalValueSummary *> &GlobalInvolvedWithAlias,
  303     function_ref<bool(GlobalValue::GUID, const GlobalValueSummary *)>
  357     function_ref<bool(GlobalValue::GUID, const GlobalValueSummary *)>
  365   DenseSet<GlobalValueSummary *> GlobalInvolvedWithAlias;
  377 static bool isWeakObjectWithRWAccess(GlobalValueSummary *GVS) {
  388     function_ref<bool(GlobalValue::GUID, const GlobalValueSummary *)>
  419     function_ref<bool(GlobalValue::GUID, const GlobalValueSummary *)>
lib/LTO/LTOBackend.cpp
  464     if (GlobalValueSummary *GVS = DefinedGlobals.lookup(GV.getGUID()))
lib/LTO/ThinLTOCodeGenerator.cpp
  101 static const GlobalValueSummary *
  130     DenseMap<GlobalValue::GUID, const GlobalValueSummary *> &PrevailingCopy) {
  468     const DenseMap<GlobalValue::GUID, const GlobalValueSummary *>
  601   const DenseMap<GlobalValue::GUID, const GlobalValueSummary *> &PrevailingCopy;
  602   IsPrevailing(const DenseMap<GlobalValue::GUID, const GlobalValueSummary *>
  606   bool operator()(GlobalValue::GUID GUID, const GlobalValueSummary *S) const {
  658   DenseMap<GlobalValue::GUID, const GlobalValueSummary *> PrevailingCopy;
  820   DenseMap<GlobalValue::GUID, const GlobalValueSummary *> PrevailingCopy;
  995   DenseMap<GlobalValue::GUID, const GlobalValueSummary *> PrevailingCopy;
lib/Transforms/IPO/FunctionImport.cpp
  175 static const GlobalValueSummary *
  177              ArrayRef<std::unique_ptr<GlobalValueSummary>> CalleeSummaryList,
  185         auto *GVSummary = SummaryPtr.get();
  204         if (GVSummary->getSummaryKind() == GlobalValueSummary::GlobalVarKind) {
  257   return cast<GlobalValueSummary>(It->get());
  599       return SL[0]->getSummaryKind() == GlobalValueSummary::GlobalVarKind;
tools/clang/lib/CodeGen/BackendUtil.cpp
 1371   StringMap<DenseMap<GlobalValue::GUID, GlobalValueSummary *>>
usr/include/c++/7.4.0/bits/unique_ptr.h
   68         default_delete(const default_delete<_Up>&) noexcept { }
   72       operator()(_Tp* __ptr) const
   74 	static_assert(!is_void<_Tp>::value,
   76 	static_assert(sizeof(_Tp)>0,
  122 	  using type = _Up*;
  137       using pointer = typename _Ptr<_Tp, _Dp>::type;
  161 	typename __uniq_ptr_impl<_Tp, _Up>::_DeleterConstraint::type;
  163       __uniq_ptr_impl<_Tp, _Dp> _M_t;
  166       using pointer	  = typename __uniq_ptr_impl<_Tp, _Dp>::pointer;
  167       using element_type  = _Tp;
  252 	unique_ptr(unique_ptr<_Up, _Ep>&& __u) noexcept
  297           __safe_conversion_up<_Up, _Ep>,
  301 	operator=(unique_ptr<_Up, _Ep>&& __u) noexcept
usr/include/c++/7.4.0/type_traits
  215     : public __is_void_helper<typename remove_cv<_Tp>::type>::type
  581     : public __or_<is_lvalue_reference<_Tp>,
  582                    is_rvalue_reference<_Tp>>::type
  601     : public __not_<__or_<is_function<_Tp>, is_reference<_Tp>,
  601     : public __not_<__or_<is_function<_Tp>, is_reference<_Tp>,
  602                           is_void<_Tp>>>::type
  638     : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
  638     : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
 1554     { typedef _Tp     type; };
 1563     { typedef _Tp     type; };
 1574       remove_const<typename remove_volatile<_Tp>::type>::type     type;
 1645     { typedef _Tp&   type; };
 1650     : public __add_lvalue_reference_helper<_Tp>
 1983     { typedef _Up     type; };