We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f462fe commit 5a06fbcCopy full SHA for 5a06fbc
llvm/include/llvm/IR/DerivedTypes.h
@@ -554,8 +554,9 @@ class VectorType : public Type {
554
return VectorType::get(VTy->getElementType(), EltCnt * 2);
555
}
556
557
- /// This static method returns a VectorType with the same size-in-bits as
558
- /// SizeTy but with an element type that matches the scalar type of EltTy.
+ /// This static method attempts to construct a VectorType with the same
+ /// size-in-bits as SizeTy but with an element type that matches the scalar
559
+ /// type of EltTy. The VectorType is returned on success, nullptr otherwise.
560
static VectorType *getWithSizeAndScalar(VectorType *SizeTy, Type *EltTy) {
561
if (SizeTy->getScalarType() == EltTy->getScalarType())
562
return SizeTy;
0 commit comments