Further reading
The Machine IR has a dedicated official page that describes its syntax and gives some tips regarding how to work with it. It’s available at https://llvm.org/docs/MIRLangRef.html.
Additionally, to get more comfortable with the YAML syntax, you can go through its current specifications at https://yaml.org/spec/1.2.2/.