[all-commits] [llvm/llvm-project] 239777: [mlir][emitc] Add literal constant.

Jacques Pienaar via All-commits all-commits at lists.llvm.org
Sat Jul 29 12:27:39 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 239777c8616a614531bed68fff2eaa0c97721cb3
      https://github.com/llvm/llvm-project/commit/239777c8616a614531bed68fff2eaa0c97721cb3
  Author: Jacques Pienaar <jpienaar at google.com>
  Date:   2023-07-29 (Sat, 29 Jul 2023)

  Changed paths:
    M mlir/include/mlir/Dialect/EmitC/IR/EmitC.td
    M mlir/lib/Dialect/EmitC/IR/EmitC.cpp
    M mlir/lib/Target/Cpp/TranslateToCpp.cpp
    M mlir/test/Target/Cpp/for.mlir

  Log Message:
  -----------
  [mlir][emitc] Add literal constant.

A literal constant is not emitted as a variable but rather printed inline. The
form used is same as the Attribute emission form.

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




More information about the All-commits mailing list