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