e5a43186d3
Use OpInterfaces to add an interface for ops defining a return type function. This change does not use this trait in any meaningful way, I'll use it in a follow up to generalize and unify some of the op type traits/constraints. Also, currently the infer type function can only be manually specified in C++, that should rather be the fallback in future. PiperOrigin-RevId: 271883746
28 lines
636 B
CMake
28 lines
636 B
CMake
add_llvm_library(MLIRAnalysis STATIC
|
|
AffineAnalysis.cpp
|
|
AffineStructures.cpp
|
|
CallGraph.cpp
|
|
Dominance.cpp
|
|
InferTypeOpInterface.cpp
|
|
LoopAnalysis.cpp
|
|
MemRefBoundCheck.cpp
|
|
NestedMatcher.cpp
|
|
OpStats.cpp
|
|
SliceAnalysis.cpp
|
|
TestMemRefDependenceCheck.cpp
|
|
TestParallelismDetection.cpp
|
|
Utils.cpp
|
|
VectorAnalysis.cpp
|
|
Verifier.cpp
|
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Analysis
|
|
)
|
|
add_dependencies(MLIRAnalysis
|
|
MLIRAffineOps
|
|
MLIRCallOpInterfacesIncGen
|
|
MLIRTypeInferOpInterfaceIncGen
|
|
MLIRLoopOps
|
|
MLIRVectorOps
|
|
)
|
|
target_link_libraries(MLIRAnalysis MLIRAffineOps MLIRLoopOps MLIRVectorOps)
|