xref: /openbsd-src/gnu/llvm/lldb/tools/intel-features/cli-wrapper.cpp (revision be691f3bb6417f04a68938fadbcaee2d5795e764)
1*061da546Spatrick //===-- cli-wrapper.cpp -----------------------------------------*- C++ -*-===//
2*061da546Spatrick //
3*061da546Spatrick // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4*061da546Spatrick // See https://llvm.org/LICENSE.txt for license information.
5*061da546Spatrick // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6*061da546Spatrick //
7*061da546Spatrick // CLI Wrapper for hardware features of Intel(R) architecture based processors
8*061da546Spatrick // to enable them to be used through LLDB's CLI. For details, please refer to
9*061da546Spatrick // cli wrappers of each individual feature, residing in their respective
10*061da546Spatrick // folders.
11*061da546Spatrick //
12*061da546Spatrick // Compile this into a shared lib and load by placing at appropriate locations
13*061da546Spatrick // on disk or by using "plugin load" command at the LLDB command line.
14*061da546Spatrick //
15*061da546Spatrick //===----------------------------------------------------------------------===//
16*061da546Spatrick 
17*061da546Spatrick #ifdef BUILD_INTEL_MPX
18*061da546Spatrick #include "intel-mpx/cli-wrapper-mpxtable.h"
19*061da546Spatrick #endif
20*061da546Spatrick 
21*061da546Spatrick #include "lldb/API/SBDebugger.h"
22*061da546Spatrick 
23*061da546Spatrick namespace lldb {
24*061da546Spatrick bool PluginInitialize(lldb::SBDebugger debugger);
25*061da546Spatrick }
26*061da546Spatrick 
PluginInitialize(lldb::SBDebugger debugger)27*061da546Spatrick bool lldb::PluginInitialize(lldb::SBDebugger debugger) {
28*061da546Spatrick 
29*061da546Spatrick #ifdef BUILD_INTEL_MPX
30*061da546Spatrick   MPXPluginInitialize(debugger);
31*061da546Spatrick #endif
32*061da546Spatrick 
33*061da546Spatrick   return true;
34*061da546Spatrick }
35