Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Could you add a test to unittests/CodeGen/LowLevelTypeTest.cpp?
include/llvm/Support/LowLevelTypeImpl.h | ||
---|---|---|
79 | This can be replaced with: return scalarOrVector(NumElements, LLT::scalar(ScalarSize)); |
include/llvm/Support/LowLevelTypeImpl.h | ||
---|---|---|
73 | What happens if NumElements == 0? Seems good to assert that it's greater than 0 in both functions, unless a vector of 0 elements is the desired behaviour. |
include/llvm/Support/LowLevelTypeImpl.h | ||
---|---|---|
73 | I think that would be redundant with the assert in vector() |
What happens if NumElements == 0? Seems good to assert that it's greater than 0 in both functions, unless a vector of 0 elements is the desired behaviour.