blob: 2be6dee959062da0297438785230de9aaa567434 [file] [log] [blame]
Jeffrey Yasskinc4988782011-02-11 23:46:38 +00001set(LLVM_LINK_COMPONENTS
NAKAMURA Takumi98501ea2015-01-15 07:28:53 +00002 Analysis
NAKAMURA Takumi65d42bc2013-12-09 19:04:43 +00003 BitReader
4 BitWriter
5 Core
6 IPO
7 IRReader
8 InstCombine
9 Instrumentation
10 Linker
11 MC
12 ObjCARCOpts
NAKAMURA Takumif3fda082015-07-08 02:06:21 +000013 Object
Justin Bogner837a6f62014-04-18 21:52:00 +000014 ProfileData
NAKAMURA Takumi65d42bc2013-12-09 19:04:43 +000015 ScalarOpts
16 Support
Sanjay Patel21141d72015-06-02 18:02:13 +000017 Target
NAKAMURA Takumi23b702c2014-07-14 05:01:53 +000018 TransformUtils
Jeffrey Yasskinc4988782011-02-11 23:46:38 +000019 )
20
Reid Klecknerdd43a5c2014-11-05 20:30:55 +000021# In a standard Clang+LLVM build, we need to generate intrinsics before
22# building codegen. In a standalone build, LLVM is already built and we don't
23# need this dependency. Furthermore, LLVM doesn't export it so we can't have
24# this dependency.
25set(codegen_deps intrinsics_gen)
26if (CLANG_BUILT_STANDALONE)
27 set(codegen_deps)
28endif()
29
Oscar Fuentes07d9f9a2008-10-26 00:56:18 +000030add_clang_library(clangCodeGen
Daniel Dunbarc1b17292010-06-15 17:48:49 +000031 BackendUtil.cpp
John McCallfc207f22013-03-07 21:37:12 +000032 CGAtomic.cpp
Mike Stump57d73542009-02-13 15:42:50 +000033 CGBlocks.cpp
Ted Kremenek3e808ed2009-07-15 21:08:41 +000034 CGBuiltin.cpp
Justin Lebar3039a592016-01-23 21:28:14 +000035 CGCUDABuiltin.cpp
Peter Collingbournefe883422011-10-06 18:29:37 +000036 CGCUDANV.cpp
37 CGCUDARuntime.cpp
Anders Carlsson59486a22009-11-24 05:51:11 +000038 CGCXX.cpp
Anders Carlsson81f6f362010-11-28 17:46:52 +000039 CGCXXABI.cpp
Ted Kremenekb2166d82014-01-06 23:20:52 +000040 CGCall.cpp
41 CGClass.cpp
John McCallb91ab892011-01-28 20:10:46 +000042 CGCleanup.cpp
Oscar Fuentes07d9f9a2008-10-26 00:56:18 +000043 CGDebugInfo.cpp
44 CGDecl.cpp
Anders Carlssonbc49cfe2009-12-10 00:16:00 +000045 CGDeclCXX.cpp
Anders Carlsson4b08db72009-10-30 01:42:31 +000046 CGException.cpp
Ted Kremenek3e808ed2009-07-15 21:08:41 +000047 CGExpr.cpp
Oscar Fuentes07d9f9a2008-10-26 00:56:18 +000048 CGExprAgg.cpp
Ted Kremenekb2166d82014-01-06 23:20:52 +000049 CGExprCXX.cpp
Oscar Fuentes07d9f9a2008-10-26 00:56:18 +000050 CGExprComplex.cpp
51 CGExprConstant.cpp
Oscar Fuentes07d9f9a2008-10-26 00:56:18 +000052 CGExprScalar.cpp
Alexander Musman515ad8c2014-05-22 08:54:05 +000053 CGLoopInfo.cpp
Oscar Fuentes07d9f9a2008-10-26 00:56:18 +000054 CGObjC.cpp
55 CGObjCGNU.cpp
56 CGObjCMac.cpp
Anders Carlsson843c6912011-03-25 14:16:48 +000057 CGObjCRuntime.cpp
Peter Collingbourne2dbb7082011-09-19 21:14:35 +000058 CGOpenCLRuntime.cpp
Alexey Bataev9959db52014-05-06 10:08:46 +000059 CGOpenMPRuntime.cpp
Samuel Antao45bfe4c2016-02-08 15:59:20 +000060 CGOpenMPRuntimeNVPTX.cpp
Ted Kremenekb2166d82014-01-06 23:20:52 +000061 CGRecordLayoutBuilder.cpp
Oscar Fuentes07d9f9a2008-10-26 00:56:18 +000062 CGStmt.cpp
Alexey Bataev9959db52014-05-06 10:08:46 +000063 CGStmtOpenMP.cpp
Anders Carlssonf768db72010-01-21 16:50:45 +000064 CGVTT.cpp
Ted Kremenekb2166d82014-01-06 23:20:52 +000065 CGVTables.cpp
Mark Laceya8e7df32013-10-30 21:53:58 +000066 CodeGenABITypes.cpp
Daniel Dunbarc1b17292010-06-15 17:48:49 +000067 CodeGenAction.cpp
Oscar Fuentes07d9f9a2008-10-26 00:56:18 +000068 CodeGenFunction.cpp
69 CodeGenModule.cpp
Ted Kremenekb2166d82014-01-06 23:20:52 +000070 CodeGenPGO.cpp
Daniel Dunbar59ae1372010-10-15 00:39:31 +000071 CodeGenTBAA.cpp
Oscar Fuentes07d9f9a2008-10-26 00:56:18 +000072 CodeGenTypes.cpp
David Blaikie8fd97322014-08-04 18:59:39 +000073 CoverageMappingGen.cpp
Charles Davis4e786dd2010-05-25 19:52:27 +000074 ItaniumCXXABI.cpp
Charles Davis74ce8592010-06-09 23:25:41 +000075 MicrosoftCXXABI.cpp
Oscar Fuentes07d9f9a2008-10-26 00:56:18 +000076 ModuleBuilder.cpp
Adrian Prantlbc068582015-07-08 01:00:30 +000077 ObjectFilePCHContainerOperations.cpp
Alexey Samsonov4b8de112014-08-01 21:35:28 +000078 SanitizerMetadata.cpp
John McCall12f23522016-04-04 18:33:08 +000079 SwiftCallingConv.cpp
Anton Korobeynikovb322c3a2010-01-10 13:06:34 +000080 TargetInfo.cpp
NAKAMURA Takumi55a02ea2014-02-26 06:33:27 +000081
82 DEPENDS
Reid Klecknerdd43a5c2014-11-05 20:30:55 +000083 ${codegen_deps}
Douglas Gregorecc60b92010-05-05 05:41:05 +000084
NAKAMURA Takumi96986862014-02-26 06:41:29 +000085 LINK_LIBS
Chandler Carruth28969b42012-06-21 01:30:21 +000086 clangAST
NAKAMURA Takumi4a070dc2014-07-14 04:59:27 +000087 clangBasic
Chandler Carruth28969b42012-06-21 01:30:21 +000088 clangFrontend
NAKAMURA Takumi51d35102014-08-05 15:01:12 +000089 clangLex
Chandler Carruth28969b42012-06-21 01:30:21 +000090 )