| 362 | } |
| 363 | |
| 364 | void SharedCacheWorkflow::Register() |
| 365 | { |
| 366 | Ref<Workflow> workflow = Workflow::Instance("core.function.baseAnalysis")->Clone("core.function.sharedCache"); |
| 367 | |
| 368 | // Register and insert activities here. |
| 369 | ObjCActivity::Register(*workflow); |
| 370 | workflow->RegisterActivity(new Activity("core.analysis.sharedCache.analysis", &AnalyzeFunction)); |
| 371 | std::vector<std::string> inserted = { "core.analysis.sharedCache.analysis" }; |
| 372 | workflow->Insert("core.function.analyzeTailCalls", inserted); |
| 373 | |
| 374 | static constexpr auto WORKFLOW_DESCRIPTION = R"({ |
| 375 | "title": "Shared Cache Workflow", |
| 376 | "description": "Shared Cache Workflow", |
| 377 | "capabilities": [] |
| 378 | })"; |
| 379 | |
| 380 | Workflow::RegisterWorkflow(workflow, WORKFLOW_DESCRIPTION); |
| 381 | } |
| 382 | |
| 383 | extern "C" |
| 384 | { |
nothing calls this directly
no test coverage detected