-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
35f91b7
commit 9e507c8
Showing
37 changed files
with
315 additions
and
147 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
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,24 @@ | ||
//===- ByteCodeGen.h - Generator info ---------------------------*- 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_TABLEGEN_BYTECODEGEN_H_ | ||
#define MLIR_TABLEGEN_BYTECODEGEN_H_ | ||
|
||
#include "mlir/Support/LLVM.h" | ||
|
||
#include "llvm/ADT/StringRef.h" | ||
#include "llvm/TableGen/Record.h" | ||
|
||
namespace mlir::tblgen { | ||
|
||
bool emitBCRW(const llvm::RecordKeeper &records, raw_ostream &os, | ||
const std::string &selectedBcDialect); | ||
|
||
} // namespace mlir::tblgen | ||
|
||
#endif // MLIR_TABLEGEN_BYTECODEGEN_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,26 @@ | ||
//===- CAPIGen.h - Generator info -------------------------------*- 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_TABLEGEN_CAPIGEN_H_ | ||
#define MLIR_TABLEGEN_CAPIGEN_H_ | ||
|
||
#include "mlir/Support/LLVM.h" | ||
|
||
#include "llvm/ADT/StringRef.h" | ||
#include "llvm/TableGen/Record.h" | ||
|
||
namespace mlir::tblgen { | ||
|
||
bool emitCAPIHeader(const llvm::RecordKeeper &records, raw_ostream &os, | ||
std::string groupPrefix); | ||
bool emitCAPIImpl(const llvm::RecordKeeper &records, raw_ostream &os, | ||
std::string groupPrefix); | ||
|
||
} // namespace mlir::tblgen | ||
|
||
#endif // MLIR_TABLEGEN_CAPIGEN_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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
//===- EnumGen.h - Generator info -------------------------------*- 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_TABLEGEN_ENUMGEN_H_ | ||
#define MLIR_TABLEGEN_ENUMGEN_H_ | ||
|
||
#include "mlir/Support/LLVM.h" | ||
|
||
#include "llvm/ADT/StringRef.h" | ||
#include "llvm/TableGen/Record.h" | ||
|
||
namespace mlir::tblgen { | ||
|
||
bool emitEnumDecls(const llvm::RecordKeeper &recordKeeper, raw_ostream &os); | ||
bool emitEnumDefs(const llvm::RecordKeeper &recordKeeper, raw_ostream &os); | ||
|
||
} // namespace mlir::tblgen | ||
|
||
#endif // MLIR_TABLEGEN_ENUMGEN_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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
//===- LLVMGen.h - Generator info -------------------------------*- 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_TABLEGEN_LLVMGEN_H_ | ||
#define MLIR_TABLEGEN_LLVMGEN_H_ | ||
|
||
#include "mlir/Support/LLVM.h" | ||
|
||
#include "llvm/ADT/StringRef.h" | ||
#include "llvm/TableGen/Record.h" | ||
|
||
namespace mlir::tblgen { | ||
|
||
bool emitLLVMBuilders(const llvm::RecordKeeper &recordKeeper, raw_ostream &os); | ||
bool emitLLVMOpMLIRBuilders(const llvm::RecordKeeper &recordKeeper, | ||
raw_ostream &os); | ||
bool emitLLVMIntrMLIRBuilders(const llvm::RecordKeeper &recordKeeper, | ||
raw_ostream &os); | ||
template <bool ConvertTo> | ||
bool emitLLVMEnumConversionDefs(const llvm::RecordKeeper &recordKeeper, | ||
raw_ostream &os); | ||
bool emitLLVMConvertibleIntrinsics(const llvm::RecordKeeper &recordKeeper, | ||
raw_ostream &os); | ||
bool emitLLVMIntrinsics(const llvm::RecordKeeper &records, | ||
llvm::raw_ostream &os, const std::string &nameFilter, | ||
const std::string &accessGroupRegexp, | ||
const std::string &aliasAnalysisRegexp, | ||
const std::string &opBaseClass); | ||
|
||
} // namespace mlir::tblgen | ||
|
||
#endif // MLIR_TABLEGEN_LLVMGEN_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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
//===- Passgen.h - Generator info -------------------------------*- 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_TABLEGEN_PASSGEN_H_ | ||
#define MLIR_TABLEGEN_PASSGEN_H_ | ||
|
||
#include "mlir/Support/LLVM.h" | ||
|
||
#include "llvm/ADT/StringRef.h" | ||
#include "llvm/TableGen/Record.h" | ||
|
||
namespace mlir::tblgen { | ||
|
||
void emitPasses(const llvm::RecordKeeper &recordKeeper, raw_ostream &os, | ||
const std::string &opIncFilter, const std::string &groupName); | ||
void emitRewriters(const llvm::RecordKeeper &recordKeeper, raw_ostream &os); | ||
|
||
} // namespace mlir::tblgen | ||
|
||
#endif // MLIR_TABLEGEN_PASSGEN_H_ |
Oops, something went wrong.