Searched refs:array_attr (Results 1 – 11 of 11) sorted by relevance
66 mlir::ArrayAttr array_attr, in GetDevicesFromOp() argument70 for (auto& kv : llvm::enumerate(array_attr)) { in GetDevicesFromOp()150 if (auto array_attr = devices_attr.dyn_cast<mlir::ArrayAttr>()) { in GetDevicesFromOp() local151 return GetDevicesFromOp(op, array_attr, devices); in GetDevicesFromOp()
48 ArrayAttr array_attr = attrs.get(attr_name).dyn_cast_or_null<ArrayAttr>(); in GetIntegerArraySafe() local49 if (array_attr == nullptr || array_attr.size() != N) { in GetIntegerArraySafe()56 for (Attribute integer_attr : array_attr.getValue()) { in GetIntegerArraySafe()
159 if (auto array_attr = attr.second.dyn_cast<ArrayAttr>()) { in runOnOperation() local160 for (const Attribute &attribute : array_attr) { in runOnOperation()
194 auto &array_attr = attr.getValue(); in ConvertI32ArrayAttrToStackAllocatedArray() local196 loc, llvm_i32_type, rewriter->getI32IntegerAttr(array_attr.size())); in ConvertI32ArrayAttrToStackAllocatedArray()200 for (auto &dim : llvm::enumerate(array_attr)) { in ConvertI32ArrayAttrToStackAllocatedArray()
408 ArrayAttr array_attr = attr.dyn_cast<ArrayAttr>(); in Create() local409 if (!array_attr) in Create()413 for (Attribute attr : array_attr) { in Create()
508 auto array_attr = rewriter.getArrayAttr(array_list); in matchAndRewrite() local509 rewriter.replaceOpWithNewOp<TFR::ConstOp>(bl_op, array_attr); in matchAndRewrite()
47 int array_attr [1] [[]]; variable
111 ArrayAttr:$array_attr,149 // DEF: ::mlir::ArrayAttr BOp::array_attr()
1563 auto array_attr = attr.second.dyn_cast_or_null<mlir::ArrayAttr>(); in GetStringsFromDictionaryAttr() local1564 if (!array_attr || array_attr.empty()) continue; in GetStringsFromDictionaryAttr()1565 auto string_attr = array_attr[0].dyn_cast_or_null<mlir::StringAttr>(); in GetStringsFromDictionaryAttr()
130 auto array_attr = attr.cast<ArrayAttr>(); in GetI64ArrayAttrValues() local131 values->reserve(array_attr.getValue().size()); in GetI64ArrayAttrValues()132 for (Attribute val : array_attr.getValue()) in GetI64ArrayAttrValues()