| /llvm-project-15.0.7/mlir/lib/Target/SPIRV/Serialization/ |
| H A D | Serializer.cpp | 641 Attribute valueAttr) { in prepareConstant() argument 642 if (auto id = prepareConstantScalar(loc, valueAttr)) { in prepareConstant() 649 if (auto id = getConstantID(valueAttr)) { in prepareConstant() 659 if (auto attr = valueAttr.dyn_cast<DenseElementsAttr>()) { in prepareConstant() 664 } else if (auto arrayAttr = valueAttr.dyn_cast<ArrayAttr>()) { in prepareConstant() 673 constIDMap[valueAttr] = resultID; in prepareConstant() 707 auto shapedType = valueAttr.getType().dyn_cast<ShapedType>(); in prepareDenseElementsConstant() 734 loc, elementType, valueAttr, dim + 1, index)) { in prepareDenseElementsConstant() 748 if (auto floatAttr = valueAttr.dyn_cast<FloatAttr>()) { in prepareConstantScalar() 751 if (auto boolAttr = valueAttr.dyn_cast<BoolAttr>()) { in prepareConstantScalar() [all …]
|
| H A D | Serializer.h | 196 uint32_t prepareConstant(Location loc, Type constType, Attribute valueAttr); 211 DenseElementsAttr valueAttr, int dim, 218 uint32_t prepareConstantScalar(Location loc, Attribute valueAttr,
|
| /llvm-project-15.0.7/flang/unittests/Optimizer/Builder/ |
| H A D | DoLoopHelperTest.cpp | 37 auto valueAttr = cstOp.getValue().dyn_cast_or_null<IntegerAttr>(); in checkConstantValue() local 38 EXPECT_EQ(v, valueAttr.getInt()); in checkConstantValue()
|
| H A D | FIRBuilderTest.cpp | 57 auto valueAttr = cstOp.getValue().dyn_cast_or_null<IntegerAttr>(); in checkIntegerConstant() local 58 EXPECT_EQ(v, valueAttr.getInt()); in checkIntegerConstant()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Affine/Transforms/ |
| H A D | SuperVectorize.cpp | 984 Attribute valueAttr = getIdentityValueAttr( in createInitialVector() local 987 auto vecAttr = DenseElementsAttr::get(vecTy, valueAttr); in createInitialVector() 1256 Attribute valueAttr = getIdentityValueAttr(reductionKind, scalarTy, in isNeutralElementConst() local 1259 return constOp.getValue() == valueAttr; in isNeutralElementConst()
|
| /llvm-project-15.0.7/mlir/lib/Target/LLVMIR/ |
| H A D | ConvertFromLLVMIR.cpp | 426 Attribute valueAttr; in processGlobal() local 428 valueAttr = getConstantAsAttr(gv->getInitializer()); in processGlobal() 442 convertLinkageFromLLVM(gv->getLinkage()), gv->getName(), valueAttr, in processGlobal() 446 if (gv->hasInitializer() && !valueAttr) { in processGlobal()
|
| H A D | ModuleTranslation.cpp | 790 auto valueAttr = arrayAttr[1].dyn_cast<StringAttr>(); in forwardPassthroughAttributes() local 791 if (!keyAttr || !valueAttr) in forwardPassthroughAttributes() 796 valueAttr.getValue()))) in forwardPassthroughAttributes()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/PDLToPDLInterp/ |
| H A D | PredicateTree.cpp | 58 else if (Attribute value = attr.valueAttr()) in getTreePredicates() 256 Attribute value = op.valueAttr(); in getAttributePredicates()
|
| H A D | PDLToPDLInterp.cpp | 613 if (Attribute value = attrOp.valueAttr()) { in generateRewriter() 689 attrOp.getLoc(), attrOp.valueAttr()); in generateRewriter()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Linalg/IR/ |
| H A D | LinalgOps.cpp | 402 Attribute valueAttr = parseAttribute(value, builder.getContext()); in constant() local 403 return builder.create<arith::ConstantOp>(loc, valueAttr.getType(), in constant() 404 valueAttr); in constant()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/IR/ |
| H A D | SPIRVOps.cpp | 139 auto valueAttr = constOp.value(); in extractValueFromConstOp() local 140 auto integerValueAttr = valueAttr.dyn_cast<IntegerAttr>(); in extractValueFromConstOp() 1884 return verifyConstantType(*this, valueAttr(), getType()); in verify() 3474 Attribute valueAttr; in parse() local 3490 parser.parseAttribute(valueAttr, kDefaultValueAttrName, state.attributes)) in parse()
|
| /llvm-project-15.0.7/mlir/test/CAPI/ |
| H A D | ir.c | 607 MlirNamedAttribute valueAttr = mlirNamedAttributeGet( in createOperationWithTypeInference() local 609 mlirOperationStateAddAttributes(&state, 1, &valueAttr); in createOperationWithTypeInference()
|