The current state of the top level Analysis/ directory is that it contains two libraries; a generic Analysis library (free from dialect dependencies), and a LoopAnalysis library that contains various analysis utilities that originated from Affine loop transformations. This commit moves the LoopAnalysis to the more appropriate home of `Dialect/Affine/Analysis/`, given the use and intention of the majority of the code within it. After the move, if there are generic utilities that would fit better in the top-level Analysis/ directory, we can move them. Differential Revision: https://reviews.llvm.org/D117351
40 lines
738 B
CMake
40 lines
738 B
CMake
set(LLVM_OPTIONAL_SOURCES
|
|
AliasAnalysis.cpp
|
|
BufferViewFlowAnalysis.cpp
|
|
CallGraph.cpp
|
|
DataFlowAnalysis.cpp
|
|
DataLayoutAnalysis.cpp
|
|
Liveness.cpp
|
|
SliceAnalysis.cpp
|
|
|
|
AliasAnalysis/LocalAliasAnalysis.cpp
|
|
)
|
|
|
|
add_mlir_library(MLIRAnalysis
|
|
AliasAnalysis.cpp
|
|
BufferViewFlowAnalysis.cpp
|
|
CallGraph.cpp
|
|
DataFlowAnalysis.cpp
|
|
DataLayoutAnalysis.cpp
|
|
Liveness.cpp
|
|
SliceAnalysis.cpp
|
|
|
|
AliasAnalysis/LocalAliasAnalysis.cpp
|
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Analysis
|
|
|
|
DEPENDS
|
|
mlir-headers
|
|
|
|
LINK_LIBS PUBLIC
|
|
MLIRCallInterfaces
|
|
MLIRControlFlowInterfaces
|
|
MLIRDataLayoutInterfaces
|
|
MLIRInferTypeOpInterface
|
|
MLIRSideEffectInterfaces
|
|
MLIRViewLikeInterface
|
|
)
|
|
|
|
add_subdirectory(Presburger)
|