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

source code of lldb/tools/intel-features/cli-wrapper.cpp