aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/VirtualFileSystem.cpp
diff options
context:
space:
mode:
authorChristopher Tetreault <ctetreau@quicinc.com>2020-08-31 14:38:18 -0700
committerChristopher Tetreault <ctetreau@quicinc.com>2020-08-31 15:13:04 -0700
commit867de151a52b6d0750485ac1cf9b3bc012ee51fd (patch)
tree27810c9fb707ca9356d8d3da79348f42c6bfed02 /llvm/lib/Support/VirtualFileSystem.cpp
parentd563d7a7313cf47dcb24c6370a035bd803965b4e (diff)
downloadllvm-867de151a52b6d0750485ac1cf9b3bc012ee51fd.zip
llvm-867de151a52b6d0750485ac1cf9b3bc012ee51fd.tar.gz
llvm-867de151a52b6d0750485ac1cf9b3bc012ee51fd.tar.bz2
[SVE] Mark VectorType::getNumElements() deprecated
getNumElements() is being removed from base VectorType in order to eliminate the class of bugs in which a scalable vector is accidentally treated like a fixed length vector. Clients of this function should either call getElementCount(), and handle the case where getElementCount().isScalable() is true, or they can cast to FixedVectorType and call getNumElements() if they are sure that the vector has fixed width. Deprecated VectorType functions will be removed after the LLVM 12 branch. See: http://lists.llvm.org/pipermail/llvm-dev/2020-March/139811.html Reviewed By: fpetrogalli Differential Revision: https://reviews.llvm.org/D78127
Diffstat (limited to 'llvm/lib/Support/VirtualFileSystem.cpp')
0 files changed, 0 insertions, 0 deletions