1set(LLVM_LINK_COMPONENTS 2 BitReader 3 BitWriter 4 Core 5 IPO 6 IRReader 7 InstCombine 8 Instrumentation 9 Linker 10 MC 11 ObjCARCOpts 12 ProfileData 13 ScalarOpts 14 Support 15 Target 16 TransformUtils 17 ) 18 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. 23set(codegen_deps intrinsics_gen) 24if (CLANG_BUILT_STANDALONE) 25 set(codegen_deps) 26endif() 27 28add_clang_library(clangCodeGen 29 BackendUtil.cpp 30 CGAtomic.cpp 31 CGBlocks.cpp 32 CGBuiltin.cpp 33 CGCUDANV.cpp 34 CGCUDARuntime.cpp 35 CGCXX.cpp 36 CGCXXABI.cpp 37 CGCall.cpp 38 CGClass.cpp 39 CGCleanup.cpp 40 CGDebugInfo.cpp 41 CGDecl.cpp 42 CGDeclCXX.cpp 43 CGException.cpp 44 CGExpr.cpp 45 CGExprAgg.cpp 46 CGExprCXX.cpp 47 CGExprComplex.cpp 48 CGExprConstant.cpp 49 CGExprScalar.cpp 50 CGLoopInfo.cpp 51 CGObjC.cpp 52 CGObjCGNU.cpp 53 CGObjCMac.cpp 54 CGObjCRuntime.cpp 55 CGOpenCLRuntime.cpp 56 CGOpenMPRuntime.cpp 57 CGRecordLayoutBuilder.cpp 58 CGStmt.cpp 59 CGStmtOpenMP.cpp 60 CGVTT.cpp 61 CGVTables.cpp 62 CodeGenABITypes.cpp 63 CodeGenAction.cpp 64 CodeGenFunction.cpp 65 CodeGenModule.cpp 66 CodeGenPGO.cpp 67 CodeGenTBAA.cpp 68 CodeGenTypes.cpp 69 CoverageMappingGen.cpp 70 ItaniumCXXABI.cpp 71 MicrosoftCXXABI.cpp 72 ModuleBuilder.cpp 73 SanitizerMetadata.cpp 74 TargetInfo.cpp 75 76 DEPENDS 77 ${codegen_deps} 78 79 LINK_LIBS 80 clangAST 81 clangBasic 82 clangFrontend 83 clangLex 84 ) 85