parent
caeaa390e2
commit
3119aebb50
|
@ -6,24 +6,19 @@ add_custom_command(OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/ONNXOps.td.inc
|
||||||
|
|
||||||
# Copy the generated files to respective destinations:
|
# Copy the generated files to respective destinations:
|
||||||
# ONNXOps.td.inc -> src/Dialect/ONNX/ONNXOps.td.inc
|
# ONNXOps.td.inc -> src/Dialect/ONNX/ONNXOps.td.inc
|
||||||
add_custom_command(OUTPUT ${ONNX_MLIR_SRC_ROOT}/src/Dialect/ONNX/ONNXOps.td.inc
|
add_custom_target(OMONNXOpsTableGenIncGen
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy
|
COMMAND ${CMAKE_COMMAND} -E copy
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/ONNXOps.td.inc
|
${CMAKE_CURRENT_SOURCE_DIR}/ONNXOps.td.inc
|
||||||
${ONNX_MLIR_SRC_ROOT}/src/Dialect/ONNX/ONNXOps.td.inc
|
${ONNX_MLIR_SRC_ROOT}/src/Dialect/ONNX/ONNXOps.td.inc
|
||||||
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/ONNXOps.td.inc)
|
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/ONNXOps.td.inc)
|
||||||
|
|
||||||
# OpBuildTable.inc -> src/Builder/OpBuildTable.inc
|
# OpBuildTable.inc -> src/Builder/OpBuildTable.inc
|
||||||
add_custom_command(OUTPUT ${ONNX_MLIR_SRC_ROOT}/src/Builder/OpBuildTable.inc
|
add_custom_target(OMONNXOpsBuildTableIncGen
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy
|
COMMAND ${CMAKE_COMMAND} -E copy
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/OpBuildTable.inc
|
${CMAKE_CURRENT_SOURCE_DIR}/OpBuildTable.inc
|
||||||
${ONNX_MLIR_SRC_ROOT}/src/Builder/OpBuildTable.inc
|
${ONNX_MLIR_SRC_ROOT}/src/Builder/OpBuildTable.inc
|
||||||
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/OpBuildTable.inc)
|
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/OpBuildTable.inc)
|
||||||
|
|
||||||
add_custom_target(OMONNXOpsTableGenIncGen
|
|
||||||
DEPENDS ${ONNX_MLIR_SRC_ROOT}/src/Dialect/ONNX/ONNXOps.td.inc)
|
|
||||||
add_custom_target(OMONNXOpsBuildTableIncGen
|
|
||||||
DEPENDS ${ONNX_MLIR_SRC_ROOT}/src/Builder/OpBuildTable.inc)
|
|
||||||
|
|
||||||
add_custom_target(OMONNXOpsIncTranslation
|
add_custom_target(OMONNXOpsIncTranslation
|
||||||
DEPENDS OMONNXOpsTableGenIncGen
|
DEPENDS OMONNXOpsTableGenIncGen
|
||||||
OMONNXOpsBuildTableIncGen)
|
OMONNXOpsBuildTableIncGen)
|
Loading…
Reference in New Issue