MLIR
24.0.0git
include
mlir
Dialect
Func
IR
FuncOps.h
Go to the documentation of this file.
1
//===- FuncOps.h - Func Dialect Operations ----------------------*- 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
#ifndef MLIR_DIALECT_FUNC_IR_OPS_H
10
#define MLIR_DIALECT_FUNC_IR_OPS_H
11
12
#include "
mlir/Bytecode/BytecodeOpInterface.h
"
13
#include "
mlir/Dialect/Func/IR/FuncDialect.h
"
14
#include "
mlir/IR/Builders.h
"
15
#include "
mlir/IR/BuiltinTypes.h
"
16
#include "
mlir/IR/OpImplementation.h
"
17
#include "
mlir/IR/SymbolTable.h
"
18
#include "
mlir/Interfaces/CallInterfaces.h
"
19
#include "
mlir/Interfaces/ControlFlowInterfaces.h
"
20
#include "
mlir/Interfaces/FunctionInterfaces.h
"
21
#include "
mlir/Interfaces/InferTypeOpInterface.h
"
22
#include "
mlir/Interfaces/SideEffectInterfaces.h
"
23
24
namespace
mlir
{
25
class
PatternRewriter
;
26
}
// namespace mlir
27
28
#define GET_OP_CLASSES
29
#include "mlir/Dialect/Func/IR/FuncOps.h.inc"
30
31
namespace
llvm
{
32
33
/// Allow stealing the low bits of FuncOp.
34
template
<>
35
struct
PointerLikeTypeTraits<
mlir
::func::FuncOp> {
36
static
inline
void
*
getAsVoidPointer
(mlir::func::FuncOp val) {
37
return
const_cast<
void
*
>
(val.getAsOpaquePointer());
38
}
39
static
inline
mlir::func::FuncOp
getFromVoidPointer
(
void
*p) {
40
return
mlir::func::FuncOp::getFromOpaquePointer(p);
41
}
42
static
constexpr
int
NumLowBitsAvailable
= 3;
43
};
44
}
// namespace llvm
45
46
#endif
// MLIR_DIALECT_FUNC_IR_OPS_H
Builders.h
BytecodeOpInterface.h
CallInterfaces.h
ControlFlowInterfaces.h
FuncDialect.h
FunctionInterfaces.h
InferTypeOpInterface.h
OpImplementation.h
SideEffectInterfaces.h
SymbolTable.h
mlir::PatternRewriter
A special type of RewriterBase that coordinates the application of a rewrite pattern on the current I...
Definition
PatternMatch.h:799
BuiltinTypes.h
llvm
The OpAsmOpInterface, see OpAsmInterface.td for more details.
Definition
CallGraph.h:227
mlir
Include the generated interface declarations.
Definition
ABIRewriteContext.h:32
llvm::PointerLikeTypeTraits< mlir::func::FuncOp >::getFromVoidPointer
static mlir::func::FuncOp getFromVoidPointer(void *p)
Definition
FuncOps.h:39
llvm::PointerLikeTypeTraits< mlir::func::FuncOp >::getAsVoidPointer
static void * getAsVoidPointer(mlir::func::FuncOp val)
Definition
FuncOps.h:36
llvm::PointerLikeTypeTraits< mlir::func::FuncOp >::NumLowBitsAvailable
static constexpr int NumLowBitsAvailable
Definition
FuncOps.h:42
Generated on
for MLIR by
1.14.0