23 template<
typename ConcreteOp>
29 static inline ::mlir::Value
getVal(
const Concept *
impl, ::mlir::Operation *tablegen_opaque_val);
30 static inline ::mlir::TypedValue<::llzk::component::StructType>
getComponent(
const Concept *
impl, ::mlir::Operation *tablegen_opaque_val);
33 static inline ::llzk::component::StructType
getStructType(
const Concept *
impl, ::mlir::Operation *tablegen_opaque_val);
34 static inline bool isRead(
const Concept *
impl, ::mlir::Operation *tablegen_opaque_val);
36 template<
typename ConcreteOp>
42 static inline ::mlir::Value
getVal(
const Concept *
impl, ::mlir::Operation *tablegen_opaque_val);
43 static inline ::mlir::TypedValue<::llzk::component::StructType>
getComponent(
const Concept *
impl, ::mlir::Operation *tablegen_opaque_val);
49 template<
typename ConcreteModel,
typename ConcreteOp>
54};
template <
typename ConcreteOp>
58class FieldRefOpInterface :
public ::mlir::OpInterface<FieldRefOpInterface, detail::FieldRefOpInterfaceInterfaceTraits> {
60 using ::mlir::OpInterface<FieldRefOpInterface, detail::FieldRefOpInterfaceInterfaceTraits>::OpInterface;
61 template <
typename ConcreteOp>
66 ::mlir::TypedValue<::llzk::component::StructType>
getComponent();
77 ::mlir::FailureOr<SymbolLookupResult<FieldDefOp>>
getFieldDefOp(::mlir::SymbolTableCollection &tables);
80 template <
typename ConcreteOp>
81 struct FieldRefOpInterfaceTrait :
public ::mlir::OpInterface<FieldRefOpInterface, detail::FieldRefOpInterfaceInterfaceTraits>::Trait<ConcreteOp> {
88template<
typename ConcreteOp>
90 return (llvm::cast<ConcreteOp>(tablegen_opaque_val)).getVal();
92template<
typename ConcreteOp>
94 return (llvm::cast<ConcreteOp>(tablegen_opaque_val)).getComponent();
96template<
typename ConcreteOp>
98 return (llvm::cast<ConcreteOp>(tablegen_opaque_val)).getFieldName();
100template<
typename ConcreteOp>
102 return (llvm::cast<ConcreteOp>(tablegen_opaque_val)).getFieldNameAttr();
104template<
typename ConcreteOp>
106 return (llvm::cast<ConcreteOp>(tablegen_opaque_val)).getComponent().getType();
108template<
typename ConcreteOp>
110 return (llvm::cast<ConcreteOp>(tablegen_opaque_val)).isRead();
112template<
typename ConcreteOp>
114 return static_cast<const ConcreteOp *
>(
impl)->
getVal(tablegen_opaque_val);
116template<
typename ConcreteOp>
118 return static_cast<const ConcreteOp *
>(
impl)->
getComponent(tablegen_opaque_val);
120template<
typename ConcreteOp>
122 return static_cast<const ConcreteOp *
>(
impl)->
getFieldName(tablegen_opaque_val);
124template<
typename ConcreteOp>
128template<
typename ConcreteOp>
130 return static_cast<const ConcreteOp *
>(
impl)->
getStructType(tablegen_opaque_val);
132template<
typename ConcreteOp>
134 return static_cast<const ConcreteOp *
>(
impl)->
isRead(tablegen_opaque_val);
::mlir::FailureOr< SymbolLookupResult< FieldDefOp > > getFieldDefOp(::mlir::SymbolTableCollection &tables)
Gets the definition for the field referenced in this op.
::llzk::component::StructType getStructType()
Gets the struct type of the target component.
bool isRead()
Return true if the op is a read, false if it's a write.
::llvm::StringRef getFieldName()
Gets the field name attribute value from the FieldRefOp.
::mlir::FlatSymbolRefAttr getFieldNameAttr()
Gets the field name attribute from the FieldRefOp.
::mlir::Value getVal()
Gets the SSA Value that holds the read/write data for the FieldRefOp.
::mlir::TypedValue<::llzk::component::StructType > getComponent()
Gets the SSA value with the target component from the FieldRefOp.
ConcreteOp ConcreteEntity
static inline ::llzk::component::StructType getStructType(const Concept *impl, ::mlir::Operation *tablegen_opaque_val)
static inline ::mlir::FlatSymbolRefAttr getFieldNameAttr(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 ::llvm::StringRef getFieldName(const Concept *impl, ::mlir::Operation *tablegen_opaque_val)
::llzk::component::FieldRefOpInterface Interface
static bool isRead(const Concept *impl, ::mlir::Operation *tablegen_opaque_val)
static inline ::mlir::Value getVal(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::FlatSymbolRefAttr getFieldNameAttr(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 bool isRead(const Concept *impl, ::mlir::Operation *tablegen_opaque_val)
::llzk::component::FieldRefOpInterface Interface
static inline ::llvm::StringRef getFieldName(const Concept *impl, ::mlir::Operation *tablegen_opaque_val)
static inline ::mlir::Value getVal(const Concept *impl, ::mlir::Operation *tablegen_opaque_val)
::llvm::StringRef(* getFieldName)(const Concept *impl, ::mlir::Operation *)
bool(* isRead)(const Concept *impl, ::mlir::Operation *)
::mlir::FlatSymbolRefAttr(* getFieldNameAttr)(const Concept *impl, ::mlir::Operation *)
::mlir::TypedValue<::llzk::component::StructType >(* getComponent)(const Concept *impl, ::mlir::Operation *)
::llzk::component::StructType(* getStructType)(const Concept *impl, ::mlir::Operation *)
::mlir::Value(* getVal)(const Concept *impl, ::mlir::Operation *)
The methods defined by the interface.