title: LLVM - How AST can be transformed to IR
body: <p>I know that an <code>AST</code> generated by the parser is used to generate IR in the frontend.</p>
  
  <p>I am wondering how AST to be parsed and then transformed to IR (prob assembly or bitcode),</p>
  
  <p>AST is a tree, what are the steps involved in the transformation from AST to IR.</p>