File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -512,20 +512,20 @@ void ReduceMinOp::print(OpAsmPrinter &parser) {
512
512
// Tosa utilities.
513
513
// ===----------------------------------------------------------------------===//
514
514
515
- std::optional<int64_t > idivCheck (const int64_t lhs, const int64_t rhs) {
515
+ static std::optional<int64_t > idivCheck (const int64_t lhs, const int64_t rhs) {
516
516
if (lhs % rhs != 0 )
517
517
return std::nullopt ;
518
518
return lhs / rhs;
519
519
}
520
520
521
- Type getStorageElementTypeOrSelf (Type type) {
521
+ static Type getStorageElementTypeOrSelf (Type type) {
522
522
auto srcType = getElementTypeOrSelf (type);
523
523
if (auto quantType = llvm::dyn_cast<mlir::quant::QuantizedType>(srcType))
524
524
srcType = quantType.getStorageType ();
525
525
return srcType;
526
526
}
527
527
528
- Type getStorageElementTypeOrSelf (Value value) {
528
+ static Type getStorageElementTypeOrSelf (Value value) {
529
529
return getStorageElementTypeOrSelf (value.getType ());
530
530
}
531
531
You can’t perform that action at this time.
0 commit comments