[PATCH] D138458: [Clang][Driver] Add KCFI to SupportsCoverage

2022-11-22 Thread Sami Tolvanen via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG5a3d6ce956c4: [Clang][Driver] Add KCFI to SupportsCoverage (authored by samitolvanen). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D138458/new/ https://rev

[PATCH] D138458: [Clang][Driver] Add KCFI to SupportsCoverage

2022-11-22 Thread Sami Tolvanen via Phabricator via cfe-commits
samitolvanen updated this revision to Diff 477228. samitolvanen marked 2 inline comments as done. samitolvanen added a comment. Switched to `[[#]]`. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D138458/new/ https://reviews.llvm.org/D138458 Files:

[PATCH] D138458: [Clang][Driver] Add KCFI to SupportsCoverage

2022-11-21 Thread Fangrui Song via Phabricator via cfe-commits
MaskRay added inline comments. Comment at: clang/test/CodeGen/sanitize-coverage.c:94 + // CHECK-NOT: call void @__sanitizer_cov_trace_const_cmp + // KCFI-NOT: call void %{{.}}() [ "kcfi"(i32 {{.*}}) ] + f(); samitolvanen wrote: > MaskRay wrote: > > `%c()` > >

[PATCH] D138458: [Clang][Driver] Add KCFI to SupportsCoverage

2022-11-21 Thread Sami Tolvanen via Phabricator via cfe-commits
samitolvanen added inline comments. Comment at: clang/test/CodeGen/sanitize-coverage.c:94 + // CHECK-NOT: call void @__sanitizer_cov_trace_const_cmp + // KCFI-NOT: call void %{{.}}() [ "kcfi"(i32 {{.*}}) ] + f(); MaskRay wrote: > `%c()` > > `{{.}}` matches on

[PATCH] D138458: [Clang][Driver] Add KCFI to SupportsCoverage

2022-11-21 Thread Sami Tolvanen via Phabricator via cfe-commits
samitolvanen updated this revision to Diff 477017. samitolvanen marked an inline comment as done. samitolvanen added a comment. Addressed feedback. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D138458/new/ https://reviews.llvm.org/D138458 Files:

[PATCH] D138458: [Clang][Driver] Add KCFI to SupportsCoverage

2022-11-21 Thread Fangrui Song via Phabricator via cfe-commits
MaskRay accepted this revision. MaskRay added a comment. This revision is now accepted and ready to land. > with -fsanitize=trace-{pc,cmp}. `-fsanitize-coverage=` modes such as `trace-{pc,cmp}`. (a) It's `-fsanitize-coverage=`, not `-fsanitize-coverage=trace-{pc,cmp}`. (b) ` -fsanitize=trace-{p

[PATCH] D138458: [Clang][Driver] Add KCFI to SupportsCoverage

2022-11-21 Thread Sami Tolvanen via Phabricator via cfe-commits
samitolvanen created this revision. Herald added a project: All. samitolvanen requested review of this revision. Herald added subscribers: cfe-commits, MaskRay. Herald added a project: clang. Allow -fsanitize=kcfi to be enabled with -fsanitize=trace-{pc,cmp}. Link: https://github.com/ClangBuiltLi