[clang] [compiler-rt] [XRay] Add support for instrumentation of DSOs on x86_64 (PR #90959)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 21 14:12:28 PDT 2024


================
@@ -2887,6 +2887,10 @@ def fxray_selected_function_group :
   HelpText<"When using -fxray-function-groups, select which group of functions to instrument. Valid range is 0 to fxray-function-groups - 1">,
   MarshallingInfoInt<CodeGenOpts<"XRaySelectedFunctionGroup">, "0">;
 
+def fxray_enable_shared : Flag<["-"], "fxray-enable-shared">, Group<f_Group>,  Visibility<[ClangOption, CC1Option]>,
----------------
MaskRay wrote:

Use `BoolFOption`. You can check some existing ones and how they determine whether `clang -cc1 -ffoo` or `clang -cc1 -fno-foo` is available. 

https://github.com/llvm/llvm-project/pull/90959


More information about the llvm-commits mailing list