[mlir] add verifiers for NVVM and ROCDL kernel attributes
authorAlex Zinenko <zinenko@google.com>
Tue, 16 Feb 2021 17:05:47 +0000 (18:05 +0100)
committerAlex Zinenko <zinenko@google.com>
Tue, 16 Feb 2021 17:06:54 +0000 (18:06 +0100)
commit9cd47a26d593985ad2b36857cb9fcbc7659ffde8
tree3022045f09decd60dbc3b85096e832fef9b6f79e
parent627cfd4394b0c4677c8a33338d92bd92101b8ee1
[mlir] add verifiers for NVVM and ROCDL kernel attributes

Make sure they can only be attached to LLVM functions as a result of converting
GPU functions to the LLVM Dialect.
mlir/include/mlir/Dialect/LLVMIR/NVVMOps.td
mlir/include/mlir/Dialect/LLVMIR/ROCDLOps.td
mlir/lib/Dialect/LLVMIR/IR/NVVMDialect.cpp
mlir/lib/Dialect/LLVMIR/IR/ROCDLDialect.cpp
mlir/lib/Target/LLVMIR/Dialect/NVVM/NVVMToLLVMIRTranslation.cpp
mlir/lib/Target/LLVMIR/Dialect/ROCDL/ROCDLToLLVMIRTranslation.cpp
mlir/test/Dialect/LLVMIR/nvvm.mlir
mlir/test/Dialect/LLVMIR/rocdl.mlir