27static ::llvm::LogicalResult __mlir_ods_local_type_constraint_Ops1(
28 ::mlir::Operation *op, ::mlir::Type type, ::llvm::StringRef valueKind,
29 unsigned valueIndex) {
31 return op->emitOpError(valueKind) <<
" #" << valueIndex
32 <<
" must be a valid LLZK type, but got " << type;
34 return ::mlir::success();
50 return ::mlir::success();
53void UndefOp::build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::Type res) {
54 odsState.addTypes(res);
57void UndefOp::build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes) {
58 assert(resultTypes.size() == 1u &&
"mismatched number of results");
59 odsState.addTypes(resultTypes);
62void UndefOp::build(::mlir::OpBuilder &, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute> attributes) {
63 assert(operands.size() == 0u &&
"mismatched number of parameters");
64 odsState.addOperands(operands);
65 odsState.addAttributes(attributes);
66 assert(resultTypes.size() == 1u &&
"mismatched number of return types");
67 odsState.addTypes(resultTypes);
72 unsigned index = 0; (void)index;
75 for (
auto v : valueGroup0) {
76 if (::mlir::failed(__mlir_ods_local_type_constraint_Ops1(*
this, v.getType(),
"result", index++)))
77 return ::mlir::failure();
80 return ::mlir::success();
87::mlir::ParseResult
UndefOp::parse(::mlir::OpAsmParser &parser, ::mlir::OperationState &result) {
88 ::mlir::Type resRawType{};
89 ::llvm::ArrayRef<::mlir::Type> resTypes(&resRawType, 1);
90 if (parser.parseColon())
91 return ::mlir::failure();
95 if (parser.parseCustomTypeWithFallback(type))
96 return ::mlir::failure();
100 auto loc = parser.getCurrentLocation();(void)loc;
101 if (parser.parseOptionalAttrDict(result.attributes))
102 return ::mlir::failure();
104 result.addTypes(resTypes);
105 return ::mlir::success();
109 _odsPrinter <<
' ' <<
":";
112 auto type =
getRes().getType();
113 if (
auto validType = ::llvm::dyn_cast<::mlir::Type>(type))
114 _odsPrinter.printStrippedAttrOrType(validType);
118 ::llvm::SmallVector<::llvm::StringRef, 2> elidedAttrs;
119 _odsPrinter.printOptionalAttrDict((*this)->getAttrs(), elidedAttrs);
122void UndefOp::getEffects(::llvm::SmallVectorImpl<::mlir::SideEffects::EffectInstance<::mlir::MemoryEffects::Effect>> &effects) {
::llvm::LogicalResult verify(::mlir::Location loc)
UndefOpAdaptor(UndefOp op)
UndefOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs={}, const ::mlir::EmptyProperties &properties={}, ::mlir::RegionRange regions={})
::mlir::ValueRange getOperands()
void print(::mlir::OpAsmPrinter &_odsPrinter)
::llvm::LogicalResult verifyInvariantsImpl()
::llvm::LogicalResult verifyInvariants()
void getEffects(::llvm::SmallVectorImpl<::mlir::SideEffects::EffectInstance<::mlir::MemoryEffects::Effect > > &effects)
static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::Type res)
::mlir::Operation::result_range getODSResults(unsigned index)
::mlir::TypedValue<::mlir::Type > getRes()
::mlir::ParseResult parse(::mlir::OpAsmParser &parser, ::mlir::OperationState &result)
bool isValidType(Type type)