-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #59 from Xilinx/jose.xtennn-to-be
Add toggle to disable compiling code that depends on torch-mlir
- Loading branch information
Showing
48 changed files
with
174 additions
and
3,565 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
//===- PassesTorch.td --------------------------------------*- tablegen -*-===// | ||
// | ||
// This file is 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 | ||
// | ||
|
||
// (c) Copyright 2021 Xilinx, Inc. All Rights reserved. | ||
// (c) Copyright 2022 - 2024 Advanced Micro Devices, Inc. All Rights reserved. | ||
|
||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef XTEN_CONVERSION_PASSES_TORCH | ||
#define XTEN_CONVERSION_PASSES_TORCH | ||
|
||
include "mlir/Pass/PassBase.td" | ||
|
||
def ConvertXTenNNToTorch : Pass<"convert-xtennn-to-torch", "mlir::func::FuncOp"> { | ||
let summary = "Convert XTenNN operations to Torch."; | ||
let description = [{ | ||
Partial conversion of XTenNN operations to Torch. | ||
}]; | ||
let constructor = "amd::xten_nn::createXTenNNToTorchPass()"; | ||
let dependentDialects = [ | ||
"mlir::torch::Torch::TorchDialect", | ||
"mlir::torch::TorchConversion::TorchConversionDialect", | ||
]; | ||
} | ||
|
||
#endif // XTEN_CONVERSION_PASSES_TORCH |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,4 @@ | |
|
||
add_subdirectory(Conversion) | ||
add_subdirectory(Dialect) | ||
add_subdirectory(Util) | ||
add_subdirectory(Transform) |
Oops, something went wrong.