This MaskingOpInterface provides masking cababilitites to those operations that implement it. For only is only implemented by the `vector.mask` operation and it's used to break the dependency between the Vector dialect (where the `vector.mask` op lives) and operations implementing the MaskableOpInterface. Reviewed By: nicolasvasilache Differential Revision: https://reviews.llvm.org/D136734
23 lines
469 B
CMake
23 lines
469 B
CMake
set(LLVM_OPTIONAL_SOURCES
|
|
MaskableOpInterface.cpp
|
|
MaskingOpInterface.cpp
|
|
)
|
|
|
|
function(add_mlir_interface_library name)
|
|
add_mlir_library(MLIR${name}
|
|
${name}.cpp
|
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/Vector/Interfaces
|
|
|
|
DEPENDS
|
|
MLIR${name}IncGen
|
|
|
|
LINK_LIBS PUBLIC
|
|
MLIRIR
|
|
)
|
|
endfunction(add_mlir_interface_library)
|
|
|
|
add_mlir_interface_library(MaskableOpInterface)
|
|
add_mlir_interface_library(MaskingOpInterface)
|