Changeset View
Changeset View
Standalone View
Standalone View
mlir/cmake/modules/AddMLIR.cmake
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | function(add_mlir_dialect dialect dialect_doc_filename) | ||||
add_dependencies(mlir-doc ${dialect_doc_filename}DocGen) | add_dependencies(mlir-doc ${dialect_doc_filename}DocGen) | ||||
endfunction() | endfunction() | ||||
# Declare the library associated with a dialect. | # Declare the library associated with a dialect. | ||||
function(add_mlir_dialect_library name) | function(add_mlir_dialect_library name) | ||||
set_property(GLOBAL APPEND PROPERTY MLIR_DIALECT_LIBS ${name}) | set_property(GLOBAL APPEND PROPERTY MLIR_DIALECT_LIBS ${name}) | ||||
add_llvm_library(${ARGV}) | add_llvm_library(${ARGV}) | ||||
endfunction(add_mlir_dialect_library) | endfunction(add_mlir_dialect_library) | ||||
# Declare the library associated with a conversion. | |||||
function(add_mlir_conversion_library name) | |||||
set_property(GLOBAL APPEND PROPERTY MLIR_CONVERSION_LIBS ${name}) | |||||
add_llvm_library(${ARGV}) | |||||
endfunction(add_mlir_conversion_library) |