Skip to content

Implement mid level IR between YUL and LL #257

@xermicus

Description

@xermicus

Currently we translate YUL directly to LLVM. What I'm hoping to do better with an additional IR:

  • Partially recover type information and use integer types narrower than i256 wherever possible
  • Create the obvious place to implement other domain specific optimizations. For example eliminate unnecessary stack variables or recovering pointers and aliasing.

I'm eying to use MLIR (implies writing a YUL dialect). It is well designed and popular. A decent Rust wrapper crate already exists too.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions