From 32f20a72fd4b242b094afb0a2f1ccf169384d256 Mon Sep 17 00:00:00 2001 From: Krzysztof Drewniak Date: Fri, 3 May 2024 21:20:54 +0000 Subject: [PATCH] Silence SerilaizeToHsaco warning for now --- .../mlir/include/mlir/Dialect/GPU/Transforms/Passes.h | 5 +++-- .../mlir/lib/Dialect/GPU/Transforms/SerializeToHsaco.cpp | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/external/llvm-project/mlir/include/mlir/Dialect/GPU/Transforms/Passes.h b/external/llvm-project/mlir/include/mlir/Dialect/GPU/Transforms/Passes.h index bdd70a4fe854..67e90435bb18 100644 --- a/external/llvm-project/mlir/include/mlir/Dialect/GPU/Transforms/Passes.h +++ b/external/llvm-project/mlir/include/mlir/Dialect/GPU/Transforms/Passes.h @@ -151,14 +151,15 @@ class SerializeToBlobPass : public OperationPass { // Registration //===----------------------------------------------------------------------===// +// Remove deprecation warnings because we're going to Get Around To This /// Register pass to serialize GPU kernel functions to a HSAco binary /// annotation. -LLVM_DEPRECATED("use Target attributes instead", "") +// LLVM_DEPRECATED("use Target attributes instead", "") void registerGpuSerializeToHsacoPass(); /// Create an instance of the GPU kernel function to HSAco binary serialization /// pass. -LLVM_DEPRECATED("use Target attributes instead", "") +// LLVM_DEPRECATED("use Target attributes instead", "") std::unique_ptr createGpuSerializeToHsacoPass(StringRef triple, StringRef arch, StringRef features, diff --git a/external/llvm-project/mlir/lib/Dialect/GPU/Transforms/SerializeToHsaco.cpp b/external/llvm-project/mlir/lib/Dialect/GPU/Transforms/SerializeToHsaco.cpp index dcf9804ca6dc..a914f81da09b 100644 --- a/external/llvm-project/mlir/lib/Dialect/GPU/Transforms/SerializeToHsaco.cpp +++ b/external/llvm-project/mlir/lib/Dialect/GPU/Transforms/SerializeToHsaco.cpp @@ -240,9 +240,9 @@ SerializeToHsacoPass::translateToLLVMIR(llvm::LLVMContext &llvmContext) { StringRef funcName = f.getName(); if ("printf" == funcName) needOpenCl = true; - if (funcName.startswith("__ockl_")) + if (funcName.starts_with("__ockl_")) needOckl = true; - if (funcName.startswith("__ocml_")) + if (funcName.starts_with("__ocml_")) needOcml = true; } }