[PATCH] D78892: [mlir][ODS] Generate setter methods for named operands.

River Riddle via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 26 20:10:59 PDT 2020


rriddle created this revision.
rriddle added reviewers: mehdi_amini, jpienaar.
Herald added subscribers: llvm-commits, Kayjukh, frgossen, grosul1, Joonsoo, liufengdb, aartbik, lucyrfox, mgester, arpith-jacob, nicolasvasilache, antiagainst, shauheen.
Herald added a project: LLVM.

This revision adds generation for setting named operands using the same format as the setters for attributes. These setters have the form:

Optional or Non-Variadic operands:

  void <operand-name>(Value value);

Variadic operands:

  void <operand-name>(ValueRange values);

Depends On D78876 <https://reviews.llvm.org/D78876>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D78892

Files:
  mlir/include/mlir/IR/Operation.h
  mlir/include/mlir/IR/OperationSupport.h
  mlir/include/mlir/IR/UseDefLists.h
  mlir/lib/IR/Operation.cpp
  mlir/lib/IR/OperationSupport.cpp
  mlir/test/mlir-tblgen/op-decl.td
  mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp
  mlir/unittests/IR/OperationSupportTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78892.260200.patch
Type: text/x-patch
Size: 21532 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200427/715e173d/attachment.bin>


More information about the llvm-commits mailing list