[all-commits] [llvm/llvm-project] 5baaf0: [ORC] Remove redundant ExecutorAddr temporaries.

lhames via All-commits all-commits at lists.llvm.org
Fri Mar 31 20:41:46 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5baaf0c23e467af1d9b5eb4a995c543dc1796953
      https://github.com/llvm/llvm-project/commit/5baaf0c23e467af1d9b5eb4a995c543dc1796953
  Author: Lang Hames <lhames at gmail.com>
  Date:   2023-03-31 (Fri, 31 Mar 2023)

  Changed paths:
    M llvm/lib/ExecutionEngine/Orc/COFFPlatform.cpp
    M llvm/lib/ExecutionEngine/Orc/Core.cpp
    M llvm/lib/ExecutionEngine/Orc/DebugObjectManagerPlugin.cpp
    M llvm/lib/ExecutionEngine/Orc/ELFNixPlatform.cpp
    M llvm/lib/ExecutionEngine/Orc/EPCDebugObjectRegistrar.cpp
    M llvm/lib/ExecutionEngine/Orc/EPCEHFrameRegistrar.cpp
    M llvm/lib/ExecutionEngine/Orc/EPCGenericJITLinkMemoryManager.cpp
    M llvm/lib/ExecutionEngine/Orc/EPCIndirectionUtils.cpp
    M llvm/lib/ExecutionEngine/Orc/ExecutionUtils.cpp
    M llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
    M llvm/lib/ExecutionEngine/Orc/SimpleRemoteEPC.cpp

  Log Message:
  -----------
  [ORC] Remove redundant ExecutorAddr temporaries.

Most ORC APIs work with ExecutorAddr by default since 8b1771bd9f3, so we don't
need to wrap these values in ExecutorAddr(...) calls any more.


  Commit: fdd9df1952c962fc8e2e14861c095d12f55947dc
      https://github.com/llvm/llvm-project/commit/fdd9df1952c962fc8e2e14861c095d12f55947dc
  Author: Lang Hames <lhames at gmail.com>
  Date:   2023-03-31 (Fri, 31 Mar 2023)

  Changed paths:
    M llvm/lib/ExecutionEngine/Orc/COFFPlatform.cpp
    M llvm/lib/ExecutionEngine/Orc/ELFNixPlatform.cpp
    M llvm/lib/ExecutionEngine/Orc/MachOPlatform.cpp
    M llvm/lib/ExecutionEngine/Orc/TargetProcess/SimpleRemoteEPCServer.cpp

  Log Message:
  -----------
  [ORC] Remove more unnecessary ExecutorAddr::getValue calls.


  Commit: 22d4688ea436e9bae2f476cff84eaebea4c09a60
      https://github.com/llvm/llvm-project/commit/22d4688ea436e9bae2f476cff84eaebea4c09a60
  Author: Lang Hames <lhames at gmail.com>
  Date:   2023-03-31 (Fri, 31 Mar 2023)

  Changed paths:
    M llvm/lib/ExecutionEngine/Orc/ELFNixPlatform.cpp

  Log Message:
  -----------
  [ORC] Prefer SectionRange::getRange convenience method.


  Commit: 88db195695215e920a63e197517103b4b9744445
      https://github.com/llvm/llvm-project/commit/88db195695215e920a63e197517103b4b9744445
  Author: Lang Hames <lhames at gmail.com>
  Date:   2023-03-31 (Fri, 31 Mar 2023)

  Changed paths:
    M llvm/lib/ExecutionEngine/Orc/MachOPlatform.cpp

  Log Message:
  -----------
  [ORC][MachO] __objc_imageinfo isn't a MachO "object platform section".

Commit 2666231d173 fixed a typo ("__objc_image_info" was corrected to
"__objc_imageinfo"), but this has exposed a bug where we were adding this
section to the list of platform sections to register with the ORC runtime.
The ORC runtime's MachO "object platform section" code doesn't recognize
this section (it's handled elsewhere) and errors out on it.

The solution is simply to remove __objc_imageinfo from the list of sections
to register in MachOPlatform::PlatformPlugin::registerObjectPlatformSections.


Compare: https://github.com/llvm/llvm-project/compare/c06adaeba69d...88db19569521


More information about the All-commits mailing list