aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/llvm12/lib/Target
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.com>2022-12-15 19:25:15 +0300
committerthegeorg <thegeorg@yandex-team.com>2022-12-15 19:25:15 +0300
commit0c31d97afd7858af5f8f858c8addf91655ca9ccc (patch)
tree4d8a246db168f7beaafcd06d486c034115c2123d /contrib/libs/llvm12/lib/Target
parentd1d5f5e00df0dd6efc00880dd8283477fc643aaf (diff)
downloadydb-0c31d97afd7858af5f8f858c8addf91655ca9ccc.tar.gz
Sync linux-headers instead of using system ones
Diffstat (limited to 'contrib/libs/llvm12/lib/Target')
-rw-r--r--contrib/libs/llvm12/lib/Target/CMakeLists.darwin.txt33
-rw-r--r--contrib/libs/llvm12/lib/Target/CMakeLists.linux-aarch64.txt34
-rw-r--r--contrib/libs/llvm12/lib/Target/CMakeLists.linux.txt34
-rw-r--r--contrib/libs/llvm12/lib/Target/CMakeLists.txt32
-rw-r--r--contrib/libs/llvm12/lib/Target/X86/AsmParser/CMakeLists.darwin.txt31
-rw-r--r--contrib/libs/llvm12/lib/Target/X86/AsmParser/CMakeLists.linux-aarch64.txt32
-rw-r--r--contrib/libs/llvm12/lib/Target/X86/AsmParser/CMakeLists.linux.txt32
-rw-r--r--contrib/libs/llvm12/lib/Target/X86/AsmParser/CMakeLists.txt30
-rw-r--r--contrib/libs/llvm12/lib/Target/X86/CMakeLists.darwin.txt96
-rw-r--r--contrib/libs/llvm12/lib/Target/X86/CMakeLists.linux-aarch64.txt97
-rw-r--r--contrib/libs/llvm12/lib/Target/X86/CMakeLists.linux.txt97
-rw-r--r--contrib/libs/llvm12/lib/Target/X86/CMakeLists.txt95
-rw-r--r--contrib/libs/llvm12/lib/Target/X86/Disassembler/CMakeLists.darwin.txt29
-rw-r--r--contrib/libs/llvm12/lib/Target/X86/Disassembler/CMakeLists.linux-aarch64.txt30
-rw-r--r--contrib/libs/llvm12/lib/Target/X86/Disassembler/CMakeLists.linux.txt30
-rw-r--r--contrib/libs/llvm12/lib/Target/X86/Disassembler/CMakeLists.txt28
-rw-r--r--contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/CMakeLists.darwin.txt44
-rw-r--r--contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/CMakeLists.linux-aarch64.txt45
-rw-r--r--contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/CMakeLists.linux.txt45
-rw-r--r--contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/CMakeLists.txt43
-rw-r--r--contrib/libs/llvm12/lib/Target/X86/TargetInfo/CMakeLists.darwin.txt25
-rw-r--r--contrib/libs/llvm12/lib/Target/X86/TargetInfo/CMakeLists.linux-aarch64.txt26
-rw-r--r--contrib/libs/llvm12/lib/Target/X86/TargetInfo/CMakeLists.linux.txt26
-rw-r--r--contrib/libs/llvm12/lib/Target/X86/TargetInfo/CMakeLists.txt24
24 files changed, 828 insertions, 210 deletions
diff --git a/contrib/libs/llvm12/lib/Target/CMakeLists.darwin.txt b/contrib/libs/llvm12/lib/Target/CMakeLists.darwin.txt
new file mode 100644
index 0000000000..a2d54963f0
--- /dev/null
+++ b/contrib/libs/llvm12/lib/Target/CMakeLists.darwin.txt
@@ -0,0 +1,33 @@
+
+# This file was gererated by the build system used internally in the Yandex monorepo.
+# Only simple modifications are allowed (adding source-files to targets, adding simple properties
+# like target_include_directories). These modifications will be ported to original
+# ya.make files by maintainers. Any complex modifications which can't be ported back to the
+# original buildsystem will not be accepted.
+
+
+add_subdirectory(X86)
+
+add_library(llvm12-lib-Target)
+target_compile_options(llvm12-lib-Target PRIVATE
+ -Wno-everything
+)
+target_include_directories(llvm12-lib-Target PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target
+)
+target_link_libraries(llvm12-lib-Target PUBLIC
+ contrib-libs-cxxsupp
+ contrib-libs-llvm12
+ libs-llvm12-include
+ llvm12-lib-Analysis
+ llvm12-lib-IR
+ llvm12-lib-MC
+ llvm12-lib-Support
+)
+target_sources(llvm12-lib-Target PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/Target.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/TargetIntrinsicInfo.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/TargetLoweringObjectFile.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/TargetMachine.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/TargetMachineC.cpp
+)
diff --git a/contrib/libs/llvm12/lib/Target/CMakeLists.linux-aarch64.txt b/contrib/libs/llvm12/lib/Target/CMakeLists.linux-aarch64.txt
new file mode 100644
index 0000000000..ec3a2a9755
--- /dev/null
+++ b/contrib/libs/llvm12/lib/Target/CMakeLists.linux-aarch64.txt
@@ -0,0 +1,34 @@
+
+# This file was gererated by the build system used internally in the Yandex monorepo.
+# Only simple modifications are allowed (adding source-files to targets, adding simple properties
+# like target_include_directories). These modifications will be ported to original
+# ya.make files by maintainers. Any complex modifications which can't be ported back to the
+# original buildsystem will not be accepted.
+
+
+add_subdirectory(X86)
+
+add_library(llvm12-lib-Target)
+target_compile_options(llvm12-lib-Target PRIVATE
+ -Wno-everything
+)
+target_include_directories(llvm12-lib-Target PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target
+)
+target_link_libraries(llvm12-lib-Target PUBLIC
+ contrib-libs-linux-headers
+ contrib-libs-cxxsupp
+ contrib-libs-llvm12
+ libs-llvm12-include
+ llvm12-lib-Analysis
+ llvm12-lib-IR
+ llvm12-lib-MC
+ llvm12-lib-Support
+)
+target_sources(llvm12-lib-Target PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/Target.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/TargetIntrinsicInfo.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/TargetLoweringObjectFile.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/TargetMachine.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/TargetMachineC.cpp
+)
diff --git a/contrib/libs/llvm12/lib/Target/CMakeLists.linux.txt b/contrib/libs/llvm12/lib/Target/CMakeLists.linux.txt
new file mode 100644
index 0000000000..ec3a2a9755
--- /dev/null
+++ b/contrib/libs/llvm12/lib/Target/CMakeLists.linux.txt
@@ -0,0 +1,34 @@
+
+# This file was gererated by the build system used internally in the Yandex monorepo.
+# Only simple modifications are allowed (adding source-files to targets, adding simple properties
+# like target_include_directories). These modifications will be ported to original
+# ya.make files by maintainers. Any complex modifications which can't be ported back to the
+# original buildsystem will not be accepted.
+
+
+add_subdirectory(X86)
+
+add_library(llvm12-lib-Target)
+target_compile_options(llvm12-lib-Target PRIVATE
+ -Wno-everything
+)
+target_include_directories(llvm12-lib-Target PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target
+)
+target_link_libraries(llvm12-lib-Target PUBLIC
+ contrib-libs-linux-headers
+ contrib-libs-cxxsupp
+ contrib-libs-llvm12
+ libs-llvm12-include
+ llvm12-lib-Analysis
+ llvm12-lib-IR
+ llvm12-lib-MC
+ llvm12-lib-Support
+)
+target_sources(llvm12-lib-Target PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/Target.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/TargetIntrinsicInfo.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/TargetLoweringObjectFile.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/TargetMachine.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/TargetMachineC.cpp
+)
diff --git a/contrib/libs/llvm12/lib/Target/CMakeLists.txt b/contrib/libs/llvm12/lib/Target/CMakeLists.txt
index a2d54963f0..3e0811fb22 100644
--- a/contrib/libs/llvm12/lib/Target/CMakeLists.txt
+++ b/contrib/libs/llvm12/lib/Target/CMakeLists.txt
@@ -6,28 +6,10 @@
# original buildsystem will not be accepted.
-add_subdirectory(X86)
-
-add_library(llvm12-lib-Target)
-target_compile_options(llvm12-lib-Target PRIVATE
- -Wno-everything
-)
-target_include_directories(llvm12-lib-Target PRIVATE
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target
-)
-target_link_libraries(llvm12-lib-Target PUBLIC
- contrib-libs-cxxsupp
- contrib-libs-llvm12
- libs-llvm12-include
- llvm12-lib-Analysis
- llvm12-lib-IR
- llvm12-lib-MC
- llvm12-lib-Support
-)
-target_sources(llvm12-lib-Target PRIVATE
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/Target.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/TargetIntrinsicInfo.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/TargetLoweringObjectFile.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/TargetMachine.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/TargetMachineC.cpp
-)
+if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID)
+ include(CMakeLists.linux-aarch64.txt)
+elseif (APPLE)
+ include(CMakeLists.darwin.txt)
+elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID)
+ include(CMakeLists.linux.txt)
+endif()
diff --git a/contrib/libs/llvm12/lib/Target/X86/AsmParser/CMakeLists.darwin.txt b/contrib/libs/llvm12/lib/Target/X86/AsmParser/CMakeLists.darwin.txt
new file mode 100644
index 0000000000..a13f4c42a2
--- /dev/null
+++ b/contrib/libs/llvm12/lib/Target/X86/AsmParser/CMakeLists.darwin.txt
@@ -0,0 +1,31 @@
+
+# This file was gererated by the build system used internally in the Yandex monorepo.
+# Only simple modifications are allowed (adding source-files to targets, adding simple properties
+# like target_include_directories). These modifications will be ported to original
+# ya.make files by maintainers. Any complex modifications which can't be ported back to the
+# original buildsystem will not be accepted.
+
+
+
+add_library(Target-X86-AsmParser)
+target_compile_options(Target-X86-AsmParser PRIVATE
+ -Wno-everything
+)
+target_include_directories(Target-X86-AsmParser PRIVATE
+ ${CMAKE_BINARY_DIR}/contrib/libs/llvm12/lib/Target/X86
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/AsmParser
+)
+target_link_libraries(Target-X86-AsmParser PUBLIC
+ contrib-libs-cxxsupp
+ contrib-libs-llvm12
+ libs-llvm12-include
+ llvm12-lib-MC
+ lib-MC-MCParser
+ llvm12-lib-Support
+ Target-X86-MCTargetDesc
+ Target-X86-TargetInfo
+)
+target_sources(Target-X86-AsmParser PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/AsmParser/X86AsmParser.cpp
+)
diff --git a/contrib/libs/llvm12/lib/Target/X86/AsmParser/CMakeLists.linux-aarch64.txt b/contrib/libs/llvm12/lib/Target/X86/AsmParser/CMakeLists.linux-aarch64.txt
new file mode 100644
index 0000000000..7073a50558
--- /dev/null
+++ b/contrib/libs/llvm12/lib/Target/X86/AsmParser/CMakeLists.linux-aarch64.txt
@@ -0,0 +1,32 @@
+
+# This file was gererated by the build system used internally in the Yandex monorepo.
+# Only simple modifications are allowed (adding source-files to targets, adding simple properties
+# like target_include_directories). These modifications will be ported to original
+# ya.make files by maintainers. Any complex modifications which can't be ported back to the
+# original buildsystem will not be accepted.
+
+
+
+add_library(Target-X86-AsmParser)
+target_compile_options(Target-X86-AsmParser PRIVATE
+ -Wno-everything
+)
+target_include_directories(Target-X86-AsmParser PRIVATE
+ ${CMAKE_BINARY_DIR}/contrib/libs/llvm12/lib/Target/X86
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/AsmParser
+)
+target_link_libraries(Target-X86-AsmParser PUBLIC
+ contrib-libs-linux-headers
+ contrib-libs-cxxsupp
+ contrib-libs-llvm12
+ libs-llvm12-include
+ llvm12-lib-MC
+ lib-MC-MCParser
+ llvm12-lib-Support
+ Target-X86-MCTargetDesc
+ Target-X86-TargetInfo
+)
+target_sources(Target-X86-AsmParser PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/AsmParser/X86AsmParser.cpp
+)
diff --git a/contrib/libs/llvm12/lib/Target/X86/AsmParser/CMakeLists.linux.txt b/contrib/libs/llvm12/lib/Target/X86/AsmParser/CMakeLists.linux.txt
new file mode 100644
index 0000000000..7073a50558
--- /dev/null
+++ b/contrib/libs/llvm12/lib/Target/X86/AsmParser/CMakeLists.linux.txt
@@ -0,0 +1,32 @@
+
+# This file was gererated by the build system used internally in the Yandex monorepo.
+# Only simple modifications are allowed (adding source-files to targets, adding simple properties
+# like target_include_directories). These modifications will be ported to original
+# ya.make files by maintainers. Any complex modifications which can't be ported back to the
+# original buildsystem will not be accepted.
+
+
+
+add_library(Target-X86-AsmParser)
+target_compile_options(Target-X86-AsmParser PRIVATE
+ -Wno-everything
+)
+target_include_directories(Target-X86-AsmParser PRIVATE
+ ${CMAKE_BINARY_DIR}/contrib/libs/llvm12/lib/Target/X86
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/AsmParser
+)
+target_link_libraries(Target-X86-AsmParser PUBLIC
+ contrib-libs-linux-headers
+ contrib-libs-cxxsupp
+ contrib-libs-llvm12
+ libs-llvm12-include
+ llvm12-lib-MC
+ lib-MC-MCParser
+ llvm12-lib-Support
+ Target-X86-MCTargetDesc
+ Target-X86-TargetInfo
+)
+target_sources(Target-X86-AsmParser PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/AsmParser/X86AsmParser.cpp
+)
diff --git a/contrib/libs/llvm12/lib/Target/X86/AsmParser/CMakeLists.txt b/contrib/libs/llvm12/lib/Target/X86/AsmParser/CMakeLists.txt
index a13f4c42a2..3e0811fb22 100644
--- a/contrib/libs/llvm12/lib/Target/X86/AsmParser/CMakeLists.txt
+++ b/contrib/libs/llvm12/lib/Target/X86/AsmParser/CMakeLists.txt
@@ -6,26 +6,10 @@
# original buildsystem will not be accepted.
-
-add_library(Target-X86-AsmParser)
-target_compile_options(Target-X86-AsmParser PRIVATE
- -Wno-everything
-)
-target_include_directories(Target-X86-AsmParser PRIVATE
- ${CMAKE_BINARY_DIR}/contrib/libs/llvm12/lib/Target/X86
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/AsmParser
-)
-target_link_libraries(Target-X86-AsmParser PUBLIC
- contrib-libs-cxxsupp
- contrib-libs-llvm12
- libs-llvm12-include
- llvm12-lib-MC
- lib-MC-MCParser
- llvm12-lib-Support
- Target-X86-MCTargetDesc
- Target-X86-TargetInfo
-)
-target_sources(Target-X86-AsmParser PRIVATE
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/AsmParser/X86AsmParser.cpp
-)
+if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID)
+ include(CMakeLists.linux-aarch64.txt)
+elseif (APPLE)
+ include(CMakeLists.darwin.txt)
+elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID)
+ include(CMakeLists.linux.txt)
+endif()
diff --git a/contrib/libs/llvm12/lib/Target/X86/CMakeLists.darwin.txt b/contrib/libs/llvm12/lib/Target/X86/CMakeLists.darwin.txt
new file mode 100644
index 0000000000..ed1fc6d50e
--- /dev/null
+++ b/contrib/libs/llvm12/lib/Target/X86/CMakeLists.darwin.txt
@@ -0,0 +1,96 @@
+
+# This file was gererated by the build system used internally in the Yandex monorepo.
+# Only simple modifications are allowed (adding source-files to targets, adding simple properties
+# like target_include_directories). These modifications will be ported to original
+# ya.make files by maintainers. Any complex modifications which can't be ported back to the
+# original buildsystem will not be accepted.
+
+
+add_subdirectory(AsmParser)
+add_subdirectory(Disassembler)
+add_subdirectory(MCTargetDesc)
+add_subdirectory(TargetInfo)
+
+add_library(lib-Target-X86)
+target_compile_options(lib-Target-X86 PRIVATE
+ -Wno-everything
+)
+target_include_directories(lib-Target-X86 PRIVATE
+ ${CMAKE_BINARY_DIR}/contrib/libs/llvm12/lib/Target/X86
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86
+)
+target_link_libraries(lib-Target-X86 PUBLIC
+ contrib-libs-cxxsupp
+ contrib-libs-llvm12
+ libs-llvm12-include
+ llvm12-lib-Analysis
+ llvm12-lib-CodeGen
+ lib-CodeGen-AsmPrinter
+ lib-CodeGen-GlobalISel
+ lib-CodeGen-SelectionDAG
+ llvm12-lib-IR
+ llvm12-lib-MC
+ llvm12-lib-ProfileData
+ llvm12-lib-Support
+ llvm12-lib-Target
+ Target-X86-MCTargetDesc
+ Target-X86-TargetInfo
+ lib-Transforms-CFGuard
+)
+target_sources(lib-Target-X86 PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86AsmPrinter.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86AvoidStoreForwardingBlocks.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86AvoidTrailingCall.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86CallFrameOptimization.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86CallLowering.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86CallingConv.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86CmovConversion.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86DiscriminateMemOps.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86DomainReassignment.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86EvexToVex.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86ExpandPseudo.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86FastISel.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86FixupBWInsts.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86FixupLEAs.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86FixupSetCC.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86FlagsCopyLowering.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86FloatingPoint.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86FrameLowering.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86ISelDAGToDAG.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86ISelLowering.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86IndirectBranchTracking.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86IndirectThunks.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86InsertPrefetch.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86InsertWait.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86InstCombineIntrinsic.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86InstrFMA3Info.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86InstrFoldTables.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86InstrInfo.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86InstructionSelector.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86InterleavedAccess.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86LegalizerInfo.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86LoadValueInjectionLoadHardening.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86LoadValueInjectionRetHardening.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86LowerAMXType.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86MCInstLower.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86MachineFunctionInfo.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86MacroFusion.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86OptimizeLEAs.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86PadShortFunction.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86PartialReduction.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86PreTileConfig.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86RegisterBankInfo.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86RegisterInfo.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86SelectionDAGInfo.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86ShuffleDecodeConstantPool.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86SpeculativeExecutionSideEffectSuppression.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86SpeculativeLoadHardening.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86Subtarget.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86TargetMachine.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86TargetObjectFile.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86TargetTransformInfo.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86TileConfig.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86VZeroUpper.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86WinAllocaExpander.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86WinEHState.cpp
+)
diff --git a/contrib/libs/llvm12/lib/Target/X86/CMakeLists.linux-aarch64.txt b/contrib/libs/llvm12/lib/Target/X86/CMakeLists.linux-aarch64.txt
new file mode 100644
index 0000000000..b8ee2adf0c
--- /dev/null
+++ b/contrib/libs/llvm12/lib/Target/X86/CMakeLists.linux-aarch64.txt
@@ -0,0 +1,97 @@
+
+# This file was gererated by the build system used internally in the Yandex monorepo.
+# Only simple modifications are allowed (adding source-files to targets, adding simple properties
+# like target_include_directories). These modifications will be ported to original
+# ya.make files by maintainers. Any complex modifications which can't be ported back to the
+# original buildsystem will not be accepted.
+
+
+add_subdirectory(AsmParser)
+add_subdirectory(Disassembler)
+add_subdirectory(MCTargetDesc)
+add_subdirectory(TargetInfo)
+
+add_library(lib-Target-X86)
+target_compile_options(lib-Target-X86 PRIVATE
+ -Wno-everything
+)
+target_include_directories(lib-Target-X86 PRIVATE
+ ${CMAKE_BINARY_DIR}/contrib/libs/llvm12/lib/Target/X86
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86
+)
+target_link_libraries(lib-Target-X86 PUBLIC
+ contrib-libs-linux-headers
+ contrib-libs-cxxsupp
+ contrib-libs-llvm12
+ libs-llvm12-include
+ llvm12-lib-Analysis
+ llvm12-lib-CodeGen
+ lib-CodeGen-AsmPrinter
+ lib-CodeGen-GlobalISel
+ lib-CodeGen-SelectionDAG
+ llvm12-lib-IR
+ llvm12-lib-MC
+ llvm12-lib-ProfileData
+ llvm12-lib-Support
+ llvm12-lib-Target
+ Target-X86-MCTargetDesc
+ Target-X86-TargetInfo
+ lib-Transforms-CFGuard
+)
+target_sources(lib-Target-X86 PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86AsmPrinter.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86AvoidStoreForwardingBlocks.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86AvoidTrailingCall.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86CallFrameOptimization.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86CallLowering.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86CallingConv.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86CmovConversion.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86DiscriminateMemOps.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86DomainReassignment.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86EvexToVex.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86ExpandPseudo.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86FastISel.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86FixupBWInsts.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86FixupLEAs.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86FixupSetCC.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86FlagsCopyLowering.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86FloatingPoint.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86FrameLowering.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86ISelDAGToDAG.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86ISelLowering.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86IndirectBranchTracking.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86IndirectThunks.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86InsertPrefetch.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86InsertWait.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86InstCombineIntrinsic.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86InstrFMA3Info.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86InstrFoldTables.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86InstrInfo.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86InstructionSelector.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86InterleavedAccess.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86LegalizerInfo.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86LoadValueInjectionLoadHardening.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86LoadValueInjectionRetHardening.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86LowerAMXType.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86MCInstLower.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86MachineFunctionInfo.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86MacroFusion.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86OptimizeLEAs.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86PadShortFunction.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86PartialReduction.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86PreTileConfig.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86RegisterBankInfo.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86RegisterInfo.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86SelectionDAGInfo.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86ShuffleDecodeConstantPool.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86SpeculativeExecutionSideEffectSuppression.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86SpeculativeLoadHardening.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86Subtarget.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86TargetMachine.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86TargetObjectFile.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86TargetTransformInfo.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86TileConfig.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86VZeroUpper.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86WinAllocaExpander.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86WinEHState.cpp
+)
diff --git a/contrib/libs/llvm12/lib/Target/X86/CMakeLists.linux.txt b/contrib/libs/llvm12/lib/Target/X86/CMakeLists.linux.txt
new file mode 100644
index 0000000000..b8ee2adf0c
--- /dev/null
+++ b/contrib/libs/llvm12/lib/Target/X86/CMakeLists.linux.txt
@@ -0,0 +1,97 @@
+
+# This file was gererated by the build system used internally in the Yandex monorepo.
+# Only simple modifications are allowed (adding source-files to targets, adding simple properties
+# like target_include_directories). These modifications will be ported to original
+# ya.make files by maintainers. Any complex modifications which can't be ported back to the
+# original buildsystem will not be accepted.
+
+
+add_subdirectory(AsmParser)
+add_subdirectory(Disassembler)
+add_subdirectory(MCTargetDesc)
+add_subdirectory(TargetInfo)
+
+add_library(lib-Target-X86)
+target_compile_options(lib-Target-X86 PRIVATE
+ -Wno-everything
+)
+target_include_directories(lib-Target-X86 PRIVATE
+ ${CMAKE_BINARY_DIR}/contrib/libs/llvm12/lib/Target/X86
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86
+)
+target_link_libraries(lib-Target-X86 PUBLIC
+ contrib-libs-linux-headers
+ contrib-libs-cxxsupp
+ contrib-libs-llvm12
+ libs-llvm12-include
+ llvm12-lib-Analysis
+ llvm12-lib-CodeGen
+ lib-CodeGen-AsmPrinter
+ lib-CodeGen-GlobalISel
+ lib-CodeGen-SelectionDAG
+ llvm12-lib-IR
+ llvm12-lib-MC
+ llvm12-lib-ProfileData
+ llvm12-lib-Support
+ llvm12-lib-Target
+ Target-X86-MCTargetDesc
+ Target-X86-TargetInfo
+ lib-Transforms-CFGuard
+)
+target_sources(lib-Target-X86 PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86AsmPrinter.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86AvoidStoreForwardingBlocks.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86AvoidTrailingCall.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86CallFrameOptimization.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86CallLowering.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86CallingConv.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86CmovConversion.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86DiscriminateMemOps.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86DomainReassignment.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86EvexToVex.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86ExpandPseudo.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86FastISel.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86FixupBWInsts.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86FixupLEAs.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86FixupSetCC.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86FlagsCopyLowering.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86FloatingPoint.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86FrameLowering.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86ISelDAGToDAG.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86ISelLowering.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86IndirectBranchTracking.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86IndirectThunks.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86InsertPrefetch.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86InsertWait.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86InstCombineIntrinsic.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86InstrFMA3Info.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86InstrFoldTables.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86InstrInfo.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86InstructionSelector.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86InterleavedAccess.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86LegalizerInfo.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86LoadValueInjectionLoadHardening.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86LoadValueInjectionRetHardening.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86LowerAMXType.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86MCInstLower.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86MachineFunctionInfo.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86MacroFusion.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86OptimizeLEAs.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86PadShortFunction.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86PartialReduction.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86PreTileConfig.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86RegisterBankInfo.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86RegisterInfo.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86SelectionDAGInfo.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86ShuffleDecodeConstantPool.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86SpeculativeExecutionSideEffectSuppression.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86SpeculativeLoadHardening.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86Subtarget.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86TargetMachine.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86TargetObjectFile.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86TargetTransformInfo.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86TileConfig.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86VZeroUpper.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86WinAllocaExpander.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86WinEHState.cpp
+)
diff --git a/contrib/libs/llvm12/lib/Target/X86/CMakeLists.txt b/contrib/libs/llvm12/lib/Target/X86/CMakeLists.txt
index ed1fc6d50e..3e0811fb22 100644
--- a/contrib/libs/llvm12/lib/Target/X86/CMakeLists.txt
+++ b/contrib/libs/llvm12/lib/Target/X86/CMakeLists.txt
@@ -6,91 +6,10 @@
# original buildsystem will not be accepted.
-add_subdirectory(AsmParser)
-add_subdirectory(Disassembler)
-add_subdirectory(MCTargetDesc)
-add_subdirectory(TargetInfo)
-
-add_library(lib-Target-X86)
-target_compile_options(lib-Target-X86 PRIVATE
- -Wno-everything
-)
-target_include_directories(lib-Target-X86 PRIVATE
- ${CMAKE_BINARY_DIR}/contrib/libs/llvm12/lib/Target/X86
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86
-)
-target_link_libraries(lib-Target-X86 PUBLIC
- contrib-libs-cxxsupp
- contrib-libs-llvm12
- libs-llvm12-include
- llvm12-lib-Analysis
- llvm12-lib-CodeGen
- lib-CodeGen-AsmPrinter
- lib-CodeGen-GlobalISel
- lib-CodeGen-SelectionDAG
- llvm12-lib-IR
- llvm12-lib-MC
- llvm12-lib-ProfileData
- llvm12-lib-Support
- llvm12-lib-Target
- Target-X86-MCTargetDesc
- Target-X86-TargetInfo
- lib-Transforms-CFGuard
-)
-target_sources(lib-Target-X86 PRIVATE
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86AsmPrinter.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86AvoidStoreForwardingBlocks.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86AvoidTrailingCall.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86CallFrameOptimization.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86CallLowering.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86CallingConv.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86CmovConversion.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86DiscriminateMemOps.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86DomainReassignment.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86EvexToVex.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86ExpandPseudo.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86FastISel.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86FixupBWInsts.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86FixupLEAs.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86FixupSetCC.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86FlagsCopyLowering.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86FloatingPoint.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86FrameLowering.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86ISelDAGToDAG.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86ISelLowering.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86IndirectBranchTracking.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86IndirectThunks.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86InsertPrefetch.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86InsertWait.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86InstCombineIntrinsic.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86InstrFMA3Info.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86InstrFoldTables.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86InstrInfo.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86InstructionSelector.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86InterleavedAccess.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86LegalizerInfo.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86LoadValueInjectionLoadHardening.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86LoadValueInjectionRetHardening.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86LowerAMXType.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86MCInstLower.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86MachineFunctionInfo.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86MacroFusion.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86OptimizeLEAs.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86PadShortFunction.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86PartialReduction.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86PreTileConfig.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86RegisterBankInfo.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86RegisterInfo.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86SelectionDAGInfo.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86ShuffleDecodeConstantPool.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86SpeculativeExecutionSideEffectSuppression.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86SpeculativeLoadHardening.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86Subtarget.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86TargetMachine.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86TargetObjectFile.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86TargetTransformInfo.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86TileConfig.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86VZeroUpper.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86WinAllocaExpander.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/X86WinEHState.cpp
-)
+if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID)
+ include(CMakeLists.linux-aarch64.txt)
+elseif (APPLE)
+ include(CMakeLists.darwin.txt)
+elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID)
+ include(CMakeLists.linux.txt)
+endif()
diff --git a/contrib/libs/llvm12/lib/Target/X86/Disassembler/CMakeLists.darwin.txt b/contrib/libs/llvm12/lib/Target/X86/Disassembler/CMakeLists.darwin.txt
new file mode 100644
index 0000000000..9e124d334a
--- /dev/null
+++ b/contrib/libs/llvm12/lib/Target/X86/Disassembler/CMakeLists.darwin.txt
@@ -0,0 +1,29 @@
+
+# This file was gererated by the build system used internally in the Yandex monorepo.
+# Only simple modifications are allowed (adding source-files to targets, adding simple properties
+# like target_include_directories). These modifications will be ported to original
+# ya.make files by maintainers. Any complex modifications which can't be ported back to the
+# original buildsystem will not be accepted.
+
+
+
+add_library(Target-X86-Disassembler)
+target_compile_options(Target-X86-Disassembler PRIVATE
+ -Wno-everything
+)
+target_include_directories(Target-X86-Disassembler PRIVATE
+ ${CMAKE_BINARY_DIR}/contrib/libs/llvm12/lib/Target/X86
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/Disassembler
+)
+target_link_libraries(Target-X86-Disassembler PUBLIC
+ contrib-libs-cxxsupp
+ contrib-libs-llvm12
+ libs-llvm12-include
+ lib-MC-MCDisassembler
+ llvm12-lib-Support
+ Target-X86-TargetInfo
+)
+target_sources(Target-X86-Disassembler PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/Disassembler/X86Disassembler.cpp
+)
diff --git a/contrib/libs/llvm12/lib/Target/X86/Disassembler/CMakeLists.linux-aarch64.txt b/contrib/libs/llvm12/lib/Target/X86/Disassembler/CMakeLists.linux-aarch64.txt
new file mode 100644
index 0000000000..964e3edf8d
--- /dev/null
+++ b/contrib/libs/llvm12/lib/Target/X86/Disassembler/CMakeLists.linux-aarch64.txt
@@ -0,0 +1,30 @@
+
+# This file was gererated by the build system used internally in the Yandex monorepo.
+# Only simple modifications are allowed (adding source-files to targets, adding simple properties
+# like target_include_directories). These modifications will be ported to original
+# ya.make files by maintainers. Any complex modifications which can't be ported back to the
+# original buildsystem will not be accepted.
+
+
+
+add_library(Target-X86-Disassembler)
+target_compile_options(Target-X86-Disassembler PRIVATE
+ -Wno-everything
+)
+target_include_directories(Target-X86-Disassembler PRIVATE
+ ${CMAKE_BINARY_DIR}/contrib/libs/llvm12/lib/Target/X86
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/Disassembler
+)
+target_link_libraries(Target-X86-Disassembler PUBLIC
+ contrib-libs-linux-headers
+ contrib-libs-cxxsupp
+ contrib-libs-llvm12
+ libs-llvm12-include
+ lib-MC-MCDisassembler
+ llvm12-lib-Support
+ Target-X86-TargetInfo
+)
+target_sources(Target-X86-Disassembler PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/Disassembler/X86Disassembler.cpp
+)
diff --git a/contrib/libs/llvm12/lib/Target/X86/Disassembler/CMakeLists.linux.txt b/contrib/libs/llvm12/lib/Target/X86/Disassembler/CMakeLists.linux.txt
new file mode 100644
index 0000000000..964e3edf8d
--- /dev/null
+++ b/contrib/libs/llvm12/lib/Target/X86/Disassembler/CMakeLists.linux.txt
@@ -0,0 +1,30 @@
+
+# This file was gererated by the build system used internally in the Yandex monorepo.
+# Only simple modifications are allowed (adding source-files to targets, adding simple properties
+# like target_include_directories). These modifications will be ported to original
+# ya.make files by maintainers. Any complex modifications which can't be ported back to the
+# original buildsystem will not be accepted.
+
+
+
+add_library(Target-X86-Disassembler)
+target_compile_options(Target-X86-Disassembler PRIVATE
+ -Wno-everything
+)
+target_include_directories(Target-X86-Disassembler PRIVATE
+ ${CMAKE_BINARY_DIR}/contrib/libs/llvm12/lib/Target/X86
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/Disassembler
+)
+target_link_libraries(Target-X86-Disassembler PUBLIC
+ contrib-libs-linux-headers
+ contrib-libs-cxxsupp
+ contrib-libs-llvm12
+ libs-llvm12-include
+ lib-MC-MCDisassembler
+ llvm12-lib-Support
+ Target-X86-TargetInfo
+)
+target_sources(Target-X86-Disassembler PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/Disassembler/X86Disassembler.cpp
+)
diff --git a/contrib/libs/llvm12/lib/Target/X86/Disassembler/CMakeLists.txt b/contrib/libs/llvm12/lib/Target/X86/Disassembler/CMakeLists.txt
index 9e124d334a..3e0811fb22 100644
--- a/contrib/libs/llvm12/lib/Target/X86/Disassembler/CMakeLists.txt
+++ b/contrib/libs/llvm12/lib/Target/X86/Disassembler/CMakeLists.txt
@@ -6,24 +6,10 @@
# original buildsystem will not be accepted.
-
-add_library(Target-X86-Disassembler)
-target_compile_options(Target-X86-Disassembler PRIVATE
- -Wno-everything
-)
-target_include_directories(Target-X86-Disassembler PRIVATE
- ${CMAKE_BINARY_DIR}/contrib/libs/llvm12/lib/Target/X86
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/Disassembler
-)
-target_link_libraries(Target-X86-Disassembler PUBLIC
- contrib-libs-cxxsupp
- contrib-libs-llvm12
- libs-llvm12-include
- lib-MC-MCDisassembler
- llvm12-lib-Support
- Target-X86-TargetInfo
-)
-target_sources(Target-X86-Disassembler PRIVATE
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/Disassembler/X86Disassembler.cpp
-)
+if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID)
+ include(CMakeLists.linux-aarch64.txt)
+elseif (APPLE)
+ include(CMakeLists.darwin.txt)
+elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID)
+ include(CMakeLists.linux.txt)
+endif()
diff --git a/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/CMakeLists.darwin.txt b/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/CMakeLists.darwin.txt
new file mode 100644
index 0000000000..d0444be99d
--- /dev/null
+++ b/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/CMakeLists.darwin.txt
@@ -0,0 +1,44 @@
+
+# This file was gererated by the build system used internally in the Yandex monorepo.
+# Only simple modifications are allowed (adding source-files to targets, adding simple properties
+# like target_include_directories). These modifications will be ported to original
+# ya.make files by maintainers. Any complex modifications which can't be ported back to the
+# original buildsystem will not be accepted.
+
+
+
+add_library(Target-X86-MCTargetDesc)
+target_compile_options(Target-X86-MCTargetDesc PRIVATE
+ -Wno-everything
+)
+target_include_directories(Target-X86-MCTargetDesc PRIVATE
+ ${CMAKE_BINARY_DIR}/contrib/libs/llvm12/lib/Target/X86
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc
+)
+target_link_libraries(Target-X86-MCTargetDesc PUBLIC
+ contrib-libs-cxxsupp
+ contrib-libs-llvm12
+ libs-llvm12-include
+ llvm12-lib-BinaryFormat
+ llvm12-lib-MC
+ lib-MC-MCDisassembler
+ llvm12-lib-Support
+ Target-X86-TargetInfo
+)
+target_sources(Target-X86-MCTargetDesc PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86ATTInstPrinter.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86ELFObjectWriter.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86InstComments.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86InstPrinterCommon.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86IntelInstPrinter.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86MachObjectWriter.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86ShuffleDecode.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86WinCOFFObjectWriter.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86WinCOFFStreamer.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86WinCOFFTargetStreamer.cpp
+)
diff --git a/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/CMakeLists.linux-aarch64.txt b/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/CMakeLists.linux-aarch64.txt
new file mode 100644
index 0000000000..48344c965d
--- /dev/null
+++ b/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/CMakeLists.linux-aarch64.txt
@@ -0,0 +1,45 @@
+
+# This file was gererated by the build system used internally in the Yandex monorepo.
+# Only simple modifications are allowed (adding source-files to targets, adding simple properties
+# like target_include_directories). These modifications will be ported to original
+# ya.make files by maintainers. Any complex modifications which can't be ported back to the
+# original buildsystem will not be accepted.
+
+
+
+add_library(Target-X86-MCTargetDesc)
+target_compile_options(Target-X86-MCTargetDesc PRIVATE
+ -Wno-everything
+)
+target_include_directories(Target-X86-MCTargetDesc PRIVATE
+ ${CMAKE_BINARY_DIR}/contrib/libs/llvm12/lib/Target/X86
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc
+)
+target_link_libraries(Target-X86-MCTargetDesc PUBLIC
+ contrib-libs-linux-headers
+ contrib-libs-cxxsupp
+ contrib-libs-llvm12
+ libs-llvm12-include
+ llvm12-lib-BinaryFormat
+ llvm12-lib-MC
+ lib-MC-MCDisassembler
+ llvm12-lib-Support
+ Target-X86-TargetInfo
+)
+target_sources(Target-X86-MCTargetDesc PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86ATTInstPrinter.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86ELFObjectWriter.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86InstComments.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86InstPrinterCommon.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86IntelInstPrinter.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86MachObjectWriter.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86ShuffleDecode.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86WinCOFFObjectWriter.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86WinCOFFStreamer.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86WinCOFFTargetStreamer.cpp
+)
diff --git a/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/CMakeLists.linux.txt b/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/CMakeLists.linux.txt
new file mode 100644
index 0000000000..48344c965d
--- /dev/null
+++ b/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/CMakeLists.linux.txt
@@ -0,0 +1,45 @@
+
+# This file was gererated by the build system used internally in the Yandex monorepo.
+# Only simple modifications are allowed (adding source-files to targets, adding simple properties
+# like target_include_directories). These modifications will be ported to original
+# ya.make files by maintainers. Any complex modifications which can't be ported back to the
+# original buildsystem will not be accepted.
+
+
+
+add_library(Target-X86-MCTargetDesc)
+target_compile_options(Target-X86-MCTargetDesc PRIVATE
+ -Wno-everything
+)
+target_include_directories(Target-X86-MCTargetDesc PRIVATE
+ ${CMAKE_BINARY_DIR}/contrib/libs/llvm12/lib/Target/X86
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc
+)
+target_link_libraries(Target-X86-MCTargetDesc PUBLIC
+ contrib-libs-linux-headers
+ contrib-libs-cxxsupp
+ contrib-libs-llvm12
+ libs-llvm12-include
+ llvm12-lib-BinaryFormat
+ llvm12-lib-MC
+ lib-MC-MCDisassembler
+ llvm12-lib-Support
+ Target-X86-TargetInfo
+)
+target_sources(Target-X86-MCTargetDesc PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86ATTInstPrinter.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86ELFObjectWriter.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86InstComments.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86InstPrinterCommon.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86IntelInstPrinter.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86MachObjectWriter.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86ShuffleDecode.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86WinCOFFObjectWriter.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86WinCOFFStreamer.cpp
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86WinCOFFTargetStreamer.cpp
+)
diff --git a/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/CMakeLists.txt b/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/CMakeLists.txt
index d0444be99d..3e0811fb22 100644
--- a/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/CMakeLists.txt
+++ b/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/CMakeLists.txt
@@ -6,39 +6,10 @@
# original buildsystem will not be accepted.
-
-add_library(Target-X86-MCTargetDesc)
-target_compile_options(Target-X86-MCTargetDesc PRIVATE
- -Wno-everything
-)
-target_include_directories(Target-X86-MCTargetDesc PRIVATE
- ${CMAKE_BINARY_DIR}/contrib/libs/llvm12/lib/Target/X86
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc
-)
-target_link_libraries(Target-X86-MCTargetDesc PUBLIC
- contrib-libs-cxxsupp
- contrib-libs-llvm12
- libs-llvm12-include
- llvm12-lib-BinaryFormat
- llvm12-lib-MC
- lib-MC-MCDisassembler
- llvm12-lib-Support
- Target-X86-TargetInfo
-)
-target_sources(Target-X86-MCTargetDesc PRIVATE
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86ATTInstPrinter.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86ELFObjectWriter.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86InstComments.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86InstPrinterCommon.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86IntelInstPrinter.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86MachObjectWriter.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86ShuffleDecode.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86WinCOFFObjectWriter.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86WinCOFFStreamer.cpp
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/MCTargetDesc/X86WinCOFFTargetStreamer.cpp
-)
+if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID)
+ include(CMakeLists.linux-aarch64.txt)
+elseif (APPLE)
+ include(CMakeLists.darwin.txt)
+elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID)
+ include(CMakeLists.linux.txt)
+endif()
diff --git a/contrib/libs/llvm12/lib/Target/X86/TargetInfo/CMakeLists.darwin.txt b/contrib/libs/llvm12/lib/Target/X86/TargetInfo/CMakeLists.darwin.txt
new file mode 100644
index 0000000000..28f7c94326
--- /dev/null
+++ b/contrib/libs/llvm12/lib/Target/X86/TargetInfo/CMakeLists.darwin.txt
@@ -0,0 +1,25 @@
+
+# This file was gererated by the build system used internally in the Yandex monorepo.
+# Only simple modifications are allowed (adding source-files to targets, adding simple properties
+# like target_include_directories). These modifications will be ported to original
+# ya.make files by maintainers. Any complex modifications which can't be ported back to the
+# original buildsystem will not be accepted.
+
+
+
+add_library(Target-X86-TargetInfo)
+target_compile_options(Target-X86-TargetInfo PRIVATE
+ -Wno-everything
+)
+target_include_directories(Target-X86-TargetInfo PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/TargetInfo
+)
+target_link_libraries(Target-X86-TargetInfo PUBLIC
+ contrib-libs-cxxsupp
+ contrib-libs-llvm12
+ llvm12-lib-Support
+)
+target_sources(Target-X86-TargetInfo PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/TargetInfo/X86TargetInfo.cpp
+)
diff --git a/contrib/libs/llvm12/lib/Target/X86/TargetInfo/CMakeLists.linux-aarch64.txt b/contrib/libs/llvm12/lib/Target/X86/TargetInfo/CMakeLists.linux-aarch64.txt
new file mode 100644
index 0000000000..0cd3e66fc0
--- /dev/null
+++ b/contrib/libs/llvm12/lib/Target/X86/TargetInfo/CMakeLists.linux-aarch64.txt
@@ -0,0 +1,26 @@
+
+# This file was gererated by the build system used internally in the Yandex monorepo.
+# Only simple modifications are allowed (adding source-files to targets, adding simple properties
+# like target_include_directories). These modifications will be ported to original
+# ya.make files by maintainers. Any complex modifications which can't be ported back to the
+# original buildsystem will not be accepted.
+
+
+
+add_library(Target-X86-TargetInfo)
+target_compile_options(Target-X86-TargetInfo PRIVATE
+ -Wno-everything
+)
+target_include_directories(Target-X86-TargetInfo PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/TargetInfo
+)
+target_link_libraries(Target-X86-TargetInfo PUBLIC
+ contrib-libs-linux-headers
+ contrib-libs-cxxsupp
+ contrib-libs-llvm12
+ llvm12-lib-Support
+)
+target_sources(Target-X86-TargetInfo PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/TargetInfo/X86TargetInfo.cpp
+)
diff --git a/contrib/libs/llvm12/lib/Target/X86/TargetInfo/CMakeLists.linux.txt b/contrib/libs/llvm12/lib/Target/X86/TargetInfo/CMakeLists.linux.txt
new file mode 100644
index 0000000000..0cd3e66fc0
--- /dev/null
+++ b/contrib/libs/llvm12/lib/Target/X86/TargetInfo/CMakeLists.linux.txt
@@ -0,0 +1,26 @@
+
+# This file was gererated by the build system used internally in the Yandex monorepo.
+# Only simple modifications are allowed (adding source-files to targets, adding simple properties
+# like target_include_directories). These modifications will be ported to original
+# ya.make files by maintainers. Any complex modifications which can't be ported back to the
+# original buildsystem will not be accepted.
+
+
+
+add_library(Target-X86-TargetInfo)
+target_compile_options(Target-X86-TargetInfo PRIVATE
+ -Wno-everything
+)
+target_include_directories(Target-X86-TargetInfo PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/TargetInfo
+)
+target_link_libraries(Target-X86-TargetInfo PUBLIC
+ contrib-libs-linux-headers
+ contrib-libs-cxxsupp
+ contrib-libs-llvm12
+ llvm12-lib-Support
+)
+target_sources(Target-X86-TargetInfo PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/TargetInfo/X86TargetInfo.cpp
+)
diff --git a/contrib/libs/llvm12/lib/Target/X86/TargetInfo/CMakeLists.txt b/contrib/libs/llvm12/lib/Target/X86/TargetInfo/CMakeLists.txt
index 28f7c94326..3e0811fb22 100644
--- a/contrib/libs/llvm12/lib/Target/X86/TargetInfo/CMakeLists.txt
+++ b/contrib/libs/llvm12/lib/Target/X86/TargetInfo/CMakeLists.txt
@@ -6,20 +6,10 @@
# original buildsystem will not be accepted.
-
-add_library(Target-X86-TargetInfo)
-target_compile_options(Target-X86-TargetInfo PRIVATE
- -Wno-everything
-)
-target_include_directories(Target-X86-TargetInfo PRIVATE
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/TargetInfo
-)
-target_link_libraries(Target-X86-TargetInfo PUBLIC
- contrib-libs-cxxsupp
- contrib-libs-llvm12
- llvm12-lib-Support
-)
-target_sources(Target-X86-TargetInfo PRIVATE
- ${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Target/X86/TargetInfo/X86TargetInfo.cpp
-)
+if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID)
+ include(CMakeLists.linux-aarch64.txt)
+elseif (APPLE)
+ include(CMakeLists.darwin.txt)
+elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID)
+ include(CMakeLists.linux.txt)
+endif()