This patch adds examples of compound assignment and type conversions for matrix types.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Thanks for the patch! some comments inline.
clang/docs/LanguageExtensions.rst | ||
---|---|---|
527 | it might also be helpful to include an example with matrix / scalar operations? Division is also supported for matrix/scalar combinations (but not for matrix/matrix) | |
533 | perhaps return the result, so it is not a no-op? | |
547 | can we instead return the casted value, so the code is not a no-op? |
clang/docs/LanguageExtensions.rst | ||
---|---|---|
535 | Is there any reason we use variables for the scalars? If not, it might be good to keep the examples as compact as possible. Using the extra variables seems overly verbose, when it could be just return (a + 23) * 12 and may give the impression only scalar variables are supported. same also applies to the other examples below. | |
578 | this could also just be return (fx5x5) i;, right? |
Thanks for the latest changes!
clang/docs/LanguageExtensions.rst | ||
---|---|---|
526 | I'm not a native speaker, but I am not sure if between is the best choice here. To me, on would sound slightly better, but again, I'm no expert. | |
533 | nit: only indent 2 spaces, like the others. | |
562 | Maybe just say that explicit conversions are supported, without going into the specific types of casts? |
Somehow the builds are failing even though this patch contains no code changes.
clang/docs/LanguageExtensions.rst | ||
---|---|---|
526 | I think you are right. Will change. |
There a few reasons as to why the tests may fail unrelated to the patch (flaky tests, infrastructure issues, test broken on main), so it is a good idea to check what is failing and why. In this case, it looks like a flaky test.
LGTM,thanks.
clang/docs/LanguageExtensions.rst | ||
---|---|---|
546 | nit: also change to on instead of between for consistency? |
Sorry, I committed this without the Differential Revision: https://reviews.llvm.org/D104198 line. Is there a way to change the commit message after it is in main? I could not push after git commit --amend
There's no way to adjust an already pushed commit (force pushes are blocked). You could either revert the change and re-commit with the updated wording or you could manually close the revision here. If the rest of the commit message is OK, I'd recommend just closing the revision manually and provide a link to the commit.
This is closed by this commit https://github.com/llvm/llvm-project/commit/cd256c8bcc9723f0ce7a32957f26600c966fa07c
clang/docs/LanguageExtensions.rst | ||
---|---|---|
539 | This is incorrect ig. I get warning message : Warning, treated as error: |
clang/docs/LanguageExtensions.rst | ||
---|---|---|
538 | oh just an blank line is needed :) |
clang/docs/LanguageExtensions.rst | ||
---|---|---|
538 | Thanks, fixing this now. |
@fhahn addressed your broadcast comment. Would you prefer that I create the initialisation implementation patch before we get this in?
I'm not a native speaker, but I am not sure if between is the best choice here. To me, on would sound slightly better, but again, I'm no expert.