@@ -162,8 +162,8 @@ Value mlir::tosa::getTosaConstShape(ImplicitLocOpBuilder &builder,
162
162
llvm::ArrayRef<int64_t > shape) {
163
163
auto attr = builder.getIndexTensorAttr (convertFromMlirShape (shape));
164
164
auto type = mlir::tosa::shapeType::get (builder.getContext (), shape.size ());
165
- mlir::Operation *mlir_op = tosa::ConstShapeOp::create (builder, type, attr);
166
- return mlir_op ->getResult (0 );
165
+ mlir::Operation *mlirOp = tosa::ConstShapeOp::create (builder, type, attr);
166
+ return mlirOp ->getResult (0 );
167
167
}
168
168
169
169
Value mlir::tosa::getTosaConstShape (PatternRewriter &rewriter, Location loc,
@@ -179,7 +179,7 @@ SmallVector<int64_t> mlir::tosa::convertFromMlirShape(ArrayRef<int64_t> shape) {
179
179
}
180
180
181
181
bool mlir::tosa::getConstShapeValues (Operation *op,
182
- llvm::SmallVector<int64_t > &result_shape ) {
182
+ llvm::SmallVector<int64_t > &resultShape ) {
183
183
if (!op) {
184
184
return false ;
185
185
}
@@ -188,7 +188,7 @@ bool mlir::tosa::getConstShapeValues(Operation *op,
188
188
DenseElementsAttr elementsAttr = cast<DenseElementsAttr>(constOpAttr);
189
189
for (int i = 0 ; i < elementsAttr.size (); i++) {
190
190
int64_t val = elementsAttr.getValues <int64_t >()[i];
191
- result_shape .push_back (val);
191
+ resultShape .push_back (val);
192
192
}
193
193
return true ;
194
194
}
@@ -204,9 +204,9 @@ mlir::tosa::convertFromIntAttr(const DenseElementsAttr &attr, const int rank) {
204
204
return SmallVector<int64_t >(rank, v);
205
205
}
206
206
207
- if (auto int_array_attr = llvm::dyn_cast<DenseIntElementsAttr>(attr)) {
207
+ if (auto intArrayAttr = llvm::dyn_cast<DenseIntElementsAttr>(attr)) {
208
208
SmallVector<int64_t > vec;
209
- for (APInt val : int_array_attr .getValues <APInt>()) {
209
+ for (APInt val : intArrayAttr .getValues <APInt>()) {
210
210
vec.push_back (val.getSExtValue ());
211
211
}
212
212
return vec;
0 commit comments