Home
last modified time | relevance | path

Searched refs:ProfileKind (Results 1 – 12 of 12) sorted by relevance

/llvm-project-15.0.7/llvm/include/llvm/ProfileData/
H A DInstrProfWriter.h54 InstrProfKind ProfileKind = InstrProfKind::Unknown; variable
107 if (ProfileKind == InstrProfKind::Unknown) { in mergeProfileKind()
108 ProfileKind = Other; in mergeProfileKind()
114 return (static_cast<bool>(ProfileKind & A) && in mergeProfileKind()
116 (static_cast<bool>(ProfileKind & B) && in mergeProfileKind()
123 (ProfileKind & InstrProfKind::FrontendInstrumentation) ^ in mergeProfileKind()
135 ProfileKind |= Other; in mergeProfileKind()
139 InstrProfKind getProfileKind() const { return ProfileKind; } in getProfileKind()
H A DInstrProfReader.h202 InstrProfKind ProfileKind = InstrProfKind::Unknown; variable
216 return static_cast<bool>(ProfileKind & InstrProfKind::IRInstrumentation); in isIRLevelProfile()
220 return static_cast<bool>(ProfileKind & InstrProfKind::ContextSensitive); in hasCSIRLevelProfile()
224 return static_cast<bool>(ProfileKind & in instrEntryBBEnabled()
229 return static_cast<bool>(ProfileKind & InstrProfKind::SingleByteCoverage); in hasSingleByteCoverage()
233 return static_cast<bool>(ProfileKind & InstrProfKind::FunctionEntryOnly); in functionEntryOnly()
236 InstrProfKind getProfileKind() const override { return ProfileKind; } in getProfileKind()
/llvm-project-15.0.7/llvm/lib/ProfileData/
H A DInstrProfWriter.cpp350 if (static_cast<bool>(ProfileKind & InstrProfKind::IRInstrumentation)) in writeImpl()
352 if (static_cast<bool>(ProfileKind & InstrProfKind::ContextSensitive)) in writeImpl()
354 if (static_cast<bool>(ProfileKind & in writeImpl()
357 if (static_cast<bool>(ProfileKind & InstrProfKind::SingleByteCoverage)) in writeImpl()
359 if (static_cast<bool>(ProfileKind & InstrProfKind::FunctionEntryOnly)) in writeImpl()
361 if (static_cast<bool>(ProfileKind & InstrProfKind::MemProf)) in writeImpl()
396 if (static_cast<bool>(ProfileKind & InstrProfKind::ContextSensitive)) { in writeImpl()
419 if (static_cast<bool>(ProfileKind & InstrProfKind::MemProf)) { in writeImpl()
474 if (static_cast<bool>(ProfileKind & InstrProfKind::ContextSensitive)) { in writeImpl()
589 if (static_cast<bool>(ProfileKind & InstrProfKind::ContextSensitive)) in writeText()
[all …]
H A DInstrProfReader.cpp43 InstrProfKind ProfileKind = InstrProfKind::Unknown; in getProfileKindFromVersion() local
45 ProfileKind |= InstrProfKind::IRInstrumentation; in getProfileKindFromVersion()
48 ProfileKind |= InstrProfKind::ContextSensitive; in getProfileKindFromVersion()
51 ProfileKind |= InstrProfKind::FunctionEntryInstrumentation; in getProfileKindFromVersion()
54 ProfileKind |= InstrProfKind::SingleByteCoverage; in getProfileKindFromVersion()
57 ProfileKind |= InstrProfKind::FunctionEntryOnly; in getProfileKindFromVersion()
60 ProfileKind |= InstrProfKind::MemProf; in getProfileKindFromVersion()
62 return ProfileKind; in getProfileKindFromVersion()
177 ProfileKind |= InstrProfKind::IRInstrumentation; in readHeader()
181 ProfileKind |= InstrProfKind::IRInstrumentation; in readHeader()
[all …]
/llvm-project-15.0.7/clang/lib/Basic/Targets/
H A DARM.cpp145 if (ArchProfile == llvm::ARM::ProfileKind::M) { in setAtomic()
238 case llvm::ARM::ProfileKind::A: in getCPUProfile()
240 case llvm::ARM::ProfileKind::R: in getCPUProfile()
242 case llvm::ARM::ProfileKind::M: in getCPUProfile()
290 ArchProfile == llvm::ARM::ProfileKind::M) { in ARMTargetInfo()
388 llvm::ARM::ProfileKind Profile = llvm::ARM::parseArchProfile(SubArch); in isBranchProtectionSupportedArch()
389 return a.isArmT32() && (Profile == llvm::ARM::ProfileKind::M); in isBranchProtectionSupportedArch()
585 if (ArchProfile == llvm::ARM::ProfileKind::M) in handleTargetFeatures()
593 if (ArchProfile == llvm::ARM::ProfileKind::M) in handleTargetFeatures()
732 if (CPUProfile.empty() || ArchProfile != llvm::ARM::ProfileKind::M) in getTargetDefines()
[all …]
H A DARM.h61 llvm::ARM::ProfileKind ArchProfile;
/llvm-project-15.0.7/llvm/lib/Support/
H A DARMTargetParser.cpp98 ARM::ProfileKind ARM::parseArchProfile(StringRef Arch) { in parseArchProfile()
107 return ProfileKind::M; in parseArchProfile()
110 return ProfileKind::R; in parseArchProfile()
127 return ProfileKind::A; in parseArchProfile()
146 return ProfileKind::INVALID; in parseArchProfile()
613 parseArchProfile(ArchName) == ProfileKind::M) in computeDefaultTargetABI()
H A DTriple.cpp430 ARM::ProfileKind Profile = ARM::parseArchProfile(ArchName); in parseARMArch()
432 if (Profile == ARM::ProfileKind::M && Version == 6) { in parseARMArch()
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DARMTargetParser.h169 enum class ProfileKind { INVALID = 0, A, R, M }; enum
271 ProfileKind parseArchProfile(StringRef Arch);
/llvm-project-15.0.7/clang/lib/Driver/ToolChains/Arch/
H A DARM.cpp33 return llvm::ARM::parseArchProfile(Arch) == llvm::ARM::ProfileKind::M; in isARMMProfile()
39 return llvm::ARM::parseArchProfile(Arch) == llvm::ARM::ProfileKind::A; in isARMAProfile()
213 llvm::ARM::parseArchProfile(Suffix) == llvm::ARM::ProfileKind::M; in setArchNameInTriple()
703 llvm::ARM::ProfileKind ArchProfile = in getARMTargetFeatures()
706 (ArchProfile == llvm::ARM::ProfileKind::A || in getARMTargetFeatures()
707 ArchProfile == llvm::ARM::ProfileKind::R))) { in getARMTargetFeatures()
/llvm-project-15.0.7/llvm/tools/llvm-profdata/
H A Dllvm-profdata.cpp934 cl::opt<ProfileKinds> ProfileKind( in merge_main() local
1048 if (ProfileKind != instr) in merge_main()
1058 if (ProfileKind == instr) in merge_main()
2054 cl::opt<ProfileKinds> ProfileKind( in overlap_main() local
2065 if (ProfileKind == instr) in overlap_main()
2613 cl::opt<ProfileKinds> ProfileKind( in show_main() local
2675 if (ProfileKind == instr) in show_main()
2681 if (ProfileKind == sample) in show_main()
/llvm-project-15.0.7/llvm/unittests/Support/
H A DTargetParserTest.cpp848 EXPECT_EQ(ARM::ProfileKind::M, ARM::parseArchProfile(ARMArch[i])); in TEST()
852 EXPECT_EQ(ARM::ProfileKind::R, ARM::parseArchProfile(ARMArch[i])); in TEST()
870 EXPECT_EQ(ARM::ProfileKind::A, ARM::parseArchProfile(ARMArch[i])); in TEST()
873 EXPECT_EQ(ARM::ProfileKind::INVALID, ARM::parseArchProfile(ARMArch[i])); in TEST()