[mlir:docs] Add proper documentation for defining dialects
authorRiver Riddle <riddleriver@gmail.com>
Wed, 6 Apr 2022 21:44:15 +0000 (14:44 -0700)
committerRiver Riddle <riddleriver@gmail.com>
Mon, 11 Apr 2022 22:05:57 +0000 (15:05 -0700)
commit73c4f9d4d3c37696bc660096585a27eca5e89725
treeb3cf80028d17413b2f73f7bac37b08402aa4931e
parenta19fe7b6400c7cbcd806ad7bbf97403d1f376347
[mlir:docs] Add proper documentation for defining dialects

We don't actually have any documentation today for how to
declaratively define a dialect. This commit rectifies that and properly
documents how to define a Dialect in tablegen, and details all of
the possible fields.

Differential Revision: https://reviews.llvm.org/D123258
mlir/docs/Canonicalization.md
mlir/docs/DefiningDialects.md [new file with mode: 0644]