Skip to content

Commit 54e70ac

Browse files
committed
[mlir][SMT] remove custom forall/exists builder because of asan memory leak
1 parent a4fbc6f commit 54e70ac

File tree

4 files changed

+0
-220
lines changed

4 files changed

+0
-220
lines changed

mlir/include/mlir/Dialect/SMT/IR/SMTOps.td

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -448,18 +448,6 @@ class QuantifierOp<string mnemonic> : SMTOp<mnemonic, [
448448
VariadicRegion<SizedRegion<1>>:$patterns);
449449
let results = (outs BoolType:$result);
450450

451-
let builders = [
452-
OpBuilder<(ins
453-
"TypeRange":$boundVarTypes,
454-
"function_ref<Value(OpBuilder &, Location, ValueRange)>":$bodyBuilder,
455-
CArg<"std::optional<ArrayRef<StringRef>>", "std::nullopt">:$boundVarNames,
456-
CArg<"function_ref<ValueRange(OpBuilder &, Location, ValueRange)>",
457-
"{}">:$patternBuilder,
458-
CArg<"uint32_t", "0">:$weight,
459-
CArg<"bool", "false">:$noPattern)>
460-
];
461-
let skipDefaultBuilders = true;
462-
463451
let assemblyFormat = [{
464452
($boundVarNames^)? (`no_pattern` $noPattern^)? (`weight` $weight^)?
465453
attr-dict-with-keyword $body (`patterns` $patterns^)?

mlir/lib/Dialect/SMT/IR/SMTOps.cpp

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -432,16 +432,6 @@ LogicalResult ForallOp::verifyRegions() {
432432
return verifyQuantifierRegions(*this);
433433
}
434434

435-
void ForallOp::build(
436-
OpBuilder &odsBuilder, OperationState &odsState, TypeRange boundVarTypes,
437-
function_ref<Value(OpBuilder &, Location, ValueRange)> bodyBuilder,
438-
std::optional<ArrayRef<StringRef>> boundVarNames,
439-
function_ref<ValueRange(OpBuilder &, Location, ValueRange)> patternBuilder,
440-
uint32_t weight, bool noPattern) {
441-
buildQuantifier<Properties>(odsBuilder, odsState, boundVarTypes, bodyBuilder,
442-
boundVarNames, patternBuilder, weight, noPattern);
443-
}
444-
445435
//===----------------------------------------------------------------------===//
446436
// ExistsOp
447437
//===----------------------------------------------------------------------===//
@@ -458,15 +448,5 @@ LogicalResult ExistsOp::verifyRegions() {
458448
return verifyQuantifierRegions(*this);
459449
}
460450

461-
void ExistsOp::build(
462-
OpBuilder &odsBuilder, OperationState &odsState, TypeRange boundVarTypes,
463-
function_ref<Value(OpBuilder &, Location, ValueRange)> bodyBuilder,
464-
std::optional<ArrayRef<StringRef>> boundVarNames,
465-
function_ref<ValueRange(OpBuilder &, Location, ValueRange)> patternBuilder,
466-
uint32_t weight, bool noPattern) {
467-
buildQuantifier<Properties>(odsBuilder, odsState, boundVarTypes, bodyBuilder,
468-
boundVarNames, patternBuilder, weight, noPattern);
469-
}
470-
471451
#define GET_OP_CLASSES
472452
#include "mlir/Dialect/SMT/IR/SMT.cpp.inc"

mlir/unittests/Dialect/SMT/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
add_mlir_unittest(MLIRSMTTests
22
AttributeTest.cpp
3-
QuantifierTest.cpp
43
TypeTest.cpp
54
)
65

mlir/unittests/Dialect/SMT/QuantifierTest.cpp

Lines changed: 0 additions & 187 deletions
This file was deleted.

0 commit comments

Comments
 (0)