construct files structure
This commit is contained in:
parent
8149f1717b
commit
dbe3466267
|
@ -0,0 +1 @@
|
|||
.vscode/
|
|
@ -0,0 +1,18 @@
|
|||
#include "mlir/IR/Dialect.h"
|
||||
#include "mlir/IR/Function.h"
|
||||
#include "mlir/Interfaces/SideEffects.h"
|
||||
|
||||
namespace mlir {
|
||||
namespace fpgakrnl {
|
||||
|
||||
class FpgaKrnlDialect : public mlir::Dialect {
|
||||
explicit FpgaKrnlDialect(mlir::MLIRContext *ctx);
|
||||
static llvm::StringRef getDialectNamespace() {
|
||||
return "fpgakrnl";
|
||||
}
|
||||
};
|
||||
|
||||
#define GET_OP_CLASSES
|
||||
#include "toy/Ops.h.inc"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
include "mlir/IR/OpBase.td"
|
||||
include "mlir/Interfaces/SideEffects.td"
|
||||
|
||||
def FpgaKrnl_Dialect : Dialect {
|
||||
let name = "fpgakrnl";
|
||||
let cppNamespace = "fpgakrnl";
|
||||
}
|
||||
|
||||
class FpgaKrnl_Op<string mnemonic, list<OpTrait> traits = []> :
|
||||
Op<FpgaKrnl_Dialect, mnemonic, traits>;
|
||||
|
||||
def ConvOp : FpgaKrnl_Op<"conv", [NoSideEffect]> {
|
||||
let summary = "conv";
|
||||
|
||||
let description = [{
|
||||
Convolution Operation.
|
||||
}];
|
||||
|
||||
// hanchen is working here
|
||||
let arguments = ();
|
||||
|
||||
let results = ();
|
||||
|
||||
}
|
||||
|
||||
def MaxPoolOp : FpgaKrnl_Op<"maxpool", [NoSideEffect]> {
|
||||
let summary = "maxpool";
|
||||
|
||||
let description = [{
|
||||
Max Pooling Operation.
|
||||
}];
|
||||
|
||||
// hanchen is working here
|
||||
let arguments = ();
|
||||
|
||||
let results = ();
|
||||
|
||||
}
|
Loading…
Reference in New Issue