forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #131 from Xilinx/matthias.backport_emitc
Backport all EmitC commits
- Loading branch information
Showing
72 changed files
with
2,927 additions
and
424 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,22 +1,20 @@ | ||
//===- ArithToEmitC.h - Convert Arith to EmitC ----------------------------===// | ||
//===- ArithToEmitC.h - Arith to EmitC Patterns -----------------*- 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_ARITHTOEMITC_ARITHTOEMITC_H | ||
#define MLIR_CONVERSION_ARITHTOEMITC_ARITHTOEMITC_H | ||
|
||
#include "mlir/Pass/Pass.h" | ||
|
||
namespace mlir { | ||
class RewritePatternSet; | ||
class TypeConverter; | ||
|
||
#define GEN_PASS_DECL_ARITHTOEMITCCONVERSIONPASS | ||
#include "mlir/Conversion/Passes.h.inc" | ||
|
||
void populateArithToEmitCConversionPatterns(RewritePatternSet &patterns); | ||
void populateArithToEmitCPatterns(TypeConverter &typeConverter, | ||
RewritePatternSet &patterns); | ||
} // namespace mlir | ||
|
||
#endif // MLIR_CONVERSION_ARITHTOEMITC_ARITHTOEMITC_H |
21 changes: 21 additions & 0 deletions
21
mlir/include/mlir/Conversion/ArithToEmitC/ArithToEmitCPass.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
//===- ArithToEmitCPass.h - Arith to EmitC Pass -----------------*- 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_ARITHTOEMITC_ARITHTOEMITCPASS_H | ||
#define MLIR_CONVERSION_ARITHTOEMITC_ARITHTOEMITCPASS_H | ||
|
||
#include <memory> | ||
|
||
namespace mlir { | ||
class Pass; | ||
|
||
#define GEN_PASS_DECL_CONVERTARITHTOEMITC | ||
#include "mlir/Conversion/Passes.h.inc" | ||
} // namespace mlir | ||
|
||
#endif // MLIR_CONVERSION_ARITHTOEMITC_ARITHTOEMITCPASS_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
//===- FuncToEmitC.h - Func to EmitC Patterns -------------------*- 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_FUNCTOEMITC_FUNCTOEMITC_H | ||
#define MLIR_CONVERSION_FUNCTOEMITC_FUNCTOEMITC_H | ||
|
||
namespace mlir { | ||
class RewritePatternSet; | ||
|
||
void populateFuncToEmitCPatterns(RewritePatternSet &patterns); | ||
} // namespace mlir | ||
|
||
#endif // MLIR_CONVERSION_FUNCTOEMITC_FUNCTOEMITC_H |
21 changes: 21 additions & 0 deletions
21
mlir/include/mlir/Conversion/FuncToEmitC/FuncToEmitCPass.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
//===- FuncToEmitCPass.h - Func to EmitC Pass -------------------*- 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_FUNCTOEMITC_FUNCTOEMITCPASS_H | ||
#define MLIR_CONVERSION_FUNCTOEMITC_FUNCTOEMITCPASS_H | ||
|
||
#include <memory> | ||
|
||
namespace mlir { | ||
class Pass; | ||
|
||
#define GEN_PASS_DECL_CONVERTFUNCTOEMITC | ||
#include "mlir/Conversion/Passes.h.inc" | ||
} // namespace mlir | ||
|
||
#endif // MLIR_CONVERSION_FUNCTOEMITC_FUNCTOEMITCPASS_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
add_subdirectory(IR) | ||
add_subdirectory(Transforms) |
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
Oops, something went wrong.