[PATCH] D90469: [TableGen] Add !adjoin operator to adjoin a list of values with delimiters

Paul C. Anagnostopoulos via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 30 08:34:17 PDT 2020


Paul-C-Anagnostopoulos created this revision.
Paul-C-Anagnostopoulos added reviewers: lattner, nhaehnle, madhur13490, tstellar, jholewinski.
Herald added subscribers: llvm-commits, rdzhabarov, tatianashp, msifontes, jurahul, Kayjukh, grosul1, Joonsoo, kerbowa, liufengdb, aartbik, lucyrfox, mgester, arpith-jacob, csigg, antiagainst, shauheen, rriddle, mehdi_amini, arphaman, hiraditya, jvesely, arsenm.
Herald added a reviewer: rriddle.
Herald added a reviewer: antiagainst.
Herald added projects: MLIR, LLVM.
Paul-C-Anagnostopoulos requested review of this revision.
Herald added subscribers: stephenneuendorffer, nicolasvasilache, jdoerfert.
Herald added a reviewer: nicolasvasilache.

This patch adds the !adjoin bang operator. It takes a list of string or int/bits/bit and concatenates them with a specified delimiter in between each pair. I updated the documentation to describe it.

I added a test for it.

I modified some TableGen files to make use of it.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D90469

Files:
  llvm/docs/CommandGuide/tblgen.rst
  llvm/docs/TableGen/ProgRef.rst
  llvm/docs/TableGen/index.rst
  llvm/include/llvm/TableGen/Record.h
  llvm/lib/TableGen/Record.cpp
  llvm/lib/TableGen/TGLexer.cpp
  llvm/lib/TableGen/TGLexer.h
  llvm/lib/TableGen/TGParser.cpp
  llvm/lib/Target/AMDGPU/MIMGInstructions.td
  llvm/lib/Target/NVPTX/NVPTXIntrinsics.td
  llvm/test/TableGen/adjoin.td
  mlir/include/mlir/IR/OpBase.td
  mlir/lib/Dialect/Linalg/EDSC/Builders.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90469.301910.patch
Type: text/x-patch
Size: 17907 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201030/b289063b/attachment.bin>


More information about the llvm-commits mailing list