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