[NVPTX] Refactor generation of MMA intrinsics and instructions. NFC.
authorArtem Belevich <tra@google.com>
Thu, 25 Apr 2019 22:27:35 +0000 (22:27 +0000)
committerArtem Belevich <tra@google.com>
Thu, 25 Apr 2019 22:27:35 +0000 (22:27 +0000)
commit7ecd82ce19ae2b0e1abef39735ad5fa2e18e92fb
tree869e09bc477686446916033b48c184b6e4701086
parenta93a33cb87ec21da20b6c7080c25fdd41e225cec
[NVPTX] Refactor generation of MMA intrinsics and instructions. NFC.

Generalized constructions of 'fragments' of MMA operations to provide
common primitives for construction of the ops. This will make it easier
to add new variants of the instructions that operate on integer types.

Use nested foreach loops which makes it possible to better control
naming of the intrinsics.

This patch does not affect LLVM's output, so there are no test changes.

Differential Revision: https://reviews.llvm.org/D59389

llvm-svn: 359245
llvm/include/llvm/IR/IntrinsicsNVVM.td
llvm/lib/Target/NVPTX/NVPTXIntrinsics.td