Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions mlir/include/mlir/Conversion/PtrToLLVM/PtrToLLVM.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
//===- PtrToLLVM.h - Ptr to LLVM dialect conversion -------------*- C++ -*-===//
//
// Part of the LLVM Project, 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 MLIR_CONVERSION_PTRTOLLVM_PTRTOLLVM_H
#define MLIR_CONVERSION_PTRTOLLVM_PTRTOLLVM_H

#include <memory>

namespace mlir {
class DialectRegistry;
class LLVMTypeConverter;
class RewritePatternSet;
namespace ptr {
/// Populate the convert to LLVM patterns for the `ptr` dialect.
void populatePtrToLLVMConversionPatterns(LLVMTypeConverter &converter,
RewritePatternSet &patterns);
/// Register the convert to LLVM interface for the `ptr` dialect.
void registerConvertPtrToLLVMInterface(DialectRegistry &registry);
} // namespace ptr
} // namespace mlir

#endif // MLIR_CONVERSION_PTRTOLLVM_PTRTOLLVM_H
1 change: 1 addition & 0 deletions mlir/lib/Conversion/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ add_subdirectory(NVVMToLLVM)
add_subdirectory(OpenACCToSCF)
add_subdirectory(OpenMPToLLVM)
add_subdirectory(PDLToPDLInterp)
add_subdirectory(PtrToLLVM)
add_subdirectory(ReconcileUnrealizedCasts)
add_subdirectory(SCFToControlFlow)
add_subdirectory(SCFToEmitC)
Expand Down
17 changes: 17 additions & 0 deletions mlir/lib/Conversion/PtrToLLVM/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
add_mlir_conversion_library(MLIRPtrToLLVM
PtrToLLVM.cpp

ADDITIONAL_HEADER_DIRS
${MLIR_MAIN_INCLUDE_DIR}/mlir/Conversion/PtrToLLVM

DEPENDS
MLIRConversionPassIncGen

LINK_COMPONENTS
Core

LINK_LIBS PUBLIC
MLIRPtrDialect
MLIRLLVMCommonConversion
MLIRLLVMDialect
)
Loading