[PATCH] D91008: [TableGen] Add the !filter bang operator.

Paul C. Anagnostopoulos via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Nov 7 10:26:41 PST 2020


Paul-C-Anagnostopoulos created this revision.
Paul-C-Anagnostopoulos added reviewers: lattner, nhaehnle, madhur13490, tstellar, majnemer.
Herald added subscribers: llvm-commits, kerbowa, hiraditya, jvesely, arsenm, jholewinski.
Herald added a project: LLVM.
Paul-C-Anagnostopoulos requested review of this revision.

I added the !filter bang operator to simplify various !foldl expressions and to improve efficiency. It eliminates all the intermediate list concatenations required when using !foldl.

I updated the Programmer's Reference and wrote a test.

I used the new operator in various .td files.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D91008

Files:
  llvm/docs/TableGen/ProgRef.rst
  llvm/include/llvm/IR/IntrinsicsNVVM.td
  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/TableGen/TGParser.h
  llvm/lib/Target/AMDGPU/AMDGPUInstructions.td
  llvm/lib/Target/AMDGPU/MIMGInstructions.td
  llvm/lib/Target/AMDGPU/SIRegisterInfo.td
  llvm/test/TableGen/filter.td

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91008.303654.patch
Type: text/x-patch
Size: 21921 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201107/9c9af30e/attachment.bin>


More information about the llvm-commits mailing list