xref: /minix3/external/bsd/llvm/dist/clang/lib/CodeGen/CMakeLists.txt (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1f4a2713aSLionel Sambucset(LLVM_LINK_COMPONENTS
2*0a6a1f1dSLionel Sambuc  BitReader
3*0a6a1f1dSLionel Sambuc  BitWriter
4*0a6a1f1dSLionel Sambuc  Core
5*0a6a1f1dSLionel Sambuc  IPO
6*0a6a1f1dSLionel Sambuc  IRReader
7*0a6a1f1dSLionel Sambuc  InstCombine
8*0a6a1f1dSLionel Sambuc  Instrumentation
9*0a6a1f1dSLionel Sambuc  Linker
10*0a6a1f1dSLionel Sambuc  MC
11*0a6a1f1dSLionel Sambuc  ObjCARCOpts
12*0a6a1f1dSLionel Sambuc  ProfileData
13*0a6a1f1dSLionel Sambuc  ScalarOpts
14*0a6a1f1dSLionel Sambuc  Support
15*0a6a1f1dSLionel Sambuc  Target
16*0a6a1f1dSLionel Sambuc  TransformUtils
17f4a2713aSLionel Sambuc  )
18f4a2713aSLionel Sambuc
19*0a6a1f1dSLionel Sambuc# In a standard Clang+LLVM build, we need to generate intrinsics before
20*0a6a1f1dSLionel Sambuc# building codegen. In a standalone build, LLVM is already built and we don't
21*0a6a1f1dSLionel Sambuc# need this dependency. Furthermore, LLVM doesn't export it so we can't have
22*0a6a1f1dSLionel Sambuc# this dependency.
23*0a6a1f1dSLionel Sambucset(codegen_deps intrinsics_gen)
24*0a6a1f1dSLionel Sambucif (CLANG_BUILT_STANDALONE)
25*0a6a1f1dSLionel Sambuc  set(codegen_deps)
26*0a6a1f1dSLionel Sambucendif()
27*0a6a1f1dSLionel Sambuc
28f4a2713aSLionel Sambucadd_clang_library(clangCodeGen
29f4a2713aSLionel Sambuc  BackendUtil.cpp
30f4a2713aSLionel Sambuc  CGAtomic.cpp
31f4a2713aSLionel Sambuc  CGBlocks.cpp
32f4a2713aSLionel Sambuc  CGBuiltin.cpp
33f4a2713aSLionel Sambuc  CGCUDANV.cpp
34f4a2713aSLionel Sambuc  CGCUDARuntime.cpp
35f4a2713aSLionel Sambuc  CGCXX.cpp
36f4a2713aSLionel Sambuc  CGCXXABI.cpp
37*0a6a1f1dSLionel Sambuc  CGCall.cpp
38*0a6a1f1dSLionel Sambuc  CGClass.cpp
39f4a2713aSLionel Sambuc  CGCleanup.cpp
40f4a2713aSLionel Sambuc  CGDebugInfo.cpp
41f4a2713aSLionel Sambuc  CGDecl.cpp
42f4a2713aSLionel Sambuc  CGDeclCXX.cpp
43f4a2713aSLionel Sambuc  CGException.cpp
44f4a2713aSLionel Sambuc  CGExpr.cpp
45f4a2713aSLionel Sambuc  CGExprAgg.cpp
46*0a6a1f1dSLionel Sambuc  CGExprCXX.cpp
47f4a2713aSLionel Sambuc  CGExprComplex.cpp
48f4a2713aSLionel Sambuc  CGExprConstant.cpp
49f4a2713aSLionel Sambuc  CGExprScalar.cpp
50*0a6a1f1dSLionel Sambuc  CGLoopInfo.cpp
51f4a2713aSLionel Sambuc  CGObjC.cpp
52f4a2713aSLionel Sambuc  CGObjCGNU.cpp
53f4a2713aSLionel Sambuc  CGObjCMac.cpp
54f4a2713aSLionel Sambuc  CGObjCRuntime.cpp
55f4a2713aSLionel Sambuc  CGOpenCLRuntime.cpp
56*0a6a1f1dSLionel Sambuc  CGOpenMPRuntime.cpp
57f4a2713aSLionel Sambuc  CGRecordLayoutBuilder.cpp
58f4a2713aSLionel Sambuc  CGStmt.cpp
59*0a6a1f1dSLionel Sambuc  CGStmtOpenMP.cpp
60f4a2713aSLionel Sambuc  CGVTT.cpp
61*0a6a1f1dSLionel Sambuc  CGVTables.cpp
62f4a2713aSLionel Sambuc  CodeGenABITypes.cpp
63f4a2713aSLionel Sambuc  CodeGenAction.cpp
64f4a2713aSLionel Sambuc  CodeGenFunction.cpp
65f4a2713aSLionel Sambuc  CodeGenModule.cpp
66*0a6a1f1dSLionel Sambuc  CodeGenPGO.cpp
67f4a2713aSLionel Sambuc  CodeGenTBAA.cpp
68f4a2713aSLionel Sambuc  CodeGenTypes.cpp
69*0a6a1f1dSLionel Sambuc  CoverageMappingGen.cpp
70f4a2713aSLionel Sambuc  ItaniumCXXABI.cpp
71f4a2713aSLionel Sambuc  MicrosoftCXXABI.cpp
72f4a2713aSLionel Sambuc  ModuleBuilder.cpp
73*0a6a1f1dSLionel Sambuc  SanitizerMetadata.cpp
74f4a2713aSLionel Sambuc  TargetInfo.cpp
75f4a2713aSLionel Sambuc
76*0a6a1f1dSLionel Sambuc  DEPENDS
77*0a6a1f1dSLionel Sambuc  ${codegen_deps}
78f4a2713aSLionel Sambuc
79*0a6a1f1dSLionel Sambuc  LINK_LIBS
80f4a2713aSLionel Sambuc  clangAST
81*0a6a1f1dSLionel Sambuc  clangBasic
82f4a2713aSLionel Sambuc  clangFrontend
83*0a6a1f1dSLionel Sambuc  clangLex
84f4a2713aSLionel Sambuc  )
85