18 ::mlir::OpOperand &(*getComponentMutable)(
const Concept *
impl, ::mlir::Operation *);
26 template<
typename ConcreteOp>
32 static inline ::mlir::Value
getVal(
const Concept *
impl, ::mlir::Operation *tablegen_opaque_val);
33 static inline ::mlir::TypedValue<::llzk::component::StructType>
getComponent(
const Concept *
impl, ::mlir::Operation *tablegen_opaque_val);
37 static inline void setMemberName(
const Concept *
impl, ::mlir::Operation *tablegen_opaque_val, ::llvm::StringRef attrValue);
39 static inline ::llzk::component::StructType
getStructType(
const Concept *
impl, ::mlir::Operation *tablegen_opaque_val);
40 static inline bool isRead(
const Concept *
impl, ::mlir::Operation *tablegen_opaque_val);
42 template<
typename ConcreteOp>
48 static inline ::mlir::Value
getVal(
const Concept *
impl, ::mlir::Operation *tablegen_opaque_val);
49 static inline ::mlir::TypedValue<::llzk::component::StructType>
getComponent(
const Concept *
impl, ::mlir::Operation *tablegen_opaque_val);
58 template<
typename ConcreteModel,
typename ConcreteOp>
64template <
typename ConcreteOp>
68class MemberRefOpInterface :
public ::mlir::OpInterface<MemberRefOpInterface, detail::MemberRefOpInterfaceInterfaceTraits> {
70 using ::mlir::OpInterface<MemberRefOpInterface, detail::MemberRefOpInterfaceInterfaceTraits>::OpInterface;
71 template <
typename ConcreteOp>
76 ::mlir::TypedValue<::llzk::component::StructType>
getComponent();
93 ::mlir::FailureOr<SymbolLookupResult<MemberDefOp>>
getMemberDefOp(::mlir::SymbolTableCollection &tables);
96 template <
typename ConcreteOp>
97 struct MemberRefOpInterfaceTrait :
public ::mlir::OpInterface<MemberRefOpInterface, detail::MemberRefOpInterfaceInterfaceTraits>::Trait<ConcreteOp> {
104template<
typename ConcreteOp>
106 return (llvm::cast<ConcreteOp>(tablegen_opaque_val)).getVal();
108template<
typename ConcreteOp>
110 return (llvm::cast<ConcreteOp>(tablegen_opaque_val)).getComponent();
112template<
typename ConcreteOp>
114 return (llvm::cast<ConcreteOp>(tablegen_opaque_val)).getComponentMutable();
116template<
typename ConcreteOp>
118 return (llvm::cast<ConcreteOp>(tablegen_opaque_val)).getMemberName();
120template<
typename ConcreteOp>
122 return (llvm::cast<ConcreteOp>(tablegen_opaque_val)).getMemberNameAttr();
124template<
typename ConcreteOp>
126 return (llvm::cast<ConcreteOp>(tablegen_opaque_val)).setMemberName(attrValue);
128template<
typename ConcreteOp>
130 return (llvm::cast<ConcreteOp>(tablegen_opaque_val)).setMemberNameAttr(attr);
132template<
typename ConcreteOp>
134 return (llvm::cast<ConcreteOp>(tablegen_opaque_val)).getComponent().getType();
136template<
typename ConcreteOp>
138 return (llvm::cast<ConcreteOp>(tablegen_opaque_val)).isRead();
140template<
typename ConcreteOp>
142 return static_cast<const ConcreteOp *
>(
impl)->
getVal(tablegen_opaque_val);
144template<
typename ConcreteOp>
146 return static_cast<const ConcreteOp *
>(
impl)->
getComponent(tablegen_opaque_val);
148template<
typename ConcreteOp>
152template<
typename ConcreteOp>
154 return static_cast<const ConcreteOp *
>(
impl)->
getMemberName(tablegen_opaque_val);
156template<
typename ConcreteOp>
160template<
typename ConcreteOp>
162 return static_cast<const ConcreteOp *
>(
impl)->
setMemberName(tablegen_opaque_val, attrValue);
164template<
typename ConcreteOp>
168template<
typename ConcreteOp>
170 return static_cast<const ConcreteOp *
>(
impl)->
getStructType(tablegen_opaque_val);
172template<
typename ConcreteOp>
174 return static_cast<const ConcreteOp *
>(
impl)->
isRead(tablegen_opaque_val);
::mlir::Value getVal()
Gets the SSA Value that holds the read/write data for the MemberRefOp.
::mlir::FailureOr< SymbolLookupResult< MemberDefOp > > getMemberDefOp(::mlir::SymbolTableCollection &tables)
Gets the definition for the member referenced in this op.
::mlir::FlatSymbolRefAttr getMemberNameAttr()
Gets the member name attribute from the MemberRefOp.
::mlir::TypedValue<::llzk::component::StructType > getComponent()
Gets the SSA value with the target component from the MemberRefOp.
void setMemberName(::llvm::StringRef attrValue)
Sets the member name attribute value in the MemberRefOp.
bool isRead()
Return true if the op is a read, false if it's a write.
::llvm::StringRef getMemberName()
Gets the member name attribute value from the MemberRefOp.
void setMemberNameAttr(::mlir::FlatSymbolRefAttr attr)
Sets the member name attribute in the MemberRefOp.
::mlir::OpOperand & getComponentMutable()
Gets the SSA value with the target component from the MemberRefOp.
::llzk::component::StructType getStructType()
Gets the struct type of the target component.
ConcreteOp ConcreteEntity
static void setMemberNameAttr(const Concept *impl, ::mlir::Operation *tablegen_opaque_val, ::mlir::FlatSymbolRefAttr attr)
static inline ::mlir::TypedValue<::llzk::component::StructType > getComponent(const Concept *impl, ::mlir::Operation *tablegen_opaque_val)
static void setMemberName(const Concept *impl, ::mlir::Operation *tablegen_opaque_val, ::llvm::StringRef attrValue)
static bool isRead(const Concept *impl, ::mlir::Operation *tablegen_opaque_val)
static inline ::mlir::OpOperand & getComponentMutable(const Concept *impl, ::mlir::Operation *tablegen_opaque_val)
static inline ::llzk::component::StructType getStructType(const Concept *impl, ::mlir::Operation *tablegen_opaque_val)
::llzk::component::MemberRefOpInterface Interface
static inline ::llvm::StringRef getMemberName(const Concept *impl, ::mlir::Operation *tablegen_opaque_val)
static inline ::mlir::FlatSymbolRefAttr getMemberNameAttr(const Concept *impl, ::mlir::Operation *tablegen_opaque_val)
static inline ::mlir::Value getVal(const Concept *impl, ::mlir::Operation *tablegen_opaque_val)
static bool isRead(const Concept *impl, ::mlir::Operation *tablegen_opaque_val)
static inline ::llzk::component::StructType getStructType(const Concept *impl, ::mlir::Operation *tablegen_opaque_val)
static inline ::mlir::TypedValue<::llzk::component::StructType > getComponent(const Concept *impl, ::mlir::Operation *tablegen_opaque_val)
static inline ::mlir::OpOperand & getComponentMutable(const Concept *impl, ::mlir::Operation *tablegen_opaque_val)
static inline ::llvm::StringRef getMemberName(const Concept *impl, ::mlir::Operation *tablegen_opaque_val)
static void setMemberName(const Concept *impl, ::mlir::Operation *tablegen_opaque_val, ::llvm::StringRef attrValue)
static inline ::mlir::Value getVal(const Concept *impl, ::mlir::Operation *tablegen_opaque_val)
::llzk::component::MemberRefOpInterface Interface
static void setMemberNameAttr(const Concept *impl, ::mlir::Operation *tablegen_opaque_val, ::mlir::FlatSymbolRefAttr attr)
static inline ::mlir::FlatSymbolRefAttr getMemberNameAttr(const Concept *impl, ::mlir::Operation *tablegen_opaque_val)
::llvm::StringRef(* getMemberName)(const Concept *impl, ::mlir::Operation *)
::llzk::component::StructType(* getStructType)(const Concept *impl, ::mlir::Operation *)
::mlir::FlatSymbolRefAttr(* getMemberNameAttr)(const Concept *impl, ::mlir::Operation *)
::mlir::Value(* getVal)(const Concept *impl, ::mlir::Operation *)
The methods defined by the interface.
::mlir::TypedValue<::llzk::component::StructType >(* getComponent)(const Concept *impl, ::mlir::Operation *)
::mlir::OpOperand &(* getComponentMutable)(const Concept *impl, ::mlir::Operation *)
bool(* isRead)(const Concept *impl, ::mlir::Operation *)
void(* setMemberName)(const Concept *impl, ::mlir::Operation *, ::llvm::StringRef)
void(* setMemberNameAttr)(const Concept *impl, ::mlir::Operation *, ::mlir::FlatSymbolRefAttr)