43 auto &propStorage = this->constant;
44 return ::llvm::dyn_cast_or_null<::mlir::UnitAttr>(propStorage);
47 this->constant = propValue;
53 auto &propStorage = this->initial_value;
54 return ::llvm::dyn_cast_or_null<::mlir::Attribute>(propStorage);
57 this->initial_value = propValue;
63 auto &propStorage = this->sym_name;
64 return ::llvm::cast<::mlir::StringAttr>(propStorage);
67 this->sym_name = propValue;
73 auto &propStorage = this->type;
74 return ::llvm::cast<::mlir::TypeAttr>(propStorage);
76 void setType(const ::mlir::TypeAttr &propValue) {
77 this->type = propValue;
84 rhs.
type == this->type &&
88 return !(*
this == rhs);
116 auto attr = ::llvm::cast<::mlir::StringAttr>(
getProperties().sym_name);
124 auto attr = ::llvm::cast<::mlir::TypeAttr>(
getProperties().type);
133template <
typename RangeT>
135 using ValueT = ::llvm::detail::ValueOfRange<RangeT>;
146 template <
typename LateInst = GlobalDefOp,
typename = std::enable_if_t<std::is_same_v<LateInst, GlobalDefOp>>>
155 return {std::next(odsOperands.begin(), valueRange.first),
156 std::next(odsOperands.begin(), valueRange.first + valueRange.second)};
171 ::llvm::LogicalResult
verify(::mlir::Location loc);
173class 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> {
178 template <
typename RangeT>
183 static ::llvm::StringRef attrNames[] = {::llvm::StringRef(
"constant"), ::llvm::StringRef(
"initial_value"), ::llvm::StringRef(
"sym_name"), ::llvm::StringRef(
"type")};
184 return ::llvm::ArrayRef(attrNames);
188 return getAttributeNameForIndex(0);
192 return getAttributeNameForIndex(
name, 0);
196 return getAttributeNameForIndex(1);
200 return getAttributeNameForIndex(
name, 1);
204 return getAttributeNameForIndex(2);
208 return getAttributeNameForIndex(
name, 2);
212 return getAttributeNameForIndex(3);
216 return getAttributeNameForIndex(
name, 3);
220 return ::llvm::StringLiteral(
"global.def");
229 return {std::next(getOperation()->operand_begin(), valueRange.first),
230 std::next(getOperation()->operand_begin(), valueRange.first + valueRange.second)};
239 return {std::next(getOperation()->result_begin(), valueRange.first),
240 std::next(getOperation()->result_begin(), valueRange.first + valueRange.second)};
243 static ::llvm::LogicalResult
setPropertiesFromAttr(
Properties &prop, ::mlir::Attribute attr, ::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError);
249 static ::llvm::LogicalResult
verifyInherentAttrs(::mlir::OperationName opName, ::mlir::NamedAttrList &attrs, llvm::function_ref<::mlir::InFlightDiagnostic()> emitError);
250 static ::llvm::LogicalResult
readProperties(::mlir::DialectBytecodeReader &reader, ::mlir::OperationState &state);
253 return ::llvm::cast<::mlir::StringAttr>(getProperties().sym_name);
258 return ::llvm::dyn_cast_or_null<::mlir::UnitAttr>(getProperties().constant);
263 return ::llvm::cast<::mlir::TypeAttr>(getProperties().type);
268 return ::llvm::dyn_cast_or_null<::mlir::Attribute>(getProperties().initial_value);
273 getProperties().sym_name = attr;
278 getProperties().constant = attr;
283 getProperties().type = attr;
286 void setType(::mlir::Type attrValue);
288 getProperties().initial_value = attr;
292 auto &attr = getProperties().constant;
297 static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::StringAttr sym_name, ::mlir::UnitAttr constant, ::mlir::TypeAttr type, ::mlir::Attribute initial_value =
nullptr);
298 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);
299 static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::llvm::StringRef sym_name,
bool constant, ::mlir::Type type, ::mlir::Attribute initial_value);
300 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);
301 static void build(::mlir::OpBuilder &, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute> attributes = {});
305 ::llvm::LogicalResult
verify();
306 ::llvm::LogicalResult
verifySymbolUses(::mlir::SymbolTableCollection &symbolTable);
307 static ::mlir::ParseResult
parse(::mlir::OpAsmParser &parser, ::mlir::OperationState &result);
308 void print(::mlir::OpAsmPrinter &_odsPrinter);
310 ::mlir::StringAttr getAttributeNameForIndex(
unsigned index) {
311 return getAttributeNameForIndex((*this)->getName(), index);
314 static ::mlir::StringAttr getAttributeNameForIndex(::mlir::OperationName
name,
unsigned index) {
315 assert(index < 4 &&
"invalid attribute index");
317 assert(
name.isRegistered() &&
"Operation isn't registered, missing a "
318 "dependent dialect loading?");
319 return name.getAttributeNames()[index];
324 ::mlir::Attribute &initialValue, ::mlir::TypeAttr typeAttr
327 ::mlir::Attribute initialValue, ::mlir::TypeAttr typeAttr
351 auto &propStorage = this->name_ref;
352 return ::llvm::cast<::mlir::SymbolRefAttr>(propStorage);
355 this->name_ref = propValue;
363 return !(*
this == rhs);
391 auto attr = ::llvm::cast<::mlir::SymbolRefAttr>(
getProperties().name_ref);
398template <
typename RangeT>
400 using ValueT = ::llvm::detail::ValueOfRange<RangeT>;
411 template <
typename LateInst = GlobalReadOp,
typename = std::enable_if_t<std::is_same_v<LateInst, GlobalReadOp>>>
420 return {std::next(odsOperands.begin(), valueRange.first),
421 std::next(odsOperands.begin(), valueRange.first + valueRange.second)};
436 ::llvm::LogicalResult
verify(::mlir::Location loc);
438class 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> {
443 template <
typename RangeT>
448 static ::llvm::StringRef attrNames[] = {::llvm::StringRef(
"name_ref")};
449 return ::llvm::ArrayRef(attrNames);
453 return getAttributeNameForIndex(0);
457 return getAttributeNameForIndex(
name, 0);
461 return ::llvm::StringLiteral(
"global.read");
470 return {std::next(getOperation()->operand_begin(), valueRange.first),
471 std::next(getOperation()->operand_begin(), valueRange.first + valueRange.second)};
480 return {std::next(getOperation()->result_begin(), valueRange.first),
481 std::next(getOperation()->result_begin(), valueRange.first + valueRange.second)};
484 ::mlir::TypedValue<::mlir::Type>
getVal() {
485 return ::llvm::cast<::mlir::TypedValue<::mlir::Type>>(*
getODSResults(0).begin());
488 static ::llvm::LogicalResult
setPropertiesFromAttr(
Properties &prop, ::mlir::Attribute attr, ::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError);
494 static ::llvm::LogicalResult
verifyInherentAttrs(::mlir::OperationName opName, ::mlir::NamedAttrList &attrs, llvm::function_ref<::mlir::InFlightDiagnostic()> emitError);
495 static ::llvm::LogicalResult
readProperties(::mlir::DialectBytecodeReader &reader, ::mlir::OperationState &state);
498 return ::llvm::cast<::mlir::SymbolRefAttr>(getProperties().name_ref);
503 getProperties().name_ref = attr;
506 static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::Type val, ::mlir::SymbolRefAttr name_ref);
507 static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::SymbolRefAttr name_ref);
508 static void build(::mlir::OpBuilder &, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute> attributes = {});
511 ::llvm::LogicalResult
verifySymbolUses(::mlir::SymbolTableCollection &symbolTable);
512 static ::mlir::ParseResult
parse(::mlir::OpAsmParser &parser, ::mlir::OperationState &result);
513 void print(::mlir::OpAsmPrinter &_odsPrinter);
515 ::mlir::StringAttr getAttributeNameForIndex(
unsigned index) {
516 return getAttributeNameForIndex((*this)->getName(), index);
519 static ::mlir::StringAttr getAttributeNameForIndex(::mlir::OperationName
name,
unsigned index) {
520 assert(index < 1 &&
"invalid attribute index");
522 assert(
name.isRegistered() &&
"Operation isn't registered, missing a "
523 "dependent dialect loading?");
524 return name.getAttributeNames()[index];
529 inline ::mlir::FailureOr<SymbolLookupResult<GlobalDefOp>>
getGlobalDefOp(::mlir::SymbolTableCollection &tables) {
530 return ::llvm::cast<GlobalRefOpInterface>(getOperation()).getGlobalDefOp(tables);
552 auto &propStorage = this->name_ref;
553 return ::llvm::cast<::mlir::SymbolRefAttr>(propStorage);
556 this->name_ref = propValue;
564 return !(*
this == rhs);
592 auto attr = ::llvm::cast<::mlir::SymbolRefAttr>(
getProperties().name_ref);
599template <
typename RangeT>
601 using ValueT = ::llvm::detail::ValueOfRange<RangeT>;
612 template <
typename LateInst = GlobalWriteOp,
typename = std::enable_if_t<std::is_same_v<LateInst, GlobalWriteOp>>>
621 return {std::next(odsOperands.begin(), valueRange.first),
622 std::next(odsOperands.begin(), valueRange.first + valueRange.second)};
641 ::llvm::LogicalResult
verify(::mlir::Location loc);
643class 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> {
648 template <
typename RangeT>
653 static ::llvm::StringRef attrNames[] = {::llvm::StringRef(
"name_ref")};
654 return ::llvm::ArrayRef(attrNames);
658 return getAttributeNameForIndex(0);
662 return getAttributeNameForIndex(
name, 0);
666 return ::llvm::StringLiteral(
"global.write");
675 return {std::next(getOperation()->operand_begin(), valueRange.first),
676 std::next(getOperation()->operand_begin(), valueRange.first + valueRange.second)};
679 ::mlir::TypedValue<::mlir::Type>
getVal() {
680 return ::llvm::cast<::mlir::TypedValue<::mlir::Type>>(*
getODSOperands(0).begin());
685 return getOperation()->getOpOperand(range.first);
694 return {std::next(getOperation()->result_begin(), valueRange.first),
695 std::next(getOperation()->result_begin(), valueRange.first + valueRange.second)};
698 static ::llvm::LogicalResult
setPropertiesFromAttr(
Properties &prop, ::mlir::Attribute attr, ::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError);
704 static ::llvm::LogicalResult
verifyInherentAttrs(::mlir::OperationName opName, ::mlir::NamedAttrList &attrs, llvm::function_ref<::mlir::InFlightDiagnostic()> emitError);
705 static ::llvm::LogicalResult
readProperties(::mlir::DialectBytecodeReader &reader, ::mlir::OperationState &state);
708 return ::llvm::cast<::mlir::SymbolRefAttr>(getProperties().name_ref);
713 getProperties().name_ref = attr;
716 static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::SymbolRefAttr name_ref, ::mlir::Value val);
717 static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::SymbolRefAttr name_ref, ::mlir::Value val);
718 static void build(::mlir::OpBuilder &, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute> attributes = {});
721 ::llvm::LogicalResult
verifySymbolUses(::mlir::SymbolTableCollection &symbolTable);
722 static ::mlir::ParseResult
parse(::mlir::OpAsmParser &parser, ::mlir::OperationState &result);
723 void print(::mlir::OpAsmPrinter &_odsPrinter);
725 ::mlir::StringAttr getAttributeNameForIndex(
unsigned index) {
726 return getAttributeNameForIndex((*this)->getName(), index);
729 static ::mlir::StringAttr getAttributeNameForIndex(::mlir::OperationName
name,
unsigned index) {
730 assert(index < 1 &&
"invalid attribute index");
732 assert(
name.isRegistered() &&
"Operation isn't registered, missing a "
733 "dependent dialect loading?");
734 return name.getAttributeNames()[index];
739 inline ::mlir::FailureOr<SymbolLookupResult<GlobalDefOp>>
getGlobalDefOp(::mlir::SymbolTableCollection &tables) {
740 return ::llvm::cast<GlobalRefOpInterface>(getOperation()).getGlobalDefOp(tables);
::llvm::LogicalResult verify(::mlir::Location loc)
GlobalDefOpAdaptor(GlobalDefOp op)
GlobalDefOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs, const Properties &properties, ::mlir::RegionRange regions={})
GlobalDefOpGenericAdaptor(RangeT values, const GlobalDefOpGenericAdaptorBase &base)
GlobalDefOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs, ::mlir::OpaqueProperties properties, ::mlir::RegionRange regions={})
std::pair< unsigned, unsigned > getODSOperandIndexAndLength(unsigned index)
RangeT getODSOperands(unsigned index)
GlobalDefOpGenericAdaptor(RangeT values, LateInst op)
GlobalDefOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs=nullptr)
GlobalDefOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs, const Properties &properties, ::mlir::RegionRange regions={})
::llvm::LogicalResult verifyInherentAttrs(::mlir::OperationName opName, ::mlir::NamedAttrList &attrs, llvm::function_ref<::mlir::InFlightDiagnostic()> emitError)
void setInitialValueAttr(::mlir::Attribute attr)
static void populateDefaultProperties(::mlir::OperationName opName, Properties &properties)
GlobalDefOpAdaptor Adaptor
FoldAdaptor::Properties Properties
::mlir::Attribute getInitialValue()
void setType(::mlir::Type attrValue)
::mlir::StringAttr getSymNameAttrName(::mlir::OperationName name)
::mlir::Attribute removeConstantAttr()
::mlir::StringAttr getConstantAttrName(::mlir::OperationName name)
std::pair< unsigned, unsigned > getODSResultIndexAndLength(unsigned index)
::llvm::LogicalResult readProperties(::mlir::DialectBytecodeReader &reader, ::mlir::OperationState &state)
void setTypeAttr(::mlir::TypeAttr attr)
::mlir::ParseResult parseGlobalInitialValue(::mlir::OpAsmParser &parser, ::mlir::Attribute &initialValue, ::mlir::TypeAttr typeAttr)
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::LogicalResult verifyInvariants()
::mlir::TypeAttr getTypeAttr()
::llvm::StringRef getSymName()
std::pair< unsigned, unsigned > getODSOperandIndexAndLength(unsigned index)
GenericAdaptor<::llvm::ArrayRef<::mlir::Attribute > > FoldAdaptor
::mlir::StringAttr getSymNameAttrName()
::mlir::Attribute getPropertiesAsAttr(::mlir::MLIRContext *ctx, const Properties &prop)
::mlir::Attribute getInitialValueAttr()
::llvm::LogicalResult verifySymbolUses(::mlir::SymbolTableCollection &symbolTable)
GlobalDefOpGenericAdaptor< RangeT > GenericAdaptor
::mlir::StringAttr getSymNameAttr()
::mlir::StringAttr getInitialValueAttrName(::mlir::OperationName name)
::mlir::UnitAttr getConstantAttr()
void setSymName(::llvm::StringRef attrValue)
void writeProperties(::mlir::DialectBytecodeWriter &writer)
void print(::mlir::OpAsmPrinter &_odsPrinter)
::mlir::StringAttr getTypeAttrName(::mlir::OperationName name)
::llvm::LogicalResult verifyInvariantsImpl()
::mlir::StringAttr getTypeAttrName()
void setConstant(bool attrValue)
::llvm::LogicalResult setPropertiesFromAttr(Properties &prop, ::mlir::Attribute attr, ::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError)
static constexpr ::llvm::StringLiteral getOperationName()
void setConstantAttr(::mlir::UnitAttr attr)
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()
::llvm::LogicalResult verify()
static llvm::hash_code computePropertiesHash(const Properties &prop)
::mlir::Operation::result_range getODSResults(unsigned index)
::mlir::StringAttr getConstantAttrName()
static ::llvm::ArrayRef<::llvm::StringRef > getAttributeNames()
::mlir::Operation::operand_range getODSOperands(unsigned index)
static void setInherentAttr(Properties &prop, llvm::StringRef name, mlir::Attribute value)
::mlir::ParseResult parse(::mlir::OpAsmParser &parser, ::mlir::OperationState &result)
void setSymNameAttr(::mlir::StringAttr attr)
GlobalReadOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs, const Properties &properties, ::mlir::RegionRange regions={})
::llvm::LogicalResult verify(::mlir::Location loc)
GlobalReadOpAdaptor(GlobalReadOp op)
GlobalReadOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs=nullptr)
GlobalReadOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs, ::mlir::OpaqueProperties properties, ::mlir::RegionRange regions={})
std::pair< unsigned, unsigned > getODSOperandIndexAndLength(unsigned index)
GlobalReadOpGenericAdaptor(RangeT values, const GlobalReadOpGenericAdaptorBase &base)
GlobalReadOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs, const Properties &properties, ::mlir::RegionRange regions={})
RangeT getODSOperands(unsigned index)
GlobalReadOpGenericAdaptor(RangeT values, LateInst op)
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)
GlobalReadOpGenericAdaptor< RangeT > GenericAdaptor
std::pair< unsigned, unsigned > getODSOperandIndexAndLength(unsigned index)
::mlir::Operation::result_range getODSResults(unsigned index)
::llvm::LogicalResult verifyInvariants()
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)
::llvm::LogicalResult verifySymbolUses(::mlir::SymbolTableCollection &symbolTable)
static llvm::hash_code computePropertiesHash(const Properties &prop)
GenericAdaptor<::llvm::ArrayRef<::mlir::Attribute > > FoldAdaptor
::mlir::ParseResult parse(::mlir::OpAsmParser &parser, ::mlir::OperationState &result)
::mlir::StringAttr getNameRefAttrName(::mlir::OperationName name)
void setNameRefAttr(::mlir::SymbolRefAttr attr)
static std::optional< mlir::Attribute > getInherentAttr(::mlir::MLIRContext *ctx, const Properties &prop, llvm::StringRef name)
::mlir::SymbolRefAttr getNameRefAttr()
static void setInherentAttr(Properties &prop, llvm::StringRef name, mlir::Attribute value)
::mlir::TypedValue<::mlir::Type > getVal()
std::pair< unsigned, unsigned > getODSResultIndexAndLength(unsigned index)
::llvm::LogicalResult setPropertiesFromAttr(Properties &prop, ::mlir::Attribute attr, ::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError)
::llvm::LogicalResult verifyInherentAttrs(::mlir::OperationName opName, ::mlir::NamedAttrList &attrs, llvm::function_ref<::mlir::InFlightDiagnostic()> emitError)
::mlir::SymbolRefAttr getNameRef()
::mlir::Operation::operand_range getODSOperands(unsigned index)
::llvm::LogicalResult readProperties(::mlir::DialectBytecodeReader &reader, ::mlir::OperationState &state)
static void populateInherentAttrs(::mlir::MLIRContext *ctx, const Properties &prop, ::mlir::NamedAttrList &attrs)
::llvm::LogicalResult verifyInvariantsImpl()
GlobalWriteOpAdaptor(GlobalWriteOp op)
GlobalWriteOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs, const Properties &properties, ::mlir::RegionRange regions={})
::llvm::LogicalResult verify(::mlir::Location loc)
std::pair< unsigned, unsigned > getODSOperandIndexAndLength(unsigned index)
GlobalWriteOpGenericAdaptor(RangeT values, const GlobalWriteOpGenericAdaptorBase &base)
GlobalWriteOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs, ::mlir::OpaqueProperties properties, ::mlir::RegionRange regions={})
GlobalWriteOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs, const Properties &properties, ::mlir::RegionRange regions={})
RangeT getODSOperands(unsigned index)
GlobalWriteOpGenericAdaptor(RangeT values, LateInst op)
GlobalWriteOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs=nullptr)
::mlir::OpOperand & getValMutable()
::mlir::TypedValue<::mlir::Type > getVal()
static llvm::hash_code computePropertiesHash(const Properties &prop)
::mlir::StringAttr getNameRefAttrName()
::llvm::LogicalResult verifySymbolUses(::mlir::SymbolTableCollection &symbolTable)
static constexpr ::llvm::StringLiteral getOperationName()
::mlir::ParseResult parse(::mlir::OpAsmParser &parser, ::mlir::OperationState &result)
::mlir::SymbolRefAttr getNameRefAttr()
::mlir::StringAttr getNameRefAttrName(::mlir::OperationName name)
::mlir::Operation::operand_range getODSOperands(unsigned index)
static void populateInherentAttrs(::mlir::MLIRContext *ctx, const Properties &prop, ::mlir::NamedAttrList &attrs)
void print(::mlir::OpAsmPrinter &_odsPrinter)
GlobalWriteOpAdaptor Adaptor
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)
GlobalWriteOpGenericAdaptor< RangeT > GenericAdaptor
::llvm::LogicalResult verifyInvariants()
::mlir::Attribute getPropertiesAsAttr(::mlir::MLIRContext *ctx, const Properties &prop)
::llvm::LogicalResult verifyInherentAttrs(::mlir::OperationName opName, ::mlir::NamedAttrList &attrs, llvm::function_ref<::mlir::InFlightDiagnostic()> emitError)
::mlir::Operation::result_range getODSResults(unsigned index)
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)
static std::optional< mlir::Attribute > getInherentAttr(::mlir::MLIRContext *ctx, const Properties &prop, llvm::StringRef name)
::llvm::LogicalResult verifyInvariantsImpl()
static ::llvm::ArrayRef<::llvm::StringRef > getAttributeNames()
::llvm::LogicalResult setPropertiesFromAttr(Properties &prop, ::mlir::Attribute attr, ::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError)
::mlir::SymbolRefAttr getNameRef()
::llvm::LogicalResult readProperties(::mlir::DialectBytecodeReader &reader, ::mlir::OperationState &state)
std::pair< unsigned, unsigned > getODSOperandIndexAndLength(unsigned index, unsigned odsOperandsSize)
::mlir::DictionaryAttr odsAttrs
::mlir::Attribute getInitialValueAttr()
GlobalDefOpGenericAdaptorBase(::mlir::DictionaryAttr attrs, const Properties &properties, ::mlir::RegionRange regions={})
::mlir::RegionRange odsRegions
::llvm::StringRef getSymName()
::std::optional<::mlir::OperationName > odsOpName
::mlir::UnitAttr getConstantAttr()
::mlir::DictionaryAttr getAttributes()
const Properties & getProperties()
::mlir::Attribute getInitialValue()
::mlir::TypeAttr getTypeAttr()
::mlir::StringAttr getSymNameAttr()
::mlir::DictionaryAttr getAttributes()
const Properties & getProperties()
::mlir::SymbolRefAttr getNameRef()
::mlir::RegionRange odsRegions
GlobalReadOpGenericAdaptorBase(::mlir::DictionaryAttr attrs, const Properties &properties, ::mlir::RegionRange regions={})
::mlir::DictionaryAttr odsAttrs
::std::optional<::mlir::OperationName > odsOpName
::mlir::SymbolRefAttr getNameRefAttr()
std::pair< unsigned, unsigned > getODSOperandIndexAndLength(unsigned index, unsigned odsOperandsSize)
::mlir::DictionaryAttr getAttributes()
std::pair< unsigned, unsigned > getODSOperandIndexAndLength(unsigned index, unsigned odsOperandsSize)
::mlir::SymbolRefAttr getNameRefAttr()
::mlir::RegionRange odsRegions
const Properties & getProperties()
::mlir::SymbolRefAttr getNameRef()
::std::optional<::mlir::OperationName > odsOpName
GlobalWriteOpGenericAdaptorBase(::mlir::DictionaryAttr attrs, 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)