[all-commits] [llvm/llvm-project] 6aeffc: [TableGen] Add a backend generating SDNode descrip...

Sergei Barannikov via All-commits all-commits at lists.llvm.org
Tue Jan 21 22:01:29 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6aeffcdb913052e43335130e129e36babaa9b252
      https://github.com/llvm/llvm-project/commit/6aeffcdb913052e43335130e129e36babaa9b252
  Author: Sergei Barannikov <barannikov88 at gmail.com>
  Date:   2025-01-22 (Wed, 22 Jan 2025)

  Changed paths:
    M llvm/include/llvm/Target/TargetSelectionDAG.td
    A llvm/test/TableGen/SDNodeInfoEmitter/ambiguous-constraints.td
    A llvm/test/TableGen/SDNodeInfoEmitter/basic.td
    A llvm/test/TableGen/SDNodeInfoEmitter/namespace.td
    A llvm/test/TableGen/SDNodeInfoEmitter/skipped-nodes.td
    M llvm/utils/TableGen/CMakeLists.txt
    M llvm/utils/TableGen/Common/CodeGenDAGPatterns.cpp
    M llvm/utils/TableGen/Common/CodeGenDAGPatterns.h
    A llvm/utils/TableGen/SDNodeInfoEmitter.cpp

  Log Message:
  -----------
  [TableGen] Add a backend generating SDNode descriptions (#123002)

This patch adds a simplistic backend that gathers all target-specific
SelectionDAG nodes and emits descriptions for most of them.

This includes generating node enumeration, node names, and information
about node "prototype" that can be used to verify that a node is valid.

The patch also extends SDNode by adding target-specific flags, which are
also included in the generated tables.

Part of #119709,
[RFC](https://discourse.llvm.org/t/rfc-tablegen-erating-sdnode-descriptions/83627).

Pull Request: https://github.com/llvm/llvm-project/pull/123002



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list