Lines Matching refs:get
18 RankedTensorType shape = RankedTensorType::get({2, 1}, eltType); in testSplat()
21 DenseElementsAttr splat = DenseElementsAttr::get(shape, splatElt); in testSplat()
25 DenseElementsAttr::get(shape, llvm::makeArrayRef({splatElt, splatElt})); in testSplat()
35 IntegerType boolTy = IntegerType::get(&context, 1); in TEST()
36 RankedTensorType shape = RankedTensorType::get({2, 2}, boolTy); in TEST()
40 DenseElementsAttr trueSplat = DenseElementsAttr::get(shape, true); in TEST()
43 DenseElementsAttr falseSplat = DenseElementsAttr::get(shape, false); in TEST()
49 auto detectedSplat = DenseElementsAttr::get(shape, {true, true, true, true}); in TEST()
52 detectedSplat = DenseElementsAttr::get(shape, {false, false, false, false}); in TEST()
60 IntegerType boolTy = IntegerType::get(&context, 1); in TEST()
61 RankedTensorType shape = RankedTensorType::get({boolCount}, boolTy); in TEST()
65 DenseElementsAttr trueSplat = DenseElementsAttr::get(shape, true); in TEST()
66 DenseElementsAttr falseSplat = DenseElementsAttr::get(shape, false); in TEST()
73 auto detectedSplat = DenseElementsAttr::get(shape, trueValues); in TEST()
77 detectedSplat = DenseElementsAttr::get(shape, falseValues); in TEST()
83 IntegerType boolTy = IntegerType::get(&context, 1); in TEST()
84 RankedTensorType shape = RankedTensorType::get({6}, boolTy); in TEST()
88 DenseElementsAttr::get(shape, {false, false, true, false, false, true}); in TEST()
96 IntegerType intTy = IntegerType::get(&context, intWidth); in TEST()
104 IntegerType intTy = IntegerType::get(&context, 32); in TEST()
112 IntegerType intTy = IntegerType::get(&context, 85); in TEST()
113 Attribute value = IntegerAttr::get(intTy, 109); in TEST()
137 Attribute value = FloatAttr::get(floatTy, 10.0); in TEST()
145 Attribute value = FloatAttr::get(floatTy, 10.0); in TEST()
154 OpaqueType::get(StringAttr::get(&context, "test"), "string"); in TEST()
163 OpaqueType::get(StringAttr::get(&context, "test"), "string"); in TEST()
164 Attribute stringAttr = StringAttr::get("test-string", stringType); in TEST()
170 ComplexType complexType = ComplexType::get(FloatType::getF32(&context)); in TEST()
177 ComplexType complexType = ComplexType::get(IntegerType::get(&context, 64)); in TEST()
184 ComplexType complexType = ComplexType::get(FloatType::getF32(&context)); in TEST()
191 ComplexType complexType = ComplexType::get(IntegerType::get(&context, 64)); in TEST()
199 IntegerType intTy = IntegerType::get(&context, 32); in TEST()
200 Attribute value = IntegerAttr::get(intTy, elementValue); in TEST()
201 RankedTensorType shape = RankedTensorType::get({}, intTy); in TEST()
203 auto attr = DenseElementsAttr::get(shape, llvm::makeArrayRef({elementValue})); in TEST()
211 IntegerType intTy = IntegerType::get(&context, 32); in TEST()
213 Type stringTy = OpaqueType::get(StringAttr::get(&context, "test"), "string"); in TEST()
215 ShapedType tensorI32 = RankedTensorType::get({2, 2}, intTy); in TEST()
216 ShapedType tensorF32 = RankedTensorType::get({2, 2}, floatTy); in TEST()
217 ShapedType tensorString = RankedTensorType::get({2, 2}, stringTy); in TEST()
220 RankedTensorType::get({1, 2}, IntegerType::get(&context, 64)); in TEST()
222 DenseIntElementsAttr::get(indicesType, {APInt(64, 0), APInt(64, 0)}); in TEST()
224 RankedTensorType intValueTy = RankedTensorType::get({1}, intTy); in TEST()
225 auto intValue = DenseIntElementsAttr::get(intValueTy, {1}); in TEST()
227 RankedTensorType floatValueTy = RankedTensorType::get({1}, floatTy); in TEST()
228 auto floatValue = DenseFPElementsAttr::get(floatValueTy, {1.0f}); in TEST()
230 RankedTensorType stringValueTy = RankedTensorType::get({1}, stringTy); in TEST()
231 auto stringValue = DenseElementsAttr::get(stringValueTy, {StringRef("foo")}); in TEST()
233 auto sparseInt = SparseElementsAttr::get(tensorI32, indices, intValue); in TEST()
234 auto sparseFloat = SparseElementsAttr::get(tensorF32, indices, floatValue); in TEST()
236 SparseElementsAttr::get(tensorString, indices, stringValue); in TEST()