Skip to content

Commit

Permalink
[DPWBS-1409] Re-organize the GlobalISel CMake tablegen logic.
Browse files Browse the repository at this point in the history
Prviously whenerver a new pattern was added, all files including one of the
TriCorGen* headers needed to be re-compiled. Instead, include the instruction
definitions in the GlobalISel files.

This should not have any functional change apart from the improved build times.
  • Loading branch information
konstantinschwarz committed Mar 23, 2020
1 parent 69d8541 commit bdf6385
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion llvm/lib/Target/TriCore/CMakeLists.txt
Expand Up @@ -6,12 +6,14 @@ tablegen(LLVM TriCoreGenMCCodeEmitter.inc -gen-emitter)
tablegen(LLVM TriCoreGenAsmMatcher.inc -gen-asm-matcher)
tablegen(LLVM TriCoreGenAsmWriter.inc -gen-asm-writer)
tablegen(LLVM TriCoreGenSubtargetInfo.inc -gen-subtarget)
tablegen(LLVM TriCoreGenGlobalISel.inc -gen-global-isel)
tablegen(LLVM TriCoreGenRegisterBank.inc -gen-register-bank)
tablegen(LLVM TriCoreGenCallingConv.inc -gen-callingconv)
tablegen(LLVM TriCoreGenDisassemblerTables.inc -gen-disassembler)
tablegen(LLVM TriCoreGenSystemOperands.inc -gen-searchable-tables)

set(LLVM_TARGET_DEFINITIONS TriCoreGISelPattern.td)
tablegen(LLVM TriCoreGenGlobalISel.inc -gen-global-isel)

add_public_tablegen_target(TriCoreCommonTableGen)

add_llvm_target(TriCoreCodeGen
Expand Down
1 change: 0 additions & 1 deletion llvm/lib/Target/TriCore/TriCore.td
Expand Up @@ -43,7 +43,6 @@ include "TriCoreCallingConv.td"
//===----------------------------------------------------------------------===//

include "TriCoreInstrInfo.td"
include "TriCoreGISelPattern.td"

def TriCoreInstrInfo : InstrInfo;

Expand Down
2 changes: 2 additions & 0 deletions llvm/lib/Target/TriCore/TriCoreGISelPattern.td
Expand Up @@ -10,6 +10,8 @@
//
//===----------------------------------------------------------------------===//

include "TriCore.td"

//===----------------------------------------------------------------------===//
// Helper
//===----------------------------------------------------------------------===//
Expand Down

0 comments on commit bdf6385

Please sign in to comment.