[PATCH] D82419: [SVE] add derived vector get(Type *, ElementCount) and get(Type *, VectorType)
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 23 17:49:10 PDT 2020
efriedma added a comment.
> Prior to this change, if a developer were to write:
>
> auto *VTy = FixedVectorType::get(SomeTy, SomeVTy->getElementCount())
This is just a compile error on master. (You could write "using VectorType::get" in the class to force overloading, but definitions in derived classes hide definitions from the base class by default.)
-----
Could you give an example where you plan to use this? I don't expect it's common for code to take an arbitrary vector type, and try to produce a specific vector type based on it.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D82419/new/
https://reviews.llvm.org/D82419
More information about the llvm-commits
mailing list