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

2020-03-12 Thread Huihui Zhang via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG118abf201738: [SVE] Update API ConstantVector::getSplat() to use ElementCount. (authored by huihuiz). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D74386/new

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

2020-03-12 Thread Eli Friedman via Phabricator via cfe-commits
efriedma accepted this revision. efriedma added a comment. This revision is now accepted and ready to land. LGTM Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D74386/new/ https://reviews.llvm.org/D74386 ___

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

2020-03-12 Thread Huihui Zhang via Phabricator via cfe-commits
huihuiz added inline comments. Comment at: llvm/lib/CodeGen/CodeGenPrepare.cpp:6542 -unsigned End = getTransitionType()->getVectorNumElements(); +auto EC = getTransitionType()->getVectorElementCount(); if (UseSplat) efriedma wrote: > Please write o

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

2020-03-12 Thread Huihui Zhang via Phabricator via cfe-commits
huihuiz updated this revision to Diff 250001. huihuiz marked 3 inline comments as done. huihuiz added a comment. Addressed review comments. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D74386/new/ https://reviews.llvm.org/D74386 Files: clang/lib

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

2020-03-11 Thread Eli Friedman via Phabricator via cfe-commits
efriedma added inline comments. Comment at: clang/lib/CodeGen/CGBuiltin.cpp:4497 Value *CodeGenFunction::EmitNeonSplat(Value *V, Constant *C) { - unsigned nElts = V->getType()->getVectorNumElements(); - Value* SV = llvm::ConstantVector::getSplat(nElts, C); + auto EC = V->getT

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

2020-02-13 Thread Huihui Zhang via Phabricator via cfe-commits
huihuiz updated this revision to Diff 244546. huihuiz marked 2 inline comments as done. huihuiz added a comment. Thanks Eli for the review! Add test cases to check for size query changes in ConstantExpr::getGetElementPtr(). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION htt

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

2020-02-11 Thread Eli Friedman via Phabricator via cfe-commits
efriedma added a comment. This is sort of a large number of functional changes, but it's probably okay to skip test coverage for all the simple getNumElements->getElementCount changes; it's obvious it can't break anything. Comment at: llvm/include/llvm/Analysis/Utils/Local.h:

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

2020-02-10 Thread Huihui Zhang via Phabricator via cfe-commits
huihuiz created this revision. huihuiz added reviewers: sdesmalen, efriedma, apazos, spatel, huntergr, willlovett. huihuiz added a project: LLVM. Herald added subscribers: cfe-commits, psnobl, rkruppe, hiraditya, tschuett. Herald added a project: clang. Support ConstantInt::get() and Constant::ge