Fix CMake build: account for renamed files and add missing include on MacOS

--

PiperOrigin-RevId: 242101364
This commit is contained in:
Mehdi Amini 2019-04-05 03:52:59 -07:00 committed by Mehdi Amini
parent 92df395068
commit 01e8ec94c3
3 changed files with 24 additions and 1 deletions

View File

@ -0,0 +1,21 @@
set(LLVM_LINK_COMPONENTS
Support
)
add_toy_chapter(toyc-ch4
toyc.cpp
parser/AST.cpp
mlir/MLIRGen.cpp
mlir/ToyDialect.cpp
mlir/ShapeInferencePass.cpp
mlir/ToyCombine.cpp
)
include_directories(include/)
target_link_libraries(toyc-ch4
PRIVATE
MLIRAnalysis
MLIRIR
MLIRParser
MLIRPass
MLIRTransforms)

View File

@ -26,6 +26,8 @@
#include "mlir/IR/PatternMatch.h"
#include "mlir/IR/StandardTypes.h"
#include <numeric>
namespace toy {
namespace {

View File

@ -1,7 +1,6 @@
add_llvm_library(MLIRTransforms
Canonicalizer.cpp
CMakeLists.txt
ConstantFold.cpp
CSE.cpp
DialectConversion.cpp
DmaGeneration.cpp
@ -16,6 +15,7 @@ add_llvm_library(MLIRTransforms
PipelineDataTransfer.cpp
SimplifyAffineStructures.cpp
StripDebugInfo.cpp
TestConstantFold.cpp
Utils/GreedyPatternRewriteDriver.cpp
Utils/LoopUtils.cpp
Utils/Utils.cpp