Step 1. Lower axpy.mlir to axpy.ll
mlir-opt -lower-affine -convert-loop-to-std -convert-std-to-llvm='emit-c-wrappers=1' axpy.mlir | mlir-translate --mlir-to-llvmir -o axpy.ll
Step 2. Get bitcode for the caller C
.
clang -emit-llvm call_axpy.c -S -o call_axpy.bc