[llvm] [IR] Allow MDString in operand bundles (PR #110805)
Paul Walker via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 10 02:59:56 PDT 2024
================
@@ -3202,8 +3202,15 @@ bool LLParser::parseOptionalOperandBundles(
Type *Ty = nullptr;
Value *Input = nullptr;
- if (parseType(Ty) || parseValue(Ty, Input, PFS))
+ if (parseType(Ty))
return true;
+ if (Ty->isMetadataTy()) {
+ if (parseMetadataAsValue(Input, PFS))
+ return true;
+ } else {
+ if (parseValue(Ty, Input, PFS))
+ return true;
+ }
----------------
paulwalker-arm wrote:
This could be just:
```
else if (parseValue(Ty, Input, PFS))
return true;
```
https://github.com/llvm/llvm-project/pull/110805
More information about the llvm-commits
mailing list