-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a build option to enable source level coverage analysis #503
Conversation
@@ -161,6 +161,7 @@ std::string EffectiveOptionsFilter::processOptions(const OpenCLArgList &args, | |||
// The below assert is usable for manual debugging only | |||
// default: | |||
// assert(false && "some unknown argument"); | |||
case OPT_COMPILE_coverage: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is line-tables-only enough for coverage?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, line-tables-only is enough. Code coverage doesn't need other information like type.
Build failure should be fixed by spirv KhronosGroup/SPIRV-LLVM-Translator#2209. |
@@ -14,6 +14,7 @@ include "llvm/Option/OptParser.td" | |||
def g_Flag : Flag<["-"], "g">, HelpText<"Generate source level debug information">; | |||
def gline_tables_only_Flag : Flag<["-"], "gline-tables-only">; | |||
def profiling : Flag<["-"], "profiling">, HelpText<"Allow profiling">; | |||
def coverage: Flag<["-"], "coverage">, HelpText<"Enable source level coverage analysis">; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
def coverage: Flag<["-"], "coverage">, HelpText<"Enable source level coverage analysis">; | |
def coverage: Flag<["-"], "code_coverage">, HelpText<"Enable source level coverage analysis">; |
is code_coverage better?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang/gcc both use '-coverage'.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.