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