Skip to content

Commit d569c3b

Browse files
committed
move ProfileIRSampleColdCov from clang to llvm and Remove ProfileInstrKind definition in clang
1 parent 1fa2c8a commit d569c3b

File tree

3 files changed

+3
-11
lines changed

3 files changed

+3
-11
lines changed

clang/include/clang/Basic/CodeGenOptions.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -80,16 +80,6 @@ class CodeGenOptions : public CodeGenOptionsBase {
8080
SRCK_InRegs // Small structs in registers (-freg-struct-return).
8181
};
8282

83-
enum ProfileInstrKind {
84-
ProfileNone, // Profile instrumentation is turned off.
85-
ProfileClangInstr, // Clang instrumentation to generate execution counts
86-
// to use with PGO.
87-
ProfileIRInstr, // IR level PGO instrumentation in LLVM.
88-
ProfileCSIRInstr, // IR level PGO context sensitive instrumentation in LLVM.
89-
ProfileIRSampleColdCov, // IR level sample pgo based cold function coverage
90-
// instrumentation in LLVM.
91-
};
92-
9383
enum EmbedBitcodeKind {
9484
Embed_Off, // No embedded bitcode.
9585
Embed_All, // Embed both bitcode and commandline in the output.

clang/include/clang/Driver/Options.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7761,7 +7761,7 @@ def fpatchable_function_entry_section_EQ
77617761
MarshallingInfoString<CodeGenOpts<"PatchableFunctionEntrySection">>;
77627762
def fprofile_instrument_EQ : Joined<["-"], "fprofile-instrument=">,
77637763
HelpText<"Enable PGO instrumentation">, Values<"none,clang,llvm,csllvm,sample-coldcov">,
7764-
NormalizedValuesScope<"CodeGenOptions">,
7764+
NormalizedValuesScope<"llvm::driver::ProfileInstrKind">,
77657765
NormalizedValues<["ProfileNone", "ProfileClangInstr", "ProfileIRInstr", "ProfileCSIRInstr", "ProfileIRSampleColdCov"]>,
77667766
MarshallingInfoEnum<CodeGenOpts<"ProfileInstr">, "ProfileNone">;
77677767
def fprofile_instrument_path_EQ : Joined<["-"], "fprofile-instrument-path=">,

llvm/include/llvm/Frontend/Driver/CodeGenOptions.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ enum ProfileInstrKind {
5858
// to use with PGO.
5959
ProfileIRInstr, // IR level PGO instrumentation in LLVM.
6060
ProfileCSIRInstr, // IR level PGO context sensitive instrumentation in LLVM.
61+
ProfileIRSampleColdCov, // IR level sample pgo based cold function coverage
62+
// instrumentation in LLVM.
6163
};
6264

6365
// Default filename used for profile generation.

0 commit comments

Comments
 (0)