cda-group / arc

Programming Language for Continuous Deep Analytics
https://cda-group.github.io/arc/
44 stars 6 forks source link

mlir: Support lowering of std.select to Rust #342

Closed frej closed 2 years ago

frej commented 2 years ago

std.select-operations are sometimes introduced by canonicalization, so we need to support them. As Rust does not have a ternary if, we simply lower the select to an if.