[all-commits] [llvm/llvm-project] f3502a: [mlir] Allow passing AsmState when printing Attrib...

River Riddle via All-commits all-commits at lists.llvm.org
Tue Sep 6 14:45:38 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f3502afe852693a19848e9e328f2c2a55fc9e9bb
      https://github.com/llvm/llvm-project/commit/f3502afe852693a19848e9e328f2c2a55fc9e9bb
  Author: River Riddle <riddleriver at gmail.com>
  Date:   2022-09-06 (Tue, 06 Sep 2022)

  Changed paths:
    M mlir/include/mlir/IR/AsmState.h
    M mlir/include/mlir/IR/Attributes.h
    M mlir/include/mlir/IR/Types.h
    M mlir/lib/IR/AsmPrinter.cpp

  Log Message:
  -----------
  [mlir] Allow passing AsmState when printing Attributes and Types

This allows for extracting assembly information when printing an attribute
or type, such as the dialect resources referenced. This functionality is used in
a followup that adds resource support to the bytecode. This change also results
in a nice cleanup of AsmPrinter now that we don't need to awkwardly workaround
optional AsmStates.

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




More information about the All-commits mailing list