Files
clang-p2996/flang/lib/Optimizer/CodeGen/CMakeLists.txt
Valentin Clement (バレンタイン クレメン) e9639e9c06 [flang][NFC] Extract FIROpConversion to its own files (#86213)
This PR extracts `FIROpConversion` and `FIROpAndTypeConversion`
templated base patterns to a header file. All the functions from
FIROpConversion that do not require the template argument are moved to a
base class named `ConvertFIRToLLVMPattern`.
This move is done so the `FIROpConversion` pattern and all its utility
functions can be reused outside of the codegen pass.

For the most part the code is only moved to the new files and not
modified. The only update is that addition of the PatternBenefit
argument with a default value to the constructor so it can be forwarded
to the `ConversionPattern` ctor.

This split is done in a similar way for the `ConvertOpToLLVMPattern`
base pattern that is based on the `ConvertToLLVMPattern` base class in
`mlir/include/mlir/Conversion/LLVMCommon/Pattern.h`.
2024-03-22 12:56:45 -07:00

41 lines
649 B
CMake

add_flang_library(FIRCodeGen
BoxedProcedure.cpp
CGOps.cpp
CodeGen.cpp
CodeGenOpenMP.cpp
FIROpPatterns.cpp
PreCGRewrite.cpp
TBAABuilder.cpp
Target.cpp
TargetRewrite.cpp
TypeConverter.cpp
DEPENDS
FIRDialect
FIROptCodeGenPassIncGen
CGOpsIncGen
LINK_LIBS
FIRAnalysis
FIRBuilder
FIRDialect
FIRDialectSupport
FIRSupport
MLIRComplexToLLVM
MLIRComplexToStandard
MLIRMathToFuncs
MLIRMathToLLVM
MLIRMathToLibm
MLIROpenMPToLLVM
MLIRBuiltinToLLVMIRTranslation
MLIRLLVMToLLVMIRTranslation
MLIRTargetLLVMIRExport
MLIRVectorToLLVM
LINK_COMPONENTS
AsmParser
AsmPrinter
Remarks
TargetParser
)