| /llvm-project-15.0.7/mlir/test/python/dialects/ |
| H A D | pdl_types.py | 18 constructedType = pdl.AttributeType.get() 20 assert pdl.AttributeType.isinstance(parsedType) 26 assert pdl.AttributeType.isinstance(constructedType) 47 assert not pdl.AttributeType.isinstance(parsedType) 53 assert not pdl.AttributeType.isinstance(constructedType) 76 assert not pdl.AttributeType.isinstance(parsedType) 82 assert not pdl.AttributeType.isinstance(constructedType) 106 assert not pdl.AttributeType.isinstance(parsedType) 112 assert not pdl.AttributeType.isinstance(constructedType) 133 assert not pdl.AttributeType.isinstance(parsedType) [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/RISCV/MCTargetDesc/ |
| H A D | RISCVELFStreamer.h | 19 enum class AttributeType { Hidden, Numeric, Text, NumericAndText }; enum 22 AttributeType Type; 47 Item->Type = AttributeType::Numeric; in setAttributeItem() 53 Contents.push_back({AttributeType::Numeric, Attribute, Value, ""}); in setAttributeItem() 62 Item->Type = AttributeType::Text; in setAttributeItem() 68 Contents.push_back({AttributeType::Text, Attribute, 0, std::string(Value)}); in setAttributeItem() 77 Item->Type = AttributeType::NumericAndText; in setAttributeItems() 84 Contents.push_back({AttributeType::NumericAndText, Attribute, IntValue, in setAttributeItems()
|
| H A D | RISCVELFStreamer.cpp | 108 case AttributeType::Numeric: in finishAttributeSection() 111 case AttributeType::Text: in finishAttributeSection() 115 case AttributeType::NumericAndText: in finishAttributeSection() 130 case AttributeType::Hidden: in calculateContentSize() 132 case AttributeType::Numeric: in calculateContentSize() 136 case AttributeType::Text: in calculateContentSize() 140 case AttributeType::NumericAndText: in calculateContentSize()
|
| /llvm-project-15.0.7/llvm/lib/Target/CSKY/MCTargetDesc/ |
| H A D | CSKYELFStreamer.h | 21 enum class AttributeType { Hidden, Numeric, Text, NumericAndText }; enum 24 AttributeType Type; 48 Item->Type = AttributeType::Numeric; in setAttributeItem() 54 Contents.push_back({AttributeType::Numeric, Attribute, Value, ""}); in setAttributeItem() 63 Item->Type = AttributeType::Text; in setAttributeItem() 69 Contents.push_back({AttributeType::Text, Attribute, 0, std::string(Value)}); in setAttributeItem() 78 Item->Type = AttributeType::NumericAndText; in setAttributeItems() 85 Contents.push_back({AttributeType::NumericAndText, Attribute, IntValue, in setAttributeItems()
|
| H A D | CSKYELFStreamer.cpp | 117 case AttributeType::Numeric: in finishAttributeSection() 120 case AttributeType::Text: in finishAttributeSection() 124 case AttributeType::NumericAndText: in finishAttributeSection() 139 case AttributeType::Hidden: in calculateContentSize() 141 case AttributeType::Numeric: in calculateContentSize() 145 case AttributeType::Text: in calculateContentSize() 149 case AttributeType::NumericAndText: in calculateContentSize()
|
| /llvm-project-15.0.7/mlir/python/mlir/_mlir_libs/_mlir/dialects/ |
| H A D | pdl.pyi | 11 'AttributeType', 24 class AttributeType(Type): 29 def get(context: Optional[Context] = None) -> AttributeType: ...
|
| /llvm-project-15.0.7/mlir/lib/CAPI/Dialect/ |
| H A D | PDL.cpp | 32 return unwrap(type).isa<pdl::AttributeType>(); in mlirTypeIsAPDLAttributeType() 36 return wrap(pdl::AttributeType::get(unwrap(ctx))); in mlirPDLAttributeTypeGet()
|
| /llvm-project-15.0.7/mlir/lib/Tools/PDLL/AST/ |
| H A D | Types.cpp | 56 AttributeType AttributeType::get(Context &context) { in get()
|
| H A D | NodePrinter.cpp | 131 .Case([&](AttributeType) { os << "Attr"; }) in print() argument
|
| /llvm-project-15.0.7/mlir/include/mlir/Tools/PDLL/AST/ |
| H A D | Types.h | 130 class AttributeType : public Type::TypeBase<detail::AttributeTypeStorage> { 135 static AttributeType get(Context &context);
|
| H A D | Nodes.h | 376 : Base(loc, AttributeType::get(ctx)), value(value) {} in AttributeExpr()
|
| /llvm-project-15.0.7/mlir/lib/Tools/PDLL/CodeGen/ |
| H A D | MLIRGen.cpp | 160 .Case([&](ast::AttributeType astType) -> Type { in genType() 161 return builder.getType<pdl::AttributeType>(); in genType() 339 if (type.isa<ast::AttributeType>()) in genNonInitializerVar()
|
| H A D | CPPGen.cpp | 173 .Case([&](ast::AttributeType) { return "::mlir::Attribute"; }) in getNativeTypeName() argument
|
| /llvm-project-15.0.7/mlir/include/mlir/Dialect/PDL/IR/ |
| H A D | PDLTypes.td | 29 // pdl::AttributeType
|
| H A D | PDLOps.td | 132 build($_builder, $_state, $_builder.getType<AttributeType>(), type, 136 build($_builder, $_state, $_builder.getType<AttributeType>(), Value(), attr);
|
| /llvm-project-15.0.7/mlir/python/mlir/dialects/ |
| H A D | _pdl_ops_ext.py | 95 result = pdl.AttributeType.get()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/PDLToPDLInterp/ |
| H A D | PDLToPDLInterp.cpp | 310 loc, builder.getType<pdl::AttributeType>(), parentVal, in getValueAt() 315 if (parentVal.getType().isa<pdl::AttributeType>()) in getValueAt()
|
| H A D | PredicateTree.cpp | 51 assert(val.getType().isa<pdl::AttributeType>() && "expected attribute type"); in getTreePredicates()
|
| /llvm-project-15.0.7/mlir/lib/Tools/PDLL/Parser/ |
| H A D | Parser.cpp | 54 attrTy(ast::AttributeType::get(ctx)), in Parser() 2579 constraintType = ast::AttributeType::get(ctx); in validateVariableConstraint() 2817 if (!attrType.isa<ast::AttributeType>()) { in createOperationExpr()
|
| /llvm-project-15.0.7/mlir/include/mlir/Dialect/PDLInterp/IR/ |
| H A D | PDLInterpOps.td | 398 build($_builder, $_state, $_builder.getType<pdl::AttributeType>(), value);
|
| /llvm-project-15.0.7/mlir/lib/Tools/mlir-pdll-lsp-server/ |
| H A D | PDLLServer.cpp | 843 if (!currentType || currentType.isa<ast::AttributeType>()) in codeCompleteConstraintName()
|
| /llvm-project-15.0.7/mlir/lib/Rewrite/ |
| H A D | ByteCode.cpp | 388 .Case<pdl::AttributeType>( in appendPDLValueKind()
|