[mlir][LLVMIR] Apply SubElementTypeInterface on suitable types
authorMin-Yih Hsu <minyihh@uci.edu>
Thu, 19 May 2022 19:07:18 +0000 (12:07 -0700)
committerMin-Yih Hsu <minyihh@uci.edu>
Wed, 29 Jun 2022 20:58:02 +0000 (13:58 -0700)
commit9bad9248ed3038eaa0cd0aeebb19566233e0f3e6
treebac1f60ee6da3b8fdf7ea4434a365638a8089adc
parentd41028610b5372669adcb9b7091fae5250f0a4a8
[mlir][LLVMIR] Apply SubElementTypeInterface on suitable types

This feature is tested by unit test since not many places in the codebase
use SubElementTypeInterface.

Differential Revision: https://reviews.llvm.org/D127539
mlir/include/mlir/Dialect/LLVMIR/LLVMTypes.h
mlir/lib/Dialect/LLVMIR/IR/LLVMTypes.cpp
mlir/unittests/Dialect/LLVMIR/LLVMTypeTest.cpp