[Mlir-commits] [mlir] c4f8da9 - [MLIR][emitc]: Remove unused functions (NFC)
Matthias Gehre
llvmlistbot at llvm.org
Tue Feb 18 23:47:38 PST 2025
Author: Matthias Gehre
Date: 2025-02-19T08:46:53+01:00
New Revision: c4f8da94a143b954de975091b3ec563bb01b0837
URL: https://github.com/llvm/llvm-project/commit/c4f8da94a143b954de975091b3ec563bb01b0837
DIFF: https://github.com/llvm/llvm-project/commit/c4f8da94a143b954de975091b3ec563bb01b0837.diff
LOG: [MLIR][emitc]: Remove unused functions (NFC)
Added:
Modified:
mlir/lib/Dialect/EmitC/IR/EmitC.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/EmitC/IR/EmitC.cpp b/mlir/lib/Dialect/EmitC/IR/EmitC.cpp
index 1e8952a7edf4e..eb7ffe2e032c4 100644
--- a/mlir/lib/Dialect/EmitC/IR/EmitC.cpp
+++ b/mlir/lib/Dialect/EmitC/IR/EmitC.cpp
@@ -991,27 +991,6 @@ LogicalResult emitc::VerbatimOp::verify() {
return success();
}
-[[maybe_unused]] static ParseResult
-parseVariadicTypeFmtArgs(AsmParser &p, SmallVector<Type> ¶ms) {
- Type type;
- if (p.parseType(type))
- return failure();
-
- params.push_back(type);
- while (succeeded(p.parseOptionalComma())) {
- if (p.parseType(type))
- return failure();
- params.push_back(type);
- }
-
- return success();
-}
-
-[[maybe_unused]] static void printVariadicTypeFmtArgs(AsmPrinter &p,
- ArrayRef<Type> params) {
- llvm::interleaveComma(params, p, [&](Type type) { p.printType(type); });
-}
-
FailureOr<SmallVector<ReplacementItem>> emitc::VerbatimOp::parseFormatString() {
// Error checking is done in verify.
return ::parseFormatString(getValue(), getFmtArgs());
More information about the Mlir-commits
mailing list