File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -132,20 +132,16 @@ getConstantIntValues(ArrayRef<OpFoldResult> ofrs) {
132132 return res;
133133}
134134
135- // / Return true if `ofr` is constant integer equal to `value`.
136135bool isConstantIntValue (OpFoldResult ofr, int64_t value) {
137136 auto val = getConstantIntValue (ofr);
138137 return val && *val == value;
139138}
140139
141- // / Return true if all of `ofrs` are constant integers equal to `value`.
142140bool areAllConstantIntValue (ArrayRef<OpFoldResult> ofrs, int64_t value) {
143141 return llvm::all_of (
144142 ofrs, [&](OpFoldResult ofr) { return isConstantIntValue (ofr, value); });
145143}
146144
147- // / Return true if all of `ofrs` are constant integers equal to the
148- // / corresponding value in `values`.
149145bool areConstantIntValues (ArrayRef<OpFoldResult> ofrs,
150146 ArrayRef<int64_t > values) {
151147 if (ofrs.size () != values.size ())
You can’t perform that action at this time.
0 commit comments