diff options
author | Kyungwoo Lee <kyulee@meta.com> | 2024-09-15 16:04:42 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-15 16:04:42 -0700 |
commit | 713a2029578eb36a29793105948d8e4fe965da18 (patch) | |
tree | 45400da0b1e50c67b7a08049ab5972953b57d133 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp | |
parent | 40e8e4ddcb7d48f404223e863e5db38fff75cad2 (diff) | |
download | llvm-713a2029578eb36a29793105948d8e4fe965da18.zip llvm-713a2029578eb36a29793105948d8e4fe965da18.tar.gz llvm-713a2029578eb36a29793105948d8e4fe965da18.tar.bz2 |
[CGData] Clang Options (#90304)
This adds new Clang flags to support codegen (CG) data:
- `-fcodegen-data-generate{=path}`: This flag passes
`-codegen-data-generate` as a boolean to the LLVM backend, causing the
raw CG data to be emitted into a custom section. Currently, for LLD
MachO only, it also passes `--codegen-data-generate-path=<path>` so that
the indexed CG data file can be automatically produced at link time. For
linkers that do not yet support this feature, `llvm-cgdata` can be used
manually to merge this CG data in object files.
- `-fcodegen-data-use{=path}`: This flag passes
`-codegen-data-use-path=<path>` to the LLVM backend, enabling the use of
specified CG data to optimistically outline functions.
- The default `<path>` is set to `default.cgdata` when not specified.
This depends on https://github.com/llvm/llvm-project/pull/108733.
This is a patch for
https://discourse.llvm.org/t/rfc-enhanced-machine-outliner-part-2-thinlto-nolto/78753.
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp')
0 files changed, 0 insertions, 0 deletions