1 | set(LLVM_LINK_COMPONENTS |
2 | Analysis |
3 | BitReader |
4 | BitWriter |
5 | Core |
6 | Coroutines |
7 | Coverage |
8 | IPO |
9 | IRReader |
10 | AggressiveInstCombine |
11 | InstCombine |
12 | Instrumentation |
13 | LTO |
14 | Linker |
15 | MC |
16 | ObjCARCOpts |
17 | Object |
18 | Passes |
19 | ProfileData |
20 | ScalarOpts |
21 | Support |
22 | Target |
23 | TransformUtils |
24 | ) |
25 | |
26 | # In a standard Clang+LLVM build, we need to generate intrinsics before |
27 | # building codegen. In a standalone build, LLVM is already built and we don't |
28 | # need this dependency. Furthermore, LLVM doesn't export it so we can't have |
29 | # this dependency. |
30 | set(codegen_deps intrinsics_gen) |
31 | if (CLANG_BUILT_STANDALONE) |
32 | set(codegen_deps) |
33 | endif() |
34 | |
35 | if (MSVC) |
36 | set_source_files_properties(CodeGenModule.cpp PROPERTIES COMPILE_FLAGS /bigobj) |
37 | endif() |
38 | |
39 | add_clang_library(clangCodeGen |
40 | BackendUtil.cpp |
41 | CGAtomic.cpp |
42 | CGBlocks.cpp |
43 | CGBuiltin.cpp |
44 | CGCUDANV.cpp |
45 | CGCUDARuntime.cpp |
46 | CGCXX.cpp |
47 | CGCXXABI.cpp |
48 | CGCall.cpp |
49 | CGClass.cpp |
50 | CGCleanup.cpp |
51 | CGCoroutine.cpp |
52 | CGDebugInfo.cpp |
53 | CGDecl.cpp |
54 | CGDeclCXX.cpp |
55 | CGException.cpp |
56 | CGExpr.cpp |
57 | CGExprAgg.cpp |
58 | CGExprCXX.cpp |
59 | CGExprComplex.cpp |
60 | CGExprConstant.cpp |
61 | CGExprScalar.cpp |
62 | CGGPUBuiltin.cpp |
63 | CGLoopInfo.cpp |
64 | CGNonTrivialStruct.cpp |
65 | CGObjC.cpp |
66 | CGObjCGNU.cpp |
67 | CGObjCMac.cpp |
68 | CGObjCRuntime.cpp |
69 | CGOpenCLRuntime.cpp |
70 | CGOpenMPRuntime.cpp |
71 | CGOpenMPRuntimeNVPTX.cpp |
72 | CGRecordLayoutBuilder.cpp |
73 | CGStmt.cpp |
74 | CGStmtOpenMP.cpp |
75 | CGVTT.cpp |
76 | CGVTables.cpp |
77 | CodeGenABITypes.cpp |
78 | CodeGenAction.cpp |
79 | CodeGenFunction.cpp |
80 | CodeGenModule.cpp |
81 | CodeGenPGO.cpp |
82 | CodeGenTBAA.cpp |
83 | CodeGenTypes.cpp |
84 | ConstantInitBuilder.cpp |
85 | CoverageMappingGen.cpp |
86 | ItaniumCXXABI.cpp |
87 | MacroPPCallbacks.cpp |
88 | MicrosoftCXXABI.cpp |
89 | ModuleBuilder.cpp |
90 | ObjectFilePCHContainerOperations.cpp |
91 | SanitizerMetadata.cpp |
92 | SwiftCallingConv.cpp |
93 | TargetInfo.cpp |
94 | VarBypassDetector.cpp |
95 | |
96 | DEPENDS |
97 | ${codegen_deps} |
98 | |
99 | LINK_LIBS |
100 | clangAnalysis |
101 | clangAST |
102 | clangBasic |
103 | clangFrontend |
104 | clangLex |
105 | clangSerialization |
106 | ) |
107 | |