[llvm] [Offload] Add GenericProfilerTy abstraction and APITypes extensions (PR #225639)
Jan Patrick Lehr via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 24 02:32:32 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 think I got lost here. You are right, and we actually have that at the plugin level downstream. My bad.
https://github.com/llvm/llvm-project/pull/225639
More information about the llvm-commits
mailing list