Peter_Peter:

Are these comparable technologies or these serve other purposes indeed?


There’s some overlap, but in general they serve different purposes. MLIR is compiler infrastructure – it’s intended to be a useful multi-level IR that can be used across different SW stacks. Meanwhile, Glow is itself a compiler framework that has its own two levels of Glow-specific IR, and also includes optimizations written specifically for Glow IR, has features such as AOT compilation for LLVM-based backends, a high-performance runtime for server-oriented deployment, etc. In theory we could for example replace Glow’s IR with MLIR (but this is not something we’re planning).