[llvm] [LLVM][IR] Add textual shorthand for specifying constant vector splats. (PR #74620)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 7 06:19:18 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())
----------------
nikic wrote:

I don't really get why these changes are needed. Isn't the value parsing itself still performed with the scalar type?

https://github.com/llvm/llvm-project/pull/74620


More information about the llvm-commits mailing list