16#include <mlir/IR/BuiltinAttributes.h>
29 if (TypeAttr ta = llvm::dyn_cast<TypeAttr>(attr)) {
30 if (
auto st = llvm::dyn_cast<StructType>(ta.getValue())) {
36 return op->emitError().append(
38 "' attribute. Found: ", attr
static constexpr ::llvm::StringLiteral name
bool isConcreteType(Type type, bool allowStructParams)
FailureOr< StructType > getTypeFromLlzkMainAttr(ModuleOp op, Attribute attr)
constexpr char MAIN_ATTR_NAME[]
Name of the attribute on the top-level ModuleOp that specifies the type of the main struct.