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
SPIRV
SPIRVLegalizerInfo.h
Go to the documentation of this file.
1
//===- SPIRVLegalizerInfo.h --- SPIR-V Legalization Rules --------*- 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 declares the targeting of the MachineLegalizer class for SPIR-V.
10
//
11
//===----------------------------------------------------------------------===//
12
13
#ifndef LLVM_LIB_TARGET_SPIRV_SPIRVMACHINELEGALIZER_H
14
#define LLVM_LIB_TARGET_SPIRV_SPIRVMACHINELEGALIZER_H
15
16
#include "
SPIRVGlobalRegistry.h
"
17
#include "
llvm/CodeGen/GlobalISel/LegalizerInfo.h
"
18
19
bool
isTypeFoldingSupported
(
unsigned
Opcode);
20
21
namespace
llvm
{
22
23
class
LLVMContext;
24
class
SPIRVSubtarget;
25
26
// This class provides the information for legalizing SPIR-V instructions.
27
class
SPIRVLegalizerInfo
:
public
LegalizerInfo
{
28
const
SPIRVSubtarget
*ST;
29
SPIRVGlobalRegistry
*GR;
30
31
public
:
32
bool
legalizeCustom
(
LegalizerHelper
&Helper,
MachineInstr
&
MI
,
33
LostDebugLocObserver
&LocObserver)
const override
;
34
SPIRVLegalizerInfo
(
const
SPIRVSubtarget
&ST);
35
};
36
}
// namespace llvm
37
#endif
// LLVM_LIB_TARGET_SPIRV_SPIRVMACHINELEGALIZER_H
MI
IRTranslator LLVM IR MI
Definition:
IRTranslator.cpp:112
LegalizerInfo.h
Interface for Targets to specify which operations they can successfully select and how the others sho...
SPIRVGlobalRegistry.h
isTypeFoldingSupported
bool isTypeFoldingSupported(unsigned Opcode)
Definition:
SPIRVLegalizerInfo.cpp:60
llvm::LegalizerHelper
Definition:
LegalizerHelper.h:48
llvm::LegalizerInfo
Definition:
LegalizerInfo.h:1311
llvm::LostDebugLocObserver
Definition:
LostDebugLocObserver.h:19
llvm::MachineInstr
Representation of each machine instruction.
Definition:
MachineInstr.h:69
llvm::SPIRVGlobalRegistry
Definition:
SPIRVGlobalRegistry.h:30
llvm::SPIRVLegalizerInfo
Definition:
SPIRVLegalizerInfo.h:27
llvm::SPIRVLegalizerInfo::legalizeCustom
bool legalizeCustom(LegalizerHelper &Helper, MachineInstr &MI, LostDebugLocObserver &LocObserver) const override
Called for instructions with the Custom LegalizationAction.
Definition:
SPIRVLegalizerInfo.cpp:388
llvm::SPIRVSubtarget
Definition:
SPIRVSubtarget.h:38
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition:
AddressRanges.h:18
Generated on Thu Mar 27 2025 21:33:37 for LLVM by
1.9.6