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 remote-tracking branch 'xlnx/feature/fused-ops' into bump_to_52…
…050f3f
- Loading branch information
Showing
20 changed files
with
727 additions
and
28 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,43 @@ | ||
//===---------- FunctionOpAssembly.h - Parser for `emitc.func` op ---------===// | ||
// | ||
// 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_INCLUDE_MLIR_DIALECT_EMITC_IR_FUNCTIONOPASSEMBLY_H | ||
#define MLIR_INCLUDE_MLIR_DIALECT_EMITC_IR_FUNCTIONOPASSEMBLY_H | ||
|
||
#include "mlir/IR/OperationSupport.h" | ||
#include "mlir/Interfaces/FunctionImplementation.h" | ||
#include "mlir/Support/LogicalResult.h" | ||
|
||
#include "mlir/IR/Builders.h" | ||
|
||
namespace mlir::emitc { | ||
|
||
class FuncOp; | ||
|
||
ParseResult | ||
parseFunctionSignature(OpAsmParser &parser, bool allowVariadic, | ||
SmallVectorImpl<OpAsmParser::Argument> &arguments, | ||
bool &isVariadic, SmallVectorImpl<Type> &resultTypes, | ||
SmallVectorImpl<DictionaryAttr> &resultAttrs); | ||
|
||
ParseResult | ||
parseFunctionOp(OpAsmParser &parser, OperationState &result, bool allowVariadic, | ||
StringAttr typeAttrName, | ||
function_interface_impl::FuncTypeBuilder funcTypeBuilder, | ||
StringAttr argAttrsName, StringAttr resAttrsName); | ||
|
||
void printFunctionSignature(OpAsmPrinter &p, FuncOp op, ArrayRef<Type> argTypes, | ||
bool isVariadic, ArrayRef<Type> resultTypes); | ||
|
||
void printFunctionOp(OpAsmPrinter &p, FuncOp op, bool isVariadic, | ||
StringRef typeAttrName, StringAttr argAttrsName, | ||
StringAttr resAttrsName); | ||
|
||
} // namespace mlir::emitc | ||
|
||
#endif // MLIR_INCLUDE_MLIR_DIALECT_EMITC_IR_FUNCTIONOPASSEMBLY_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
Oops, something went wrong.