File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ class StaticVerifierFunctionEmitter {
114
114
// /
115
115
// / Constraints that do not meet the restriction that they can only reference
116
116
// / `$_self`, `$_op`, and `$_builder` are not uniqued.
117
- void emitPatternConstraints (const DenseSet <DagLeaf> & constraints);
117
+ void emitPatternConstraints (const ArrayRef <DagLeaf> constraints);
118
118
119
119
// / Get the name of the static function used for the given type constraint.
120
120
// / These functions are used for operand and result constraints and have the
@@ -178,7 +178,7 @@ class StaticVerifierFunctionEmitter {
178
178
// / Collect and unique all the constraints used by operations.
179
179
void collectOpConstraints (ArrayRef<llvm::Record *> opDefs);
180
180
// / Collect and unique all pattern constraints.
181
- void collectPatternConstraints (const DenseSet <DagLeaf> & constraints);
181
+ void collectPatternConstraints (ArrayRef <DagLeaf> constraints);
182
182
183
183
// / The output stream.
184
184
raw_ostream &os;
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ void StaticVerifierFunctionEmitter::emitOpConstraints(
62
62
}
63
63
64
64
void StaticVerifierFunctionEmitter::emitPatternConstraints (
65
- const llvm::DenseSet <DagLeaf> & constraints) {
65
+ const llvm::ArrayRef <DagLeaf> constraints) {
66
66
collectPatternConstraints (constraints);
67
67
emitPatternConstraints ();
68
68
}
@@ -332,7 +332,7 @@ void StaticVerifierFunctionEmitter::collectOpConstraints(
332
332
}
333
333
334
334
void StaticVerifierFunctionEmitter::collectPatternConstraints (
335
- const llvm::DenseSet <DagLeaf> & constraints) {
335
+ const llvm::ArrayRef <DagLeaf> constraints) {
336
336
for (auto &leaf : constraints) {
337
337
assert (leaf.isOperandMatcher () || leaf.isAttrMatcher ());
338
338
collectConstraint (
Original file line number Diff line number Diff line change @@ -322,7 +322,7 @@ class StaticMatcherHelper {
322
322
int staticMatcherCounter = 0 ;
323
323
324
324
// The DagLeaf which contains type or attr constraint.
325
- DenseSet <DagLeaf> constraints;
325
+ SetVector <DagLeaf> constraints;
326
326
327
327
// Static type/attribute verification function emitter.
328
328
StaticVerifierFunctionEmitter staticVerifierEmitter;
@@ -1708,7 +1708,7 @@ void StaticMatcherHelper::populateStaticMatchers(raw_ostream &os) {
1708
1708
}
1709
1709
1710
1710
void StaticMatcherHelper::populateStaticConstraintFunctions (raw_ostream &os) {
1711
- staticVerifierEmitter.emitPatternConstraints (constraints);
1711
+ staticVerifierEmitter.emitPatternConstraints (constraints. getArrayRef () );
1712
1712
}
1713
1713
1714
1714
void StaticMatcherHelper::addPattern (Record *record) {
You can’t perform that action at this time.
0 commit comments