I am making a CG pass to depend on `FIROpenACCSupport` in #134346. This introduces a cyclic dependency between `FIROpenACCSupport` and `FIRCodeGen`. This patch splits `FIRCodeGen` into `FIRCodeGenDialect` (for FIR CG dialect definition) and `FIRCodeGen` (for the CG passes). Now, `FIROpenACCSupport` depends on `FIRCodeGenDialect`, and `FIRCodeGen` depends on `FIROpenACCSupport`.
76 lines
1.2 KiB
CMake
76 lines
1.2 KiB
CMake
get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
|
|
get_property(extension_libs GLOBAL PROPERTY MLIR_EXTENSION_LIBS)
|
|
|
|
add_flang_library(flangFrontend
|
|
CompilerInstance.cpp
|
|
CompilerInvocation.cpp
|
|
CodeGenOptions.cpp
|
|
ParserActions.cpp
|
|
FrontendAction.cpp
|
|
FrontendActions.cpp
|
|
FrontendOptions.cpp
|
|
TextDiagnosticPrinter.cpp
|
|
TextDiagnosticBuffer.cpp
|
|
TextDiagnostic.cpp
|
|
|
|
DEPENDS
|
|
CUFDialect
|
|
FIRDialect
|
|
FIROptCodeGenPassIncGen
|
|
FIROptTransformsPassIncGen
|
|
HLFIRDialect
|
|
|
|
LINK_LIBS
|
|
CUFDialect
|
|
FortranParser
|
|
FortranSemantics
|
|
FortranEvaluate
|
|
FortranSupport
|
|
FortranLower
|
|
FortranSupport
|
|
FIRDialect
|
|
FIRDialectSupport
|
|
FIRSupport
|
|
FIRBuilder
|
|
FIRCodeGen
|
|
FIRCodeGenDialect
|
|
FIRTransforms
|
|
HLFIRDialect
|
|
HLFIRTransforms
|
|
flangPasses
|
|
FIROpenACCSupport
|
|
FlangOpenMPTransforms
|
|
|
|
LINK_COMPONENTS
|
|
Passes
|
|
Analysis
|
|
Extensions
|
|
IRPrinter
|
|
IRReader
|
|
Option
|
|
Support
|
|
Target
|
|
TargetParser
|
|
FrontendDriver
|
|
FrontendOpenACC
|
|
FrontendOpenMP
|
|
|
|
MLIR_DEPS
|
|
MLIRIR
|
|
${dialect_libs}
|
|
${extension_libs}
|
|
|
|
MLIR_LIBS
|
|
MLIRTransforms
|
|
MLIRBuiltinToLLVMIRTranslation
|
|
MLIRLLVMToLLVMIRTranslation
|
|
MLIRSCFToControlFlow
|
|
MLIRTargetLLVMIRImport
|
|
${dialect_libs}
|
|
${extension_libs}
|
|
|
|
CLANG_LIBS
|
|
clangBasic
|
|
clangDriver
|
|
)
|