[Mlir-commits] [clang] [llvm] [mlir] [LLVM] Improve IR parsing and printing for target memory locations (PR #176968)
Antonio Frighetto
llvmlistbot at llvm.org
Tue Jan 27 03:18:11 PST 2026
================
@@ -2615,9 +2632,10 @@ std::optional<MemoryEffects> LLParser::parseMemoryAttr() {
}
bool SeenLoc = false;
+ bool SeenTargetLoc = false;
do {
- std::optional<IRMemLocation> Loc = keywordToLoc(Lex.getKind());
- if (Loc) {
+ llvm::ArrayRef<llvm::IRMemLocation> Locs = keywordToLoc(Lex.getKind());
----------------
antoniofrighetto wrote:
```suggestion
ArrayRef<IRMemLocation> Locs = keywordToLoc(Lex.getKind());
```
https://github.com/llvm/llvm-project/pull/176968
More information about the Mlir-commits
mailing list