We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e28b569 commit bf7f19aCopy full SHA for bf7f19a
runtime/executor/method_meta.cpp
@@ -239,6 +239,19 @@ bool MethodMeta::uses_backend(const char* backend_name) const {
239
return false;
240
}
241
242
+size_t MethodMeta::num_backends() const {
243
+ const auto delegates = s_plan_->delegates();
244
+ return delegates ? delegates->size() : 0;
245
+}
246
+
247
+const char* MethodMeta::get_backend_name(size_t index) const {
248
249
+ if (delegates && index < delegates->size()) {
250
+ return delegates->Get(index)->id()->c_str();
251
+ }
252
+ return nullptr;
253
254
255
size_t MethodMeta::num_instructions() const {
256
const auto chains = s_plan_->chains();
257
if (chains == nullptr) {
0 commit comments