2011-02-12 07:46:38 +08:00
|
|
|
set(LLVM_LINK_COMPONENTS
|
2015-01-15 15:28:53 +08:00
|
|
|
Analysis
|
2013-12-10 03:04:43 +08:00
|
|
|
BitReader
|
|
|
|
BitWriter
|
|
|
|
Core
|
2016-10-04 06:44:48 +08:00
|
|
|
Coroutines
|
2016-04-30 02:53:16 +08:00
|
|
|
Coverage
|
2013-12-10 03:04:43 +08:00
|
|
|
IPO
|
|
|
|
IRReader
|
|
|
|
InstCombine
|
|
|
|
Instrumentation
|
2016-08-13 02:12:08 +08:00
|
|
|
LTO
|
2013-12-10 03:04:43 +08:00
|
|
|
Linker
|
|
|
|
MC
|
|
|
|
ObjCARCOpts
|
2015-07-08 10:06:21 +08:00
|
|
|
Object
|
2016-12-24 09:55:12 +08:00
|
|
|
Passes
|
2014-04-19 05:52:00 +08:00
|
|
|
ProfileData
|
2013-12-10 03:04:43 +08:00
|
|
|
ScalarOpts
|
|
|
|
Support
|
2015-06-03 02:02:13 +08:00
|
|
|
Target
|
2014-07-14 13:01:53 +08:00
|
|
|
TransformUtils
|
2011-02-12 07:46:38 +08:00
|
|
|
)
|
|
|
|
|
2014-11-06 04:30:55 +08:00
|
|
|
# In a standard Clang+LLVM build, we need to generate intrinsics before
|
|
|
|
# building codegen. In a standalone build, LLVM is already built and we don't
|
|
|
|
# need this dependency. Furthermore, LLVM doesn't export it so we can't have
|
|
|
|
# this dependency.
|
|
|
|
set(codegen_deps intrinsics_gen)
|
|
|
|
if (CLANG_BUILT_STANDALONE)
|
|
|
|
set(codegen_deps)
|
|
|
|
endif()
|
|
|
|
|
2008-10-26 08:56:18 +08:00
|
|
|
add_clang_library(clangCodeGen
|
2010-06-16 01:48:49 +08:00
|
|
|
BackendUtil.cpp
|
2013-03-08 05:37:12 +08:00
|
|
|
CGAtomic.cpp
|
2009-02-13 23:42:50 +08:00
|
|
|
CGBlocks.cpp
|
2009-07-16 05:08:41 +08:00
|
|
|
CGBuiltin.cpp
|
2016-01-24 05:28:14 +08:00
|
|
|
CGCUDABuiltin.cpp
|
2011-10-07 02:29:37 +08:00
|
|
|
CGCUDANV.cpp
|
|
|
|
CGCUDARuntime.cpp
|
2009-11-24 13:51:11 +08:00
|
|
|
CGCXX.cpp
|
2010-11-29 01:46:52 +08:00
|
|
|
CGCXXABI.cpp
|
2014-01-07 07:20:52 +08:00
|
|
|
CGCall.cpp
|
|
|
|
CGClass.cpp
|
2011-01-29 04:10:46 +08:00
|
|
|
CGCleanup.cpp
|
2016-10-04 06:44:48 +08:00
|
|
|
CGCoroutine.cpp
|
2008-10-26 08:56:18 +08:00
|
|
|
CGDebugInfo.cpp
|
|
|
|
CGDecl.cpp
|
2009-12-10 08:16:00 +08:00
|
|
|
CGDeclCXX.cpp
|
2009-10-30 09:42:31 +08:00
|
|
|
CGException.cpp
|
2009-07-16 05:08:41 +08:00
|
|
|
CGExpr.cpp
|
2008-10-26 08:56:18 +08:00
|
|
|
CGExprAgg.cpp
|
2014-01-07 07:20:52 +08:00
|
|
|
CGExprCXX.cpp
|
2008-10-26 08:56:18 +08:00
|
|
|
CGExprComplex.cpp
|
|
|
|
CGExprConstant.cpp
|
|
|
|
CGExprScalar.cpp
|
2014-05-22 16:54:05 +08:00
|
|
|
CGLoopInfo.cpp
|
2008-10-26 08:56:18 +08:00
|
|
|
CGObjC.cpp
|
|
|
|
CGObjCGNU.cpp
|
|
|
|
CGObjCMac.cpp
|
2011-03-25 22:16:48 +08:00
|
|
|
CGObjCRuntime.cpp
|
2011-09-20 05:14:35 +08:00
|
|
|
CGOpenCLRuntime.cpp
|
2014-05-06 18:08:46 +08:00
|
|
|
CGOpenMPRuntime.cpp
|
2016-02-08 23:59:20 +08:00
|
|
|
CGOpenMPRuntimeNVPTX.cpp
|
2014-01-07 07:20:52 +08:00
|
|
|
CGRecordLayoutBuilder.cpp
|
2008-10-26 08:56:18 +08:00
|
|
|
CGStmt.cpp
|
2014-05-06 18:08:46 +08:00
|
|
|
CGStmtOpenMP.cpp
|
2010-01-22 00:50:45 +08:00
|
|
|
CGVTT.cpp
|
2014-01-07 07:20:52 +08:00
|
|
|
CGVTables.cpp
|
2013-10-31 05:53:58 +08:00
|
|
|
CodeGenABITypes.cpp
|
2010-06-16 01:48:49 +08:00
|
|
|
CodeGenAction.cpp
|
2008-10-26 08:56:18 +08:00
|
|
|
CodeGenFunction.cpp
|
|
|
|
CodeGenModule.cpp
|
2014-01-07 07:20:52 +08:00
|
|
|
CodeGenPGO.cpp
|
2010-10-15 08:39:31 +08:00
|
|
|
CodeGenTBAA.cpp
|
2008-10-26 08:56:18 +08:00
|
|
|
CodeGenTypes.cpp
|
2014-08-05 02:59:39 +08:00
|
|
|
CoverageMappingGen.cpp
|
2010-05-26 03:52:27 +08:00
|
|
|
ItaniumCXXABI.cpp
|
2010-06-10 07:25:41 +08:00
|
|
|
MicrosoftCXXABI.cpp
|
2008-10-26 08:56:18 +08:00
|
|
|
ModuleBuilder.cpp
|
2015-07-08 09:00:30 +08:00
|
|
|
ObjectFilePCHContainerOperations.cpp
|
2014-08-02 05:35:28 +08:00
|
|
|
SanitizerMetadata.cpp
|
2016-04-05 02:33:08 +08:00
|
|
|
SwiftCallingConv.cpp
|
2010-01-10 21:06:34 +08:00
|
|
|
TargetInfo.cpp
|
2016-10-26 13:42:30 +08:00
|
|
|
VarBypassDetector.cpp
|
2014-02-26 14:33:27 +08:00
|
|
|
|
|
|
|
DEPENDS
|
2014-11-06 04:30:55 +08:00
|
|
|
${codegen_deps}
|
2010-05-05 13:41:05 +08:00
|
|
|
|
2014-02-26 14:41:29 +08:00
|
|
|
LINK_LIBS
|
2016-10-25 07:38:32 +08:00
|
|
|
clangAnalysis
|
2012-06-21 09:30:21 +08:00
|
|
|
clangAST
|
2016-10-25 06:52:39 +08:00
|
|
|
clangAnalysis
|
2014-07-14 12:59:27 +08:00
|
|
|
clangBasic
|
2012-06-21 09:30:21 +08:00
|
|
|
clangFrontend
|
2014-08-05 23:01:12 +08:00
|
|
|
clangLex
|
2012-06-21 09:30:21 +08:00
|
|
|
)
|