From eae898b56fafb55a5aa3a6ae17110c392090088e Mon Sep 17 00:00:00 2001 From: Andi Drebes Date: Thu, 6 Oct 2022 10:03:27 +0200 Subject: [PATCH] enhance(build): Add convenience targets LLVM / MLIR tools to toplevel Makefile This adds four new targets `opt`, `mlir-cpu-runner`, `mlir-opt`, and `mlir-translate` to the toplevel Makefile of the compiler to conveniently build the corresponding LLVM / MLIR utilities (e.g., for debugging purposes). --- compiler/Makefile | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/compiler/Makefile b/compiler/Makefile index 3f0ab911d..22c784a14 100644 --- a/compiler/Makefile +++ b/compiler/Makefile @@ -271,6 +271,18 @@ file-check: build-initialized not: build-initialized cmake --build $(BUILD_DIR) --target not +mlir-cpu-runner: build-initialized + cmake --build $(BUILD_DIR) --target mlir-cpu-runner + +opt: build-initialized + cmake --build $(BUILD_DIR) --target opt + +mlir-opt: build-initialized + cmake --build $(BUILD_DIR) --target mlir-opt + +mlir-translate: build-initialized + cmake --build $(BUILD_DIR) --target mlir-translate + release-tarballs: docker image build -t concrete-compiler-manylinux:linux_x86_64_tarball -f ../builders/Dockerfile.release_tarball_linux_x86_64 .. docker container run --rm -v ${PWD}/../tarballs:/tarballs_volume concrete-compiler-manylinux:linux_x86_64_tarball cp -r /tarballs/. /tarballs_volume/. @@ -310,4 +322,8 @@ python-lint: build-end-to-end-tests \ build-end-to-end-dataflow-tests \ run-end-to-end-dataflow-tests \ - concrete-core-ffi + concrete-core-ffi \ + opt \ + mlir-opt \ + mlir-cpu-runner \ + mlir-translate