Skip to content

Commit 06c3902

Browse files
authored
[LLVM] bump to f87109f018faad5f3f1bf8a4668754c24e84e886 (#8431)
1 parent 612298e commit 06c3902

File tree

9 files changed

+11
-36
lines changed

9 files changed

+11
-36
lines changed

lib/Bindings/Python/CMakeLists.txt

+2-8
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ set(PYTHON_BINDINGS_LINK_LIBS
5353
CIRCTCAPITransforms
5454
MLIRCAPIIndex
5555
MLIRCAPISMT
56+
MLIRCAPIExportSMTLIB
5657
# needed for mlirFrozenRewritePatternSetDestroy
5758
# but not the actual passes
5859
MLIRCAPITransforms
@@ -240,14 +241,6 @@ declare_mlir_dialect_python_bindings(
240241
dialects/verif.py
241242
DIALECT_NAME verif)
242243

243-
declare_mlir_dialect_python_bindings(
244-
ADD_TO_PARENT CIRCTBindingsPythonSources.Dialects
245-
ROOT_DIR "${CMAKE_CURRENT_SOURCE_DIR}"
246-
TD_FILE dialects/SMTOps.td
247-
SOURCES
248-
dialects/smt.py
249-
DIALECT_NAME smt)
250-
251244
declare_mlir_dialect_python_bindings(
252245
ADD_TO_PARENT CIRCTBindingsPythonSources.Dialects
253246
ROOT_DIR "${CMAKE_CURRENT_SOURCE_DIR}"
@@ -277,6 +270,7 @@ add_mlir_python_modules(CIRCTPythonModules
277270
INSTALL_PREFIX "python_packages/circt_core/circt"
278271
DECLARED_SOURCES
279272
MLIRPythonSources.Core
273+
MLIRPythonSources.Dialects.smt
280274
CIRCTBindingsPythonExtension
281275
CIRCTBindingsPythonSources
282276
COMMON_CAPI_LINK_LIBS

lib/Bindings/Python/dialects/SMTOps.td

-14
This file was deleted.

lib/Bindings/Python/dialects/smt.py

-5
This file was deleted.

lib/Conversion/ArcToLLVM/LowerArcToLLVM.cpp

+4-3
Original file line numberDiff line numberDiff line change
@@ -382,11 +382,12 @@ struct SimInstantiateOpLowering
382382
Type convertedIndex = typeConverter->convertType(rewriter.getIndexType());
383383

384384
FailureOr<LLVM::LLVMFuncOp> mallocFunc =
385-
LLVM::lookupOrCreateMallocFn(moduleOp, convertedIndex);
385+
LLVM::lookupOrCreateMallocFn(rewriter, moduleOp, convertedIndex);
386386
if (failed(mallocFunc))
387387
return mallocFunc;
388388

389-
FailureOr<LLVM::LLVMFuncOp> freeFunc = LLVM::lookupOrCreateFreeFn(moduleOp);
389+
FailureOr<LLVM::LLVMFuncOp> freeFunc =
390+
LLVM::lookupOrCreateFreeFn(rewriter, moduleOp);
390391
if (failed(freeFunc))
391392
return freeFunc;
392393

@@ -553,7 +554,7 @@ struct SimEmitValueOpLowering
553554

554555
// Lookup of create printf function symbol.
555556
auto printfFunc = LLVM::lookupOrCreateFn(
556-
moduleOp, "printf", LLVM::LLVMPointerType::get(getContext()),
557+
rewriter, moduleOp, "printf", LLVM::LLVMPointerType::get(getContext()),
557558
LLVM::LLVMVoidType::get(getContext()), true);
558559
if (failed(printfFunc))
559560
return printfFunc;

lib/Conversion/SMTToZ3LLVM/LowerSMTToZ3LLVM.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ class SMTLoweringPattern : public OpConversionPattern<OpTy> {
150150
builder.getBlock()->getParent()->getParentOfType<ModuleOp>();
151151
builder.setInsertionPointToEnd(module.getBody());
152152
auto funcOpResult = LLVM::lookupOrCreateFn(
153-
module, name, funcType.getParams(), funcType.getReturnType(),
153+
builder, module, name, funcType.getParams(), funcType.getReturnType(),
154154
funcType.getVarArg());
155155
assert(succeeded(funcOpResult) && "expected to lookup or create printf");
156156
funcOp = funcOpResult.value();

lib/Dialect/ESI/Passes/ESILowerTypes.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ class LowerTypesConverter : public TypeConverter {
4848
addConversion([](Type t) { return t; });
4949
addConversion([](WindowType window) { return window.getLoweredType(); });
5050
addSourceMaterialization(wrapMaterialization);
51-
addArgumentMaterialization(wrapMaterialization);
5251
addTargetMaterialization(unwrapMaterialization);
5352
}
5453

lib/Tools/circt-bmc/LowerToBMC.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ void LowerToBMCPass::runOnOperation() {
7676

7777
// Lookup or declare printf function.
7878
auto printfFunc =
79-
LLVM::lookupOrCreateFn(moduleOp, "printf", ptrTy, voidTy, true);
79+
LLVM::lookupOrCreateFn(builder, moduleOp, "printf", ptrTy, voidTy, true);
8080
if (failed(printfFunc)) {
8181
moduleOp->emitError("failed to lookup or create printf");
8282
return signalPassFailure();

lib/Tools/circt-lec/ConstructLEC.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ void ConstructLECPass::runOnOperation() {
7373
auto voidTy = LLVM::LLVMVoidType::get(&getContext());
7474

7575
// Lookup or declare printf function.
76-
auto printfFunc =
77-
LLVM::lookupOrCreateFn(getOperation(), "printf", ptrTy, voidTy, true);
76+
auto printfFunc = LLVM::lookupOrCreateFn(builder, getOperation(), "printf",
77+
ptrTy, voidTy, true);
7878
if (failed(printfFunc)) {
7979
getOperation()->emitError("failed to lookup or create printf");
8080
return signalPassFailure();

llvm

Submodule llvm updated 2380 files

0 commit comments

Comments
 (0)