[PATCH] D72294: [mlir] Refactor ModuleState into AsmState and expose it to users.

River Riddle via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 6 10:44:42 PST 2020


rriddle created this revision.
rriddle added a reviewer: jpienaar.
Herald added subscribers: llvm-commits, lucyrfox, mgester, arpith-jacob, nicolasvasilache, antiagainst, shauheen, burmako, mehdi_amini.
Herald added a project: LLVM.

This allows for users to cache printer state, which can be costly to recompute. Each of the IR print methods gain a new overload taking this new state class.

Depends On D72293 <https://reviews.llvm.org/D72293>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D72294

Files:
  mlir/include/mlir/IR/AsmState.h
  mlir/include/mlir/IR/Block.h
  mlir/include/mlir/IR/Module.h
  mlir/include/mlir/IR/OpDefinition.h
  mlir/include/mlir/IR/Operation.h
  mlir/include/mlir/IR/Value.h
  mlir/lib/IR/AsmPrinter.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72294.236416.patch
Type: text/x-patch
Size: 12240 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200106/4cd5c3fc/attachment.bin>


More information about the llvm-commits mailing list