[PATCH] D101696: [Matrix] Implement C-style explicit type conversions in CXX for matrix types
Saurabh Jha via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun May 2 12:59:22 PDT 2021
SaurabhJha updated this revision to Diff 342261.
SaurabhJha added a comment.
Updating D101696 <https://reviews.llvm.org/D101696>: [Matrix] Implement C-style explicit type conversions in CXX for matrix types
1. Remove bitcast when types are of the same size.
2. Make int conversion depend on whether both input and output are signed.
3. Add a test case of assigning to an incorrect type.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D101696/new/
https://reviews.llvm.org/D101696
Files:
clang/lib/CodeGen/CGExprScalar.cpp
clang/lib/Sema/SemaCast.cpp
clang/test/CodeGen/matrix-cast.c
clang/test/CodeGenCXX/matrix-casts.cpp
clang/test/SemaCXX/matrix-casts.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101696.342261.patch
Type: text/x-patch
Size: 14762 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210502/acb6600a/attachment.bin>
More information about the cfe-commits
mailing list