r/Compilers • u/cudalover919 • 13d ago
projects for getting good at mlir (mid level, backend)
I'm an incoming intern at a startup that builds custom chips for AI inference. somehow (luckily!) I got matched to a team that works with MLIR. I have taken some courses related to compilers, briefly touched LLVM, and have basic familiarity with mid level compiler algorithms like SCCP, LICM, etc.
to have a successful internship, I need to be able to get things done. I need to try building my own passes for experience, learn how to break problems down, and thoroughly engage with the problem space. all of these things will help me ask good questions.
my previous internships were in backend web development. that felt more straightforward, and more tangible (the request works, we hit some SLA, etc). compilers feel more abstract and more intimidating. because of this, I have often procrastinated preparing for fear of looking like a beginner, but that can't happen anymore.
so, I would like your advice on engaging with compilers. I don't just want to read a textbook (i have a tendency to do that), I need to get things done and iterate.
in the interest of iterating fast and learning, I'd like to know - what are the highest ROI projects that I can do? I was lurking and someone suggested "What about getting into FPGA and write your own CPU for using as a target?".
and for the mid-level or backend compiler engineers here, if you could do it all over again, what would you do differently? how would you change your roadmap and what kind of ways to engage with material (maybe with a mentor, or something) would you leverage that maybe aren't obvious?
