[PATCH] D40478: Added Instrument Control Flow Flag

Oren Ben Simhon via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 7 00:52:21 PST 2017


oren_ben_simhon added inline comments.


================
Comment at: include/clang/Driver/Options.td:1035
   HelpText<"Instrument function entry only, after inlining, without arguments to the instrumentation call">;
-
+def finstrument_control_flow : Flag<["-"], "finstrument-control-flow">,
+  Group<f_Group>, Flags<[CC1Option]>,
----------------
pcc wrote:
> My comments about the attribute name in D40482 also apply to this flag name. GCC appears to have chosen a better name for this flag, `-mcet`. Can we use that name instead?
Again, I am sorry for the late response, I was off for about a week.
GCC is only using -mcet as a super set for -mibt and -mshstk. I am planning to add it in a different review.
-mcet/-mibt/-mshstk only enables the HW technology (ISA/Intrinsics).
GCC is using -cf-protection for actually instrumenting the control flow.
I think it will be best to stay coherent with GCC (and ICC and soon MS) and use -cf-protection.
What do you think?


Repository:
  rL LLVM

https://reviews.llvm.org/D40478





More information about the llvm-commits mailing list