picceler
Loading...
Searching...
No Matches
picceler_ops_to_func_calls_pass.cpp File Reference
#include "passes.h"
#include "spdlog/spdlog.h"
#include "mlir/IR/PatternMatch.h"
#include "mlir/Transforms/GreedyPatternRewriteDriver.h"
#include "mlir/Dialect/Func/IR/FuncOps.h"
#include "mlir/Transforms/DialectConversion.h"
#include "mlir/IR/SymbolTable.h"
#include "ops.h"
#include "types.h"
#include "piccelerPasses.h.inc"

Classes

struct  picceler::LoadImageToCall
 Pattern to lower LoadImageOp to a function call. More...
struct  picceler::ShowImageToCall
 Pattern to lower ShowImageOp to a function call. More...
struct  picceler::SaveImageToCall
 Pattern to lower SaveImageOp to a function call. More...
struct  picceler::ReadNumberToCall
struct  picceler::ReadStringToCall
struct  picceler::PiccelerOpsToFuncCallsPass
 A pass that converts image operations (like load, show, save) into function calls. More...

Namespaces

namespace  picceler

Macros

#define GEN_PASS_DEF_PICCELEROPSTOFUNCCALLS

Functions

mlir::func::FuncOp picceler::ensureRuntimeFunc (mlir::ModuleOp module, mlir::StringRef name, llvm::ArrayRef< mlir::Type > inputs, llvm::ArrayRef< mlir::Type > results, mlir::PatternRewriter &rewriter, mlir::Location loc)
 Ensures that a runtime function is declared in the module. If the function does not exist, it is created.
The following functions create instances of the various passes used in the compilation process.

Each function corresponds to a specific pass that transforms the IR in a particular way.

std::unique_ptr< mlir::Pass > picceler::createPiccelerOpsToFuncCallsPass ()

Macro Definition Documentation

◆ GEN_PASS_DEF_PICCELEROPSTOFUNCCALLS

#define GEN_PASS_DEF_PICCELEROPSTOFUNCCALLS