github.com/johnnyeven/libtools@v0.0.0-20191126065708-61829c1adf46/third_party/mlir/lib/Quantizer/CMakeLists.txt (about)

     1  # Support.
     2  add_llvm_library(MLIRQuantizerSupport
     3    Support/Configuration.cpp
     4    Support/ConstraintAnalysisGraph.cpp
     5    Support/Metadata.cpp
     6    Support/Statistics.cpp
     7    Support/TypeUtils.cpp
     8    Support/UniformConstraints.cpp
     9    Support/UniformSolvers.cpp
    10  
    11    ADDITIONAL_HEADER_DIRS
    12    )
    13  add_dependencies(MLIRQuantizerSupport
    14                   MLIRIR
    15                   MLIRQuantOps
    16                   MLIRSupport
    17                   MLIRStandardOps)
    18  
    19  # Configurations.
    20  add_llvm_library(MLIRQuantizerFxpMathConfig
    21    Configurations/FxpMathConfig.cpp
    22  
    23    ADDITIONAL_HEADER_DIRS
    24    )
    25  add_dependencies(MLIRQuantizerFxpMathConfig
    26                   MLIRFxpMathOpsIncGen
    27                   MLIRQuantizerSupport)
    28  
    29  # Transforms.
    30  add_llvm_library(MLIRQuantizerTransforms
    31    Transforms/AddDefaultStatsTestPass.cpp
    32    Transforms/InferQuantizedTypesPass.cpp
    33    Transforms/RemoveInstrumentationPass.cpp
    34  
    35    ADDITIONAL_HEADER_DIRS
    36    )
    37  add_dependencies(MLIRQuantizerTransforms
    38    MLIRQuantizerFxpMathConfig
    39    MLIRQuantizerSupport
    40    MLIRPass)
    41  target_link_libraries(MLIRQuantizerTransforms
    42    MLIRQuantizerFxpMathConfig
    43    MLIRQuantizerSupport
    44    MLIRPass)