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
lib
MC
MCDisassembler
MCRelocationInfo.cpp
Go to the documentation of this file.
1
//===-- MCRelocationInfo.cpp ----------------------------------------------===//
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
#include "
llvm/MC/MCDisassembler/MCRelocationInfo.h
"
10
#include "
llvm-c/DisassemblerTypes.h
"
11
#include "
llvm/MC/TargetRegistry.h
"
12
13
using namespace
llvm
;
14
15
MCRelocationInfo::MCRelocationInfo
(
MCContext
&Ctx) : Ctx(Ctx) {}
16
17
MCRelocationInfo::~MCRelocationInfo
() =
default
;
18
19
const
MCExpr
*
20
MCRelocationInfo::createExprForCAPIVariantKind
(
const
MCExpr
*SubExpr,
21
unsigned
VariantKind) {
22
if
(VariantKind !=
LLVMDisassembler_VariantKind_None
)
23
return
nullptr
;
24
return
SubExpr;
25
}
26
27
MCRelocationInfo
*
llvm::createMCRelocationInfo
(
const
Triple
&TT,
28
MCContext
&Ctx) {
29
return
new
MCRelocationInfo
(Ctx);
30
}
DisassemblerTypes.h
MCRelocationInfo.h
TargetRegistry.h
llvm::MCContext
Context object for machine code objects.
Definition:
MCContext.h:83
llvm::MCExpr
Base class for the full range of assembler expressions which are needed for parsing.
Definition:
MCExpr.h:34
llvm::MCRelocationInfo
Create MCExprs from relocations found in an object file.
Definition:
MCRelocationInfo.h:24
llvm::MCRelocationInfo::MCRelocationInfo
MCRelocationInfo(MCContext &Ctx)
Definition:
MCRelocationInfo.cpp:15
llvm::MCRelocationInfo::createExprForCAPIVariantKind
virtual const MCExpr * createExprForCAPIVariantKind(const MCExpr *SubExpr, unsigned VariantKind)
Create an MCExpr for the target-specific VariantKind.
Definition:
MCRelocationInfo.cpp:20
llvm::MCRelocationInfo::~MCRelocationInfo
virtual ~MCRelocationInfo()
llvm::Triple
Triple - Helper class for working with autoconf configuration names.
Definition:
Triple.h:44
LLVMDisassembler_VariantKind_None
#define LLVMDisassembler_VariantKind_None
The operand VariantKinds for symbolic disassembly.
Definition:
DisassemblerTypes.h:88
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition:
AddressRanges.h:18
llvm::createMCRelocationInfo
MCRelocationInfo * createMCRelocationInfo(const Triple &TT, MCContext &Ctx)
Definition:
MCRelocationInfo.cpp:27
Generated on Tue Mar 25 2025 00:17:25 for LLVM by
1.9.6