Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fir] Split FIROptimizer lib into several smaller libraries
Partition libFIROptimizer into smaller libraries that reflect the structure. Adapt potential problems. This patch is part of the upstreaming effort from fir-dev branch. It's a building stone to upstreaming transformations. Reviewed By: schweitz Differential Revision: https://reviews.llvm.org/D111055 Co-authored-by: Eric Schweitz <eschweitz@nvidia.com>
- Loading branch information
1 parent
ca5be06
commit c02a8cd
Showing
12 changed files
with
96 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,4 @@ | ||
get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS) | ||
|
||
add_flang_library(FIROptimizer | ||
Dialect/FIRAttr.cpp | ||
Dialect/FIRDialect.cpp | ||
Dialect/FIROps.cpp | ||
Dialect/FIRType.cpp | ||
|
||
Support/FIRContext.cpp | ||
Support/InternalNames.cpp | ||
Support/KindMapping.cpp | ||
|
||
CodeGen/CGOps.cpp | ||
CodeGen/PreCGRewrite.cpp | ||
|
||
Transforms/Inliner.cpp | ||
|
||
DEPENDS | ||
FIROpsIncGen | ||
FIROptCodeGenPassIncGen | ||
FIROptTransformsPassIncGen | ||
CGOpsIncGen | ||
${dialect_libs} | ||
|
||
LINK_LIBS | ||
${dialect_libs} | ||
MLIRLLVMToLLVMIRTranslation | ||
MLIRTargetLLVMIRExport | ||
|
||
LINK_COMPONENTS | ||
AsmParser | ||
AsmPrinter | ||
Remarks | ||
) | ||
add_subdirectory(CodeGen) | ||
add_subdirectory(Dialect) | ||
add_subdirectory(Support) | ||
add_subdirectory(Transforms) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
add_flang_library(FIRCodeGen | ||
CGOps.cpp | ||
PreCGRewrite.cpp | ||
|
||
DEPENDS | ||
FIRDialect | ||
FIRSupport | ||
FIROptCodeGenPassIncGen | ||
CGOpsIncGen | ||
|
||
LINK_LIBS | ||
FIRDialect | ||
FIRSupport | ||
MLIROpenMPToLLVM | ||
MLIRLLVMToLLVMIRTranslation | ||
MLIRTargetLLVMIRExport | ||
|
||
LINK_COMPONENTS | ||
AsmParser | ||
AsmPrinter | ||
Remarks | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
add_flang_library(FIRDialect | ||
FIRAttr.cpp | ||
FIRDialect.cpp | ||
FIROps.cpp | ||
FIRType.cpp | ||
|
||
DEPENDS | ||
FIRSupport | ||
FIROpsIncGen | ||
|
||
LINK_LIBS | ||
FIRSupport | ||
MLIROpenMPToLLVM | ||
MLIRLLVMToLLVMIRTranslation | ||
MLIRTargetLLVMIRExport | ||
|
||
LINK_COMPONENTS | ||
AsmParser | ||
AsmPrinter | ||
Remarks | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
add_flang_library(FIRSupport | ||
FIRContext.cpp | ||
InternalNames.cpp | ||
KindMapping.cpp | ||
|
||
DEPENDS | ||
${dialect_libs} | ||
MLIRIR | ||
|
||
LINK_LIBS | ||
${dialect_libs} | ||
MLIROpenMPToLLVMIRTranslation | ||
MLIRLLVMToLLVMIRTranslation | ||
MLIRTargetLLVMIRExport | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
add_flang_library(FIRTransforms | ||
Inliner.cpp | ||
|
||
DEPENDS | ||
FIRDialect | ||
FIRSupport | ||
FIROptTransformsPassIncGen | ||
|
||
LINK_LIBS | ||
FIRDialect | ||
MLIRAffineToStandard | ||
MLIRLLVMIR | ||
MLIROpenACC | ||
MLIROpenMP | ||
FIRSupport | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.