Created attachment 214200 [details] patch MLIR (Multi-Level Intermediate Representation Overview) is a set of IR instructions recently added to LLVM: https://mlir.llvm.org/ The attached patch adds the MLIR option and updates the port. The LLVM release that is currently in ports doesn't build on FreeBSD with LLVM=ON.
Some patch issues: - No updates to the build-plist code - No symlinks for newly installed binaries. Need to add MLIR_COMMANDS variable too Makefile.COMMANDS - Unrelated openmp linkage change not documented.
Created attachment 214213 [details] patch I fixed the issues that you pointed out.
Are there any other improvements that I cam make in this patch? Yuri
Something in the update has broken the LLDB python files part of the plist: "python3.8" can't be hardcoded. It would be helpful if you could reroll them against the current version without an update to the snapshot so only MLIR related changes are required. If the current one isn't new enough I can try to get an update out next week (I'm under a deadline at the moment).
We've had MLIR for quite some time.