[all-commits] [llvm/llvm-project] 4dba14: [NFC] Refactor TableGen for attributes

Ralender via All-commits all-commits at lists.llvm.org
Sun Feb 2 05:53:49 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 4dba14cf37abda16ab33cb748a5c762dae2e95e9
      https://github.com/llvm/llvm-project/commit/4dba14cf37abda16ab33cb748a5c762dae2e95e9
  Author: Tyker <tyker1 at outlook.com>
  Date:   2020-02-02 (Sun, 02 Feb 2020)

  Changed paths:
    M llvm/include/llvm/IR/Attributes.h
    M llvm/lib/IR/Attributes.cpp
    R llvm/lib/IR/AttributesCompatFunc.td
    M llvm/lib/IR/CMakeLists.txt
    M llvm/lib/IR/Core.cpp
    M llvm/utils/TableGen/Attributes.cpp

  Log Message:
  -----------
  [NFC] Refactor TableGen for attributes

Summary:
this patch makes tablegen generate llvm attributes in a more generic and simpler (at least to me).

changes:  make tablegen generate
...
ATTRIBUTE_ENUM(Alignment,align)
ATTRIBUTE_ENUM(AllocSize,allocsize)
...
which can be used to generate most of what was previously used and more.

Tablegen was also generating attributes from 2 identical files leading to identical output. so I removed one of them and made user use the other.

Reviewers: jdoerfert, thakis, aaron.ballman

Reviewed By: aaron.ballman

Subscribers: mgorny, hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D72455




More information about the All-commits mailing list