File tree Expand file tree Collapse file tree 6 files changed +11
-11
lines changed
lib/Dialect/HW/Transforms Expand file tree Collapse file tree 6 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ void FlattenModulesPass::runOnOperation() {
132132 continue ;
133133
134134 bool isLastModuleUse = --numUsesLeft == 0 ;
135- mlir::InlinerConfig config;
135+
136136 PrefixingInliner inliner (&getContext (), inst.getInstanceName ());
137137 if (failed (mlir::inlineRegion (inliner, config.getCloneCallback (),
138138 &module .getBody (), inst,
Original file line number Diff line number Diff line change 11// RUN: circt-opt --verify-diagnostics --split-input-file %s
22
33// -----
4- // expected-error @below {{invalid kind of type specified}}
4+ // expected-error @below {{invalid kind of Type specified}}
55// expected-error @below {{parameter 'elementType' which is to be a `PackedType`}}
66unrealized_conversion_cast to !moore.array <4 x string >
77
88// -----
9- // expected-error @below {{invalid kind of type specified}}
9+ // expected-error @below {{invalid kind of Type specified}}
1010// expected-error @below {{parameter 'elementType' which is to be a `PackedType`}}
1111unrealized_conversion_cast to !moore.open_array <string >
1212
Original file line number Diff line number Diff line change @@ -461,7 +461,7 @@ static LogicalResult processBuffer(
461461
462462 mlir::ExecutionEngineOptions engineOptions;
463463 engineOptions.jitCodeGenOptLevel = llvm::CodeGenOptLevel::Aggressive;
464- static std::function<llvm::Error (llvm::Module *)> transformer =
464+ std::function<llvm::Error (llvm::Module *)> transformer =
465465 mlir::makeOptimizingTransformer (
466466 /* optLevel=*/ 3 , /* sizeLevel=*/ 0 ,
467467 /* targetMachine=*/ nullptr );
Original file line number Diff line number Diff line change @@ -242,6 +242,9 @@ static LogicalResult executeBMC(MLIRContext &context) {
242242 };
243243
244244 std::unique_ptr<mlir::ExecutionEngine> engine;
245+ std::function<llvm::Error (llvm::Module *)> transformer =
246+ mlir::makeOptimizingTransformer (
247+ /* optLevel*/ 3 , /* sizeLevel=*/ 0 , /* targetMachine=*/ nullptr );
245248 {
246249 auto timer = ts.nest (" Setting up the JIT" );
247250 auto entryPoint =
@@ -264,9 +267,6 @@ static LogicalResult executeBMC(MLIRContext &context) {
264267 SmallVector<StringRef, 4 > sharedLibraries (sharedLibs.begin (),
265268 sharedLibs.end ());
266269 mlir::ExecutionEngineOptions engineOptions;
267- static std::function<llvm::Error (llvm::Module *)> transformer =
268- mlir::makeOptimizingTransformer (
269- /* optLevel*/ 3 , /* sizeLevel=*/ 0 , /* targetMachine=*/ nullptr );
270270 engineOptions.transformer = transformer;
271271 engineOptions.jitCodeGenOptLevel = llvm::CodeGenOptLevel::Aggressive;
272272 engineOptions.sharedLibPaths = sharedLibraries;
Original file line number Diff line number Diff line change @@ -282,6 +282,9 @@ static LogicalResult executeLEC(MLIRContext &context) {
282282 };
283283
284284 std::unique_ptr<mlir::ExecutionEngine> engine;
285+ std::function<llvm::Error (llvm::Module *)> transformer =
286+ mlir::makeOptimizingTransformer (
287+ /* optLevel*/ 3 , /* sizeLevel=*/ 0 , /* targetMachine=*/ nullptr );
285288 {
286289 auto timer = ts.nest (" Setting up the JIT" );
287290 auto entryPoint = dyn_cast_or_null<LLVM::LLVMFuncOp>(
@@ -304,9 +307,6 @@ static LogicalResult executeLEC(MLIRContext &context) {
304307 SmallVector<StringRef, 4 > sharedLibraries (sharedLibs.begin (),
305308 sharedLibs.end ());
306309 mlir::ExecutionEngineOptions engineOptions;
307- static std::function<llvm::Error (llvm::Module *)> transformer =
308- mlir::makeOptimizingTransformer (
309- /* optLevel*/ 3 , /* sizeLevel=*/ 0 , /* targetMachine=*/ nullptr );
310310 engineOptions.transformer = transformer;
311311 engineOptions.jitCodeGenOptLevel = llvm::CodeGenOptLevel::Aggressive;
312312 engineOptions.sharedLibPaths = sharedLibraries;
You can’t perform that action at this time.
0 commit comments