Skip to content

Commit 4d31243

Browse files
committed
Move common files to TabeGenBasic
1 parent 3234b52 commit 4d31243

File tree

9 files changed

+12
-20
lines changed

9 files changed

+12
-20
lines changed
File renamed without changes.

llvm/utils/TableGen/Basic/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,15 @@ set(LLVM_LINK_COMPONENTS
99
)
1010

1111
add_llvm_library(LLVMTableGenBasic OBJECT EXCLUDE_FROM_ALL DISABLE_LLVM_LINK_LLVM_DYLIB
12+
ARMTargetDefEmitter.cpp
13+
Attributes.cpp
1214
CodeGenIntrinsics.cpp
15+
DirectiveEmitter.cpp
16+
IntrinsicEmitter.cpp
17+
RISCVTargetDefEmitter.cpp
1318
SDNodeProperties.cpp
19+
TableGen.cpp
20+
VTEmitter.cpp
1421
)
1522

1623
# Users may include its headers as "Basic/*.h"

llvm/utils/TableGen/IntrinsicEmitter.cpp renamed to llvm/utils/TableGen/Basic/IntrinsicEmitter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
#include "Basic/CodeGenIntrinsics.h"
14-
#include "Basic/SequenceToOffsetTable.h"
13+
#include "CodeGenIntrinsics.h"
14+
#include "SequenceToOffsetTable.h"
1515
#include "llvm/ADT/STLExtras.h"
1616
#include "llvm/ADT/SmallVector.h"
1717
#include "llvm/ADT/StringRef.h"
File renamed without changes.
File renamed without changes.

llvm/utils/TableGen/CMakeLists.txt

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,14 @@ add_subdirectory(Basic)
55
# code needed by the backends.
66
add_subdirectory(Common)
77

8-
set(LLVM_LINK_COMPONENTS Support)
9-
10-
# Sources included in llvm-min-tblgen and llvm-tblgen.
11-
add_llvm_library(LLVMTableGenBoth OBJECT EXCLUDE_FROM_ALL DISABLE_LLVM_LINK_LLVM_DYLIB
12-
TableGen.cpp
13-
ARMTargetDefEmitter.cpp
14-
Attributes.cpp
15-
DirectiveEmitter.cpp
16-
IntrinsicEmitter.cpp
17-
RISCVTargetDefEmitter.cpp
18-
VTEmitter.cpp
19-
20-
PARTIAL_SOURCES_INTENDED
21-
)
22-
238
# llvm-min-tablegen only contains a subset of backends necessary to
249
# build llvm/include. It must not depend on TableGenCommon, as
2510
# TableGenCommon depends on this already to generate things such as
2611
# ValueType definitions.
12+
# Sources included in both, llvm-min-tblgen and llvm-tblgen, must be included
13+
# into LLVMTableGenBasic to avoid redundant compilation and problems with build
14+
# caches.
2715
add_tablegen(llvm-min-tblgen LLVM_HEADERS
28-
$<TARGET_OBJECTS:obj.LLVMTableGenBoth>
2916
$<TARGET_OBJECTS:obj.LLVMTableGenBasic>
3017

3118
PARTIAL_SOURCES_INTENDED
@@ -76,8 +63,6 @@ add_tablegen(llvm-tblgen LLVM
7663
X86MnemonicTables.cpp
7764
X86ModRMFilters.cpp
7865
X86RecognizableInstr.cpp
79-
80-
$<TARGET_OBJECTS:obj.LLVMTableGenBoth>
8166
$<TARGET_OBJECTS:obj.LLVMTableGenBasic>
8267
$<TARGET_OBJECTS:obj.LLVMTableGenCommon>
8368

0 commit comments

Comments
 (0)