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