<div dir="ltr">I'm somewhat new to LLVM and I'm trying to learn tablegen. I found a tutorial on how to create a backend for a given target but I can't figure out how does tablegen do pattern matching. 
<div><br></div><div>Here is the specific link to the tutorial. </div><div><br></div><div><a href="http://jonathan2251.github.io/lbd/llvmstructure.html#llvmstructure-f13">http://jonathan2251.github.io/lbd/llvmstructure.html#llvmstructure-f13</a><br></div><div><br></div><div>The image describes how instruction selection occurs but I can't make heads or tails of it. I'd really appreciate any help on this.</div><div><br></div><div>Thanks</div></div>