[llvm] [LLVM][IR] Add textual shorthand for specifying constant vector splats. (PR #74620)
Paul Walker via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 8 04:29:14 PST 2023
================
@@ -5824,6 +5839,17 @@ bool LLParser::convertValIDToValue(Type *Ty, ValID &ID, Value *&V,
"' but expected '" + getTypeString(Ty) + "'");
V = ID.ConstantVal;
return false;
+ case ValID::t_ConstantSplat:
+ if (!Ty->isVectorTy())
+ return error(ID.Loc, "vector constant must have vector type");
----------------
paulwalker-arm wrote:
Sure, I'll add them. If more existed I would not have made my original mistake :)
https://github.com/llvm/llvm-project/pull/74620
More information about the llvm-commits
mailing list