LLVM front-end

I'm new in LLVM project, I want to understand how to write a LLVM
front-end for my simple OOP language (not implemented yet) using
I think I have to write a lexer ,parser , semantic analyzer ,then code
generator to LLVM IR, am I right ?
Should I generate C language code then pass it to clang or what ? Any
advices to make my language high performance one?

Sorry for questions that might seen silly, but I really confused
(after a lot googling).
I wish you can help me to start in the right way.


Hi Ahmed,

The Kaleidoscope tutorial might be of use to you: LLVM Tutorial: Table of Contents — LLVM 16.0.0git documentation