picceler
Loading...
Searching...
No Matches
ops.h
Go to the documentation of this file.
1#pragma once
2
3#include "mlir/IR/BuiltinOps.h"
4#include "mlir/IR/OpDefinition.h"
5#include "mlir/IR/Builders.h"
6#include "mlir/IR/Types.h"
7#include "mlir/IR/TypeSupport.h"
8#include "mlir/Support/LLVM.h"
9#include "llvm/ADT/TypeSwitch.h"
10
11#include <utility>
12
13#include "types.h"
14#include "error.h"
15#include "piccelerInterfaces.h.inc"
16
17#define GET_OP_CLASSES
18#include "piccelerOps.h.inc"
19#undef GET_OP_CLASSES
20
21namespace picceler {
22
30mlir::Value createFloatConstant(mlir::OpBuilder &builder, mlir::Location loc, double value);
31
39mlir::Value createIntConstant(mlir::OpBuilder &builder, mlir::Location loc, int64_t value);
40
41} // namespace picceler
Definition ast.h:11
mlir::Value createFloatConstant(mlir::OpBuilder &builder, mlir::Location loc, double value)
Common utility function to create a constant float value in MLIR.
Definition common.cpp:5
mlir::Value createIntConstant(mlir::OpBuilder &builder, mlir::Location loc, int64_t value)
Common utility function to create a constant int value in MLIR.
Definition common.cpp:9
Picceler MLIR type declarations, it includes piccelerTypes.h.inc, which is generated by MLIR TableGen...