[all-commits] [llvm/llvm-project] 67e73b: [Offload] Refactor device/platform info queries (#...
Ross Brunton via All-commits
all-commits at lists.llvm.org
Mon Jun 30 07:01:05 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 67e73ba605ea78d757c293f85e32a42257f9c6ed
https://github.com/llvm/llvm-project/commit/67e73ba605ea78d757c293f85e32a42257f9c6ed
Author: Ross Brunton <ross at codeplay.com>
Date: 2025-06-30 (Mon, 30 Jun 2025)
Changed paths:
M offload/liboffload/src/Helpers.hpp
M offload/liboffload/src/OffloadImpl.cpp
Log Message:
-----------
[Offload] Refactor device/platform info queries (#146345)
This makes several small changes to how the platform and device info
queries are handled:
* ReturnHelper has been replaced with InfoWriter which is more explicit
in how it is invoked.
* InfoWriter consumes `llvm::Expected` rather than values directly, and
will early exit if it returns an error.
* As a result of the above, `GetInfoString` now correctly returns errors
rather than empty strings.
* The host device now has its own dedicated "getInfo" function rather
than being checked in multiple places.
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