Jeffrey Yasskin | 0a86d44 | 2011-02-11 23:46:38 +0000 | [diff] [blame] | 1 | set(LLVM_LINK_COMPONENTS |
Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame] | 2 | BitReader |
3 | BitWriter | ||||
4 | Core | ||||
5 | IPO | ||||
6 | IRReader | ||||
7 | InstCombine | ||||
8 | Instrumentation | ||||
9 | Linker | ||||
10 | MC | ||||
11 | ObjCARCOpts | ||||
Stephen Hines | 6bcf27b | 2014-05-29 04:14:42 -0700 | [diff] [blame] | 12 | ProfileData |
Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame] | 13 | ScalarOpts |
14 | Support | ||||
15 | Target | ||||
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 16 | TransformUtils |
Jeffrey Yasskin | 0a86d44 | 2011-02-11 23:46:38 +0000 | [diff] [blame] | 17 | ) |
18 | |||||
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 19 | # 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. | ||||
23 | set(codegen_deps intrinsics_gen) | ||||
24 | if (CLANG_BUILT_STANDALONE) | ||||
25 | set(codegen_deps) | ||||
26 | endif() | ||||
27 | |||||
Oscar Fuentes | d2f4e5e | 2008-10-26 00:56:18 +0000 | [diff] [blame] | 28 | add_clang_library(clangCodeGen |
Daniel Dunbar | 9b414d3 | 2010-06-15 17:48:49 +0000 | [diff] [blame] | 29 | BackendUtil.cpp |
John McCall | fafaaef | 2013-03-07 21:37:12 +0000 | [diff] [blame] | 30 | CGAtomic.cpp |
Mike Stump | 4783787 | 2009-02-13 15:42:50 +0000 | [diff] [blame] | 31 | CGBlocks.cpp |
Ted Kremenek | b3b7364 | 2009-07-15 21:08:41 +0000 | [diff] [blame] | 32 | CGBuiltin.cpp |
Peter Collingbourne | 6c0aa5f | 2011-10-06 18:29:37 +0000 | [diff] [blame] | 33 | CGCUDANV.cpp |
34 | CGCUDARuntime.cpp | ||||
Anders Carlsson | 5b95592 | 2009-11-24 05:51:11 +0000 | [diff] [blame] | 35 | CGCXX.cpp |
Anders Carlsson | 4992eaf | 2010-11-28 17:46:52 +0000 | [diff] [blame] | 36 | CGCXXABI.cpp |
Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame] | 37 | CGCall.cpp |
38 | CGClass.cpp | ||||
John McCall | 21a7dfc | 2011-01-28 20:10:46 +0000 | [diff] [blame] | 39 | CGCleanup.cpp |
Oscar Fuentes | d2f4e5e | 2008-10-26 00:56:18 +0000 | [diff] [blame] | 40 | CGDebugInfo.cpp |
41 | CGDecl.cpp | ||||
Anders Carlsson | 5ec2e7c | 2009-12-10 00:16:00 +0000 | [diff] [blame] | 42 | CGDeclCXX.cpp |
Anders Carlsson | 756b5c4 | 2009-10-30 01:42:31 +0000 | [diff] [blame] | 43 | CGException.cpp |
Ted Kremenek | b3b7364 | 2009-07-15 21:08:41 +0000 | [diff] [blame] | 44 | CGExpr.cpp |
Oscar Fuentes | d2f4e5e | 2008-10-26 00:56:18 +0000 | [diff] [blame] | 45 | CGExprAgg.cpp |
Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame] | 46 | CGExprCXX.cpp |
Oscar Fuentes | d2f4e5e | 2008-10-26 00:56:18 +0000 | [diff] [blame] | 47 | CGExprComplex.cpp |
48 | CGExprConstant.cpp | ||||
Oscar Fuentes | d2f4e5e | 2008-10-26 00:56:18 +0000 | [diff] [blame] | 49 | CGExprScalar.cpp |
Stephen Hines | 6bcf27b | 2014-05-29 04:14:42 -0700 | [diff] [blame] | 50 | CGLoopInfo.cpp |
Oscar Fuentes | d2f4e5e | 2008-10-26 00:56:18 +0000 | [diff] [blame] | 51 | CGObjC.cpp |
52 | CGObjCGNU.cpp | ||||
53 | CGObjCMac.cpp | ||||
Anders Carlsson | 16625e1 | 2011-03-25 14:16:48 +0000 | [diff] [blame] | 54 | CGObjCRuntime.cpp |
Peter Collingbourne | 8c25fc5 | 2011-09-19 21:14:35 +0000 | [diff] [blame] | 55 | CGOpenCLRuntime.cpp |
Stephen Hines | 6bcf27b | 2014-05-29 04:14:42 -0700 | [diff] [blame] | 56 | CGOpenMPRuntime.cpp |
Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame] | 57 | CGRecordLayoutBuilder.cpp |
Oscar Fuentes | d2f4e5e | 2008-10-26 00:56:18 +0000 | [diff] [blame] | 58 | CGStmt.cpp |
Stephen Hines | 6bcf27b | 2014-05-29 04:14:42 -0700 | [diff] [blame] | 59 | CGStmtOpenMP.cpp |
Anders Carlsson | 58b7eee | 2010-01-21 16:50:45 +0000 | [diff] [blame] | 60 | CGVTT.cpp |
Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame] | 61 | CGVTables.cpp |
Mark Lacey | 8b54999 | 2013-10-30 21:53:58 +0000 | [diff] [blame] | 62 | CodeGenABITypes.cpp |
Daniel Dunbar | 9b414d3 | 2010-06-15 17:48:49 +0000 | [diff] [blame] | 63 | CodeGenAction.cpp |
Oscar Fuentes | d2f4e5e | 2008-10-26 00:56:18 +0000 | [diff] [blame] | 64 | CodeGenFunction.cpp |
65 | CodeGenModule.cpp | ||||
Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame] | 66 | CodeGenPGO.cpp |
Daniel Dunbar | 5259e7e | 2010-10-15 00:39:31 +0000 | [diff] [blame] | 67 | CodeGenTBAA.cpp |
Oscar Fuentes | d2f4e5e | 2008-10-26 00:56:18 +0000 | [diff] [blame] | 68 | CodeGenTypes.cpp |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 69 | CoverageMappingGen.cpp |
Charles Davis | 3a811f1 | 2010-05-25 19:52:27 +0000 | [diff] [blame] | 70 | ItaniumCXXABI.cpp |
Charles Davis | c392664 | 2010-06-09 23:25:41 +0000 | [diff] [blame] | 71 | MicrosoftCXXABI.cpp |
Oscar Fuentes | d2f4e5e | 2008-10-26 00:56:18 +0000 | [diff] [blame] | 72 | ModuleBuilder.cpp |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 73 | SanitizerMetadata.cpp |
Anton Korobeynikov | f3e27bf | 2010-01-10 13:06:34 +0000 | [diff] [blame] | 74 | TargetInfo.cpp |
Douglas Gregor | 71b1d0e | 2010-05-05 05:41:05 +0000 | [diff] [blame] | 75 | |
Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame] | 76 | DEPENDS |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 77 | ${codegen_deps} |
Chandler Carruth | b0d8671 | 2012-06-21 01:30:21 +0000 | [diff] [blame] | 78 | |
Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame] | 79 | LINK_LIBS |
Chandler Carruth | b0d8671 | 2012-06-21 01:30:21 +0000 | [diff] [blame] | 80 | clangAST |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 81 | clangBasic |
Chandler Carruth | b0d8671 | 2012-06-21 01:30:21 +0000 | [diff] [blame] | 82 | clangFrontend |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 83 | clangLex |
Chandler Carruth | b0d8671 | 2012-06-21 01:30:21 +0000 | [diff] [blame] | 84 | ) |