HomePhabricator

[SVE] Update API ConstantVector::getSplat() to use ElementCount.

Authored by huihuiz on Mar 12 2020, 1:15 PM.

Description

[SVE] Update API ConstantVector::getSplat() to use ElementCount.

Summary:
Support ConstantInt::get() and Constant::getAllOnesValue() for scalable
vector type, this requires ConstantVector::getSplat() to take in 'ElementCount',
instead of 'unsigned' number of element count.

This change is needed for D73753.

Reviewers: sdesmalen, efriedma, apazos, spatel, huntergr, willlovett

Reviewed By: efriedma

Subscribers: tschuett, hiraditya, rkruppe, psnobl, cfe-commits, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D74386

Details

Committed
huihuizMar 12 2020, 1:22 PM
Reviewer
efriedma
Differential Revision
D74386: [SVE] Update API ConstantVector::getSplat() to use ElementCount.
Parents
rGe91feeed21ee: [AMDGPU] Add ISD::FSHR -> ALIGNBIT support
Branches
Unknown
Tags
Unknown