[spirv] Add a script to update SPIRVBase.td with new enum attributes
authorLei Zhang <antiagainst@google.com>
Sat, 1 Jun 2019 13:34:18 +0000 (06:34 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Sun, 2 Jun 2019 03:14:28 +0000 (20:14 -0700)
commitaf98d8247610c0d5c44dbf5268b222bc96c1a939
treea994ae005cfc7396ef9d3d91219ca71a6c205aab
parent05b0527ab7633d2bb5d260f6eb3e7fcb19183acb
[spirv] Add a script to update SPIRVBase.td with new enum attributes

    This script parses the SPIR-V JSON grammar to extract operand kinds that
    are enums and generate TableGen definitions for them.

    Also added a shell script to point to the correct relative file location
    to simplify command invocation.

--

PiperOrigin-RevId: 251041084
mlir/include/mlir/SPIRV/SPIRVBase.td
mlir/utils/spirv/define_enum.sh [new file with mode: 0755]
mlir/utils/spirv/gen_spirv_dialect.py [new file with mode: 0755]