[all-commits] [llvm/llvm-project] 48e812: [mlir][Asm] Add support for resolving operation lo...

River Riddle via All-commits all-commits at lists.llvm.org
Thu Nov 12 23:38:40 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 48e8129edf239a5cab159694a9bd64258e140827
      https://github.com/llvm/llvm-project/commit/48e8129edf239a5cab159694a9bd64258e140827
  Author: River Riddle <riddleriver at gmail.com>
  Date:   2020-11-12 (Thu, 12 Nov 2020)

  Changed paths:
    M mlir/lib/IR/AsmPrinter.cpp
    M mlir/lib/Parser/LocationParser.cpp
    M mlir/lib/Parser/Parser.cpp
    M mlir/lib/Parser/Parser.h
    M mlir/test/IR/invalid-locations.mlir
    M mlir/test/IR/locations.mlir

  Log Message:
  -----------
  [mlir][Asm] Add support for resolving operation locations after parsing has finished

This revision adds support in the parser/printer for "deferrable" aliases, i.e. those that can be resolved after printing has finished. This allows for printing aliases for operation locations after the module instead of before, i.e. this is now supported:

```
"foo.op"() : () -> () loc(#loc)

#loc = loc("some_location")
```

Differential Revision: https://reviews.llvm.org/D91227




More information about the All-commits mailing list