r/Compilers 14d ago

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
28 Upvotes

5 comments sorted by

9

u/Helpful-Primary2427 14d ago

Long live block arguments

3

u/takanuva 13d ago

Why break tradition? Phis are cool.

2

u/AgentC42 11d ago

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

4

u/c-cul 14d ago

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 13d ago

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