LLZK 0.1.0
Veridise's ZK Language IR
Loading...
Searching...
No Matches
Ops.h.inc
Go to the documentation of this file.
1/*===- TableGen'erated file -------------------------------------*- C++ -*-===*\
2|* *|
3|* Op Declarations *|
4|* *|
5|* Automatically generated file, do not edit! *|
6|* From: Ops.td *|
7|* *|
8\*===----------------------------------------------------------------------===*/
9
10#if defined(GET_OP_CLASSES) || defined(GET_OP_FWD_DEFINES)
11#undef GET_OP_FWD_DEFINES
12namespace llzk {
13namespace polymorphic {
14class ApplyMapOp;
15} // namespace polymorphic
16} // namespace llzk
17namespace llzk {
18namespace polymorphic {
19class ConstReadOp;
20} // namespace polymorphic
21} // namespace llzk
22namespace llzk {
23namespace polymorphic {
24class UnifiableCastOp;
25} // namespace polymorphic
26} // namespace llzk
27#endif
28
29#ifdef GET_OP_CLASSES
30#undef GET_OP_CLASSES
31
32
33//===----------------------------------------------------------------------===//
34// Local Utility Method Definitions
35//===----------------------------------------------------------------------===//
36
37namespace llzk {
38namespace polymorphic {
39
40//===----------------------------------------------------------------------===//
41// ::llzk::polymorphic::ApplyMapOp declarations
42//===----------------------------------------------------------------------===//
43
44namespace detail {
46public:
47 struct Properties {
48 using mapTy = ::mlir::AffineMapAttr;
50
51 auto getMap() {
52 auto &propStorage = this->map;
53 return ::llvm::cast<::mlir::AffineMapAttr>(propStorage);
54 }
55 void setMap(const ::mlir::AffineMapAttr &propValue) {
56 this->map = propValue;
57 }
58 using numDimsTy = ::mlir::IntegerAttr;
60
61 auto getNumDims() {
62 auto &propStorage = this->numDims;
63 return ::llvm::cast<::mlir::IntegerAttr>(propStorage);
64 }
65 void setNumDims(const ::mlir::IntegerAttr &propValue) {
66 this->numDims = propValue;
67 }
68 bool operator==(const Properties &rhs) const {
69 return
70 rhs.map == this->map &&
71 rhs.numDims == this->numDims &&
72 true;
73 }
74 bool operator!=(const Properties &rhs) const {
75 return !(*this == rhs);
76 }
77 };
78protected:
79 ::mlir::DictionaryAttr odsAttrs;
80 ::std::optional<::mlir::OperationName> odsOpName;
82 ::mlir::RegionRange odsRegions;
83public:
84 ApplyMapOpGenericAdaptorBase(::mlir::DictionaryAttr attrs = nullptr, const Properties &properties = {}, ::mlir::RegionRange regions = {});
85
87
88 std::pair<unsigned, unsigned> getODSOperandIndexAndLength(unsigned index, unsigned odsOperandsSize);
90 return properties;
91 }
92
93 ::mlir::DictionaryAttr getAttributes();
94 ::mlir::AffineMapAttr getMapAttr();
95 ::mlir::AffineMap getMap();
96 ::mlir::IntegerAttr getNumDimsAttr();
97 ::llvm::APInt getNumDims();
98};
99} // namespace detail
100template <typename RangeT>
102 using ValueT = ::llvm::detail::ValueOfRange<RangeT>;
104public:
105 ApplyMapOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs = nullptr, const Properties &properties = {}, ::mlir::RegionRange regions = {}) : Base(attrs, properties, regions), odsOperands(values) {}
106
107 ApplyMapOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs, ::mlir::OpaqueProperties properties, ::mlir::RegionRange regions = {}) : ApplyMapOpGenericAdaptor(values, attrs, (properties ? *properties.as<Properties *>() : Properties{}), regions) {}
108
109 template <typename LateInst = ApplyMapOp, typename = std::enable_if_t<std::is_same_v<LateInst, ApplyMapOp>>>
110 ApplyMapOpGenericAdaptor(RangeT values, LateInst op) : Base(op), odsOperands(values) {}
111
112 std::pair<unsigned, unsigned> getODSOperandIndexAndLength(unsigned index) {
113 return Base::getODSOperandIndexAndLength(index, odsOperands.size());
114 }
115
116 RangeT getODSOperands(unsigned index) {
117 auto valueRange = getODSOperandIndexAndLength(index);
118 return {std::next(odsOperands.begin(), valueRange.first),
119 std::next(odsOperands.begin(), valueRange.first + valueRange.second)};
120 }
121
122 RangeT getMapOperands() {
123 return getODSOperands(0);
124 }
125
126 RangeT getOperands() {
127 return odsOperands;
128 }
129
130private:
131 RangeT odsOperands;
132};
133class ApplyMapOpAdaptor : public ApplyMapOpGenericAdaptor<::mlir::ValueRange> {
134public:
137
138 ::mlir::LogicalResult verify(::mlir::Location loc);
139};
140class ApplyMapOp : public ::mlir::Op<ApplyMapOp, ::mlir::OpTrait::ZeroRegions, ::mlir::OpTrait::OneResult, ::mlir::OpTrait::OneTypedResult<::mlir::IndexType>::Impl, ::mlir::OpTrait::ZeroSuccessors, ::mlir::OpTrait::VariadicOperands, ::mlir::OpTrait::OpInvariants, ::mlir::BytecodeOpInterface::Trait, ::mlir::ConditionallySpeculatable::Trait, ::mlir::OpTrait::AlwaysSpeculatableImplTrait, ::mlir::MemoryEffectOpInterface::Trait> {
141public:
142 using Op::Op;
143 using Op::print;
145 template <typename RangeT>
149 static ::llvm::ArrayRef<::llvm::StringRef> getAttributeNames() {
150 static ::llvm::StringRef attrNames[] = {::llvm::StringRef("map"), ::llvm::StringRef("numDims")};
151 return ::llvm::ArrayRef(attrNames);
152 }
153
154 ::mlir::StringAttr getMapAttrName() {
155 return getAttributeNameForIndex(0);
156 }
157
158 static ::mlir::StringAttr getMapAttrName(::mlir::OperationName name) {
159 return getAttributeNameForIndex(name, 0);
160 }
161
162 ::mlir::StringAttr getNumDimsAttrName() {
163 return getAttributeNameForIndex(1);
164 }
165
166 static ::mlir::StringAttr getNumDimsAttrName(::mlir::OperationName name) {
167 return getAttributeNameForIndex(name, 1);
168 }
169
170 static constexpr ::llvm::StringLiteral getOperationName() {
171 return ::llvm::StringLiteral("poly.applymap");
172 }
173
174 std::pair<unsigned, unsigned> getODSOperandIndexAndLength(unsigned index);
175 ::mlir::Operation::operand_range getODSOperands(unsigned index);
176 ::mlir::Operation::operand_range getMapOperands();
177 ::mlir::MutableOperandRange getMapOperandsMutable();
178 std::pair<unsigned, unsigned> getODSResultIndexAndLength(unsigned index);
179 ::mlir::Operation::result_range getODSResults(unsigned index);
180 static ::mlir::LogicalResult setPropertiesFromAttr(Properties &prop, ::mlir::Attribute attr, ::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError);
181 static ::mlir::Attribute getPropertiesAsAttr(::mlir::MLIRContext *ctx, const Properties &prop);
182 static llvm::hash_code computePropertiesHash(const Properties &prop);
183 static std::optional<mlir::Attribute> getInherentAttr(::mlir::MLIRContext *ctx, const Properties &prop, llvm::StringRef name);
184 static void setInherentAttr(Properties &prop, llvm::StringRef name, mlir::Attribute value);
185 static void populateInherentAttrs(::mlir::MLIRContext *ctx, const Properties &prop, ::mlir::NamedAttrList &attrs);
186 static ::mlir::LogicalResult verifyInherentAttrs(::mlir::OperationName opName, ::mlir::NamedAttrList &attrs, llvm::function_ref<::mlir::InFlightDiagnostic()> emitError);
187 static ::mlir::LogicalResult readProperties(::mlir::DialectBytecodeReader &reader, ::mlir::OperationState &state);
188 void writeProperties(::mlir::DialectBytecodeWriter &writer);
189 ::mlir::AffineMapAttr getMapAttr();
190 ::mlir::AffineMap getMap();
191 ::mlir::IntegerAttr getNumDimsAttr();
192 ::llvm::APInt getNumDims();
193 void setMapAttr(::mlir::AffineMapAttr attr);
194 void setMap(::mlir::AffineMap attrValue);
195 void setNumDimsAttr(::mlir::IntegerAttr attr);
196 void setNumDims(::llvm::APInt attrValue);
197 static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::AffineMapAttr map, ::mlir::ValueRange mapOperands = {});
198 static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::AffineMap map, ::mlir::ValueRange mapOperands = {});
199 static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::AffineExpr expr, ::mlir::ValueRange mapOperands = {});
200 ::mlir::LogicalResult verifyInvariantsImpl();
201 ::mlir::LogicalResult verifyInvariants();
202 ::mlir::LogicalResult verify();
203 static ::mlir::ParseResult parse(::mlir::OpAsmParser &parser, ::mlir::OperationState &result);
204 void print(::mlir::OpAsmPrinter &_odsPrinter);
205 void getEffects(::llvm::SmallVectorImpl<::mlir::SideEffects::EffectInstance<::mlir::MemoryEffects::Effect>> &effects);
206private:
207 ::mlir::StringAttr getAttributeNameForIndex(unsigned index) {
208 return getAttributeNameForIndex((*this)->getName(), index);
209 }
210
211 static ::mlir::StringAttr getAttributeNameForIndex(::mlir::OperationName name, unsigned index) {
212 assert(index < 2 && "invalid attribute index");
213 assert(name.getStringRef() == getOperationName() && "invalid operation name");
214 assert(name.isRegistered() && "Operation isn't registered, missing a "
215 "dependent dialect loading?");
216 return name.getAttributeNames()[index];
217 }
218
219public:
221 ::mlir::AffineMap inline getAffineMap() { return getMap(); }
222
224 ::mlir::affine::AffineValueMap getAffineValueMap() {
225 return ::mlir::affine::AffineValueMap(getAffineMap(), getOperands(), getResult());
226 }
227
229 ::mlir::ValueRange getDimOperands() {
230 return ::mlir::OperandRange{
231 getOperands().begin(),
232 getOperands().begin() + getMap().getNumDims()};
233 }
234
236 ::mlir::ValueRange getSymbolOperands() {
237 return ::mlir::OperandRange{
238 getOperands().begin() + getMap().getNumDims(),
239 getOperands().end()};
240 }
241};
242} // namespace polymorphic
243} // namespace llzk
244MLIR_DECLARE_EXPLICIT_TYPE_ID(::llzk::polymorphic::ApplyMapOp)
245
246namespace llzk {
247namespace polymorphic {
248
249//===----------------------------------------------------------------------===//
250// ::llzk::polymorphic::ConstReadOp declarations
251//===----------------------------------------------------------------------===//
252
253namespace detail {
255public:
256 struct Properties {
257 using const_nameTy = ::mlir::FlatSymbolRefAttr;
259
261 auto &propStorage = this->const_name;
262 return ::llvm::cast<::mlir::FlatSymbolRefAttr>(propStorage);
263 }
264 void setConstName(const ::mlir::FlatSymbolRefAttr &propValue) {
265 this->const_name = propValue;
266 }
267 bool operator==(const Properties &rhs) const {
268 return
269 rhs.const_name == this->const_name &&
270 true;
271 }
272 bool operator!=(const Properties &rhs) const {
273 return !(*this == rhs);
274 }
275 };
276protected:
277 ::mlir::DictionaryAttr odsAttrs;
278 ::std::optional<::mlir::OperationName> odsOpName;
280 ::mlir::RegionRange odsRegions;
281public:
282 ConstReadOpGenericAdaptorBase(::mlir::DictionaryAttr attrs = nullptr, const Properties &properties = {}, ::mlir::RegionRange regions = {});
283
285
286 std::pair<unsigned, unsigned> getODSOperandIndexAndLength(unsigned index, unsigned odsOperandsSize);
288 return properties;
289 }
290
291 ::mlir::DictionaryAttr getAttributes();
292 ::mlir::FlatSymbolRefAttr getConstNameAttr();
293 ::llvm::StringRef getConstName();
294};
295} // namespace detail
296template <typename RangeT>
298 using ValueT = ::llvm::detail::ValueOfRange<RangeT>;
300public:
301 ConstReadOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs = nullptr, const Properties &properties = {}, ::mlir::RegionRange regions = {}) : Base(attrs, properties, regions), odsOperands(values) {}
302
303 ConstReadOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs, ::mlir::OpaqueProperties properties, ::mlir::RegionRange regions = {}) : ConstReadOpGenericAdaptor(values, attrs, (properties ? *properties.as<Properties *>() : Properties{}), regions) {}
304
305 template <typename LateInst = ConstReadOp, typename = std::enable_if_t<std::is_same_v<LateInst, ConstReadOp>>>
306 ConstReadOpGenericAdaptor(RangeT values, LateInst op) : Base(op), odsOperands(values) {}
307
308 std::pair<unsigned, unsigned> getODSOperandIndexAndLength(unsigned index) {
309 return Base::getODSOperandIndexAndLength(index, odsOperands.size());
310 }
311
312 RangeT getODSOperands(unsigned index) {
313 auto valueRange = getODSOperandIndexAndLength(index);
314 return {std::next(odsOperands.begin(), valueRange.first),
315 std::next(odsOperands.begin(), valueRange.first + valueRange.second)};
316 }
317
318 RangeT getOperands() {
319 return odsOperands;
320 }
321
322private:
323 RangeT odsOperands;
324};
325class ConstReadOpAdaptor : public ConstReadOpGenericAdaptor<::mlir::ValueRange> {
326public:
329
330 ::mlir::LogicalResult verify(::mlir::Location loc);
331};
332class ConstReadOp : public ::mlir::Op<ConstReadOp, ::mlir::OpTrait::ZeroRegions, ::mlir::OpTrait::OneResult, ::mlir::OpTrait::OneTypedResult<::mlir::Type>::Impl, ::mlir::OpTrait::ZeroSuccessors, ::mlir::OpTrait::ZeroOperands, ::mlir::OpTrait::OpInvariants, ::mlir::BytecodeOpInterface::Trait, ::mlir::SymbolUserOpInterface::Trait> {
333public:
334 using Op::Op;
335 using Op::print;
337 template <typename RangeT>
341 static ::llvm::ArrayRef<::llvm::StringRef> getAttributeNames() {
342 static ::llvm::StringRef attrNames[] = {::llvm::StringRef("const_name")};
343 return ::llvm::ArrayRef(attrNames);
344 }
345
346 ::mlir::StringAttr getConstNameAttrName() {
347 return getAttributeNameForIndex(0);
348 }
349
350 static ::mlir::StringAttr getConstNameAttrName(::mlir::OperationName name) {
351 return getAttributeNameForIndex(name, 0);
352 }
353
354 static constexpr ::llvm::StringLiteral getOperationName() {
355 return ::llvm::StringLiteral("poly.read_const");
356 }
357
358 std::pair<unsigned, unsigned> getODSOperandIndexAndLength(unsigned index);
359 ::mlir::Operation::operand_range getODSOperands(unsigned index);
360 std::pair<unsigned, unsigned> getODSResultIndexAndLength(unsigned index);
361 ::mlir::Operation::result_range getODSResults(unsigned index);
362 ::mlir::Value getVal();
363 static ::mlir::LogicalResult setPropertiesFromAttr(Properties &prop, ::mlir::Attribute attr, ::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError);
364 static ::mlir::Attribute getPropertiesAsAttr(::mlir::MLIRContext *ctx, const Properties &prop);
365 static llvm::hash_code computePropertiesHash(const Properties &prop);
366 static std::optional<mlir::Attribute> getInherentAttr(::mlir::MLIRContext *ctx, const Properties &prop, llvm::StringRef name);
367 static void setInherentAttr(Properties &prop, llvm::StringRef name, mlir::Attribute value);
368 static void populateInherentAttrs(::mlir::MLIRContext *ctx, const Properties &prop, ::mlir::NamedAttrList &attrs);
369 static ::mlir::LogicalResult verifyInherentAttrs(::mlir::OperationName opName, ::mlir::NamedAttrList &attrs, llvm::function_ref<::mlir::InFlightDiagnostic()> emitError);
370 static ::mlir::LogicalResult readProperties(::mlir::DialectBytecodeReader &reader, ::mlir::OperationState &state);
371 void writeProperties(::mlir::DialectBytecodeWriter &writer);
372 ::mlir::FlatSymbolRefAttr getConstNameAttr();
373 ::llvm::StringRef getConstName();
374 void setConstNameAttr(::mlir::FlatSymbolRefAttr attr);
375 void setConstName(::llvm::StringRef attrValue);
376 static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::Type val, ::mlir::FlatSymbolRefAttr const_name);
377 static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::FlatSymbolRefAttr const_name);
378 static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::Type val, ::llvm::StringRef const_name);
379 static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::llvm::StringRef const_name);
380 static void build(::mlir::OpBuilder &, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute> attributes = {});
381 ::mlir::LogicalResult verifyInvariantsImpl();
382 ::mlir::LogicalResult verifyInvariants();
383 ::mlir::LogicalResult verifySymbolUses(::mlir::SymbolTableCollection &symbolTable);
384 static ::mlir::ParseResult parse(::mlir::OpAsmParser &parser, ::mlir::OperationState &result);
385 void print(::mlir::OpAsmPrinter &_odsPrinter);
386private:
387 ::mlir::StringAttr getAttributeNameForIndex(unsigned index) {
388 return getAttributeNameForIndex((*this)->getName(), index);
389 }
390
391 static ::mlir::StringAttr getAttributeNameForIndex(::mlir::OperationName name, unsigned index) {
392 assert(index < 1 && "invalid attribute index");
393 assert(name.getStringRef() == getOperationName() && "invalid operation name");
394 assert(name.isRegistered() && "Operation isn't registered, missing a "
395 "dependent dialect loading?");
396 return name.getAttributeNames()[index];
397 }
398
399public:
400};
401} // namespace polymorphic
402} // namespace llzk
403MLIR_DECLARE_EXPLICIT_TYPE_ID(::llzk::polymorphic::ConstReadOp)
404
405namespace llzk {
406namespace polymorphic {
407
408//===----------------------------------------------------------------------===//
409// ::llzk::polymorphic::UnifiableCastOp declarations
410//===----------------------------------------------------------------------===//
411
412namespace detail {
414public:
415protected:
416 ::mlir::DictionaryAttr odsAttrs;
417 ::std::optional<::mlir::OperationName> odsOpName;
418 ::mlir::RegionRange odsRegions;
419public:
420 UnifiableCastOpGenericAdaptorBase(::mlir::DictionaryAttr attrs = nullptr, const ::mlir::EmptyProperties &properties = {}, ::mlir::RegionRange regions = {});
421
423
424 std::pair<unsigned, unsigned> getODSOperandIndexAndLength(unsigned index, unsigned odsOperandsSize);
425 ::mlir::DictionaryAttr getAttributes();
426};
427} // namespace detail
428template <typename RangeT>
430 using ValueT = ::llvm::detail::ValueOfRange<RangeT>;
432public:
433 UnifiableCastOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs = nullptr, const ::mlir::EmptyProperties &properties = {}, ::mlir::RegionRange regions = {}) : Base(attrs, properties, regions), odsOperands(values) {}
434
435 UnifiableCastOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs, ::mlir::OpaqueProperties properties, ::mlir::RegionRange regions = {}) : UnifiableCastOpGenericAdaptor(values, attrs, (properties ? *properties.as<::mlir::EmptyProperties *>() : ::mlir::EmptyProperties{}), regions) {}
436
437 template <typename LateInst = UnifiableCastOp, typename = std::enable_if_t<std::is_same_v<LateInst, UnifiableCastOp>>>
438 UnifiableCastOpGenericAdaptor(RangeT values, LateInst op) : Base(op), odsOperands(values) {}
439
440 std::pair<unsigned, unsigned> getODSOperandIndexAndLength(unsigned index) {
441 return Base::getODSOperandIndexAndLength(index, odsOperands.size());
442 }
443
444 RangeT getODSOperands(unsigned index) {
445 auto valueRange = getODSOperandIndexAndLength(index);
446 return {std::next(odsOperands.begin(), valueRange.first),
447 std::next(odsOperands.begin(), valueRange.first + valueRange.second)};
448 }
449
450 ValueT getInput() {
451 return (*getODSOperands(0).begin());
452 }
453
454 RangeT getOperands() {
455 return odsOperands;
456 }
457
458private:
459 RangeT odsOperands;
460};
461class UnifiableCastOpAdaptor : public UnifiableCastOpGenericAdaptor<::mlir::ValueRange> {
462public:
465
466 ::mlir::LogicalResult verify(::mlir::Location loc);
467};
468class UnifiableCastOp : public ::mlir::Op<UnifiableCastOp, ::mlir::OpTrait::ZeroRegions, ::mlir::OpTrait::OneResult, ::mlir::OpTrait::OneTypedResult<::mlir::Type>::Impl, ::mlir::OpTrait::ZeroSuccessors, ::mlir::OpTrait::OneOperand, ::mlir::OpTrait::OpInvariants, ::mlir::ConditionallySpeculatable::Trait, ::mlir::OpTrait::AlwaysSpeculatableImplTrait, ::mlir::MemoryEffectOpInterface::Trait> {
469public:
470 using Op::Op;
471 using Op::print;
473 template <typename RangeT>
476 static ::llvm::ArrayRef<::llvm::StringRef> getAttributeNames() {
477 return {};
478 }
479
480 static constexpr ::llvm::StringLiteral getOperationName() {
481 return ::llvm::StringLiteral("poly.unifiable_cast");
482 }
483
484 std::pair<unsigned, unsigned> getODSOperandIndexAndLength(unsigned index);
485 ::mlir::Operation::operand_range getODSOperands(unsigned index);
486 ::mlir::Value getInput();
487 ::mlir::OpOperand &getInputMutable();
488 std::pair<unsigned, unsigned> getODSResultIndexAndLength(unsigned index);
489 ::mlir::Operation::result_range getODSResults(unsigned index);
490 ::mlir::Value getResult();
491 static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::Type result, ::mlir::Value input);
492 static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::Value input);
493 static void build(::mlir::OpBuilder &, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute> attributes = {});
494 ::mlir::LogicalResult verifyInvariantsImpl();
495 ::mlir::LogicalResult verifyInvariants();
496 ::mlir::LogicalResult verify();
497 static ::mlir::ParseResult parse(::mlir::OpAsmParser &parser, ::mlir::OperationState &result);
498 void print(::mlir::OpAsmPrinter &_odsPrinter);
499 void getEffects(::llvm::SmallVectorImpl<::mlir::SideEffects::EffectInstance<::mlir::MemoryEffects::Effect>> &effects);
500public:
501};
502} // namespace polymorphic
503} // namespace llzk
504MLIR_DECLARE_EXPLICIT_TYPE_ID(::llzk::polymorphic::UnifiableCastOp)
505
506
507#endif // GET_OP_CLASSES
508
::mlir::LogicalResult verify(::mlir::Location loc)
Definition Ops.cpp.inc:171
ApplyMapOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs=nullptr, const Properties &properties={}, ::mlir::RegionRange regions={})
Definition Ops.h.inc:105
std::pair< unsigned, unsigned > getODSOperandIndexAndLength(unsigned index)
Definition Ops.h.inc:112
ApplyMapOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs, ::mlir::OpaqueProperties properties, ::mlir::RegionRange regions={})
Definition Ops.h.inc:107
RangeT getODSOperands(unsigned index)
Definition Ops.h.inc:116
ApplyMapOpGenericAdaptor(RangeT values, LateInst op)
Definition Ops.h.inc:110
ApplyMapOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs=nullptr, const Properties &properties={}, ::mlir::RegionRange regions={})
Definition Ops.h.inc:105
::mlir::ValueRange getSymbolOperands()
Returns all symbol operands.
Definition Ops.h.inc:236
::mlir::LogicalResult verifyInvariants()
Definition Ops.cpp.inc:450
std::pair< unsigned, unsigned > getODSOperandIndexAndLength(unsigned index)
Definition Ops.cpp.inc:185
::mlir::ValueRange getDimOperands()
Returns all dimension operands.
Definition Ops.h.inc:229
::mlir::affine::AffineValueMap getAffineValueMap()
Returns the affine value map computed from this operation.
Definition Ops.h.inc:224
::mlir::StringAttr getNumDimsAttrName(::mlir::OperationName name)
Definition Ops.h.inc:166
::mlir::LogicalResult verify()
Definition Ops.cpp:48
void print(::mlir::OpAsmPrinter &_odsPrinter)
Definition Ops.cpp.inc:489
GenericAdaptor<::llvm::ArrayRef<::mlir::Attribute > > FoldAdaptor
Definition Ops.h.inc:147
static constexpr ::llvm::StringLiteral getOperationName()
Definition Ops.h.inc:170
::mlir::LogicalResult verifyInherentAttrs(::mlir::OperationName opName, ::mlir::NamedAttrList &attrs, llvm::function_ref<::mlir::InFlightDiagnostic()> emitError)
Definition Ops.cpp.inc:332
::mlir::ParseResult parse(::mlir::OpAsmParser &parser, ::mlir::OperationState &result)
Definition Ops.cpp.inc:456
static llvm::hash_code computePropertiesHash(const Properties &prop)
Definition Ops.cpp.inc:299
FoldAdaptor::Properties Properties
Definition Ops.h.inc:148
::mlir::Operation::result_range getODSResults(unsigned index)
Definition Ops.cpp.inc:223
::mlir::StringAttr getMapAttrName(::mlir::OperationName name)
Definition Ops.h.inc:158
::mlir::LogicalResult verifyInvariantsImpl()
Definition Ops.cpp.inc:418
ApplyMapOpAdaptor Adaptor
Definition Ops.h.inc:144
static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::AffineMapAttr map, ::mlir::ValueRange mapOperands={})
Definition Ops.cpp.inc:397
::mlir::StringAttr getMapAttrName()
Definition Ops.h.inc:154
::mlir::Operation::operand_range getMapOperands()
Definition Ops.cpp.inc:209
::mlir::AffineMap getMap()
Definition Ops.cpp.inc:367
static ::llvm::ArrayRef<::llvm::StringRef > getAttributeNames()
Definition Ops.h.inc:149
::mlir::Operation::operand_range getODSOperands(unsigned index)
Definition Ops.cpp.inc:203
static void populateInherentAttrs(::mlir::MLIRContext *ctx, const Properties &prop, ::mlir::NamedAttrList &attrs)
Definition Ops.cpp.inc:326
::mlir::AffineMapAttr getMapAttr()
Definition Ops.cpp.inc:363
ApplyMapOpGenericAdaptor< RangeT > GenericAdaptor
Definition Ops.h.inc:146
void writeProperties(::mlir::DialectBytecodeWriter &writer)
Definition Ops.cpp.inc:357
void setMap(::mlir::AffineMap attrValue)
Definition Ops.cpp.inc:385
void setNumDimsAttr(::mlir::IntegerAttr attr)
Definition Ops.cpp.inc:389
::mlir::LogicalResult setPropertiesFromAttr(Properties &prop, ::mlir::Attribute attr, ::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError)
Definition Ops.cpp.inc:229
::mlir::Attribute getPropertiesAsAttr(::mlir::MLIRContext *ctx, const Properties &prop)
Definition Ops.cpp.inc:276
::mlir::LogicalResult readProperties(::mlir::DialectBytecodeReader &reader, ::mlir::OperationState &state)
Definition Ops.cpp.inc:347
::mlir::StringAttr getNumDimsAttrName()
Definition Ops.h.inc:162
::mlir::MutableOperandRange getMapOperandsMutable()
Definition Ops.cpp.inc:213
::mlir::AffineMap getAffineMap()
Returns the affine map to be applied by this operation.
Definition Ops.h.inc:221
void setMapAttr(::mlir::AffineMapAttr attr)
Definition Ops.cpp.inc:381
static void setInherentAttr(Properties &prop, llvm::StringRef name, mlir::Attribute value)
Definition Ops.cpp.inc:314
void getEffects(::llvm::SmallVectorImpl<::mlir::SideEffects::EffectInstance<::mlir::MemoryEffects::Effect > > &effects)
Definition Ops.cpp.inc:500
static std::optional< mlir::Attribute > getInherentAttr(::mlir::MLIRContext *ctx, const Properties &prop, llvm::StringRef name)
Definition Ops.cpp.inc:305
std::pair< unsigned, unsigned > getODSResultIndexAndLength(unsigned index)
Definition Ops.cpp.inc:219
::mlir::IntegerAttr getNumDimsAttr()
Definition Ops.cpp.inc:372
void setNumDims(::llvm::APInt attrValue)
Definition Ops.cpp.inc:393
::mlir::LogicalResult verify(::mlir::Location loc)
Definition Ops.cpp.inc:542
ConstReadOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs=nullptr, const Properties &properties={}, ::mlir::RegionRange regions={})
Definition Ops.h.inc:301
std::pair< unsigned, unsigned > getODSOperandIndexAndLength(unsigned index)
Definition Ops.h.inc:308
ConstReadOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs, ::mlir::OpaqueProperties properties, ::mlir::RegionRange regions={})
Definition Ops.h.inc:303
ConstReadOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs=nullptr, const Properties &properties={}, ::mlir::RegionRange regions={})
Definition Ops.h.inc:301
ConstReadOpGenericAdaptor(RangeT values, LateInst op)
Definition Ops.h.inc:306
void writeProperties(::mlir::DialectBytecodeWriter &writer)
Definition Ops.cpp.inc:657
std::pair< unsigned, unsigned > getODSOperandIndexAndLength(unsigned index)
Definition Ops.cpp.inc:551
::mlir::ParseResult parse(::mlir::OpAsmParser &parser, ::mlir::OperationState &result)
Definition Ops.cpp.inc:731
::mlir::FlatSymbolRefAttr getConstNameAttr()
Definition Ops.cpp.inc:662
static constexpr ::llvm::StringLiteral getOperationName()
Definition Ops.h.inc:354
static ::llvm::ArrayRef<::llvm::StringRef > getAttributeNames()
Definition Ops.h.inc:341
void print(::mlir::OpAsmPrinter &_odsPrinter)
Definition Ops.cpp.inc:762
FoldAdaptor::Properties Properties
Definition Ops.h.inc:340
::mlir::LogicalResult verifyInvariantsImpl()
Definition Ops.cpp.inc:709
::mlir::StringAttr getConstNameAttrName()
Definition Ops.h.inc:346
::mlir::Attribute getPropertiesAsAttr(::mlir::MLIRContext *ctx, const Properties &prop)
Definition Ops.cpp.inc:603
ConstReadOpGenericAdaptor< RangeT > GenericAdaptor
Definition Ops.h.inc:338
::mlir::StringAttr getConstNameAttrName(::mlir::OperationName name)
Definition Ops.h.inc:350
static void setInherentAttr(Properties &prop, llvm::StringRef name, mlir::Attribute value)
Definition Ops.cpp.inc:630
::mlir::Operation::operand_range getODSOperands(unsigned index)
Definition Ops.cpp.inc:555
static llvm::hash_code computePropertiesHash(const Properties &prop)
Definition Ops.cpp.inc:619
std::pair< unsigned, unsigned > getODSResultIndexAndLength(unsigned index)
Definition Ops.cpp.inc:561
void setConstName(::llvm::StringRef attrValue)
Definition Ops.cpp.inc:675
::mlir::LogicalResult setPropertiesFromAttr(Properties &prop, ::mlir::Attribute attr, ::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError)
Definition Ops.cpp.inc:575
void setConstNameAttr(::mlir::FlatSymbolRefAttr attr)
Definition Ops.cpp.inc:671
::mlir::LogicalResult verifyInvariants()
Definition Ops.cpp.inc:727
::mlir::Operation::result_range getODSResults(unsigned index)
Definition Ops.cpp.inc:565
static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::Type val, ::mlir::FlatSymbolRefAttr const_name)
Definition Ops.cpp.inc:679
ConstReadOpAdaptor Adaptor
Definition Ops.h.inc:336
static std::optional< mlir::Attribute > getInherentAttr(::mlir::MLIRContext *ctx, const Properties &prop, llvm::StringRef name)
Definition Ops.cpp.inc:624
static void populateInherentAttrs(::mlir::MLIRContext *ctx, const Properties &prop, ::mlir::NamedAttrList &attrs)
Definition Ops.cpp.inc:637
::mlir::LogicalResult verifySymbolUses(::mlir::SymbolTableCollection &symbolTable)
Definition Ops.cpp:28
::mlir::LogicalResult readProperties(::mlir::DialectBytecodeReader &reader, ::mlir::OperationState &state)
Definition Ops.cpp.inc:650
::mlir::LogicalResult verifyInherentAttrs(::mlir::OperationName opName, ::mlir::NamedAttrList &attrs, llvm::function_ref<::mlir::InFlightDiagnostic()> emitError)
Definition Ops.cpp.inc:641
GenericAdaptor<::llvm::ArrayRef<::mlir::Attribute > > FoldAdaptor
Definition Ops.h.inc:339
::llvm::StringRef getConstName()
Definition Ops.cpp.inc:666
UnifiableCastOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs=nullptr, const ::mlir::EmptyProperties &properties={}, ::mlir::RegionRange regions={})
Definition Ops.h.inc:433
::mlir::LogicalResult verify(::mlir::Location loc)
Definition Ops.cpp.inc:808
UnifiableCastOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs=nullptr, const ::mlir::EmptyProperties &properties={}, ::mlir::RegionRange regions={})
Definition Ops.h.inc:433
std::pair< unsigned, unsigned > getODSOperandIndexAndLength(unsigned index)
Definition Ops.h.inc:440
UnifiableCastOpGenericAdaptor(RangeT values, LateInst op)
Definition Ops.h.inc:438
UnifiableCastOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs, ::mlir::OpaqueProperties properties, ::mlir::RegionRange regions={})
Definition Ops.h.inc:435
::mlir::LogicalResult verify()
Definition Ops.cpp:72
std::pair< unsigned, unsigned > getODSResultIndexAndLength(unsigned index)
Definition Ops.cpp.inc:831
::mlir::LogicalResult verifyInvariantsImpl()
Definition Ops.cpp.inc:864
static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::Type result, ::mlir::Value input)
Definition Ops.cpp.inc:845
void getEffects(::llvm::SmallVectorImpl<::mlir::SideEffects::EffectInstance<::mlir::MemoryEffects::Effect > > &effects)
Definition Ops.cpp.inc:931
::mlir::OpOperand & getInputMutable()
Definition Ops.cpp.inc:826
GenericAdaptor<::llvm::ArrayRef<::mlir::Attribute > > FoldAdaptor
Definition Ops.h.inc:475
::mlir::Operation::operand_range getODSOperands(unsigned index)
Definition Ops.cpp.inc:816
static constexpr ::llvm::StringLiteral getOperationName()
Definition Ops.h.inc:480
static ::llvm::ArrayRef<::llvm::StringRef > getAttributeNames()
Definition Ops.h.inc:476
std::pair< unsigned, unsigned > getODSOperandIndexAndLength(unsigned index)
Definition Ops.cpp.inc:812
UnifiableCastOpGenericAdaptor< RangeT > GenericAdaptor
Definition Ops.h.inc:474
::mlir::LogicalResult verifyInvariants()
Definition Ops.cpp.inc:886
UnifiableCastOpAdaptor Adaptor
Definition Ops.h.inc:472
::mlir::ParseResult parse(::mlir::OpAsmParser &parser, ::mlir::OperationState &result)
Definition Ops.cpp.inc:892
::mlir::Operation::result_range getODSResults(unsigned index)
Definition Ops.cpp.inc:835
void print(::mlir::OpAsmPrinter &_odsPrinter)
Definition Ops.cpp.inc:921
std::pair< unsigned, unsigned > getODSOperandIndexAndLength(unsigned index, unsigned odsOperandsSize)
Definition Ops.cpp.inc:126
ApplyMapOpGenericAdaptorBase(::mlir::DictionaryAttr attrs=nullptr, const Properties &properties={}, ::mlir::RegionRange regions={})
Definition Ops.cpp.inc:120
::std::optional<::mlir::OperationName > odsOpName
Definition Ops.h.inc:80
std::pair< unsigned, unsigned > getODSOperandIndexAndLength(unsigned index, unsigned odsOperandsSize)
Definition Ops.cpp.inc:521
ConstReadOpGenericAdaptorBase(::mlir::DictionaryAttr attrs=nullptr, const Properties &properties={}, ::mlir::RegionRange regions={})
Definition Ops.cpp.inc:515
::std::optional<::mlir::OperationName > odsOpName
Definition Ops.h.inc:278
::std::optional<::mlir::OperationName > odsOpName
Definition Ops.h.inc:417
std::pair< unsigned, unsigned > getODSOperandIndexAndLength(unsigned index, unsigned odsOperandsSize)
Definition Ops.cpp.inc:797
UnifiableCastOpGenericAdaptorBase(::mlir::DictionaryAttr attrs=nullptr, const ::mlir::EmptyProperties &properties={}, ::mlir::RegionRange regions={})
Definition Ops.cpp.inc:791
void setMap(const ::mlir::AffineMapAttr &propValue)
Definition Ops.h.inc:55
void setNumDims(const ::mlir::IntegerAttr &propValue)
Definition Ops.h.inc:65
void setConstName(const ::mlir::FlatSymbolRefAttr &propValue)
Definition Ops.h.inc:264