[all-commits] [llvm/llvm-project] 53336a: [Offload] Move (most) global state to an `OffloadC...

Ross Brunton via All-commits all-commits at lists.llvm.org
Thu Jun 19 14:02:24 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 53336ad488c953d41e744d42873d712276be980f
      https://github.com/llvm/llvm-project/commit/53336ad488c953d41e744d42873d712276be980f
  Author: Ross Brunton <ross at codeplay.com>
  Date:   2025-06-19 (Thu, 19 Jun 2025)

  Changed paths:
    M offload/liboffload/include/OffloadImpl.hpp
    M offload/liboffload/src/OffloadImpl.cpp
    M offload/liboffload/src/OffloadLib.cpp
    M offload/tools/offload-tblgen/EntryPointGen.cpp

  Log Message:
  -----------
  [Offload] Move (most) global state to an `OffloadContext` struct (#144494)

Rather than having a number of static local variables, we now use
a single `OffloadContext` struct to store global state. This is
initialised by `olInit`, but is never deleted (de-initialization of
Offload isn't yet implemented).

The error reporting mechanism has not been moved to the struct, since
that's going to cause issues with teardown (error messages must outlive
liboffload).



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list