The current half vector was enforcing an assert expecting
"(LHS is half vector) == (RHS is half vector)"
for comma.
Details
- Reviewers
ahatanak fhahn - Commits
- rG700e63293eea: [Sema] Support Comma operator for fp16 vectors.
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/lib/Sema/SemaExpr.cpp | ||
---|---|---|
13936–13939 | I think you need braces around the expression before && "...", otherwise some compilers may complain. | |
clang/test/Sema/fp16vec-sema.c | ||
29 | nit: it might be slightly better to move it 2 lines further down, so all operators that assign the result are grouped together. Also, should we add 1, hv0 as well? |
clang/test/Sema/fp16vec-sema.c | ||
---|---|---|
29 | Moved. |
clang/test/Sema/fp16vec-sema.c | ||
---|---|---|
33 | Since these diagnostics aren't relevant to the test, can you silence them by passing -Wno-unused-value or assigning the expressions to variables? |
Could you adjust the commit message to be a bit more descriptive, e.g something like [Sema] Support Comma operator for fp16 vectors.
Oh I think you'd need to edit the revision on Phabricator (top right on this page, edit revision). But if you are fine with it I can commit the patch for you with the adjusted commit title.
Oh I think you'd need to edit the revision on Phabricator (top right on this page, edit revision). But if you are fine with it I can commit the patch for you with the adjusted commit title.
Done !
Thanks for your help !
I think you need braces around the expression before && "...", otherwise some compilers may complain.