#include "TestAttributes.h"
#include "TestDialect.h"
#include "TestTypes.h"
#include "mlir/IR/Attributes.h"
#include "mlir/IR/Builders.h"
#include "mlir/IR/DialectImplementation.h"
#include "mlir/IR/ExtensibleDialect.h"
#include "mlir/IR/OpImplementation.h"
#include "mlir/IR/Types.h"
#include "llvm/ADT/APFloat.h"
#include "llvm/ADT/Hashing.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/TypeSwitch.h"
#include "llvm/ADT/bit.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/raw_ostream.h"
usingnamespacemlir;
usingnamespacetest;
Attribute CompoundAAttr::parse(AsmParser &parser, Type type) { … }
void CompoundAAttr::print(AsmPrinter &printer) const { … }
Attribute TestDecimalShapeAttr::parse(AsmParser &parser, Type type) { … }
void TestDecimalShapeAttr::print(AsmPrinter &printer) const { … }
Attribute TestI64ElementsAttr::parse(AsmParser &parser, Type type) { … }
void TestI64ElementsAttr::print(AsmPrinter &printer) const { … }
LogicalResult
TestI64ElementsAttr::verify(function_ref<InFlightDiagnostic()> emitError,
ShapedType type, ArrayRef<uint64_t> elements) { … }
LogicalResult TestAttrWithFormatAttr::verify(
function_ref<InFlightDiagnostic()> emitError, int64_t one, std::string two,
IntegerAttr three, ArrayRef<int> four, uint64_t five, ArrayRef<int> six,
ArrayRef<AttrWithTypeBuilderAttr> arrayOfAttrs) { … }
static FailureOr<SmallVector<int>> parseIntArray(AsmParser &parser) { … }
static void printIntArray(AsmPrinter &printer, ArrayRef<int> ints) { … }
Attribute TestSubElementsAccessAttr::parse(::mlir::AsmParser &parser,
::mlir::Type type) { … }
void TestSubElementsAccessAttr::print(::mlir::AsmPrinter &printer) const { … }
ArrayRef<uint64_t> TestExtern1DI64ElementsAttr::getElements() const { … }
static ParseResult parseTrueFalse(AsmParser &p, std::optional<int> &result) { … }
static void printTrueFalse(AsmPrinter &p, std::optional<int> result) { … }
CopyCount::CopyCount(const CopyCount &rhs) : … { … }
CopyCount &CopyCount::operator=(const CopyCount &rhs) { … }
int CopyCount::counter;
static bool operator==(const test::CopyCount &lhs, const test::CopyCount &rhs) { … }
llvm::raw_ostream &test::operator<<(llvm::raw_ostream &os,
const test::CopyCount &value) { … }
template <>
struct mlir::FieldParser<test::CopyCount> { … };
namespace test {
llvm::hash_code hash_value(const test::CopyCount ©Count) { … }
}
static ParseResult parseConditionalAlias(AsmParser &p, StringAttr &value) { … }
static void printConditionalAlias(AsmPrinter &p, StringAttr value) { … }
static void printCustomFloatAttr(AsmPrinter &p, StringAttr typeStrAttr,
APFloat value) { … }
static ParseResult parseCustomFloatAttr(AsmParser &p, StringAttr &typeStrAttr,
FailureOr<APFloat> &value) { … }
#include "TestAttrInterfaces.cpp.inc"
#include "TestOpEnums.cpp.inc"
#define GET_ATTRDEF_CLASSES
#include "TestAttrDefs.cpp.inc"
static std::unique_ptr<DynamicAttrDefinition>
getDynamicSingletonAttr(TestDialect *testDialect) { … }
static std::unique_ptr<DynamicAttrDefinition>
getDynamicPairAttr(TestDialect *testDialect) { … }
static std::unique_ptr<DynamicAttrDefinition>
getDynamicCustomAssemblyFormatAttr(TestDialect *testDialect) { … }
void TestDialect::registerAttributes() { … }