Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/unittests/IR/VectorTypesTest.cpp | ||
---|---|---|
160 | I chose not to because both types are instances of ScalableVectorType, and by definition that means that EC.Scalable is true. But then again, I suppose the purpose of tests is to ensure that stays true. I'll make the change. |
LGTM!
llvm/unittests/IR/VectorTypesTest.cpp | ||
---|---|---|
160 | Right, I misread this as getNumElements. In that case both are indeed fine though. |
llvm/unittests/IR/VectorTypesTest.cpp | ||
---|---|---|
160 | In my mind, the most important thing is that is has a different name to prevent copy/paste and template duck typing issues. however, if after having seen it in the wild, you think it's too similar to getNumElements(), I'm open to changing it. |
llvm/unittests/IR/VectorTypesTest.cpp | ||
---|---|---|
239 | This seems to cause the following warning on GreenDragon ( It would be great if you could take a look. /Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/llvm-project/llvm/unittests/IR/VectorTypesTest.cpp:231:39: warning: suggest braces around initialization of subobject [-Wmissing-braces] std::array<VectorType *, 8> VTys = {VectorType::get(Int16Ty, {4, true}), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ { |
llvm/unittests/IR/VectorTypesTest.cpp | ||
---|---|---|
239 | Those warnings pop up all over the place (including other places in that build) if you use clang 5.0 or older to build clang. clang prints a warning because std::array is actually a struct that contains a C array. Newer versions suppress the warning, though. Maybe we should teach CMake to pass -Wno-missing-braces to older versions of clang. |
I think you can just write *RHS (operator<< is overloaded for const Type &T)