blob: 62ed63288de249dafb29b0e4c0400177ebfc201d [file]
// Copyright 2021 The IREE Authors
//
// Licensed under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#ifndef IREE_COMPILER_CODEGEN_LLVMGPU_COMMON_H_
#define IREE_COMPILER_CODEGEN_LLVMGPU_COMMON_H_
#include "mlir/Conversion/LLVMCommon/Pattern.h"
namespace mlir {
namespace iree_compiler {
void populateLLVMConversionPatterns(MLIRContext *context,
OwningRewritePatternList &patterns,
LLVMTypeConverter &converter, bool useROCM);
void populateScalarizeMathOps(RewritePatternSet &patterns);
/// Add patterns to convert AllocOp of shared memory to a global variable.
void populateConvertSharedMemoryAllocOps(RewritePatternSet &patterns);
} // namespace iree_compiler
} // namespace mlir
#endif // IREE_COMPILER_CODEGEN_LLVMGPU_COMMON_H_