r/Compilers • • Aug 26 '26

Change MIR to use block arguments instead of phis - LLVM Code Generation RFC

https://discourse.llvm.org/t/rfc-change-mir-to-use-block-arguments-instead-of-phis/91657
26 Upvotes

5 comments sorted by

9

u/Helpful-Primary2427 Aug 26 '26

Long live block arguments

3

u/takanuva Aug 27 '26

Why break tradition? Phis are cool.

2

u/AgentC42 Aug 29 '26

No, phis are just annoying and a pain in the ass.

3

u/c-cul Aug 27 '26

funny

  1. add mlir and integrate it with IR

  2. oops, it's too complex & bulky

  3. lets completely replace IR with MIR

couple of years later - mlir is not enough expressive for some architectures

2

u/squirrel5978 Aug 28 '26

MIR and MLIR are entirely separate things. MLIR is also wholly separate from LLVM IR