[all-commits] [llvm/llvm-project] 5194e3: [ORC] Hoist Caller state into the base; add operat...
Lang Hames via All-commits
all-commits at lists.llvm.org
Thu Aug 6 16:26:30 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5194e33faad9d84fd8d21c0305621a17e0d8a49f
https://github.com/llvm/llvm-project/commit/5194e33faad9d84fd8d21c0305621a17e0d8a49f
Author: Lang Hames <lhames at gmail.com>
Date: 2026-08-07 (Fri, 07 Aug 2026)
Changed paths:
M llvm/include/llvm/ExecutionEngine/Orc/RTBridge/Calls.h
M llvm/include/llvm/ExecutionEngine/Orc/RTBridge/SPS/Calls.h
M llvm/unittests/ExecutionEngine/Orc/SPSCallersTest.cpp
Log Message:
-----------
[ORC] Hoist Caller state into the base; add operator bool (#214483)
Move the ExecutionSession reference and callee address up from the SPS
implementation into the rt::Caller base, together with their constructor
and new executionSession() / calleeAddr() accessors. The named callers
(MainCaller, VoidVoidCaller, ...) become plain aliases of Caller rather
than subclasses, and rt::sps::Caller inherits the base constructor.
Add an explicit operator bool() reporting whether the caller has a
non-null callee address.
Give rt::sps::Caller::Create a SymbolLookupFlags parameter. Looking the
callee up as a weakly-referenced symbol now yields a caller with a null
callee (operator bool == false) when the symbol is absent, rather than
an error -- so callers for optional runtime functions can be constructed
and then tested for availability.
Adds SPSCallersTest coverage for operator bool and the accessors, and
for the required/weak x present/absent Create paths.
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