[all-commits] [llvm/llvm-project] 98616c: [ORC] Add an ExecutorAddr::toPtr overload for func...
lhames via All-commits
all-commits at lists.llvm.org
Thu May 5 12:37:37 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 98616cfc02613d98964588fac6494ec7583c495f
https://github.com/llvm/llvm-project/commit/98616cfc02613d98964588fac6494ec7583c495f
Author: Lang Hames <lhames at gmail.com>
Date: 2022-05-05 (Thu, 05 May 2022)
Changed paths:
M llvm/include/llvm/ExecutionEngine/Orc/Shared/ExecutorAddress.h
M llvm/unittests/ExecutionEngine/Orc/ExecutorAddressTest.cpp
Log Message:
-----------
[ORC] Add an ExecutorAddr::toPtr overload for function types.
In the common case of converting an ExecutorAddr to a function pointer type,
this eliminates the need for the '(*)' boilerplate to explicitly specify a
function pointer. E.g.:
auto *F = A.toPtr<int(*)()>();
can now be written as
auto *F = A.toPtr<int()>();
More information about the All-commits
mailing list