Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete MLIR-AIE submodule #639

Merged
merged 12 commits into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ jobs:
with:
path: ${{ env.CACHE_DIR }}
key: linux-build-test-cpp-asserts-manylinux-v2-${{ github.sha }}

test_linux:
runs-on: amd7940hs
needs: build_test_linux
Expand Down
4 changes: 0 additions & 4 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
path = third_party/mlir-air
url = https://github.com/nod-ai/mlir-air.git
shallow = true
[submodule "third_party/mlir-aie"]
path = third_party/mlir-aie
url = https://github.com/nod-ai/mlir-aie.git
shallow = true
[submodule "third_party/aie-rt"]
path = third_party/aie-rt
url = https://github.com/Xilinx/aie-rt.git
Expand Down
19 changes: 19 additions & 0 deletions compiler/plugins/target/AMD-AIE/aie/AIE.td
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// Copyright 2024 The IREE Authors
//
// Licensed under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifndef AIE_BASE
#define AIE_BASE

include "mlir/IR/OpBase.td"

def AIE_Dialect : Dialect {
let name = "aie";
let cppNamespace = "::xilinx::AIE";
let useDefaultTypePrinterParser = 1;
let useDefaultAttributePrinterParser = 1;
}

#endif // AIE_BASE
85 changes: 85 additions & 0 deletions compiler/plugins/target/AMD-AIE/aie/AIEAttrs.td
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
// Copyright 2024 The IREE Authors
//
// Licensed under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifndef AIE_ATTRS
#define AIE_ATTRS

include "AIE.td"

include "mlir/IR/AttrTypeBase.td"
include "mlir/IR/EnumAttr.td"

def LockAction: I32EnumAttr<"LockAction", "lock acquire/release",
[
I32EnumAttrCase<"Acquire", 0>,
I32EnumAttrCase<"AcquireGreaterEqual", 2>,
I32EnumAttrCase<"Release", 1>,
]> {

let cppNamespace = "xilinx::AIE";
}

def LockBlocking: I32EnumAttr<"LockBlocking", "lock operation is blocking",
[
I32EnumAttrCase<"NonBlocking", 0>,
I32EnumAttrCase<"Blocking", 1>
]> {

let cppNamespace = "xilinx::AIE";
}

def ObjectFifoPort: I32EnumAttr<"ObjectFifoPort",
"Ports of an object FIFO",
[
I32EnumAttrCase<"Produce", 0>,
I32EnumAttrCase<"Consume", 1>
]
> {
let cppNamespace = "xilinx::AIE";
}

def BDDimLayoutAttr : AttrDef<AIE_Dialect, "BDDimLayout", []> {
let mnemonic = "bd_dim_layout";
let parameters = (ins
"uint16_t" : $size,
"uint32_t" : $stride
);

let assemblyFormat = "`<` struct(params) `>`";
}

def BDDimLayoutArrayAttr : ArrayOfAttr<
/*dialect*/AIE_Dialect,
/*attrName*/"BDDimLayoutArray",
/*attrMnemonic*/"bd_dim_layout_array",
/*eltName*/BDDimLayoutAttr.cppClassName
>;

def BDDimLayoutArrayArrayAttr : ArrayOfAttr<
/*dialect*/AIE_Dialect,
/*attrName*/"BDDimLayoutArrayArray",
/*attrMnemonic*/"bd_dim_layout_array_array",
/*eltName*/BDDimLayoutArrayAttr.cppClassName
>;

def BDPadLayoutAttr : AttrDef<AIE_Dialect, "BDPadLayout", []> {
let mnemonic = "bd_pad_layout";
let parameters = (ins
"uint16_t" : $const_pad_before,
"uint16_t" : $const_pad_after
);

let assemblyFormat = "`<` struct(params) `>`";
}

def BDPadLayoutArrayAttr : ArrayOfAttr<
/*dialect*/AIE_Dialect,
/*attrName*/"BDPadLayoutArray",
/*attrMnemonic*/"bd_pad_layout_array",
/*eltName*/BDPadLayoutAttr.cppClassName
>;

#endif // AIE_ATTRS
Loading
Loading