[HLS] Fix select op printing issue #261
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
name: Build and Test | |
on: [push, pull_request] | |
jobs: | |
build-scalehls: | |
name: Build and Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get ScaleHLS | |
uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Clang Format | |
uses: DoozyX/[email protected] | |
with: | |
exclude: './polygeist ./samples ./test' | |
clangFormatVersion: 11 | |
style: llvm | |
- name: Get LLVM Hash | |
id: get-llvm-hash | |
run: echo "::set-output name=hash::$(git -C ./polygeist rev-parse @:./llvm-project)" | |
- name: Cache LLVM | |
id: cache-llvm | |
uses: actions/cache@v2 | |
with: | |
path: polygeist/llvm-project/build | |
key: ${{ runner.os }}-llvm-${{ steps.get-llvm-hash.outputs.hash }} | |
- name: Rebuild LLVM | |
if: steps.cache-llvm.outputs.cache-hit != 'true' | |
run: | | |
mkdir -p polygeist/llvm-project/build | |
cd polygeist/llvm-project/build | |
cmake ../llvm \ | |
-DLLVM_ENABLE_PROJECTS="mlir" \ | |
-DLLVM_TARGETS_TO_BUILD="host" \ | |
-DCMAKE_BUILD_TYPE=RELEASE \ | |
-DLLVM_USE_LINKER=lld \ | |
-DCMAKE_C_COMPILER=clang \ | |
-DCMAKE_CXX_COMPILER=clang++ | |
cmake --build . -j $(nproc) | |
- name: Build and Test ScaleHLS | |
run: | | |
mkdir -p build | |
cd build | |
cmake .. \ | |
-DMLIR_DIR="$PWD/../polygeist/llvm-project/build/lib/cmake/mlir" \ | |
-DLLVM_DIR="$PWD/../polygeist/llvm-project/build/lib/cmake/llvm" \ | |
-DLLVM_ENABLE_ASSERTIONS=ON \ | |
-DCMAKE_BUILD_TYPE=DEBUG \ | |
-DLLVM_USE_LINKER=lld \ | |
-DCMAKE_C_COMPILER=clang \ | |
-DCMAKE_CXX_COMPILER=clang++ | |
cmake --build . --target check-scalehls -j $(nproc) |