[export] Add ir spec (#110394)
Summary: Copied IR spec over from Executorch
Test Plan: _docs_
Differential Revision: D49829187
Pull Request resolved: https://github.com/pytorch/pytorch/pull/110394
Approved by: https://github.com/ydwu4, https://github.com/gmagogsfm