LLVM
20.0.0git
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Related Functions
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
y
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
l
m
o
p
q
r
s
t
u
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
include
llvm
Support
PluginLoader.h
Go to the documentation of this file.
1
//===-- llvm/Support/PluginLoader.h - Plugin Loader for Tools ---*- 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
//===----------------------------------------------------------------------===//
8
//
9
// A tool can #include this file to get a -load option that allows the user to
10
// load arbitrary shared objects into the tool's address space. Note that this
11
// header can only be included by a program ONCE, so it should never to used by
12
// library authors.
13
//
14
//===----------------------------------------------------------------------===//
15
16
#ifndef LLVM_SUPPORT_PLUGINLOADER_H
17
#define LLVM_SUPPORT_PLUGINLOADER_H
18
19
#ifndef DONT_GET_PLUGIN_LOADER_OPTION
20
#include "
llvm/Support/CommandLine.h
"
21
#endif
22
23
#include <string>
24
25
namespace
llvm
{
26
struct
PluginLoader
{
27
void
operator=
(
const
std::string &Filename);
28
static
unsigned
getNumPlugins
();
29
static
std::string&
getPlugin
(
unsigned
num);
30
};
31
32
#ifndef DONT_GET_PLUGIN_LOADER_OPTION
33
// This causes operator= above to be invoked for every -load option.
34
static
cl::opt<PluginLoader, false, cl::parser<std::string>
>
35
LoadOpt
(
"load"
,
cl::value_desc
(
"pluginfilename"
),
36
cl::desc
(
"Load the specified plugin"
));
37
#endif
38
}
39
40
#endif
CommandLine.h
llvm::cl::opt
Definition:
CommandLine.h:1423
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition:
AddressRanges.h:18
llvm::LoadOpt
static cl::opt< PluginLoader, false, cl::parser< std::string > > LoadOpt("load", cl::value_desc("pluginfilename"), cl::desc("Load the specified plugin"))
llvm::PluginLoader
Definition:
PluginLoader.h:26
llvm::PluginLoader::getPlugin
static std::string & getPlugin(unsigned num)
Definition:
PluginLoader.cpp:53
llvm::PluginLoader::getNumPlugins
static unsigned getNumPlugins()
Definition:
PluginLoader.cpp:47
llvm::PluginLoader::operator=
void operator=(const std::string &Filename)
Definition:
PluginLoader.cpp:35
llvm::cl::desc
Definition:
CommandLine.h:409
llvm::cl::value_desc
Definition:
CommandLine.h:418
Generated on Mon Apr 21 2025 10:53:16 for LLVM by
1.9.6