picceler
A compiled DSL for image processing, built on MLIR
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 "mlir/Dialect/Arith/IR/Arith.h"
10#include "mlir/Dialect/Affine/IR/AffineOps.h"
11#include "mlir/Transforms/DialectConversion.h"
12#include "llvm/ADT/TypeSwitch.h"
13
14#include <utility>
15
16#include "types.h"
17#include "error.h"
18#include "channels.h"
19#include "piccelerInterfaces.h.inc"
20
21#define GET_OP_CLASSES
22#include "piccelerOps.h.inc"
23#undef GET_OP_CLASSES
24
25namespace picceler {
26
34mlir::Value createFloatConstant(mlir::OpBuilder &builder, mlir::Location loc, double value);
35
43mlir::Value createIntConstant(mlir::OpBuilder &builder, mlir::Location loc, int64_t value);
44
58mlir::affine::AffineParallelOp createAffineParallel(mlir::ConversionPatternRewriter &rewriter, mlir::Location loc,
59 mlir::ValueRange upperBounds, mlir::TypeRange resultTypes = {},
60 llvm::ArrayRef<mlir::arith::AtomicRMWKind> reductions = {});
61
62} // namespace picceler
Definition ast.h:11
mlir::affine::AffineParallelOp createAffineParallel(mlir::ConversionPatternRewriter &rewriter, mlir::Location loc, mlir::ValueRange upperBounds, mlir::TypeRange resultTypes={}, llvm::ArrayRef< mlir::arith::AtomicRMWKind > reductions={})
Builds an affine.parallel band with one induction variable per entry in upperBounds,...
Definition common.cpp:16
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:8
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:12
Picceler MLIR type declarations, it includes piccelerTypes.h.inc, which is generated by MLIR TableGen...