diff options
author | Min-Yih Hsu <minyihh@uci.edu> | 2022-04-21 09:45:42 -0700 |
---|---|---|
committer | Min-Yih Hsu <minyihh@uci.edu> | 2022-05-20 21:45:50 -0700 |
commit | f088b99eac74e5ab44fd8a576cd5dc28d7042029 (patch) | |
tree | 68ccc6a883efaab6262460070d1c8e0ef00b4aa9 /clang/unittests/Format/FormatTestJava.cpp | |
parent | 3b91657c7bc1e1fcf3f8374f71c238f432050947 (diff) | |
download | llvm-f088b99eac74e5ab44fd8a576cd5dc28d7042029.zip llvm-f088b99eac74e5ab44fd8a576cd5dc28d7042029.tar.gz llvm-f088b99eac74e5ab44fd8a576cd5dc28d7042029.tar.bz2 |
[mlir][LLVMIR] Use the correct way to determine if it's a scalable vector
One of the ShuffleVectorOp::build functions checks if the incoming
vector operands is scalable vector by casting its type to
mlir::VectorType first. However, in some cases the operand is not
necessarily mlir::VectorType (e.g. it might be a LLVMVectorType).
This patch fixes this issue by using the dedicated
`LLVM::isScalableVectorType` function to determine if the incoming
vector is scalable vector or not.
Differential Revision: https://reviews.llvm.org/D125818
Diffstat (limited to 'clang/unittests/Format/FormatTestJava.cpp')
0 files changed, 0 insertions, 0 deletions