Skip to content

Commit 9ed3001

Browse files
authored
[mlir][arith][nfc] Fix typos (#77700)
Cleanup after #77211
1 parent 093e6bd commit 9ed3001

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

mlir/include/mlir/Conversion/ArithCommon/AttrToLLVMConverter.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ convertArithFastMathAttrToLLVM(arith::FastMathFlagsAttr fmfAttr);
2929

3030
/// Maps arithmetic overflow enum values to LLVM enum values.
3131
LLVM::IntegerOverflowFlags
32-
convertArithOveflowFlagsToLLVM(arith::IntegerOverflowFlags arithFlags);
32+
convertArithOverflowFlagsToLLVM(arith::IntegerOverflowFlags arithFlags);
3333

3434
/// Creates an LLVM overflow attribute from a given arithmetic overflow
3535
/// attribute.
3636
LLVM::IntegerOverflowFlagsAttr
37-
convertArithOveflowAttrToLLVM(arith::IntegerOverflowFlagsAttr flagsAttr);
37+
convertArithOverflowAttrToLLVM(arith::IntegerOverflowFlagsAttr flagsAttr);
3838

3939
// Attribute converter that populates a NamedAttrList by removing the fastmath
4040
// attribute from the source operation attributes, and replacing it with an
@@ -80,7 +80,7 @@ class AttrConvertOverflowToLLVM {
8080
if (arithAttr) {
8181
StringRef targetAttrName = TargetOp::getIntegerOverflowAttrName();
8282
convertedAttr.set(targetAttrName,
83-
convertArithOveflowAttrToLLVM(arithAttr));
83+
convertArithOverflowAttrToLLVM(arithAttr));
8484
}
8585
}
8686

mlir/include/mlir/Dialect/Arith/IR/ArithOpsInterfaces.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def ArithIntegerOverflowFlagsInterface : OpInterface<"ArithIntegerOverflowFlagsI
9393
}]
9494
>,
9595
StaticInterfaceMethod<
96-
/*desc=*/ [{Returns the name of the IntegerOveflowFlagsAttr attribute
96+
/*desc=*/ [{Returns the name of the IntegerOverflowFlagsAttr attribute
9797
for the operation}],
9898
/*returnType=*/ "StringRef",
9999
/*methodName=*/ "getIntegerOverflowAttrName",

mlir/include/mlir/Dialect/LLVMIR/LLVMInterfaces.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def IntegerOverflowFlagsInterface : OpInterface<"IntegerOverflowFlagsInterface">
9292
}]
9393
>,
9494
StaticInterfaceMethod<
95-
/*desc=*/ [{Returns the name of the IntegerOveflowFlagsAttr attribute
95+
/*desc=*/ [{Returns the name of the IntegerOverflowFlagsAttr attribute
9696
for the operation}],
9797
/*returnType=*/ "StringRef",
9898
/*methodName=*/ "getIntegerOverflowAttrName",

mlir/lib/Conversion/ArithCommon/AttrToLLVMConverter.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ mlir::arith::convertArithFastMathAttrToLLVM(arith::FastMathFlagsAttr fmfAttr) {
3535
fmfAttr.getContext(), convertArithFastMathFlagsToLLVM(arithFMF));
3636
}
3737

38-
LLVM::IntegerOverflowFlags mlir::arith::convertArithOveflowFlagsToLLVM(
38+
LLVM::IntegerOverflowFlags mlir::arith::convertArithOverflowFlagsToLLVM(
3939
arith::IntegerOverflowFlags arithFlags) {
4040
LLVM::IntegerOverflowFlags llvmFlags{};
4141
const std::pair<arith::IntegerOverflowFlags, LLVM::IntegerOverflowFlags>
@@ -49,9 +49,9 @@ LLVM::IntegerOverflowFlags mlir::arith::convertArithOveflowFlagsToLLVM(
4949
return llvmFlags;
5050
}
5151

52-
LLVM::IntegerOverflowFlagsAttr mlir::arith::convertArithOveflowAttrToLLVM(
52+
LLVM::IntegerOverflowFlagsAttr mlir::arith::convertArithOverflowAttrToLLVM(
5353
arith::IntegerOverflowFlagsAttr flagsAttr) {
5454
arith::IntegerOverflowFlags arithFlags = flagsAttr.getValue();
5555
return LLVM::IntegerOverflowFlagsAttr::get(
56-
flagsAttr.getContext(), convertArithOveflowFlagsToLLVM(arithFlags));
56+
flagsAttr.getContext(), convertArithOverflowFlagsToLLVM(arithFlags));
5757
}

0 commit comments

Comments
 (0)