Extend the standalone by standalone-translate, based on mlir-translate.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/examples/standalone/standalone-translate/CMakeLists.txt | ||
---|---|---|
9 | This should probably be replaced by add_llvm_executable. |
Comment Actions
There is no test for iree-translate and we don't have an additional translation registered in the standalone dialect. Anyway, I could go for a test similar to https://github.com/llvm/llvm-project/blob/master/mlir/test/mlir-opt/commandline.mlir, for example:
// RUN: standalone-translate --help | FileCheck %s // CHECK: --avx512-mlir-to-llvmir // CHECK: --deserialize-spirv // CHECK: --import-llvm // CHECK: --mlir-to-llvmir // CHECK: --mlir-to-nvvmir // CHECK: --mlir-to-rocdlir // CHECK: --serialize-spirv
Would that be suitable?
Comment Actions
Would that be suitable?
Yes, something like that is probably good enough for a smoke test.
Comment Actions
Add standalone-translate test, rename test from check-standalone-opt to check-standalone
This should probably be replaced by add_llvm_executable.