Issue |
81049
|
Summary |
[HLSL] `half` should alias `float` when 16-bit types are not enabled
|
Labels |
HLSL
|
Assignees |
llvm-beanz
|
Reporter |
llvm-beanz
|
In HLSL `decltype(half) == decltype(float)` when 16-bit types are not enabled. Today that is not the case. When 16-bit types are disabled today `half` is a distinct 32-bit type. This causes challenges in overload resolution. With 16-bit types disabled the following case should have an exact match:
```c++
float fn(float f);
half call(half x)
{
return fn(x);
}
```
### Acceptance Criteria
A test case demonstrating correct overload resolution for the case above.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs