10#if defined(GET_OP_CLASSES) || defined(GET_OP_FWD_DEFINES)
11#undef GET_OP_FWD_DEFINES
52 auto &propStorage = this->constant;
53 return ::llvm::dyn_cast_or_null<::mlir::UnitAttr>(propStorage);
56 this->constant = propValue;
62 auto &propStorage = this->initial_value;
63 return ::llvm::dyn_cast_or_null<::mlir::Attribute>(propStorage);
66 this->initial_value = propValue;
72 auto &propStorage = this->sym_name;
73 return ::llvm::cast<::mlir::StringAttr>(propStorage);
76 this->sym_name = propValue;
82 auto &propStorage = this->type;
83 return ::llvm::cast<::mlir::TypeAttr>(propStorage);
85 void setType(const ::mlir::TypeAttr &propValue) {
86 this->type = propValue;
93 rhs.
type == this->type &&
97 return !(*
this == rhs);
126template <
typename RangeT>
128 using ValueT = ::llvm::detail::ValueOfRange<RangeT>;
135 template <
typename LateInst = GlobalDefOp,
typename = std::enable_if_t<std::is_same_v<LateInst, GlobalDefOp>>>
144 return {std::next(odsOperands.begin(), valueRange.first),
145 std::next(odsOperands.begin(), valueRange.first + valueRange.second)};
160 ::mlir::LogicalResult
verify(::mlir::Location loc);
162class GlobalDefOp :
public ::mlir::Op<GlobalDefOp, ::mlir::OpTrait::ZeroRegions, ::mlir::OpTrait::ZeroResults, ::mlir::OpTrait::ZeroSuccessors, ::mlir::OpTrait::ZeroOperands, ::mlir::OpTrait::HasParent<mlir::ModuleOp>::Impl, ::mlir::OpTrait::OpInvariants, ::mlir::BytecodeOpInterface::Trait, ::mlir::SymbolUserOpInterface::Trait, ::mlir::SymbolOpInterface::Trait> {
167 template <
typename RangeT>
172 static ::llvm::StringRef attrNames[] = {::llvm::StringRef(
"constant"), ::llvm::StringRef(
"initial_value"), ::llvm::StringRef(
"sym_name"), ::llvm::StringRef(
"type")};
173 return ::llvm::ArrayRef(attrNames);
177 return getAttributeNameForIndex(0);
181 return getAttributeNameForIndex(name, 0);
185 return getAttributeNameForIndex(1);
189 return getAttributeNameForIndex(name, 1);
193 return getAttributeNameForIndex(2);
197 return getAttributeNameForIndex(name, 2);
201 return getAttributeNameForIndex(3);
205 return getAttributeNameForIndex(name, 3);
209 return ::llvm::StringLiteral(
"global.def");
215 ::mlir::Operation::result_range
getODSResults(
unsigned index);
216 static ::mlir::LogicalResult
setPropertiesFromAttr(
Properties &prop, ::mlir::Attribute attr, ::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError);
219 static std::optional<mlir::Attribute>
getInherentAttr(::mlir::MLIRContext *ctx,
const Properties &prop, llvm::StringRef name);
222 static ::mlir::LogicalResult
verifyInherentAttrs(::mlir::OperationName opName, ::mlir::NamedAttrList &attrs, llvm::function_ref<::mlir::InFlightDiagnostic()> emitError);
223 static ::mlir::LogicalResult
readProperties(::mlir::DialectBytecodeReader &reader, ::mlir::OperationState &state);
238 void setType(::mlir::Type attrValue);
241 static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::StringAttr sym_name, ::mlir::UnitAttr constant, ::mlir::TypeAttr type, ::mlir::Attribute initial_value =
nullptr);
242 static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::StringAttr sym_name, ::mlir::UnitAttr constant, ::mlir::TypeAttr type, ::mlir::Attribute initial_value =
nullptr);
243 static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::llvm::StringRef sym_name,
bool constant, ::mlir::Type type, ::mlir::Attribute initial_value);
244 static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::llvm::StringRef sym_name,
bool constant, ::mlir::Type type, ::mlir::Attribute initial_value);
245 static void build(::mlir::OpBuilder &, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute> attributes = {});
249 ::mlir::LogicalResult
verify();
250 ::mlir::LogicalResult
verifySymbolUses(::mlir::SymbolTableCollection &symbolTable);
251 static ::mlir::ParseResult
parse(::mlir::OpAsmParser &parser, ::mlir::OperationState &result);
252 void print(::mlir::OpAsmPrinter &_odsPrinter);
254 ::mlir::StringAttr getAttributeNameForIndex(
unsigned index) {
255 return getAttributeNameForIndex((*this)->getName(), index);
258 static ::mlir::StringAttr getAttributeNameForIndex(::mlir::OperationName name,
unsigned index) {
259 assert(index < 4 &&
"invalid attribute index");
260 assert(name.getStringRef() ==
getOperationName() &&
"invalid operation name");
261 assert(name.isRegistered() &&
"Operation isn't registered, missing a "
262 "dependent dialect loading?");
263 return name.getAttributeNames()[index];
268 ::mlir::Attribute &initialValue, ::mlir::TypeAttr typeAttr
271 ::mlir::Attribute initialValue, ::mlir::TypeAttr typeAttr
295 auto &propStorage = this->name_ref;
296 return ::llvm::cast<::mlir::SymbolRefAttr>(propStorage);
299 this->name_ref = propValue;
307 return !(*
this == rhs);
330template <
typename RangeT>
332 using ValueT = ::llvm::detail::ValueOfRange<RangeT>;
339 template <
typename LateInst = GlobalReadOp,
typename = std::enable_if_t<std::is_same_v<LateInst, GlobalReadOp>>>
348 return {std::next(odsOperands.begin(), valueRange.first),
349 std::next(odsOperands.begin(), valueRange.first + valueRange.second)};
364 ::mlir::LogicalResult
verify(::mlir::Location loc);
366class GlobalReadOp :
public ::mlir::Op<GlobalReadOp, ::mlir::OpTrait::ZeroRegions, ::mlir::OpTrait::OneResult, ::mlir::OpTrait::OneTypedResult<::mlir::Type>::Impl, ::mlir::OpTrait::ZeroSuccessors, ::mlir::OpTrait::ZeroOperands, ::mlir::OpTrait::OpInvariants, ::mlir::BytecodeOpInterface::Trait, ::llzk::global::GlobalRefOpInterface::Trait, ::mlir::SymbolUserOpInterface::Trait> {
371 template <
typename RangeT>
376 static ::llvm::StringRef attrNames[] = {::llvm::StringRef(
"name_ref")};
377 return ::llvm::ArrayRef(attrNames);
381 return getAttributeNameForIndex(0);
385 return getAttributeNameForIndex(name, 0);
389 return ::llvm::StringLiteral(
"global.read");
395 ::mlir::Operation::result_range
getODSResults(
unsigned index);
397 static ::mlir::LogicalResult
setPropertiesFromAttr(
Properties &prop, ::mlir::Attribute attr, ::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError);
400 static std::optional<mlir::Attribute>
getInherentAttr(::mlir::MLIRContext *ctx,
const Properties &prop, llvm::StringRef name);
403 static ::mlir::LogicalResult
verifyInherentAttrs(::mlir::OperationName opName, ::mlir::NamedAttrList &attrs, llvm::function_ref<::mlir::InFlightDiagnostic()> emitError);
404 static ::mlir::LogicalResult
readProperties(::mlir::DialectBytecodeReader &reader, ::mlir::OperationState &state);
409 static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::Type val, ::mlir::SymbolRefAttr name_ref);
410 static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::SymbolRefAttr name_ref);
411 static void build(::mlir::OpBuilder &, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute> attributes = {});
414 ::mlir::LogicalResult
verifySymbolUses(::mlir::SymbolTableCollection &symbolTable);
415 static ::mlir::ParseResult
parse(::mlir::OpAsmParser &parser, ::mlir::OperationState &result);
416 void print(::mlir::OpAsmPrinter &_odsPrinter);
418 ::mlir::StringAttr getAttributeNameForIndex(
unsigned index) {
419 return getAttributeNameForIndex((*this)->getName(), index);
422 static ::mlir::StringAttr getAttributeNameForIndex(::mlir::OperationName name,
unsigned index) {
423 assert(index < 1 &&
"invalid attribute index");
424 assert(name.getStringRef() ==
getOperationName() &&
"invalid operation name");
425 assert(name.isRegistered() &&
"Operation isn't registered, missing a "
426 "dependent dialect loading?");
427 return name.getAttributeNames()[index];
432 inline ::mlir::FailureOr<SymbolLookupResult<GlobalDefOp>>
getGlobalDefOp(::mlir::SymbolTableCollection &tables) {
433 return ::llvm::cast<GlobalRefOpInterface>(getOperation()).getGlobalDefOp(tables);
455 auto &propStorage = this->name_ref;
456 return ::llvm::cast<::mlir::SymbolRefAttr>(propStorage);
459 this->name_ref = propValue;
467 return !(*
this == rhs);
490template <
typename RangeT>
492 using ValueT = ::llvm::detail::ValueOfRange<RangeT>;
499 template <
typename LateInst = GlobalWriteOp,
typename = std::enable_if_t<std::is_same_v<LateInst, GlobalWriteOp>>>
508 return {std::next(odsOperands.begin(), valueRange.first),
509 std::next(odsOperands.begin(), valueRange.first + valueRange.second)};
528 ::mlir::LogicalResult
verify(::mlir::Location loc);
530class GlobalWriteOp :
public ::mlir::Op<GlobalWriteOp, ::mlir::OpTrait::ZeroRegions, ::mlir::OpTrait::ZeroResults, ::mlir::OpTrait::ZeroSuccessors, ::mlir::OpTrait::OneOperand, ::llzk::function::WitnessGen, ::mlir::OpTrait::OpInvariants, ::mlir::BytecodeOpInterface::Trait, ::llzk::global::GlobalRefOpInterface::Trait, ::mlir::SymbolUserOpInterface::Trait> {
535 template <
typename RangeT>
540 static ::llvm::StringRef attrNames[] = {::llvm::StringRef(
"name_ref")};
541 return ::llvm::ArrayRef(attrNames);
545 return getAttributeNameForIndex(0);
549 return getAttributeNameForIndex(name, 0);
553 return ::llvm::StringLiteral(
"global.write");
561 ::mlir::Operation::result_range
getODSResults(
unsigned index);
562 static ::mlir::LogicalResult
setPropertiesFromAttr(
Properties &prop, ::mlir::Attribute attr, ::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError);
565 static std::optional<mlir::Attribute>
getInherentAttr(::mlir::MLIRContext *ctx,
const Properties &prop, llvm::StringRef name);
568 static ::mlir::LogicalResult
verifyInherentAttrs(::mlir::OperationName opName, ::mlir::NamedAttrList &attrs, llvm::function_ref<::mlir::InFlightDiagnostic()> emitError);
569 static ::mlir::LogicalResult
readProperties(::mlir::DialectBytecodeReader &reader, ::mlir::OperationState &state);
574 static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::SymbolRefAttr name_ref, ::mlir::Value val);
575 static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::SymbolRefAttr name_ref, ::mlir::Value val);
576 static void build(::mlir::OpBuilder &, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute> attributes = {});
579 ::mlir::LogicalResult
verifySymbolUses(::mlir::SymbolTableCollection &symbolTable);
580 static ::mlir::ParseResult
parse(::mlir::OpAsmParser &parser, ::mlir::OperationState &result);
581 void print(::mlir::OpAsmPrinter &_odsPrinter);
583 ::mlir::StringAttr getAttributeNameForIndex(
unsigned index) {
584 return getAttributeNameForIndex((*this)->getName(), index);
587 static ::mlir::StringAttr getAttributeNameForIndex(::mlir::OperationName name,
unsigned index) {
588 assert(index < 1 &&
"invalid attribute index");
589 assert(name.getStringRef() ==
getOperationName() &&
"invalid operation name");
590 assert(name.isRegistered() &&
"Operation isn't registered, missing a "
591 "dependent dialect loading?");
592 return name.getAttributeNames()[index];
597 inline ::mlir::FailureOr<SymbolLookupResult<GlobalDefOp>>
getGlobalDefOp(::mlir::SymbolTableCollection &tables) {
598 return ::llvm::cast<GlobalRefOpInterface>(getOperation()).getGlobalDefOp(tables);
GlobalDefOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs=nullptr, const Properties &properties={}, ::mlir::RegionRange regions={})
GlobalDefOpAdaptor(GlobalDefOp op)
::mlir::LogicalResult verify(::mlir::Location loc)
GlobalDefOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs, ::mlir::OpaqueProperties properties, ::mlir::RegionRange regions={})
std::pair< unsigned, unsigned > getODSOperandIndexAndLength(unsigned index)
GlobalDefOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs=nullptr, const Properties &properties={}, ::mlir::RegionRange regions={})
RangeT getODSOperands(unsigned index)
GlobalDefOpGenericAdaptor(RangeT values, LateInst op)
void setInitialValueAttr(::mlir::Attribute attr)
static void populateDefaultProperties(::mlir::OperationName opName, Properties &properties)
::mlir::LogicalResult setPropertiesFromAttr(Properties &prop, ::mlir::Attribute attr, ::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError)
GlobalDefOpAdaptor Adaptor
FoldAdaptor::Properties Properties
::mlir::Attribute getInitialValue()
void setType(::mlir::Type attrValue)
::mlir::LogicalResult readProperties(::mlir::DialectBytecodeReader &reader, ::mlir::OperationState &state)
::mlir::LogicalResult verifyInvariantsImpl()
::mlir::StringAttr getSymNameAttrName(::mlir::OperationName name)
::mlir::Attribute removeConstantAttr()
::mlir::StringAttr getConstantAttrName(::mlir::OperationName name)
std::pair< unsigned, unsigned > getODSResultIndexAndLength(unsigned index)
void setTypeAttr(::mlir::TypeAttr attr)
::mlir::ParseResult parseGlobalInitialValue(::mlir::OpAsmParser &parser, ::mlir::Attribute &initialValue, ::mlir::TypeAttr typeAttr)
::mlir::UnitAttr getConstantAttr()
static std::optional< mlir::Attribute > getInherentAttr(::mlir::MLIRContext *ctx, const Properties &prop, llvm::StringRef name)
static void printGlobalInitialValue(::mlir::OpAsmPrinter &printer, GlobalDefOp op, ::mlir::Attribute initialValue, ::mlir::TypeAttr typeAttr)
::llvm::StringRef getSymName()
std::pair< unsigned, unsigned > getODSOperandIndexAndLength(unsigned index)
GenericAdaptor<::llvm::ArrayRef<::mlir::Attribute > > FoldAdaptor
::mlir::StringAttr getSymNameAttrName()
::mlir::LogicalResult verifyInherentAttrs(::mlir::OperationName opName, ::mlir::NamedAttrList &attrs, llvm::function_ref<::mlir::InFlightDiagnostic()> emitError)
::mlir::Attribute getInitialValueAttr()
::mlir::Operation::result_range getODSResults(unsigned index)
::mlir::Attribute getPropertiesAsAttr(::mlir::MLIRContext *ctx, const Properties &prop)
::mlir::LogicalResult verifySymbolUses(::mlir::SymbolTableCollection &symbolTable)
GlobalDefOpGenericAdaptor< RangeT > GenericAdaptor
::mlir::StringAttr getInitialValueAttrName(::mlir::OperationName name)
void setSymName(::llvm::StringRef attrValue)
void writeProperties(::mlir::DialectBytecodeWriter &writer)
void print(::mlir::OpAsmPrinter &_odsPrinter)
::mlir::StringAttr getTypeAttrName(::mlir::OperationName name)
::mlir::StringAttr getTypeAttrName()
void setConstant(bool attrValue)
static constexpr ::llvm::StringLiteral getOperationName()
void setConstantAttr(::mlir::UnitAttr attr)
::mlir::TypeAttr getTypeAttr()
static void populateInherentAttrs(::mlir::MLIRContext *ctx, const Properties &prop, ::mlir::NamedAttrList &attrs)
static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::StringAttr sym_name, ::mlir::UnitAttr constant, ::mlir::TypeAttr type, ::mlir::Attribute initial_value=nullptr)
::mlir::StringAttr getInitialValueAttrName()
::mlir::LogicalResult verify()
::mlir::LogicalResult verifyInvariants()
static llvm::hash_code computePropertiesHash(const Properties &prop)
::mlir::StringAttr getConstantAttrName()
static ::llvm::ArrayRef<::llvm::StringRef > getAttributeNames()
::mlir::StringAttr getSymNameAttr()
static void setInherentAttr(Properties &prop, llvm::StringRef name, mlir::Attribute value)
::mlir::Operation::operand_range getODSOperands(unsigned index)
::mlir::ParseResult parse(::mlir::OpAsmParser &parser, ::mlir::OperationState &result)
void setSymNameAttr(::mlir::StringAttr attr)
::mlir::LogicalResult verify(::mlir::Location loc)
GlobalReadOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs=nullptr, const Properties &properties={}, ::mlir::RegionRange regions={})
GlobalReadOpAdaptor(GlobalReadOp op)
GlobalReadOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs, ::mlir::OpaqueProperties properties, ::mlir::RegionRange regions={})
std::pair< unsigned, unsigned > getODSOperandIndexAndLength(unsigned index)
GlobalReadOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs=nullptr, const Properties &properties={}, ::mlir::RegionRange regions={})
RangeT getODSOperands(unsigned index)
GlobalReadOpGenericAdaptor(RangeT values, LateInst op)
::mlir::LogicalResult verifyInherentAttrs(::mlir::OperationName opName, ::mlir::NamedAttrList &attrs, llvm::function_ref<::mlir::InFlightDiagnostic()> emitError)
static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::Type val, ::mlir::SymbolRefAttr name_ref)
::mlir::StringAttr getNameRefAttrName()
void writeProperties(::mlir::DialectBytecodeWriter &writer)
FoldAdaptor::Properties Properties
static constexpr ::llvm::StringLiteral getOperationName()
GlobalReadOpAdaptor Adaptor
::mlir::Attribute getPropertiesAsAttr(::mlir::MLIRContext *ctx, const Properties &prop)
::mlir::SymbolRefAttr getNameRefAttr()
GlobalReadOpGenericAdaptor< RangeT > GenericAdaptor
std::pair< unsigned, unsigned > getODSOperandIndexAndLength(unsigned index)
::mlir::LogicalResult setPropertiesFromAttr(Properties &prop, ::mlir::Attribute attr, ::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError)
inline ::mlir::FailureOr< SymbolLookupResult< GlobalDefOp > > getGlobalDefOp(::mlir::SymbolTableCollection &tables)
Gets the definition for the global referenced in this op.
static ::llvm::ArrayRef<::llvm::StringRef > getAttributeNames()
void print(::mlir::OpAsmPrinter &_odsPrinter)
::mlir::LogicalResult verifySymbolUses(::mlir::SymbolTableCollection &symbolTable)
::mlir::Operation::operand_range getODSOperands(unsigned index)
::mlir::Operation::result_range getODSResults(unsigned index)
static llvm::hash_code computePropertiesHash(const Properties &prop)
::mlir::LogicalResult verifyInvariantsImpl()
GenericAdaptor<::llvm::ArrayRef<::mlir::Attribute > > FoldAdaptor
::mlir::ParseResult parse(::mlir::OpAsmParser &parser, ::mlir::OperationState &result)
::mlir::StringAttr getNameRefAttrName(::mlir::OperationName name)
::mlir::LogicalResult verifyInvariants()
void setNameRefAttr(::mlir::SymbolRefAttr attr)
static std::optional< mlir::Attribute > getInherentAttr(::mlir::MLIRContext *ctx, const Properties &prop, llvm::StringRef name)
static void setInherentAttr(Properties &prop, llvm::StringRef name, mlir::Attribute value)
std::pair< unsigned, unsigned > getODSResultIndexAndLength(unsigned index)
::mlir::LogicalResult readProperties(::mlir::DialectBytecodeReader &reader, ::mlir::OperationState &state)
::mlir::SymbolRefAttr getNameRef()
static void populateInherentAttrs(::mlir::MLIRContext *ctx, const Properties &prop, ::mlir::NamedAttrList &attrs)
GlobalWriteOpAdaptor(GlobalWriteOp op)
GlobalWriteOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs=nullptr, const Properties &properties={}, ::mlir::RegionRange regions={})
::mlir::LogicalResult verify(::mlir::Location loc)
std::pair< unsigned, unsigned > getODSOperandIndexAndLength(unsigned index)
GlobalWriteOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs, ::mlir::OpaqueProperties properties, ::mlir::RegionRange regions={})
GlobalWriteOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs=nullptr, const Properties &properties={}, ::mlir::RegionRange regions={})
RangeT getODSOperands(unsigned index)
GlobalWriteOpGenericAdaptor(RangeT values, LateInst op)
static llvm::hash_code computePropertiesHash(const Properties &prop)
::mlir::LogicalResult verifyInvariantsImpl()
::mlir::StringAttr getNameRefAttrName()
::mlir::LogicalResult verifySymbolUses(::mlir::SymbolTableCollection &symbolTable)
::mlir::Operation::operand_range getODSOperands(unsigned index)
static constexpr ::llvm::StringLiteral getOperationName()
::mlir::ParseResult parse(::mlir::OpAsmParser &parser, ::mlir::OperationState &result)
::mlir::SymbolRefAttr getNameRefAttr()
::mlir::StringAttr getNameRefAttrName(::mlir::OperationName name)
static void populateInherentAttrs(::mlir::MLIRContext *ctx, const Properties &prop, ::mlir::NamedAttrList &attrs)
void print(::mlir::OpAsmPrinter &_odsPrinter)
GlobalWriteOpAdaptor Adaptor
::mlir::LogicalResult readProperties(::mlir::DialectBytecodeReader &reader, ::mlir::OperationState &state)
inline ::mlir::FailureOr< SymbolLookupResult< GlobalDefOp > > getGlobalDefOp(::mlir::SymbolTableCollection &tables)
Gets the definition for the global referenced in this op.
std::pair< unsigned, unsigned > getODSOperandIndexAndLength(unsigned index)
FoldAdaptor::Properties Properties
void setNameRefAttr(::mlir::SymbolRefAttr attr)
::mlir::OpOperand & getValMutable()
GlobalWriteOpGenericAdaptor< RangeT > GenericAdaptor
::mlir::Attribute getPropertiesAsAttr(::mlir::MLIRContext *ctx, const Properties &prop)
::mlir::LogicalResult setPropertiesFromAttr(Properties &prop, ::mlir::Attribute attr, ::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError)
::mlir::LogicalResult verifyInvariants()
static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::SymbolRefAttr name_ref, ::mlir::Value val)
GenericAdaptor<::llvm::ArrayRef<::mlir::Attribute > > FoldAdaptor
static void setInherentAttr(Properties &prop, llvm::StringRef name, mlir::Attribute value)
std::pair< unsigned, unsigned > getODSResultIndexAndLength(unsigned index)
void writeProperties(::mlir::DialectBytecodeWriter &writer)
::mlir::Operation::result_range getODSResults(unsigned index)
static std::optional< mlir::Attribute > getInherentAttr(::mlir::MLIRContext *ctx, const Properties &prop, llvm::StringRef name)
static ::llvm::ArrayRef<::llvm::StringRef > getAttributeNames()
::mlir::LogicalResult verifyInherentAttrs(::mlir::OperationName opName, ::mlir::NamedAttrList &attrs, llvm::function_ref<::mlir::InFlightDiagnostic()> emitError)
::mlir::SymbolRefAttr getNameRef()
std::pair< unsigned, unsigned > getODSOperandIndexAndLength(unsigned index, unsigned odsOperandsSize)
::mlir::DictionaryAttr getAttributes()
::mlir::DictionaryAttr odsAttrs
::mlir::Attribute getInitialValueAttr()
::mlir::StringAttr getSymNameAttr()
::mlir::RegionRange odsRegions
::llvm::StringRef getSymName()
::std::optional<::mlir::OperationName > odsOpName
::mlir::UnitAttr getConstantAttr()
const Properties & getProperties()
::mlir::Attribute getInitialValue()
GlobalDefOpGenericAdaptorBase(::mlir::DictionaryAttr attrs=nullptr, const Properties &properties={}, ::mlir::RegionRange regions={})
::mlir::TypeAttr getTypeAttr()
const Properties & getProperties()
::mlir::SymbolRefAttr getNameRef()
::mlir::RegionRange odsRegions
::mlir::DictionaryAttr odsAttrs
GlobalReadOpGenericAdaptorBase(::mlir::DictionaryAttr attrs=nullptr, const Properties &properties={}, ::mlir::RegionRange regions={})
::std::optional<::mlir::OperationName > odsOpName
::mlir::SymbolRefAttr getNameRefAttr()
::mlir::DictionaryAttr getAttributes()
std::pair< unsigned, unsigned > getODSOperandIndexAndLength(unsigned index, unsigned odsOperandsSize)
std::pair< unsigned, unsigned > getODSOperandIndexAndLength(unsigned index, unsigned odsOperandsSize)
::mlir::DictionaryAttr getAttributes()
::mlir::SymbolRefAttr getNameRefAttr()
::mlir::RegionRange odsRegions
const Properties & getProperties()
::mlir::SymbolRefAttr getNameRef()
::std::optional<::mlir::OperationName > odsOpName
GlobalWriteOpGenericAdaptorBase(::mlir::DictionaryAttr attrs=nullptr, const Properties &properties={}, ::mlir::RegionRange regions={})
::mlir::DictionaryAttr odsAttrs
void setInitialValue(const ::mlir::Attribute &propValue)
::mlir::StringAttr sym_nameTy
::mlir::UnitAttr constantTy
bool operator!=(const Properties &rhs) const
bool operator==(const Properties &rhs) const
void setType(const ::mlir::TypeAttr &propValue)
::mlir::Attribute initial_valueTy
initial_valueTy initial_value
void setSymName(const ::mlir::StringAttr &propValue)
void setConstant(const ::mlir::UnitAttr &propValue)
bool operator!=(const Properties &rhs) const
::mlir::SymbolRefAttr name_refTy
bool operator==(const Properties &rhs) const
void setNameRef(const ::mlir::SymbolRefAttr &propValue)
::mlir::SymbolRefAttr name_refTy
bool operator!=(const Properties &rhs) const
bool operator==(const Properties &rhs) const
void setNameRef(const ::mlir::SymbolRefAttr &propValue)