aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorShilei Tian <i@tianshilei.me>2024-03-08 14:49:52 -0500
committerGitHub <noreply@github.com>2024-03-08 14:49:52 -0500
commite963d0740e64fc70b4018f39325469d204f6217a (patch)
treecd187d4ced18f0550b55c2c300c204256eac8b4e /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent52b3e89ff4517521e40f5e416a40e574321eaee9 (diff)
downloadllvm-e963d0740e64fc70b4018f39325469d204f6217a.zip
llvm-e963d0740e64fc70b4018f39325469d204f6217a.tar.gz
llvm-e963d0740e64fc70b4018f39325469d204f6217a.tar.bz2
[AMDGPU] Replace `isInlinableLiteral16` with specific version (#84402)
The current implementation of `isInlinableLiteral16` assumes, a 16-bit inlinable literal is either an `i16` or a `fp16`. This is not always true because of `bf16`. However, we can't tell `fp16` and `bf16` apart by just looking at the value. This patch splits `isInlinableLiteral16` into three versions, `i16`, `fp16`, `bf16` respectively, and call the corresponding version.
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions