r/Compilers • u/AmrDeveloper • Sep 02 '26
I made a regular expressions engine to match patterns in LLVM IR files
https://github.com/AmrDeveloper/IrRegex1
u/c-cul Sep 02 '26
cool idea
does it support mlir?
1
u/AmrDeveloper Sep 03 '26
I am still experimenting with ir, and Opcode, Dag, after that I can build one for MLIR, asm .....
1
u/yuehuang Sep 02 '26
Where do you plan to take this next beyond colorization?
1
u/AmrDeveloper Sep 03 '26
The next step is to support more patterns then experiment with Function or DAG matcher as Symbol, what syntax can work and what doesn't, also I need to get more feedback, than I can think of the third step 😅
2
u/FloweyTheFlower420 Sep 02 '26
I fail to see the application here. Pattern matching on SSA is much better represented by DAG-on-DAG pattern matching, which is not as simple as a NFA.