[llvm] [Offload] Add GenericProfilerTy abstraction and APITypes extensions (PR #225639)
Jan Patrick Lehr via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 29 03:03:46 PDT 2026
================
@@ -509,8 +525,11 @@ GenericDeviceTy::GenericDeviceTy(GenericPluginTy &Plugin, int32_t DeviceId,
}
}
-Error GenericDeviceTy::init(GenericPluginTy &Plugin) {
- if (auto Err = initImpl(Plugin))
+Error GenericDeviceTy::init(GenericPluginTy &Plugin,
+ GenericProfilerTy *ProfilerPtr) {
+ GenericProfilerTy &Profiler = ProfilerPtr ? *ProfilerPtr : getNoOpProfiler();
----------------
jplehr wrote:
I added this as another parameter to the plugin `init` method. Let me know if this suffices for what you had in mind.
https://github.com/llvm/llvm-project/pull/225639
More information about the llvm-commits
mailing list