Lines Matching refs:parse
20 t = Attribute.parse('"hello"')
35 t = Attribute.parse("BAD_ATTR_DOES_NOT_EXIST")
38 # CHECK: Unable to parse attribute:
50 a1 = Attribute.parse('"attr1"')
51 a2 = Attribute.parse('"attr2"')
52 a3 = Attribute.parse('"attr1"')
67 a1 = Attribute.parse('"attr1"')
68 a2 = Attribute.parse('"attr2"')
69 a3 = Attribute.parse('"attr1"')
85 a1 = Attribute.parse('"attr1"')
95 a1 = Attribute.parse("42")
96 a2 = Attribute.parse("[42]")
107 a1 = Attribute.parse('"attr1"')
121 a1 = Attribute.parse('"attr1"')
134 a1 = Attribute.parse('"attr1"')
140 tillegal = StringAttr(Attribute.parse("1.0"))
161 attr_parsed = Attribute.parse(str(attr_built))
179 attr_parsed = Attribute.parse(str(attr_built))
187 fattr = FloatAttr(Attribute.parse("42.0 : f32"))
214 i_attr = IntegerAttr(Attribute.parse("42"))
221 si_attr = IntegerAttr(Attribute.parse("-1 : si8"))
224 ui_attr = IntegerAttr(Attribute.parse("255 : ui8"))
231 idx_attr = IntegerAttr(Attribute.parse("-1 : index"))
246 battr = BoolAttr(Attribute.parse("true"))
261 sattr = Attribute.parse("@symbol")
274 sattr = Attribute.parse("@symbol1::@symbol2")
290 oattr = OpaqueAttr(Attribute.parse("#pytest_dummy.dummyattr<>"))
308 sattr = StringAttr(Attribute.parse('"stringattr"'))
325 a = Attribute.parse('"stringattr"')
339 raw = Attribute.parse("dense<[[0,1,2],[3,4,5]]> : vector<2x3xi32>")
354 raw = Attribute.parse("dense<[true,false,true,false]> : vector<4xi1>")
369 shape = Attribute.parse("dense<[0, 1, 2, 3]> : vector<4xindex>")
377 attr = Attribute.parse(attr_asm)
434 create_and_print(DenseI8ArrayAttr, [Attribute.parse(f"{x}") for x in [4, 2]])
438 create_and_print(DenseI8ArrayAttr, [Attribute.parse(f"{x}") for x in [4000, 2]])
442 create_and_print(DenseI8ArrayAttr, [Attribute.parse(f"{x}") for x in [4, 2.0]])
447 DenseI8ArrayAttr, [Attribute.parse(s) for s in ["4 : i8", "2 : ui16"]]
453 DenseF32ArrayAttr, [Attribute.parse(f"{x}") for x in [4.0, 2.0]]
459 DenseBoolArrayAttr, [Attribute.parse(f"{x}") for x in ["true", "false"]]
467 attr = Attribute.parse(attr_asm)
511 raw = Attribute.parse("dense<[0.0, 1.0, 2.0, 3.0]> : vector<4xf32>")
579 raw = Attribute.parse("vector<4xf32>")
591 arr = Attribute.parse("[42, true, vector<4xf32>]")
601 intAttr = Attribute.parse("42")
602 vecAttr = Attribute.parse("vector<4xf32>")
682 print_item(Attribute.parse("42.0 : f32"))
689 attr = DenseElementsAttr(Attribute.parse(attr_asm))
701 raw = Attribute.parse("vector<4xf32>")
717 print(repr(Attribute.parse("42.0 : f32")))