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
Target
VE
VEInstrBuilder.h
Go to the documentation of this file.
1
//===-- VEInstrBuilder.h - Aides for building VE insts ----------*- 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
// This file exposes functions that may be used with BuildMI from the
10
// MachineInstrBuilder.h file to simplify generating frame and constant pool
11
// references.
12
//
13
// For reference, the order of operands for memory references is:
14
// (Operand), Dest Reg, Base Reg, and either Reg Index or Immediate
15
// Displacement.
16
//
17
//===----------------------------------------------------------------------===//
18
19
#ifndef LLVM_LIB_TARGET_VE_VEINSTRBUILDER_H
20
#define LLVM_LIB_TARGET_VE_VEINSTRBUILDER_H
21
22
#include "
llvm/CodeGen/MachineInstrBuilder.h
"
23
24
namespace
llvm
{
25
26
/// addFrameReference - This function is used to add a reference to the base of
27
/// an abstract object on the stack frame of the current function. This
28
/// reference has base register as the FrameIndex offset until it is resolved.
29
/// This allows a constant offset to be specified as well...
30
///
31
static
inline
const
MachineInstrBuilder &
32
addFrameReference
(
const
MachineInstrBuilder
&MIB,
int
FI,
int
Offset
= 0,
33
bool
ThreeOp =
true
) {
34
if
(ThreeOp)
35
return
MIB.
addFrameIndex
(FI).
addImm
(0).
addImm
(
Offset
);
36
return
MIB.
addFrameIndex
(FI).
addImm
(
Offset
);
37
}
38
39
}
// namespace llvm
40
41
#endif
MachineInstrBuilder.h
llvm::MachineInstrBuilder
Definition:
MachineInstrBuilder.h:71
llvm::MachineInstrBuilder::addImm
const MachineInstrBuilder & addImm(int64_t Val) const
Add a new immediate operand.
Definition:
MachineInstrBuilder.h:133
llvm::MachineInstrBuilder::addFrameIndex
const MachineInstrBuilder & addFrameIndex(int Idx) const
Definition:
MachineInstrBuilder.h:154
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition:
AddressRanges.h:18
llvm::Offset
@ Offset
Definition:
DWP.cpp:480
llvm::addFrameReference
static const MachineInstrBuilder & addFrameReference(const MachineInstrBuilder &MIB, int FI, int Offset=0, bool mem=true)
addFrameReference - This function is used to add a reference to the base of an abstract object on the...
Definition:
PPCInstrBuilder.h:32
Generated on Thu Mar 27 2025 21:41:58 for LLVM by
1.9.6