Home
last modified time | relevance | path

Searched refs:GlobalVarSummary (Results 1 – 25 of 29) sorted by relevance

12

/external/llvm-project/llvm/lib/IR/
DModuleSummaryIndex.cpp187 if (auto *GVS = dyn_cast<GlobalVarSummary>(Ref->getBaseObject())) { in propagateAttributesToRefs()
254 if (auto *GVS = dyn_cast<GlobalVarSummary>(S->getBaseObject())) in propagateAttributes()
269 if (auto *GVS = dyn_cast<GlobalVarSummary>( in propagateAttributes()
281 auto HasRefsPreventingImport = [this](const GlobalVarSummary *GVS) { in canImportGlobalVar()
299 auto *GVS = cast<GlobalVarSummary>(S->getBaseObject()); in canImportGlobalVar()
470 if (auto *GVS = dyn_cast<GlobalVarSummary>(S)) in hasReadOnlyFlag()
476 if (auto *GVS = dyn_cast<GlobalVarSummary>(S)) in hasWriteOnlyFlag()
482 if (auto *GVS = dyn_cast<GlobalVarSummary>(S)) in hasConstantFlag()
DAsmWriter.cpp2612 void printGlobalVarSummary(const GlobalVarSummary *GS);
3105 void AssemblyWriter::printGlobalVarSummary(const GlobalVarSummary *GS) { in printGlobalVarSummary()
3344 printGlobalVarSummary(cast<GlobalVarSummary>(&Summary)); in printSummary()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DModuleSummaryIndex.cpp128 if (auto *GVS = dyn_cast<GlobalVarSummary>(Ref->getBaseObject())) { in propagateAttributesToRefs()
182 if (auto *GVS = dyn_cast<GlobalVarSummary>(S->getBaseObject())) in propagateAttributes()
197 if (auto *GVS = dyn_cast<GlobalVarSummary>( in propagateAttributes()
209 auto HasRefsPreventingImport = [this](const GlobalVarSummary *GVS) { in canImportGlobalVar()
226 auto *GVS = cast<GlobalVarSummary>(S->getBaseObject()); in canImportGlobalVar()
397 if (auto *GVS = dyn_cast<GlobalVarSummary>(S)) in hasReadOnlyFlag()
403 if (auto *GVS = dyn_cast<GlobalVarSummary>(S)) in hasWriteOnlyFlag()
DAsmWriter.cpp2423 void printGlobalVarSummary(const GlobalVarSummary *GS);
2904 void AssemblyWriter::printGlobalVarSummary(const GlobalVarSummary *GS) { in printGlobalVarSummary()
3107 printGlobalVarSummary(cast<GlobalVarSummary>(&Summary)); in printSummary()
/external/llvm/lib/Analysis/
DModuleSummaryAnalysis.cpp112 std::unique_ptr<GlobalVarSummary> GVarSummary = in computeVariableSummary()
113 llvm::make_unique<GlobalVarSummary>(Flags); in computeVariableSummary()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DModuleSummaryAnalysis.cpp602 GlobalVarSummary::GVarFlags VarFlags(CanBeInternalized, CanBeInternalized); in computeVariableSummary()
603 auto GVarSummary = std::make_unique<GlobalVarSummary>(Flags, VarFlags, in computeVariableSummary()
719 std::unique_ptr<GlobalVarSummary> Summary = in buildModuleSummaryIndex()
720 std::make_unique<GlobalVarSummary>( in buildModuleSummaryIndex()
721 GVFlags, GlobalVarSummary::GVarFlags(false, false), in buildModuleSummaryIndex()
/external/llvm-project/llvm/lib/Analysis/
DModuleSummaryAnalysis.cpp607 GlobalVarSummary::GVarFlags VarFlags(CanBeInternalized, in computeVariableSummary()
610 auto GVarSummary = std::make_unique<GlobalVarSummary>(Flags, VarFlags, in computeVariableSummary()
728 std::unique_ptr<GlobalVarSummary> Summary = in buildModuleSummaryIndex()
729 std::make_unique<GlobalVarSummary>( in buildModuleSummaryIndex()
731 GlobalVarSummary::GVarFlags( in buildModuleSummaryIndex()
/external/llvm/include/llvm/IR/
DModuleSummaryIndex.h289 class GlobalVarSummary : public GlobalValueSummary {
293 GlobalVarSummary(GVFlags Flags) : GlobalValueSummary(GlobalVarKind, Flags) {} in GlobalVarSummary() function
/external/llvm-project/llvm/include/llvm/IR/
DModuleSummaryIndex.h812 class GlobalVarSummary : public GlobalValueSummary {
849 GlobalVarSummary(GVFlags Flags, GVarFlags VarFlags,
1195 bool isReadOnly(const GlobalVarSummary *GVS) const {
1198 bool isWriteOnly(const GlobalVarSummary *GVS) const {
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DModuleSummaryIndex.h752 class GlobalVarSummary : public GlobalValueSummary {
770 GlobalVarSummary(GVFlags Flags, GVarFlags VarFlags,
1088 bool isReadOnly(const GlobalVarSummary *GVS) const {
1091 bool isWriteOnly(const GlobalVarSummary *GVS) const {
/external/llvm-project/llvm/lib/Transforms/IPO/
DFunctionImport.cpp311 if (isa<GlobalVarSummary>(RefSummary.get()) && in computeImportForReferencedGlobals()
328 if (!Index.isWriteOnly(cast<GlobalVarSummary>(RefSummary.get()))) in computeImportForReferencedGlobals()
640 auto *GVS = dyn_cast_or_null<GlobalVarSummary>( in checkVariableImport()
693 if (auto *GVS = dyn_cast<GlobalVarSummary>(S)) { in ComputeCrossModuleImport()
DWholeProgramDevirt.cpp803 auto *GVar = dyn_cast<GlobalVarSummary>(S.get()); in updateVCallVisibilityInIndex()
1002 const GlobalVarSummary *VS = nullptr; in tryFindVirtualCallTargets()
1011 VS = cast<GlobalVarSummary>(S->getBaseObject()); in tryFindVirtualCallTargets()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DFunctionImportUtils.cpp249 auto *GVS = dyn_cast_or_null<GlobalVarSummary>( in processGlobalForThinLTO()
/external/llvm-project/llvm/lib/Transforms/Utils/
DFunctionImportUtils.cpp242 auto *GVS = dyn_cast_or_null<GlobalVarSummary>( in processGlobalForThinLTO()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/
DFunctionImport.cpp315 if (isa<GlobalVarSummary>(RefSummary.get()) && in computeImportForReferencedGlobals()
327 if (!Index.isWriteOnly(cast<GlobalVarSummary>(RefSummary.get()))) in computeImportForReferencedGlobals()
650 auto *GVS = dyn_cast_or_null<GlobalVarSummary>( in checkVariableImport()
DWholeProgramDevirt.cpp858 const GlobalVarSummary *VS = nullptr; in tryFindVirtualCallTargets()
867 VS = cast<GlobalVarSummary>(S->getBaseObject()); in tryFindVirtualCallTargets()
/external/llvm/lib/Transforms/IPO/
DFunctionImport.cpp243 auto GVS = dyn_cast<GlobalVarSummary>(Summary); in exportGlobalInModule()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/LTO/
DLTO.cpp199 if (auto *GVS = dyn_cast<GlobalVarSummary>(GS)) { in computeLTOCacheKey()
381 if (auto *VarSummary = dyn_cast<GlobalVarSummary>(GVS->getBaseObject())) in isWeakObjectWithRWAccess()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp987 static GlobalVarSummary::GVarFlags getDecodedGVarFlags(uint64_t RawFlags) { in getDecodedGVarFlags()
988 return GlobalVarSummary::GVarFlags((RawFlags & 0x1) ? true : false, in getDecodedGVarFlags()
5967 GlobalVarSummary::GVarFlags GVF(/* ReadOnly */ false, in parseEntireSummary()
5977 std::make_unique<GlobalVarSummary>(Flags, GVF, std::move(Refs)); in parseEntireSummary()
5990 GlobalVarSummary::GVarFlags GVF = getDecodedGVarFlags(Record[2]); in parseEntireSummary()
6004 std::make_unique<GlobalVarSummary>(Flags, GVF, std::move(Refs)); in parseEntireSummary()
6103 GlobalVarSummary::GVarFlags GVF(/* ReadOnly */ false, in parseEntireSummary()
6113 std::make_unique<GlobalVarSummary>(Flags, GVF, std::move(Refs)); in parseEntireSummary()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/AsmParser/
DLLParser.h355 bool ParseGVarFlags(GlobalVarSummary::GVarFlags &GVarFlags);
/external/llvm-project/llvm/lib/AsmParser/
DLLParser.h348 bool parseGVarFlags(GlobalVarSummary::GVarFlags &GVarFlags);
/external/llvm-project/llvm/lib/LTO/
DLTO.cpp212 if (auto *GVS = dyn_cast<GlobalVarSummary>(GS)) { in computeLTOCacheKey()
394 if (auto *VarSummary = dyn_cast<GlobalVarSummary>(GVS->getBaseObject())) in isWeakObjectWithRWAccess()
/external/llvm-project/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp991 static GlobalVarSummary::GVarFlags getDecodedGVarFlags(uint64_t RawFlags) { in getDecodedGVarFlags()
992 return GlobalVarSummary::GVarFlags( in getDecodedGVarFlags()
6180 GlobalVarSummary::GVarFlags GVF(/* ReadOnly */ false, in parseEntireSummary()
6192 std::make_unique<GlobalVarSummary>(Flags, GVF, std::move(Refs)); in parseEntireSummary()
6205 GlobalVarSummary::GVarFlags GVF = getDecodedGVarFlags(Record[2]); in parseEntireSummary()
6219 std::make_unique<GlobalVarSummary>(Flags, GVF, std::move(Refs)); in parseEntireSummary()
6319 GlobalVarSummary::GVarFlags GVF(/* ReadOnly */ false, in parseEntireSummary()
6331 std::make_unique<GlobalVarSummary>(Flags, GVF, std::move(Refs)); in parseEntireSummary()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Bitcode/Writer/
DBitcodeWriter.cpp1030 static uint64_t getEncodedGVarFlags(GlobalVarSummary::GVarFlags Flags) { in getEncodedGVarFlags()
3698 GlobalVarSummary *VS = cast<GlobalVarSummary>(Summary); in writeModuleLevelReferences()
4017 if (auto *VS = dyn_cast<GlobalVarSummary>(S)) { in writeCombinedGlobalValueSummary()
/external/llvm/lib/Bitcode/Writer/
DBitcodeWriter.cpp3255 GlobalVarSummary *VS = cast<GlobalVarSummary>(Summary); in writeModuleLevelReferences()
3447 if (auto *VS = dyn_cast<GlobalVarSummary>(S)) { in writeCombinedGlobalValueSummary()

12