Skip to content
Unverified Commit 9c6693f9 authored by Paul Walker's avatar Paul Walker Committed by GitHub
Browse files

[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.
parent 9d66d263
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment