[PATCH] D77258: Clean up usages of asserting vector getters in Type
Sander de Smalen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 6 09:12:05 PDT 2020
sdesmalen added inline comments.
================
Comment at: mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp:1597
auto splatAttr = SplatElementsAttr::get(
- mlir::VectorType::get(
- {llvmVectorTy.getUnderlyingType()->getVectorNumElements()},
- floatType),
+ mlir::VectorType::get({(unsigned)cast<llvm::VectorType>(
+ llvmVectorTy.getUnderlyingType())
----------------
is the cast to `unsigned` needed?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D77258/new/
https://reviews.llvm.org/D77258
More information about the llvm-commits
mailing list