diff options
author | Stanislav Mekhanoshin <rampitec@users.noreply.github.com> | 2023-10-12 14:45:45 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-12 14:45:45 -0700 |
commit | ab6c3d50345f7751f77c16d0909b17e942a3def7 (patch) | |
tree | de1345fbe55bcaee43ea94565bf9f4f6d14358b4 /llvm/lib/Object/ArchiveWriter.cpp | |
parent | b3a39a9bdb6b3300c872e0229fadbaac430649c1 (diff) | |
download | llvm-ab6c3d50345f7751f77c16d0909b17e942a3def7.zip llvm-ab6c3d50345f7751f77c16d0909b17e942a3def7.tar.gz llvm-ab6c3d50345f7751f77c16d0909b17e942a3def7.tar.bz2 |
[AMDGPU] Change the representation of double literals in operands (#68740)
A 64-bit literal can be used as a 32-bit zero or sign extended operand.
In case of double zeroes are added to the low 32 bits. Currently asm
parser stores only high 32 bits of a double into an operand. To support
codegen as requested by the
https://github.com/llvm/llvm-project/issues/67781 we need to change the
representation to store a full 64-bit value so that codegen can simply
add immediates to an instruction.
There is some code to support compatibility with existing tests and asm
kernels. We allow to use short hex strings to represent only a high 32
bit of a double value as a valid literal.
Diffstat (limited to 'llvm/lib/Object/ArchiveWriter.cpp')
0 files changed, 0 insertions, 0 deletions