[PATCH] D91932: [TableGen] Eliminte source location from CodeInit

Paul C. Anagnostopoulos via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 22 07:02:35 PST 2020


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

This is the first step in eliminating the 'code' type from TableGen. The CodeInit class, which represents a code value, has a slot for the source location of the code. This patch eliminates that slot.

The only backend that uses this source location is CICombinerEmitter. I reworked it so that it does not use the location.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D91932

Files:
  llvm/docs/TableGen/BackGuide.rst
  llvm/include/llvm/TableGen/Record.h
  llvm/lib/TableGen/Record.cpp
  llvm/lib/TableGen/TGParser.cpp
  llvm/unittests/TableGen/CodeExpanderTest.cpp
  llvm/utils/TableGen/GICombinerEmitter.cpp
  llvm/utils/TableGen/GlobalISel/CodeExpander.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91932.306915.patch
Type: text/x-patch
Size: 11292 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201122/8929288c/attachment.bin>


More information about the llvm-commits mailing list