[all-commits] [llvm/llvm-project] 988a3b: [mlir] Expose printer flags in AsmState

Sergei Grechanik via All-commits all-commits at lists.llvm.org
Tue Feb 15 17:38:33 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 988a3ba0d815110fe4df03cab1077ddef7b23252
      https://github.com/llvm/llvm-project/commit/988a3ba0d815110fe4df03cab1077ddef7b23252
  Author: Sergei Grechanik <sergei.grechanik at intel.com>
  Date:   2022-02-15 (Tue, 15 Feb 2022)

  Changed paths:
    M mlir/include/mlir/IR/AsmState.h
    M mlir/include/mlir/IR/OpDefinition.h
    M mlir/include/mlir/IR/Operation.h
    M mlir/lib/IR/AsmPrinter.cpp
    M mlir/lib/Transforms/LocationSnapshot.cpp

  Log Message:
  -----------
  [mlir] Expose printer flags in AsmState

This change exposes printer flags in AsmState and AsmStateImpl. All functions
receiving AsmState as a parameter now use the flags from the AsmState instead of
taking an additional OpPrintingFlags parameter.

Reviewed By: rriddle

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




More information about the All-commits mailing list