diff options
author | Paul Walker <paul.walker@arm.com> | 2023-12-08 18:41:30 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-08 18:41:30 +0000 |
commit | 9c6693f9012dbf59cf9ebabc9097ce3f25f05cb6 (patch) | |
tree | 828056c7de0c6563253f41a9a76d4dcd8db84f69 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | 9d66d263ad4371160320f4f91720a345eb241471 (diff) | |
download | llvm-9c6693f9012dbf59cf9ebabc9097ce3f25f05cb6.zip llvm-9c6693f9012dbf59cf9ebabc9097ce3f25f05cb6.tar.gz llvm-9c6693f9012dbf59cf9ebabc9097ce3f25f05cb6.tar.bz2 |
[LLVM][IR] Add textual shorthand for specifying constant vector splats. (#74620)
Add LL parsing for `<N x ty> splat(ty <imm>)` that lowers onto
ConstantInt::get() for integer types and ConstantFP::get() for
floating-point types.
The intent is to extend ConstantInt/FP classes to support vector types
rather than redirecting to other constant classes as the get() methods
do today.
This patch gives IR writers the convenience of using the shorthand
today, thus allowing existing tests to be ported.
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions