aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/Local.cpp
diff options
context:
space:
mode:
authorDavid Peixotto <peix@meta.com>2025-06-09 13:30:13 -0700
committerGitHub <noreply@github.com>2025-06-09 13:30:13 -0700
commitd4fe522eb4ae710e90107a682911fc75f2388a87 (patch)
tree245cd88c66180394ea0b3ad11ce001a9ced12bea /llvm/lib/Transforms/Utils/Local.cpp
parent61cdba602abe67761ab2bbf12bf85710dfa963f4 (diff)
downloadllvm-d4fe522eb4ae710e90107a682911fc75f2388a87.zip
llvm-d4fe522eb4ae710e90107a682911fc75f2388a87.tar.gz
llvm-d4fe522eb4ae710e90107a682911fc75f2388a87.tar.bz2
Add commands to list/enable/disable plugins (#134418)
This commit adds three new commands for managing plugins. The `list` command will show which plugins are currently registered and their enabled state. The `enable` and `disable` commands can be used to enable or disable plugins. A disabled plugin will not show up to the PluginManager when it iterates over available plugins of a particular type. The purpose of these commands is to provide more visibility into registered plugins and allow users to disable plugins for experimental perf reasons. There are a few limitations to the current implementation 1. Only SystemRuntime and InstrumentationRuntime plugins are currently supported. We can easily extend the existing implementation to support more types. The scope was limited to these plugins to keep the PR size manageable. 2. Only "statically" know plugin types are supported (i.e. those managed by the PluginManager and not from `plugin load`). It is possibly we could support dynamic plugins as well, but I have not looked into it yet.
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
0 files changed, 0 insertions, 0 deletions