| # Support. |
| add_llvm_library(MLIRQuantizerSupport |
| Support/Configuration.cpp |
| Support/ConstraintAnalysisGraph.cpp |
| Support/Metadata.cpp |
| Support/Statistics.cpp |
| Support/TypeUtils.cpp |
| Support/UniformConstraints.cpp |
| Support/UniformSolvers.cpp |
| |
| ADDITIONAL_HEADER_DIRS |
| ) |
| |
| add_dependencies(MLIRQuantizerSupport |
| MLIRIR |
| MLIRQuantOps |
| MLIRSupport |
| MLIRStandardOps) |
| target_link_libraries(MLIRQuantizerSupport |
| MLIRIR |
| MLIRQuantOps |
| MLIRSupport |
| MLIRStandardOps |
| LLVMSupport |
| ) |
| |
| # Configurations. |
| add_llvm_library(MLIRQuantizerFxpMathConfig |
| Configurations/FxpMathConfig.cpp |
| |
| ADDITIONAL_HEADER_DIRS |
| ) |
| |
| add_dependencies(MLIRQuantizerFxpMathConfig |
| MLIRFxpMathOpsIncGen |
| MLIRQuantizerSupport) |
| target_link_libraries(MLIRQuantizerFxpMathConfig |
| MLIRIR |
| MLIRFxpMathOps |
| MLIRQuantOps |
| MLIRQuantizerSupport |
| ) |
| |
| # Transforms. |
| add_llvm_library(MLIRQuantizerTransforms |
| Transforms/AddDefaultStatsTestPass.cpp |
| Transforms/InferQuantizedTypesPass.cpp |
| Transforms/RemoveInstrumentationPass.cpp |
| |
| ADDITIONAL_HEADER_DIRS |
| ) |
| add_dependencies(MLIRQuantizerTransforms |
| MLIRQuantizerFxpMathConfig |
| MLIRQuantizerSupport |
| MLIRPass) |
| target_link_libraries(MLIRQuantizerTransforms |
| MLIRIR |
| MLIRQuantizerFxpMathConfig |
| MLIRQuantizerSupport |
| MLIRQuantOps |
| MLIRPass |
| LLVMSupport |
| ) |