MLIR
21.0.0git
Main Page
Related Pages
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
y
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Variables
a
c
f
h
i
k
m
n
o
p
r
s
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
v
w
Enumerator
a
b
c
d
e
f
g
h
i
k
m
n
o
p
r
s
t
u
v
w
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
y
~
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
n
o
p
r
s
t
u
v
w
Enumerations
a
b
c
d
f
i
k
l
m
n
o
p
r
s
t
u
v
w
Enumerator
a
c
d
e
f
g
h
i
k
l
m
n
p
r
s
u
v
Related Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
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
y
z
Variables
_
a
b
c
d
e
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
Typedefs
a
b
c
d
e
f
h
i
m
n
o
r
s
t
u
v
y
Enumerations
Enumerator
a
b
c
e
f
g
i
m
n
s
t
w
Macros
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
y
z
lib
Conversion
LLVMCommon
LoweringOptions.cpp
Go to the documentation of this file.
1
//===- LoweringOptions.cpp - Common config for lowering to LLVM ----------===//
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 "
mlir/Conversion/LLVMCommon/LoweringOptions.h
"
10
#include "
mlir/IR/BuiltinTypes.h
"
11
#include "
mlir/Interfaces/DataLayoutInterfaces.h
"
12
13
using namespace
mlir
;
14
15
mlir::LowerToLLVMOptions::LowerToLLVMOptions
(
MLIRContext
*ctx)
16
:
LowerToLLVMOptions
(ctx,
DataLayout
()) {}
17
18
mlir::LowerToLLVMOptions::LowerToLLVMOptions
(
MLIRContext
*ctx,
19
const
DataLayout
&dl) {
20
indexBitwidth = dl.
getTypeSizeInBits
(
IndexType::get
(ctx));
21
}
DataLayoutInterfaces.h
LoweringOptions.h
mlir::DataLayout
The main mechanism for performing data layout queries.
Definition:
DataLayoutInterfaces.h:212
mlir::DataLayout::getTypeSizeInBits
llvm::TypeSize getTypeSizeInBits(Type t) const
Returns the size in bits of the given type in the current scope.
Definition:
DataLayoutInterfaces.cpp:554
mlir::LowerToLLVMOptions
Options to control the LLVM lowering.
Definition:
LoweringOptions.h:30
mlir::LowerToLLVMOptions::LowerToLLVMOptions
LowerToLLVMOptions(MLIRContext *ctx)
Definition:
LoweringOptions.cpp:15
mlir::MLIRContext
MLIRContext is the top-level object for a collection of MLIR operations.
Definition:
MLIRContext.h:60
BuiltinTypes.h
mlir
Include the generated interface declarations.
Definition:
LocalAliasAnalysis.h:20
mlir::get
auto get(MLIRContext *context, Ts &&...params)
Helper method that injects context only if needed, this helps unify some of the attribute constructio...
Definition:
BytecodeImplementation.h:509
Generated on Fri May 2 2025 00:44:23 for MLIR by
1.9.1