| /llvm-project-15.0.7/mlir/examples/toy/Ch3/mlir/ |
| H A D | Dialect.cpp | 142 auto attrType = getValue().getType().cast<mlir::TensorType>(); in verify() local 143 if (attrType.getRank() != resultType.getRank()) { in verify() 146 << attrType.getRank() << " != " << resultType.getRank(); in verify() 150 for (int dim = 0, dimE = attrType.getRank(); dim < dimE; ++dim) { in verify() 151 if (attrType.getShape()[dim] != resultType.getShape()[dim]) { in verify() 154 << dim << ": " << attrType.getShape()[dim] in verify()
|
| /llvm-project-15.0.7/mlir/examples/toy/Ch2/mlir/ |
| H A D | Dialect.cpp | 142 auto attrType = getValue().getType().cast<mlir::TensorType>(); in verify() local 143 if (attrType.getRank() != resultType.getRank()) { in verify() 146 << attrType.getRank() << " != " << resultType.getRank(); in verify() 150 for (int dim = 0, dimE = attrType.getRank(); dim < dimE; ++dim) { in verify() 151 if (attrType.getShape()[dim] != resultType.getShape()[dim]) { in verify() 154 << dim << ": " << attrType.getShape()[dim] in verify()
|
| /llvm-project-15.0.7/mlir/lib/AsmParser/ |
| H A D | DialectSymbolParser.cpp | 228 Type attrType = type; in parseExtendedAttr() local 229 if (consumeIf(Token::colon) && !(attrType = parseType())) in parseExtendedAttr() 241 Attribute attr = dialect->parseAttribute(customParser, attrType); in parseExtendedAttr() 249 symbolData, attrType ? attrType : NoneType::get(ctx)); in parseExtendedAttr()
|
| H A D | Parser.h | 269 Attribute parseOpaqueElementsAttr(Type attrType); 272 Attribute parseDenseElementsAttr(Type attrType); 279 Attribute parseSparseElementsAttr(Type attrType);
|
| H A D | AttributeParser.cpp | 907 Attribute Parser::parseDenseElementsAttr(Type attrType) { in parseDenseElementsAttr() argument 924 auto loc = attrType ? attribLoc : getToken().getLoc(); in parseDenseElementsAttr() 925 auto type = parseElementsLiteralType(attrType); in parseDenseElementsAttr() 932 Attribute Parser::parseOpaqueElementsAttr(Type attrType) { in parseOpaqueElementsAttr() argument 951 auto type = parseElementsLiteralType(attrType); in parseOpaqueElementsAttr() 989 Attribute Parser::parseSparseElementsAttr(Type attrType) { in parseSparseElementsAttr() argument 1000 ShapedType type = parseElementsLiteralType(attrType); in parseSparseElementsAttr() 1033 auto type = parseElementsLiteralType(attrType); in parseSparseElementsAttr()
|
| /llvm-project-15.0.7/mlir/examples/toy/Ch6/mlir/ |
| H A D | Dialect.cpp | 204 auto attrType = getValue().getType().cast<mlir::TensorType>(); in verify() local 205 if (attrType.getRank() != resultType.getRank()) { in verify() 208 << attrType.getRank() << " != " << resultType.getRank(); in verify() 212 for (int dim = 0, dimE = attrType.getRank(); dim < dimE; ++dim) { in verify() 213 if (attrType.getShape()[dim] != resultType.getShape()[dim]) { in verify() 216 << dim << ": " << attrType.getShape()[dim] in verify()
|
| /llvm-project-15.0.7/mlir/examples/toy/Ch4/mlir/ |
| H A D | Dialect.cpp | 204 auto attrType = getValue().getType().cast<mlir::TensorType>(); in verify() local 205 if (attrType.getRank() != resultType.getRank()) { in verify() 208 << attrType.getRank() << " != " << resultType.getRank(); in verify() 212 for (int dim = 0, dimE = attrType.getRank(); dim < dimE; ++dim) { in verify() 213 if (attrType.getShape()[dim] != resultType.getShape()[dim]) { in verify() 216 << dim << ": " << attrType.getShape()[dim] in verify()
|
| /llvm-project-15.0.7/mlir/examples/toy/Ch5/mlir/ |
| H A D | Dialect.cpp | 204 auto attrType = getValue().getType().cast<mlir::TensorType>(); in verify() local 205 if (attrType.getRank() != resultType.getRank()) { in verify() 208 << attrType.getRank() << " != " << resultType.getRank(); in verify() 212 for (int dim = 0, dimE = attrType.getRank(); dim < dimE; ++dim) { in verify() 213 if (attrType.getShape()[dim] != resultType.getShape()[dim]) { in verify() 216 << dim << ": " << attrType.getShape()[dim] in verify()
|
| /llvm-project-15.0.7/mlir/examples/toy/Ch7/mlir/ |
| H A D | Dialect.cpp | 200 auto attrType = attrValue.getType().cast<mlir::TensorType>(); in verifyConstantForType() local 201 if (attrType.getRank() != resultType.getRank()) { in verifyConstantForType() 204 << attrType.getRank() << " != " << resultType.getRank(); in verifyConstantForType() 208 for (int dim = 0, dimE = attrType.getRank(); dim < dimE; ++dim) { in verifyConstantForType() 209 if (attrType.getShape()[dim] != resultType.getShape()[dim]) { in verifyConstantForType() 212 << dim << ": " << attrType.getShape()[dim] in verifyConstantForType()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/PDL/IR/ |
| H A D | PDL.cpp | 114 Value attrType = type(); in verify() local 123 if (attrType) in verify()
|
| /llvm-project-15.0.7/mlir/tools/mlir-tblgen/ |
| H A D | OpDefinitionsGen.cpp | 1475 auto emit = [&](AttrParamKind attrType, TypeParamKind paramKind, in genSeparateArgParamBuilder() 1481 attrType); in genSeparateArgParamBuilder() 1489 /*isRawValueAttr=*/attrType == in genSeparateArgParamBuilder() 1545 for (auto attrType : attrBuilderType) { in genSeparateArgParamBuilder() local 1546 emit(attrType, TypeParamKind::Separate, /*inferType=*/false); in genSeparateArgParamBuilder() 1548 emit(attrType, TypeParamKind::None, /*inferType=*/true); in genSeparateArgParamBuilder() 1549 emit(attrType, TypeParamKind::Collective, /*inferType=*/false); in genSeparateArgParamBuilder() 1697 auto emit = [&](AttrParamKind attrType) { in genUseOperandAsResultTypeSeparateParamBuilder() argument 1702 TypeParamKind::None, attrType); in genUseOperandAsResultTypeSeparateParamBuilder() 1710 /*isRawValueAttr=*/attrType == in genUseOperandAsResultTypeSeparateParamBuilder()
|
| H A D | OpFormatGen.cpp | 63 llvm::Optional<Type> attrType = var->attr.getValueType(); in getTypeBuilder() local 64 return attrType ? attrType->getBuilderCall() : llvm::None; in getTypeBuilder()
|
| /llvm-project-15.0.7/mlir/test/mlir-pdll/CodeGen/MLIR/ |
| H A D | decl.pdll | 62 erase op<>(operand: Value<operandType: Type>) { attr = _: Attr<attrType: Type>} -> (result: Type);
|
| /llvm-project-15.0.7/mlir/lib/IR/ |
| H A D | AsmPrinter.cpp | 1755 auto attrType = attr.getType(); in printAttribute() local 1771 if (attrType.isSignlessInteger(1)) { in printAttribute() 1782 attrType.isUnsignedInteger() || attrType.isSignlessInteger(1); in printAttribute() 1786 if (typeElision == AttrTypeElision::May && attrType.isSignlessInteger(64)) in printAttribute() 1793 if (typeElision == AttrTypeElision::May && attrType.isF64()) in printAttribute() 1905 if (typeElision != AttrTypeElision::Must && !attrType.isa<NoneType>()) { in printAttribute() 1907 printType(attrType); in printAttribute()
|
| /llvm-project-15.0.7/mlir/lib/Target/LLVMIR/ |
| H A D | ConvertFromLLVMIR.cpp | 369 auto attrType = getStdTypeForAttr(processType(cd->getType())) in getConstantAsAttr() local 371 if (!attrType) in getConstantAsAttr() 379 return DenseElementsAttr::get(attrType, values); in getConstantAsAttr() 387 return DenseElementsAttr::get(attrType, values); in getConstantAsAttr()
|
| /llvm-project-15.0.7/mlir/lib/Bindings/Python/ |
| H A D | IRAttributes.cpp | 524 MlirType attrType = mlirAttributeGetType(elementAttr); in getSplat() local 525 if (!mlirTypeEqual(shapedElementType, attrType)) { in getSplat()
|
| /llvm-project-15.0.7/mlir/lib/Tools/PDLL/Parser/ |
| H A D | Parser.cpp | 2816 ast::Type attrType = attr->getValue()->getType(); in createOperationExpr() local 2817 if (!attrType.isa<ast::AttributeType>()) { in createOperationExpr() 2820 llvm::formatv("expected `Attr` expression, but got `{0}`", attrType)); in createOperationExpr()
|
| /llvm-project-15.0.7/mlir/docs/ |
| H A D | AttributesAndTypes.md | 499 …atedAttributeParser(DialectAsmParser& parser, StringRef *mnemonic, Type attrType, Attribute &resul… 533 - `static Attribute MyAttr::parse(AsmParser &parser, Type attrType)`
|
| H A D | PDLL.md | 893 let attrType: Type; 894 let attr: Attr<attrType>;
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | Type.cpp | 1426 QualType VisitAttributedType(const AttributedType *attrType) { in VisitAttributedType() 1427 QualType newType = BaseType::VisitAttributedType(attrType); in VisitAttributedType()
|