diff options
author | Kyungwoo Lee <kyulee@meta.com> | 2024-08-27 14:38:36 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-27 14:38:36 -0700 |
commit | 93b8d07a755e606bccc13915533d8c4eb5b14a43 (patch) | |
tree | 97ec5fc0d2b9804adfc992616284553d492db597 /lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp | |
parent | e19c3a7e8d0df4d9a4f8e8bb4b563a1916d21a9f (diff) | |
download | llvm-93b8d07a755e606bccc13915533d8c4eb5b14a43.zip llvm-93b8d07a755e606bccc13915533d8c4eb5b14a43.tar.gz llvm-93b8d07a755e606bccc13915533d8c4eb5b14a43.tar.bz2 |
[MachineOutliner][NFC] Refactor (#105398)
This patch prepares the NFC groundwork for global outlining using
CGData, which will follow
https://github.com/llvm/llvm-project/pull/90074.
- The `MinRepeats` parameter is now explicitly passed to the
`getOutliningCandidateInfo` function, rather than relying on a default
value of 2. For local outlining, the minimum number of repetitions is
typically 2, but for the global outlining (mentioned above), we will
optimistically create a single `Candidate` for each `OutlinedFunction`
if stable hashes match a specific code sequence. This parameter is
adjusted accordingly in global outlining scenarios.
- I have also implemented `unique_ptr` for `OutlinedFunction` to ensure
safe and efficient memory management within `FunctionList`, avoiding
unnecessary implicit copies.
This depends on https://github.com/llvm/llvm-project/pull/101461.
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/Linux/NativeProcessLinux.cpp')
0 files changed, 0 insertions, 0 deletions