[llvm] [IR] Allow MDString in operand bundles (PR #110805)
Serge Pavlov via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 2 03:06:24 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:
----------------
spavloff wrote:
This is determined by the logic of `parseOptionalOperandBundles`. It parses type then value:
https://github.com/llvm/llvm-project/blob/68c04b0ae62d8431d72d8b47fc13008002ee4387/llvm/lib/AsmParser/LLParser.cpp#L3205
Parsing value involves first parsing to `ValID`, then conversion to the value: https://github.com/llvm/llvm-project/blob/68c04b0ae62d8431d72d8b47fc13008002ee4387/llvm/lib/AsmParser/LLParser.cpp#L6274-L6279
Processing metadata values was implemented according to this logic.
https://github.com/llvm/llvm-project/pull/110805
More information about the llvm-commits
mailing list