[PATCH] D93911: [TableGen] Add the assert statement, step 1

Paul C. Anagnostopoulos via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 29 12:06:38 PST 2020


Paul-C-Anagnostopoulos created this revision.
Paul-C-Anagnostopoulos added reviewers: lattner, madhur13490, dblaikie, jansvoboda11.
Herald added a subscriber: hiraditya.
Paul-C-Anagnostopoulos requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This first step adds the assert statement and supports it at top level and in record definitions. Later steps will support it in class definitions and multiclasses.

I described it in the TableGen Programmer's Reference and added a test.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D93911

Files:
  llvm/docs/TableGen/ProgRef.rst
  llvm/include/llvm/TableGen/Record.h
  llvm/lib/TableGen/TGLexer.cpp
  llvm/lib/TableGen/TGLexer.h
  llvm/lib/TableGen/TGParser.cpp
  llvm/lib/TableGen/TGParser.h
  llvm/test/TableGen/assert.td

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D93911.313998.patch
Type: text/x-patch
Size: 15902 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201229/4527e12a/attachment.bin>


More information about the llvm-commits mailing list