diff options
author | Lucie Choi <ychoi0407@gmail.com> | 2025-10-03 13:02:06 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-10-03 16:02:06 -0400 |
commit | b0ad9c293a493c5912ffee6c18191bf35095f9f7 (patch) | |
tree | 9a2770d3acf7f024d6395024b7244baee8f5209f /clang/lib/Frontend/CompilerInstance.cpp | |
parent | be29612ffceac888f931dc45664f7c42cea9b598 (diff) | |
download | llvm-b0ad9c293a493c5912ffee6c18191bf35095f9f7.zip llvm-b0ad9c293a493c5912ffee6c18191bf35095f9f7.tar.gz llvm-b0ad9c293a493c5912ffee6c18191bf35095f9f7.tar.bz2 |
[SPIR-V] Fix `asdouble` issue in SPIRV codegen to correctly generate `OpBitCast` instruction. (#161891)
Generate `OpBitCast` instruction for pointer cast operation if the
element type is different.
The HLSL for the unit test is
```hlsl
StructuredBuffer<uint2> In : register(t0);
RWStructuredBuffer<double2> Out : register(u2);
[numthreads(1,1,1)]
void main() {
Out[0] = asdouble(In[0], In[1]);
}
```
Resolves https://github.com/llvm/llvm-project/issues/153513
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
0 files changed, 0 insertions, 0 deletions