Skip to content

Commit

Permalink
Add some dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
amstrnad committed Oct 3, 2019
1 parent 029952f commit 05b44b2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions llvm/include/llvm/IR/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
set(LLVM_TARGET_DEFINITIONS Attributes.td)
tablegen(LLVM Attributes.inc -gen-attrs)
add_public_tablegen_target(attributes_gen)

set(LLVM_TARGET_DEFINITIONS Intrinsics.td)
tablegen(LLVM IntrinsicEnums.inc -gen-intrinsic-enums)
Expand Down
1 change: 1 addition & 0 deletions llvm/include/llvm/module.modulemap
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ module LLVM_Pass {

module LLVM_intrinsic_gen {
requires cplusplus
requires attribute_gen

// Delay building the modules containing dependencies to Attributes.h and
// Intrinsics.h because they need to be generated by tablegen first.
Expand Down
1 change: 1 addition & 0 deletions llvm/lib/IR/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,5 @@ add_llvm_library(LLVMCore

DEPENDS
intrinsics_gen
attributes_gen
)
3 changes: 3 additions & 0 deletions llvm/lib/MC/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ add_llvm_library(LLVMMC

ADDITIONAL_HEADER_DIRS
${LLVM_MAIN_INCLUDE_DIR}/llvm/MC

DEPENDS
attributes_gen
)

add_subdirectory(MCParser)
Expand Down

0 comments on commit 05b44b2

Please sign in to comment.