Skip to content

Commit

Permalink
[AArch64] Changes missing from cfca977 (#90314)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmatheson-arm committed May 1, 2024
1 parent 987c036 commit 6c369cf
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions clang/lib/Basic/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ add_clang_library(clangBasic
DEPENDS
omp_gen
ClangDriverOptions
# These generated headers are included transitively.
ARMTargetParserTableGen
AArch64TargetParserTableGen
)

target_link_libraries(clangBasic
Expand Down
3 changes: 3 additions & 0 deletions clang/lib/CodeGen/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ add_clang_library(clangCodeGen
DEPENDS
intrinsics_gen
ClangDriverOptions
# These generated headers are included transitively.
ARMTargetParserTableGen
AArch64TargetParserTableGen

LINK_LIBS
clangAST
Expand Down
3 changes: 3 additions & 0 deletions clang/lib/Driver/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ add_clang_library(clangDriver

DEPENDS
ClangDriverOptions
# These generated headers are included transitively.
ARMTargetParserTableGen
AArch64TargetParserTableGen

LINK_LIBS
clangBasic
Expand Down
3 changes: 3 additions & 0 deletions clang/tools/driver/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ add_clang_tool(clang

DEPENDS
intrinsics_gen
# These generated headers are included transitively.
ARMTargetParserTableGen
AArch64TargetParserTableGen
${support_plugins}
GENERATE_DRIVER
)
Expand Down
2 changes: 2 additions & 0 deletions llvm/include/module.install.modulemap
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,7 @@ module LLVM_Extern_Utils_DataTypes {
}

module LLVM_Extern_TargetParser_Gen {
textual header "llvm/TargetParser/ARMTargetParserDef.inc"
textual header "llvm/TargetParser/AArch64TargetParserDef.inc"
textual header "llvm/TargetParser/RISCVTargetParserDef.inc"
}
5 changes: 5 additions & 0 deletions llvm/include/module.modulemap
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,11 @@ extern module LLVM_Extern_Utils_DataTypes "module.extern.modulemap"
// Build the module with the tablegen-generated files needed by the
// TargetParser module before building the TargetParser module itself.
module TargetParserGen {
module AArch64TargetParserDef {
header "llvm/TargetParser/AArch64TargetParser.h"
extern module LLVM_Extern_TargetParser_Gen "module.extern.modulemap"
export *
}
module RISCVTargetParserDef {
header "llvm/TargetParser/RISCVTargetParser.h"
extern module LLVM_Extern_TargetParser_Gen "module.extern.modulemap"
Expand Down

0 comments on commit 6c369cf

Please sign in to comment.