[f18 MLIR rebase] New f18 master requires updating your LLVM builds and changes cmake flags


F18 PR1090 that was just merged aligns f18 with MLIR latest interface. When you update your sandbox to f18 new master:

  • You will need to use an LLVM built with llvm-project head from today (see link below for a validated version).

  • You need to add -DMLIR_DIR=/lib/cmake/mlir to f18 command for out of LLVM tree builds.

(Note that replacing both -DLLVM_DIR and -DMLIR_DIR by a single -DCMAKE_PREFIX_PATH= should also work.)

I have updated https://github.com/flang-compiler/f18-llvm-project/tree/f18 LLVM fork with the LLVM head from this morning that was validated with f18.