forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add initial set of lowerings for MPI dialect
- Loading branch information
1 parent
ac40463
commit e6d70ab
Showing
9 changed files
with
454 additions
and
1 deletion.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
inputs = { | ||
flake-utils.follows = "nix-vscode-extensions/flake-utils"; | ||
nixpkgs.follows = "nix-vscode-extensions/nixpkgs"; | ||
}; | ||
|
||
outputs = inputs: | ||
inputs.flake-utils.lib.eachDefaultSystem | ||
(system: | ||
let | ||
pkgs = inputs.nixpkgs.legacyPackages.${system}; | ||
|
||
devShells.default = pkgs.mkShell { | ||
buildInputs = [ | ||
packages.default | ||
pkgs.git pkgs.ripgrep pkgs.gdb pkgs.clang-tools | ||
pkgs.cmake pkgs.ninja pkgs.clang pkgs.lld pkgs.chrpath | ||
pkgs.fish pkgs.neovim pkgs.git pkgs.libclang | ||
pkgs.ccache | ||
] ; | ||
shellHook = '' | ||
export CC=clang | ||
export CXX=clang++ | ||
''; | ||
}; | ||
in | ||
{ | ||
inherit packages devShells; | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// | ||
// 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_MPITOLLVM_H | ||
#define MLIR_CONVERSION_MPITOLLVM_H | ||
|
||
#include "mlir/IR/DialectRegistry.h" | ||
|
||
namespace mlir { | ||
|
||
class LLVMTypeConverter; | ||
class RewritePatternSet; | ||
|
||
#define GEN_PASS_DECL_MPITOLLVMCONVERSIONPASS | ||
#include "mlir/Conversion/Passes.h.inc" | ||
|
||
namespace mpi { | ||
void populateMPIToLLVMConversionPatterns(LLVMTypeConverter &converter, | ||
RewritePatternSet &patterns); | ||
|
||
void registerConvertMPIToLLVMInterface(DialectRegistry ®istry); | ||
|
||
} // namespace mpi | ||
} // namespace mlir | ||
|
||
#endif // MLIR_CONVERSION_MPITOLLVM_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
add_mlir_conversion_library(MLIRMPIToLLVM | ||
MPIToLLVM.cpp | ||
|
||
ADDITIONAL_HEADER_DIRS | ||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Conversion/MPIToLLVM | ||
|
||
DEPENDS | ||
MLIRConversionPassIncGen | ||
|
||
LINK_COMPONENTS | ||
Core | ||
|
||
LINK_LIBS PUBLIC | ||
MLIRLLVMCommonConversion | ||
MLIRLLVMDialect | ||
MLIRMPIDialect | ||
) |
Oops, something went wrong.