diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2024-07-26 13:02:12 +0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-26 13:02:12 +0400 |
commit | 6f83a031e452bb33c0ee23b8c5c4dee97ce2bf52 (patch) | |
tree | 8dac962b94f0ba7ccec85d07679f3b1d712d9f08 /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | 3834523f77c0709ef873a3b1fb878d096687987a (diff) | |
download | llvm-6f83a031e452bb33c0ee23b8c5c4dee97ce2bf52.zip llvm-6f83a031e452bb33c0ee23b8c5c4dee97ce2bf52.tar.gz llvm-6f83a031e452bb33c0ee23b8c5c4dee97ce2bf52.tar.bz2 |
CodeGen: Move current call site out of MachineModuleInfo (#100369)
I do not know understand what this is for, but it's only used in
SelectionDAGBuilder, so move it to FunctionLoweringInfo like other
function scope DAG builder state. The intrinsics are not documented
in the LangRef or Intrinsics.td.
This removes the last piece of codegen state from MachineModuleInfo.
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineFunction.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index 7f6a752..6179925 100644 --- a/llvm/lib/CodeGen/MachineFunction.cpp +++ b/llvm/lib/CodeGen/MachineFunction.cpp @@ -654,6 +654,11 @@ void MachineFunction::print(raw_ostream &OS, const SlotIndexes *Indexes) const { /// True if this function needs frame moves for debug or exceptions. bool MachineFunction::needsFrameMoves() const { + // TODO: Ideally, what we'd like is to have a switch that allows emitting + // synchronous (precise at call-sites only) CFA into .eh_frame. However, even + // under this switch, we'd like .debug_frame to be precise when using -g. At + // this moment, there's no way to specify that some CFI directives go into + // .eh_frame only, while others go into .debug_frame only. return getMMI().hasDebugInfo() || getTarget().Options.ForceDwarfFrameSection || F.needsUnwindTableEntry(); |