| /llvm-project-15.0.7/flang/lib/Lower/ |
| H A D | VectorSubscripts.cpp | 128 mlir::Type gen(const Fortran::evaluate::ArrayRef &arrayRef) { in gen() argument 139 if (llvm::any_of(arrayRef.subscript(), isTripletOrVector)) in gen() 140 return genRankedArrayRefSubscriptAndBase(arrayRef); in gen() 145 mlir::Type elementType = gen(namedEntityToDataRef(arrayRef.base())); in gen() 146 for (const Fortran::evaluate::Subscript &subscript : arrayRef.subscript()) { in gen() 159 const Fortran::evaluate::ArrayRef &arrayRef) { in genRankedArrayRefSubscriptAndBase() argument 161 Fortran::lower::SomeExpr baseExpr = namedEntityToExpr(arrayRef.base()); in genRankedArrayRefSubscriptAndBase() 167 for (const auto &subscript : llvm::enumerate(arrayRef.subscript())) { in genRankedArrayRefSubscriptAndBase()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaPseudoObject.cpp | 1157 bool arrayRef = (Res == Sema::OS_Array); in findAtIndexGetter() local 1161 << BaseExpr->getType() << arrayRef; in findAtIndexGetter() 1164 if (!arrayRef) { in findAtIndexGetter() 1209 << BaseExpr->getType() << 0 << arrayRef; in findAtIndexGetter() 1221 (!arrayRef && !T->isObjCObjectPointerType())) { in findAtIndexGetter() 1261 bool arrayRef = (Res == Sema::OS_Array); in findAtIndexSetter() local 1265 << BaseExpr->getType() << arrayRef; in findAtIndexSetter() 1269 if (!arrayRef) { in findAtIndexSetter() 1326 << BaseExpr->getType() << 1 << arrayRef; in findAtIndexSetter() 1336 if (AtIndexSetter && arrayRef) { in findAtIndexSetter() [all …]
|
| /llvm-project-15.0.7/clang/test/SemaCXX/ |
| H A D | cxx0x-initializer-references.cpp | 30 const int (&arrayRef)[] = {1, 2, 3}; in reference_to_aggregate() local 31 static_assert(sizeof(arrayRef) == 3 * sizeof(int), "bad array size"); in reference_to_aggregate()
|
| /llvm-project-15.0.7/flang/lib/Semantics/ |
| H A D | check-data.cpp | 115 bool operator()(const evaluate::ArrayRef &arrayRef) { in operator ()() argument 117 return (*this)(arrayRef.base()) && (*this)(arrayRef.subscript()); in operator ()()
|
| H A D | expression.cpp | 312 [this](const ArrayRef &arrayRef) { in CheckRanks() argument 313 if (const auto *component{arrayRef.base().UnwrapComponent()}) { in CheckRanks() 315 for (const Subscript &subscript : arrayRef.subscript()) { in CheckRanks() 1080 [](ArrayRef &&arrayRef) { return std::move(arrayRef.base()); }, in IgnoreAnySubscripts() argument
|
| /llvm-project-15.0.7/flang/lib/Evaluate/ |
| H A D | fold.cpp | 137 ArrayRef FoldOperation(FoldingContext &context, ArrayRef &&arrayRef) { in FoldOperation() argument 138 NamedEntity base{FoldOperation(context, std::move(arrayRef.base()))}; in FoldOperation() 139 for (Subscript &subscript : arrayRef.subscript()) { in FoldOperation() 142 return ArrayRef{std::move(base), std::move(arrayRef.subscript())}; in FoldOperation()
|
| H A D | shape.cpp | 729 auto GetShapeHelper::operator()(const ArrayRef &arrayRef) const -> Result { in operator ()() 732 const NamedEntity &base{arrayRef.base()}; in operator ()() 733 for (const Subscript &ss : arrayRef.subscript()) { in operator ()()
|
| /llvm-project-15.0.7/clang/test/CodeGenCXX/ |
| H A D | cxx0x-initializer-references.cpp | 64 const int (&arrayRef)[] = {1, 2, i}; in reference_to_aggregate() local
|
| /llvm-project-15.0.7/clang/test/FixIt/ |
| H A D | nullability.mm | 46 extern void *(&arrayRef)[2]; // expected-warning {{inferring '_Nonnull' for pointer type within arr…
|
| /llvm-project-15.0.7/flang/lib/Optimizer/Transforms/ |
| H A D | AffinePromotion.cpp | 397 createAffineOps(mlir::Value arrayRef, mlir::PatternRewriter &rewriter) { in createAffineOps() argument 398 auto acoOp = arrayRef.getDefiningOp<ArrayCoorOp>(); in createAffineOps()
|
| /llvm-project-15.0.7/flang/include/flang/Evaluate/ |
| H A D | tools.h | 398 std::optional<CoarrayRef> operator()(const ArrayRef &arrayRef) const { in operator() 399 return (*this)(arrayRef.base()); in operator()
|
| /llvm-project-15.0.7/flang/lib/Optimizer/CodeGen/ |
| H A D | CodeGen.cpp | 2116 mlir::ArrayRef<mlir::Attribute> arrayRef(subscriptAttrs); in doRewrite() local 2120 mlir::ArrayAttr::get(range.getContext(), arrayRef)); in doRewrite()
|