| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 
 | 
 
 
 
 
 
 
 #if defined(GET_OP_CLASSES) || defined(GET_OP_FWD_DEFINES)
 #undef GET_OP_FWD_DEFINES
 namespace hello {
 class ConstantOp;
 }
 namespace hello {
 class PrintOp;
 }
 #endif
 
 #ifdef GET_OP_CLASSES
 #undef GET_OP_CLASSES
 
 
 
 
 
 
 namespace hello {
 
 
 
 
 
 class ConstantOpAdaptor {
 public:
 ConstantOpAdaptor(::mlir::ValueRange values, ::mlir::DictionaryAttr attrs = nullptr, ::mlir::RegionRange regions = {});
 
 ConstantOpAdaptor(ConstantOp op);
 
 ::mlir::ValueRange getOperands();
 std::pair<unsigned, unsigned> getODSOperandIndexAndLength(unsigned index);
 ::mlir::ValueRange getODSOperands(unsigned index);
 ::mlir::DictionaryAttr getAttributes();
 ::mlir::DenseElementsAttr getValueAttr();
 ::mlir::DenseElementsAttr getValue();
 ::mlir::LogicalResult verify(::mlir::Location loc);
 private:
 ::mlir::ValueRange odsOperands;
 ::mlir::DictionaryAttr odsAttrs;
 ::mlir::RegionRange odsRegions;
 ::llvm::Optional<::mlir::OperationName> odsOpName;
 };
 class ConstantOp : public ::mlir::Op<ConstantOp, ::mlir::OpTrait::ZeroRegions, ::mlir::OpTrait::OneResult, ::mlir::OpTrait::OneTypedResult<::mlir::TensorType>::Impl, ::mlir::OpTrait::ZeroSuccessors, ::mlir::OpTrait::ZeroOperands, ::mlir::OpTrait::OpInvariants, ::mlir::ConditionallySpeculatable::Trait, ::mlir::OpTrait::AlwaysSpeculatableImplTrait, ::mlir::MemoryEffectOpInterface::Trait> {
 public:
 using Op::Op;
 using Op::print;
 using Adaptor = ConstantOpAdaptor;
 public:
 static ::llvm::ArrayRef<::llvm::StringRef> getAttributeNames() {
 static ::llvm::StringRef attrNames[] = {::llvm::StringRef("value")};
 return ::llvm::makeArrayRef(attrNames);
 }
 
 ::mlir::StringAttr getValueAttrName() {
 return getAttributeNameForIndex(0);
 }
 
 static ::mlir::StringAttr getValueAttrName(::mlir::OperationName name) {
 return getAttributeNameForIndex(name, 0);
 }
 
 static constexpr ::llvm::StringLiteral getOperationName() {
 return ::llvm::StringLiteral("hello.constant");
 }
 
 std::pair<unsigned, unsigned> getODSOperandIndexAndLength(unsigned index);
 ::mlir::Operation::operand_range getODSOperands(unsigned index);
 std::pair<unsigned, unsigned> getODSResultIndexAndLength(unsigned index);
 ::mlir::Operation::result_range getODSResults(unsigned index);
 ::mlir::DenseElementsAttr getValueAttr();
 ::mlir::DenseElementsAttr getValue();
 void setValueAttr(::mlir::DenseElementsAttr attr);
 static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, mlir::DenseElementsAttr value);
 static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, double value);
 static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::Type resultType0, ::mlir::DenseElementsAttr value);
 static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::DenseElementsAttr value);
 static void build(::mlir::OpBuilder &, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute> attributes = {});
 ::mlir::LogicalResult verifyInvariantsImpl();
 ::mlir::LogicalResult verifyInvariants();
 void getEffects(::llvm::SmallVectorImpl<::mlir::SideEffects::EffectInstance<::mlir::MemoryEffects::Effect>> &effects);
 private:
 ::mlir::StringAttr getAttributeNameForIndex(unsigned index) {
 return getAttributeNameForIndex((*this)->getName(), index);
 }
 
 static ::mlir::StringAttr getAttributeNameForIndex(::mlir::OperationName name, unsigned index) {
 assert(index < 1 && "invalid attribute index");
 assert(name.getStringRef() == getOperationName() && "invalid operation name");
 return name.getRegisteredInfo()->getAttributeNames()[index];
 }
 
 public:
 };
 }
 MLIR_DECLARE_EXPLICIT_TYPE_ID(::hello::ConstantOp)
 
 namespace hello {
 
 
 
 
 
 class PrintOpAdaptor {
 public:
 PrintOpAdaptor(::mlir::ValueRange values, ::mlir::DictionaryAttr attrs = nullptr, ::mlir::RegionRange regions = {});
 
 PrintOpAdaptor(PrintOp op);
 
 ::mlir::ValueRange getOperands();
 std::pair<unsigned, unsigned> getODSOperandIndexAndLength(unsigned index);
 ::mlir::ValueRange getODSOperands(unsigned index);
 ::mlir::Value getInput();
 ::mlir::DictionaryAttr getAttributes();
 ::mlir::LogicalResult verify(::mlir::Location loc);
 private:
 ::mlir::ValueRange odsOperands;
 ::mlir::DictionaryAttr odsAttrs;
 ::mlir::RegionRange odsRegions;
 ::llvm::Optional<::mlir::OperationName> odsOpName;
 };
 class PrintOp : public ::mlir::Op<PrintOp, ::mlir::OpTrait::ZeroRegions, ::mlir::OpTrait::ZeroResults, ::mlir::OpTrait::ZeroSuccessors, ::mlir::OpTrait::OneOperand, ::mlir::OpTrait::OpInvariants, ::mlir::ConditionallySpeculatable::Trait, ::mlir::OpTrait::AlwaysSpeculatableImplTrait, ::mlir::MemoryEffectOpInterface::Trait> {
 public:
 using Op::Op;
 using Op::print;
 using Adaptor = PrintOpAdaptor;
 public:
 static ::llvm::ArrayRef<::llvm::StringRef> getAttributeNames() {
 return {};
 }
 
 static constexpr ::llvm::StringLiteral getOperationName() {
 return ::llvm::StringLiteral("hello.print");
 }
 
 std::pair<unsigned, unsigned> getODSOperandIndexAndLength(unsigned index);
 ::mlir::Operation::operand_range getODSOperands(unsigned index);
 ::mlir::Value getInput();
 ::mlir::MutableOperandRange getInputMutable();
 std::pair<unsigned, unsigned> getODSResultIndexAndLength(unsigned index);
 ::mlir::Operation::result_range getODSResults(unsigned index);
 static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::Value input);
 static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::Value input);
 static void build(::mlir::OpBuilder &, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute> attributes = {});
 ::mlir::LogicalResult verifyInvariantsImpl();
 ::mlir::LogicalResult verifyInvariants();
 static ::mlir::ParseResult parse(::mlir::OpAsmParser &parser, ::mlir::OperationState &result);
 void print(::mlir::OpAsmPrinter &_odsPrinter);
 void getEffects(::llvm::SmallVectorImpl<::mlir::SideEffects::EffectInstance<::mlir::MemoryEffects::Effect>> &effects);
 public:
 };
 }
 MLIR_DECLARE_EXPLICIT_TYPE_ID(::hello::PrintOp)
 
 
 #endif
 
 |