| Issue |
162711
|
| Summary |
[HLSL][Matrix] IsStandardConversion needs an IsMatrixConversion handler.
|
| Labels |
HLSL
|
| Assignees |
|
| Reporter |
farzonl
|
We have time to figure this out after we get more of the AST important pieces in place. But we will soon need to consider conversions.
In clang/lib/Sema/SemaOverload.cpp we handle vectors via an IsVectorConversion. We need something similar to handle Matrix Splat and Matrix Truncation.
```cpp
else if (IsVectorConversion(S, FromType, ToType, SecondICK, DimensionICK,
From, InOverloadResolution, CStyle)) {
SCS.Second = SecondICK;
SCS.Dimension = DimensionICK;
FromType = ToType.getUnqualifiedType();
}
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs