[all-commits] [llvm/llvm-project] fc3367: [mlir] NFC: Move the state for managing SSA value ...

River Riddle via All-commits all-commits at lists.llvm.org
Thu Jan 9 12:49:25 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: fc3367dd5ed4698036c421b23cf4f52cf8aedcae
      https://github.com/llvm/llvm-project/commit/fc3367dd5ed4698036c421b23cf4f52cf8aedcae
  Author: River Riddle <riverriddle at google.com>
  Date:   2020-01-09 (Thu, 09 Jan 2020)

  Changed paths:
    M mlir/lib/IR/AsmPrinter.cpp

  Log Message:
  -----------
  [mlir] NFC: Move the state for managing SSA value names out of OperationPrinter and into a new class SSANameState.

Summary:
This reduces the complexity of OperationPrinter and simplifies the code by quite a bit. The SSANameState is now held by ModuleState. This is in preparation for a future revision that molds ModuleState into something that can be used by users for caching the printer state, as well as for implementing printAsOperand style methods.

Depends On D72292

Reviewed By: antiagainst

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




More information about the All-commits mailing list