[llvm] [IR] Allow MDString in operand bundles (PR #110805)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 2 03:14:21 PDT 2024


================
@@ -6216,6 +6225,11 @@ bool LLParser::convertValIDToValue(Type *Ty, ValID &ID, Value *&V,
     V = ConstantVector::getSplat(cast<VectorType>(Ty)->getElementCount(),
                                  ID.ConstantVal);
     return false;
+  case ValID::t_MDString:
----------------
nikic wrote:

Yes, this is what it *currently* does. To support metadata arguments, you need to do something like this instead (ignoring the part about attributes): https://github.com/llvm/llvm-project/blob/68c04b0ae62d8431d72d8b47fc13008002ee4387/llvm/lib/AsmParser/LLParser.cpp#L3038-L3048

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


More information about the llvm-commits mailing list