[all-commits] [llvm/llvm-project] 90736b: [mlir][EmitC] Remove the type from the OpaqueAttr

Marius Brehler via All-commits all-commits at lists.llvm.org
Fri Aug 12 00:14:13 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 90736babcaeb5222ee5ba50a823b7acffdd5a4dd
      https://github.com/llvm/llvm-project/commit/90736babcaeb5222ee5ba50a823b7acffdd5a4dd
  Author: Marius Brehler <marius.brehler at iml.fraunhofer.de>
  Date:   2022-08-12 (Fri, 12 Aug 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/EmitC/IR/EmitC.td
    M mlir/include/mlir/Dialect/EmitC/IR/EmitCAttributes.td
    M mlir/lib/Dialect/EmitC/IR/EmitC.cpp
    M mlir/test/Target/Cpp/const.mlir
    M mlir/test/Target/Cpp/variable.mlir

  Log Message:
  -----------
  [mlir][EmitC] Remove the type from the OpaqueAttr

This removes the type from EmitC's opaque attribute. The value provided
as a StringRefParameter can always be emitted as is. In consquence the
constant and variable ops explicitly need to opaque attributes which are
no longer typed attributes.

Co-authored-by: Simon Camphausen <simon.camphausen at iml.fraunhofer.de>

Reviewed By: Mogball, jpienaar

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




More information about the All-commits mailing list