[Mlir-commits] [mlir] 46acea8 - [mlir] Remove unused variable 'kCopyFlag' in OpenACCToLLVMIRTranslation.cpp (NFC)
Jie Fu
llvmlistbot at llvm.org
Tue May 9 15:55:34 PDT 2023
Author: Jie Fu
Date: 2023-05-10T06:54:22+08:00
New Revision: 46acea8258438c547be458a09406c6f2909c1253
URL: https://github.com/llvm/llvm-project/commit/46acea8258438c547be458a09406c6f2909c1253
DIFF: https://github.com/llvm/llvm-project/commit/46acea8258438c547be458a09406c6f2909c1253.diff
LOG: [mlir] Remove unused variable 'kCopyFlag' in OpenACCToLLVMIRTranslation.cpp (NFC)
/data/llvm-project/mlir/lib/Target/LLVMIR/Dialect/OpenACC/OpenACCToLLVMIRTranslation.cpp:41:27: error: unused variable 'kCopyFlag' [-Werror,-Wunused-const-variable]
static constexpr uint64_t kCopyFlag = kDeviceCopyinFlag | kHostCopyoutFlag;
^
1 error generated.
Added:
Modified:
mlir/lib/Target/LLVMIR/Dialect/OpenACC/OpenACCToLLVMIRTranslation.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Target/LLVMIR/Dialect/OpenACC/OpenACCToLLVMIRTranslation.cpp b/mlir/lib/Target/LLVMIR/Dialect/OpenACC/OpenACCToLLVMIRTranslation.cpp
index d5d6c8298090..90aefac76342 100644
--- a/mlir/lib/Target/LLVMIR/Dialect/OpenACC/OpenACCToLLVMIRTranslation.cpp
+++ b/mlir/lib/Target/LLVMIR/Dialect/OpenACC/OpenACCToLLVMIRTranslation.cpp
@@ -38,7 +38,6 @@ using OpenACCIRBuilder = llvm::OpenMPIRBuilder;
static constexpr uint64_t kCreateFlag = 0x000;
static constexpr uint64_t kDeviceCopyinFlag = 0x001;
static constexpr uint64_t kHostCopyoutFlag = 0x002;
-static constexpr uint64_t kCopyFlag = kDeviceCopyinFlag | kHostCopyoutFlag;
static constexpr uint64_t kPresentFlag = 0x1000;
static constexpr uint64_t kDeleteFlag = 0x008;
// Runtime extension to implement the OpenACC second reference counter.
More information about the Mlir-commits
mailing list