Working on a compiler plugin that used `andandSymb...
# compiler
j
Working on a compiler plugin that used
andandSymbol
to generate code like
expr1 && expr2
. This works on JVM and JS targets but fails with a
TODO()
in the LLVM lowering. Is this expected to work and I should file a bug? Or since we're spinning IR should we be expected to use lower-level constructs like explicit branches? I ended up using `ifThenElse`/`irFalse` as it was the most terse IR structure I could find to model this code.
s
I am pretty sure Compose generates && somewhere Probably worth comparing your output with compiler generated IR
j
It emits a when. I copied it initially.
It produces suboptimal JS, from what I remember. Didn't check Java bytecode or LLVM IR.
It produces suboptimal JS
Also knows as: It produces JS 🧌
😆 7