| /llvm-project-15.0.7/flang/lib/Semantics/ |
| H A D | pointer-assignment.cpp | 207 } else if (auto rhsType{TypeAndShape::Characterize(d, context_)}) { in Check() local 211 } else if (rhsType->corank() > 0 && in Check() 221 } else if (rhsType->type().IsUnlimitedPolymorphic()) { in Check() 227 if (!lhsType_->type().IsTkCompatibleWith(rhsType->type())) { in Check() 230 rhsType->type().AsFortran(), lhsType_->type().AsFortran()}; in Check() 234 int rhsRank{evaluate::GetRank(rhsType->shape())}; in Check()
|
| H A D | tools.cpp | 116 const std::optional<evaluate::DynamicType> &rhsType) { in MightBeSameDerivedType() argument 117 return lhsType && rhsType && lhsType->IsTkCompatibleWith(*rhsType); in MightBeSameDerivedType() 122 const std::optional<evaluate::DynamicType> &rhsType, int rhsRank) { in IsDefinedAssignment() argument 123 if (!lhsType || !rhsType) { in IsDefinedAssignment() 129 if (rhsType->IsUnlimitedPolymorphic()) { in IsDefinedAssignment() 133 TypeCategory rhsCat{rhsType->category()}; in IsDefinedAssignment() 139 } else if (MightBeSameDerivedType(lhsType, rhsType)) { in IsDefinedAssignment()
|
| H A D | expression.cpp | 179 const DynamicType &lhsType, const DynamicType &rhsType); 3571 std::optional<DynamicType> rhsType{rhs.GetType()}; in TryDefinedAssignment() local 3575 semantics::IsDefinedAssignment(lhsType, lhsRank, rhsType, rhsRank)}; in TryDefinedAssignment() 3577 if (lhsType && rhsType) { in TryDefinedAssignment() 3578 AddAssignmentConversion(*lhsType, *rhsType); in TryDefinedAssignment() 3593 if (!lhsType || !rhsType || (lhsRank != rhsRank && rhsRank != 0) || in TryDefinedAssignment() 3594 !OkLogicalIntegerAssignment(lhsType->category(), rhsType->category())) { in TryDefinedAssignment() 3749 const DynamicType &lhsType, const DynamicType &rhsType) { in AddAssignmentConversion() argument 3750 if (lhsType.category() == rhsType.category() && in AddAssignmentConversion() 3752 lhsType.kind() == rhsType.kind())) { in AddAssignmentConversion()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Vector/Transforms/ |
| H A D | VectorTransforms.cpp | 551 if (!rhsType) { in matchAndRewrite() 568 Value a = rewriter.create<vector::BroadcastOp>(loc, rhsType, x); in matchAndRewrite() 1404 VectorType rhsType = rhs.getType().cast<VectorType>(); in matchAndRewrite() local 1407 int64_t rhsColumns = rhsType.getDimSize(1); in matchAndRewrite() 1414 VectorType::get(rhsType.getNumElements(), rhsType.getElementType()); in matchAndRewrite() 1837 VectorType rhsType = op.getRhsType(); in matchAndRewrite() local 1868 VectorType rhsType = op.getRhsType(); in lowerParallel() local 1884 dimSize = rhsType.getDimSize(rhsIndex); in lowerParallel() 1934 VectorType rhsType = op.getRhsType(); in lowerReduction() local 1956 if (dimSize != rhsType.getDimSize(rhsIndex)) in lowerReduction() [all …]
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Vector/IR/ |
| H A D | VectorOps.cpp | 592 auto rhsType = types[1].cast<VectorType>(); in parse() local 596 VectorType::Builder(rhsType).setElementType(maskElementType)}; in parse() 623 static bool verifyDimMap(VectorType lhsType, VectorType rhsType, in verifyDimMap() argument 627 dimPair.second < 0 || dimPair.second >= rhsType.getRank() || in verifyDimMap() 658 for (int64_t i = 0, e = rhsType.getRank(); i < e; ++i) { in verifyOutputShape() 661 expectedResultDims.push_back(rhsType.getDimSize(i)); in verifyOutputShape() 726 auto rhsType = getRhsType(); in verify() local 767 if (!verifyDimMap(lhsType, rhsType, contractingDimMap)) in verify() 771 if (!verifyDimMap(lhsType, rhsType, batchDimMap)) in verify() 775 if (failed(verifyOutputShape(*this, lhsType, rhsType, accType, resType, in verify() [all …]
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Linalg/Transforms/ |
| H A D | Vectorization.cpp | 1410 VectorType rhsType = VectorType::get({kwSize, cSize, fSize}, rhsEltType); in conv() local 1419 loc, rhsType, rhsShaped, ValueRange{zero, zero, zero}); in conv() 1533 VectorType rhsType = VectorType::get({kwSize, cSize}, rhsEltType); in depthwiseConv() local 1541 Value rhs = builder.create<vector::TransferReadOp>(loc, rhsType, rhsShaped, in depthwiseConv()
|
| /llvm-project-15.0.7/flang/lib/Optimizer/Builder/ |
| H A D | FIRBuilder.cpp | 1013 auto rhsType = rbaseType.dyn_cast<fir::RecordType>(); in genComponentByComponentAssignment() local 1014 assert(rhsType && "rhs must be a scalar record type"); in genComponentByComponentAssignment() 1017 llvm::zip(lhsType.getTypeList(), rhsType.getTypeList())) { in genComponentByComponentAssignment() 1022 loc, fieldIndexType, rFieldName, rhsType, fir::getTypeParams(rhs)); in genComponentByComponentAssignment()
|
| /llvm-project-15.0.7/flang/include/flang/Semantics/ |
| H A D | tools.h | 71 const std::optional<evaluate::DynamicType> &rhsType, int rhsRank);
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaObjCProperty.cpp | 1388 QualType rhsType =Context.getCanonicalType(IvarType).getUnqualifiedType(); in ActOnPropertyImplDecl() local 1389 if (lhsType != rhsType && in ActOnPropertyImplDecl() 1735 QualType rhsType =Context.getCanonicalType(GetterType).getUnqualifiedType(); in DiagnosePropertyAccessorMismatch() local 1736 if (lhsType != rhsType && lhsType->isArithmeticType()) in DiagnosePropertyAccessorMismatch()
|
| /llvm-project-15.0.7/flang/lib/Lower/ |
| H A D | Bridge.cpp | 2309 std::optional<Fortran::evaluate::DynamicType> rhsType = in genAssignment() local 2313 (rhsType && rhsType->IsPolymorphic())) in genAssignment() 2337 std::optional<Fortran::evaluate::DynamicType> rhsType = in genAssignment() local 2341 (rhsType && rhsType->IsPolymorphic())) in genAssignment()
|
| H A D | ConvertExpr.cpp | 3412 mlir::Type rhsType = func.getFunctionType().getInput(1); in genScalarUserDefinedAssignmentCall() local 3414 mlir::Value rhsArg = prepareUserDefinedArg(builder, loc, rhs, rhsType); in genScalarUserDefinedAssignmentCall()
|