#include "mlir/Conversion/ConvertToLLVM/ToLLVMInterface.h"
#include "mlir/Dialect/Arith/IR/Arith.h"
#include "mlir/Dialect/Complex/IR/Complex.h"
#include "mlir/IR/Builders.h"
#include "mlir/IR/DialectImplementation.h"
#include "mlir/Transforms/InliningUtils.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/TypeSwitch.h"
usingnamespacemlir;
#include "mlir/Dialect/Complex/IR/ComplexOpsDialect.cpp.inc"
namespace {
struct ComplexInlinerInterface : public DialectInlinerInterface { … };
}
void complex::ComplexDialect::initialize() { … }
Operation *complex::ComplexDialect::materializeConstant(OpBuilder &builder,
Attribute value,
Type type,
Location loc) { … }
#define GET_ATTRDEF_CLASSES
#include "mlir/Dialect/Complex/IR/ComplexAttributes.cpp.inc"
LogicalResult complex::NumberAttr::verify(
::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError,
::llvm::APFloat real, ::llvm::APFloat imag, ::mlir::Type type) { … }
void complex::NumberAttr::print(AsmPrinter &printer) const { … }
Attribute complex::NumberAttr::parse(AsmParser &parser, Type odsType) { … }