The return type of getTypeAllocSize() is TypeSize. We do not rely on the implicit conversion to uint64_t. The return value may be scalable values.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/lib/CodeGen/CGCall.cpp | ||
---|---|---|
2856–2857 | Can we assume their scalable flags must match? In that case, it's best to assert this. llvm::TypeSize::isKnownLE() should be used with some caution, because isKnownLE(4, vscale x 4) evaluates to true, so if their scalable flags don't match, this may lead to surprising results. | |
4930 | This doesn't seem correct for scalable vectors. |
Can we assume their scalable flags must match? In that case, it's best to assert this.
llvm::TypeSize::isKnownLE() should be used with some caution, because isKnownLE(4, vscale x 4) evaluates to true, so if their scalable flags don't match, this may lead to surprising results.