Commit 8adfd27b by Zircon Liu

Add structure info.

parent ba722faa
......@@ -74,3 +74,8 @@ iree/builtins/**/bin/*.ll
# Local cache files
llvm-external-projects/iree-dialects/.cache
# (temp) third_party folder
/third_party
.cache
......@@ -9,17 +9,22 @@ set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED YES)
# Options
set(LLVM_SOURCE_DIR "" CACHE PATH "Path to LLVM source directory")
set(LLVM_BUILD_DIR ${LLVM_SOURCE_DIR}/build CACHE PATH "Path to LLVM build directory")
set(MLIR_HLO_SOURCE_DIR "" CACHE PATH "Path to MLIR-HLO source directory")
set(MLIR_HLO_BUILD_DIR ${MLIR_HLO_SOURCE_DIR}/build CACHE PATH "Path to MLIR-HLO build directory")
set(IREE_SOURCE_DIR "" CACHE PATH "Path to IREE source directory")
set(IREE_BUILD_DIR ${IREE_SOURCE_DIR}/build CACHE PATH "Path to IREE build directory")
# set(LLVM_SOURCE_DIR "" CACHE PATH "Path to LLVM source directory")
# set(LLVM_BUILD_DIR ${LLVM_SOURCE_DIR}/build CACHE PATH "Path to LLVM build directory")
# set(MLIR_HLO_SOURCE_DIR "" CACHE PATH "Path to MLIR-HLO source directory")
# set(MLIR_HLO_BUILD_DIR ${MLIR_HLO_SOURCE_DIR}/build CACHE PATH "Path to MLIR-HLO build directory")
set(IREE_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/iree CACHE PATH "Path to IREE source directory")
# set(IREE_BUILD_DIR ${IREE_SOURCE_DIR}/build CACHE PATH "Path to IREE build directory")
# Find Packages
# set(MLIR_DIR ${IREE_BUILD_DIR}/lib/cmake/mlir)
# set(MHLO_DIR ${IREE_BUILD_DIR}/lib/cmake/mlir-hlo)
# find_package(MHLO REQUIRED CONFIG)
add_subdirectory(${IREE_SOURCE_DIR})
# Set subdirectories
add_subdirectory(third_party/iree)
add_subdirectory(tools)
# Set include directories
include_directories(${IREE_SOURCE_DIR}/iree/compiler/src)
# IPRC Scheduler Project
# 1. Configure the project
Clone the IREE projoect into the `third_party/iree` directory.
```shell
git clone git@github.com:openxla/iree.git
```
Checkout IREE to `a61c0e2a3` to match our LLVM version.
```shell
git checkout a61c0e2a3
```
# 2. Build the project
Build the project with the commands used when compiling IREE.
# 3. Use the project
## Purposed project structure
```
iprc-scheduler/
├── CMakeLists.txt
├── README.md
├── dialects/
├── transforms/
├── python/ # Python bindings for the project
├── third_party/
│ └── IREE/
│ └── ...
├── tools/ # Command-line tools and utilities
│ ├── IREE-OPT
│ ├── IREE-TRANSLATE
│ └── ... # Additional tools for transforming IR for sketches and so on
├── test/
│ ├── CMakeLists.txt
│ ├── scheduler/
│ │ └── ...
│ └── ...
└── examples/
└── ...
```
add_subdirectory(iprc-opt)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment