Reviewers: efriedma, ftynse, c-rhodes, david-arm, rriddle
Reviewed By: ftynse
Subscribers: tschuett, rkruppe, psnobl, mehdi_amini, rriddle, jpienaar, shauheen, antiagainst, nicolasvasilache, arpith-jacob, mgester, lucyrfox, liufengdb, stephenneuendorffer, Joonsoo, grosul1, frgossen, Kayjukh, jurahul, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D80340
LLVMType LLVMType::getVectorTy(LLVMType elementType, unsigned numElements) {
// Lock access to the dialect as this may modify the LLVM context.
return getLocked(&elementType.getDialect(), [=] {
- return llvm::VectorType::get(elementType.getUnderlyingType(), numElements);
+ return llvm::FixedVectorType::get(elementType.getUnderlyingType(),
+ numElements);
});
}