summaryrefslogtreecommitdiffstats
path: root/mlir/lib/Quantizer/CMakeLists.txt
blob: bc157d0e97990a258a78c09a137726ad2da2251f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# 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)

# Configurations.
add_llvm_library(MLIRQuantizerFxpMathConfig
  Configurations/FxpMathConfig.cpp

  ADDITIONAL_HEADER_DIRS
  )
add_dependencies(MLIRQuantizerFxpMathConfig
                 MLIRFxpMathOpsIncGen
                 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
  MLIRQuantizerFxpMathConfig
  MLIRQuantizerSupport
  MLIRPass)
OpenPOWER on IntegriCloud