[llvm] [LLVM][IR] Add textual shorthand for specifying constant vector splats. (PR #74620)
Paul Walker via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 7 06:32:05 PST 2023
================
@@ -5740,14 +5767,15 @@ bool LLParser::convertValIDToValue(Type *Ty, ValID &ID, Value *&V,
V = NoCFIValue::get(cast<GlobalValue>(V));
return V == nullptr;
case ValID::t_APSInt:
- if (!Ty->isIntegerTy())
+ if (!Ty->isIntOrIntVectorTy())
----------------
paulwalker-arm wrote:
This boils down to the same reason as above. Floating point looks to be handled a little stricter whereas integers just resize the `ID.APSIntVal`. I've no knowledge as to the reason for this so have just maintained the current approach.
https://github.com/llvm/llvm-project/pull/74620
More information about the llvm-commits
mailing list