Create Reduction Tree Pass
[lldb.git] / mlir / tools / mlir-reduce / CMakeLists.txt
index 642c5d9..b3a7c36 100644 (file)
@@ -32,10 +32,19 @@ set(LIBS
   )
 
 add_llvm_tool(mlir-reduce
+  Passes/FunctionReducer.cpp
+  ReductionNode.cpp
+  ReductionTreePass.cpp
   mlir-reduce.cpp
+
+  ADDITIONAL_HEADER_DIRS
+  ${MLIR_MAIN_INCLUDE_DIR}/mlir/Reducer
+
+  DEPENDS
+  MLIRReducerIncGen
   )
 
 target_link_libraries(mlir-reduce PRIVATE ${LIBS})
 llvm_update_compile_flags(mlir-reduce)
 
-mlir_check_all_link_libraries(mlir-reduce)
\ No newline at end of file
+mlir_check_all_link_libraries(mlir-reduce)