Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
425 additions
and
324 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
add_mlir_dialect(MIOpenOps miopen) | ||
add_mlir_doc(MIOpenOps -gen-dialect-doc MIOpenDialect Dialects/) | ||
|
||
set(LLVM_TARGET_DEFINITIONS Passes.td) | ||
mlir_tablegen(Passes.h.inc -gen-pass-decls) | ||
add_public_tablegen_target(MLIRMIOpenPassIncGen) | ||
|
||
add_mlir_doc(Passes -gen-pass-doc MIOpenPasses ./) |
121 changes: 61 additions & 60 deletions
121
...e/mlir/Dialect/MIOpenOps/LowerMIOpenOps.h → ...lude/mlir/Dialect/MIOpen/LowerMIOpenOps.h
Large diffs are not rendered by default.
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
File renamed without changes.
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,39 @@ | ||
//===-- Passes.td - MIOpen pass definition file ------------*- tablegen -*-===// | ||
// | ||
// Part of the LLVM Project, 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 MLIR_DIALECT_MIOPEN_PASSES | ||
#define MLIR_DIALECT_MIOPEN_PASSES | ||
|
||
include "mlir/Pass/PassBase.td" | ||
|
||
def MIOpenOpsStep1Pass : Pass<"miopen-lowering", "ModuleOp"> { | ||
let summary = "expand convolution into coordinate transformations and gridwise gemm"; | ||
let constructor = "mlir::miopen::createLowerMIOpenOpsStep1Pass()"; | ||
} | ||
|
||
def MIOpenOpsAffineTransformPass : FunctionPass<"miopen-affine-transform"> { | ||
let summary = "build affine maps for miopen.transform ops"; | ||
let constructor = "mlir::miopen::createAffineTransformPass()"; | ||
} | ||
|
||
def MIOpenOpsAffixTuningParametersPass : FunctionPass<"miopen-affix-params"> { | ||
let summary = "populate tuning parameters for miopen.gridwise_gemm ops"; | ||
let constructor = "mlir::miopen::createAffixTuningParametersPass()"; | ||
} | ||
|
||
def MIOpenOpsStep2Pass : Pass<"miopen-lowering-step2", "ModuleOp"> { | ||
let summary = "expand gridwise gemm into blockwise copy, blockwise gemm, and threadwise copy"; | ||
let constructor = "mlir::miopen::createLowerMIOpenOpsStep2Pass()"; | ||
} | ||
|
||
def MIOpenOpsStep3Pass : Pass<"miopen-lowering-step3", "ModuleOp"> { | ||
let summary = "expand blockwise copy into threadwise copy, blockwise gemm into threadwise gemm"; | ||
let constructor = "mlir::miopen::createLowerMIOpenOpsStep3Pass()"; | ||
} | ||
|
||
#endif // MLIR_DIALECT_MIOPEN_PASSES |
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 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,23 @@ | ||
add_mlir_conversion_library(MLIRMIOpenToGPU | ||
MIOpenToGPU.cpp | ||
|
||
ADDITIONAL_HEADER_DIRS | ||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Conversion/MIOpenToGPU | ||
|
||
DEPENDS | ||
MLIRConversionPassIncGen | ||
) | ||
target_link_libraries(MLIRMIOpenToGPU | ||
PUBLIC | ||
MLIRGPU | ||
MLIRLLVMIR | ||
MLIRIR | ||
MLIRPass | ||
MLIRStandardOps | ||
MLIRStandardToLLVM | ||
MLIRSupport | ||
MLIRTransforms | ||
MLIRVector | ||
LLVMCore | ||
LLVMSupport | ||
) |
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,19 @@ | ||
file(GLOB globbed *.c *.cpp) | ||
add_mlir_dialect_library(MLIRMIOpenOps | ||
${globbed} | ||
|
||
ADDITIONAL_HEADER_DIRS | ||
${MLIR_MAIN_INCLUDE_DIR}/mlir/MIOpen | ||
|
||
DEPENDS | ||
MLIRMIOpenOpsIncGen | ||
) | ||
target_link_libraries(MLIRMIOpenOps | ||
PUBLIC | ||
MLIRIR | ||
MLIRStandardOps | ||
LLVMSupport | ||
) | ||
|
||
add_subdirectory(Driver) | ||
add_subdirectory(Transforms) |
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
Oops, something went wrong.