aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/CMakeLists.txt
diff options
context:
space:
mode:
authorTyker <tyker1@outlook.com>2020-02-02 14:46:50 +0100
committerTyker <tyker1@outlook.com>2020-02-02 14:50:31 +0100
commit4dba14cf37abda16ab33cb748a5c762dae2e95e9 (patch)
treef6a582416a765f16377338bd2092610e7fcb82dd /llvm/lib/IR/CMakeLists.txt
parentd50e188a072deca9d48149e05a05756c474bf569 (diff)
downloadllvm-4dba14cf37abda16ab33cb748a5c762dae2e95e9.zip
llvm-4dba14cf37abda16ab33cb748a5c762dae2e95e9.tar.gz
llvm-4dba14cf37abda16ab33cb748a5c762dae2e95e9.tar.bz2
[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
Diffstat (limited to 'llvm/lib/IR/CMakeLists.txt')
-rw-r--r--llvm/lib/IR/CMakeLists.txt4
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/IR/CMakeLists.txt b/llvm/lib/IR/CMakeLists.txt
index b1fe5e1..1a36acd 100644
--- a/llvm/lib/IR/CMakeLists.txt
+++ b/llvm/lib/IR/CMakeLists.txt
@@ -1,7 +1,3 @@
-set(LLVM_TARGET_DEFINITIONS AttributesCompatFunc.td)
-tablegen(LLVM AttributesCompatFunc.inc -gen-attrs)
-add_public_tablegen_target(AttributeCompatFuncTableGen)
-
add_llvm_component_library(LLVMCore
AbstractCallSite.cpp
AsmWriter.cpp