[all-commits] [llvm/llvm-project] 72ad9b: [Clang][MicrosoftMangle] Implement mangling for Co...
Reid Kleckner via All-commits
all-commits at lists.llvm.org
Sat May 10 13:06:31 PDT 2025
Branch: refs/heads/release/20.x
Home: https://github.com/llvm/llvm-project
Commit: 72ad9be1e337f487c9db4dd634005d09f7bf2790
https://github.com/llvm/llvm-project/commit/72ad9be1e337f487c9db4dd634005d09f7bf2790
Author: Losy001 <64610343+Losy001 at users.noreply.github.com>
Date: 2025-05-10 (Sat, 10 May 2025)
Changed paths:
M clang/lib/AST/MicrosoftMangle.cpp
A clang/test/CodeGenCXX/mangle-ms-matrix.cpp
Log Message:
-----------
[Clang][MicrosoftMangle] Implement mangling for ConstantMatrixType (#134930)
This pull request implements mangling for ConstantMatrixType, allowing
matrices to be used on Windows.
Related issues: #53158, #127127
This example code:
```cpp
#include <typeinfo>
#include <stdio.h>
typedef float Matrix4 __attribute__((matrix_type(4, 4)));
int main()
{
printf("%s\n", typeid(Matrix4).name());
}
```
Outputs this:
```
struct __clang::__matrix<float,4,4>
```
(cherry picked from commit f5a30f111dc4ad6422863722eb708059a68a9d5c)
Commit: 41c36d94080488cc938b1c1697c7e8353405cd75
https://github.com/llvm/llvm-project/commit/41c36d94080488cc938b1c1697c7e8353405cd75
Author: Reid Kleckner <rnk at google.com>
Date: 2025-05-10 (Sat, 10 May 2025)
Changed paths:
M clang/lib/AST/MicrosoftMangle.cpp
Log Message:
-----------
[clang] Fix unused variable warning in MS mangler from constant matrix patch
(cherry picked from commit ccdd55c518277d749eff878ffcb5ca3de55c2a60)
Compare: https://github.com/llvm/llvm-project/compare/0019b7d0ae0b...41c36d940804
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list