Skip to content

Commit

Permalink
Silence SerilaizeToHsaco warning for now
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysz00 committed May 8, 2024
1 parent f3b6fd7 commit 32f20a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,14 +151,15 @@ class SerializeToBlobPass : public OperationPass<gpu::GPUModuleOp> {
// 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<Pass> createGpuSerializeToHsacoPass(StringRef triple,
StringRef arch,
StringRef features,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 32f20a7

Please sign in to comment.