[Mlir-commits] [mlir] 571a867 - [mlir] Fix a warning

Kazu Hirata llvmlistbot at llvm.org
Wed Sep 25 23:49:54 PDT 2024


Author: Kazu Hirata
Date: 2024-09-25T23:49:47-07:00
New Revision: 571a867f1f7abc4a58420f60b2b121b5fd13e26b

URL: https://github.com/llvm/llvm-project/commit/571a867f1f7abc4a58420f60b2b121b5fd13e26b
DIFF: https://github.com/llvm/llvm-project/commit/571a867f1f7abc4a58420f60b2b121b5fd13e26b.diff

LOG: [mlir] Fix a warning

This patch fixes:

  mlir/lib/Target/LLVMIR/Dialect/LLVMIR/LLVMToLLVMIRTranslation.cpp:128:1:
  error: unused function 'convertOperandBundles'
  [-Werror,-Wunused-function]

Added: 
    

Modified: 
    mlir/lib/Target/LLVMIR/Dialect/LLVMIR/LLVMToLLVMIRTranslation.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Target/LLVMIR/Dialect/LLVMIR/LLVMToLLVMIRTranslation.cpp b/mlir/lib/Target/LLVMIR/Dialect/LLVMIR/LLVMToLLVMIRTranslation.cpp
index 78a3f1809aec31..72d85d796dd4a1 100644
--- a/mlir/lib/Target/LLVMIR/Dialect/LLVMIR/LLVMToLLVMIRTranslation.cpp
+++ b/mlir/lib/Target/LLVMIR/Dialect/LLVMIR/LLVMToLLVMIRTranslation.cpp
@@ -124,15 +124,6 @@ convertOperandBundles(OperandRangeRange bundleOperands,
   return bundles;
 }
 
-static SmallVector<llvm::OperandBundleDef>
-convertOperandBundles(OperandRangeRange bundleOperands,
-                      std::optional<ArrayRef<std::string>> bundleTags,
-                      LLVM::ModuleTranslation &moduleTranslation) {
-  if (!bundleTags)
-    bundleTags.emplace();
-  return convertOperandBundles(bundleOperands, *bundleTags, moduleTranslation);
-}
-
 /// Builder for LLVM_CallIntrinsicOp
 static LogicalResult
 convertCallLLVMIntrinsicOp(CallIntrinsicOp op, llvm::IRBuilderBase &builder,


        


More information about the Mlir-commits mailing list