[all-commits] [llvm/llvm-project] 9c6693: [LLVM][IR] Add textual shorthand for specifying co...
Paul Walker via All-commits
all-commits at lists.llvm.org
Fri Dec 8 10:41:43 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9c6693f9012dbf59cf9ebabc9097ce3f25f05cb6
https://github.com/llvm/llvm-project/commit/9c6693f9012dbf59cf9ebabc9097ce3f25f05cb6
Author: Paul Walker <paul.walker at arm.com>
Date: 2023-12-08 (Fri, 08 Dec 2023)
Changed paths:
M llvm/docs/LangRef.rst
M llvm/include/llvm/AsmParser/LLParser.h
M llvm/include/llvm/AsmParser/LLToken.h
M llvm/lib/AsmParser/LLLexer.cpp
M llvm/lib/AsmParser/LLParser.cpp
A llvm/test/Assembler/constant-splat-diagnostics.ll
A llvm/test/Assembler/constant-splat.ll
Log Message:
-----------
[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.
More information about the All-commits
mailing list