Home
last modified time | relevance | path

Searched refs:ArrayIndex (Results 1 – 17 of 17) sorted by relevance

/src/contrib/llvm-project/llvm/lib/DWARFLinker/Parallel/
H A DSyntheticTypeNameBuilder.cpp690 std::optional<size_t> ArrayIndex = tagToArrayIndex(CU, CurChild); in OrderedChildrenIndexAssigner() local
691 if (!ArrayIndex) in OrderedChildrenIndexAssigner()
694 assert((*ArrayIndex < ChildIndexesWidth.size()) && in OrderedChildrenIndexAssigner()
696 ChildIndexesWidth[*ArrayIndex]++; in OrderedChildrenIndexAssigner()
752 std::optional<size_t> ArrayIndex = tagToArrayIndex(CU, ChildDieEntry); in getChildIndex() local
753 if (!ArrayIndex) in getChildIndex()
756 assert((*ArrayIndex < OrderedChildIdxs.size()) && in getChildIndex()
758 assert(ChildIndexesWidth[*ArrayIndex] < 16 && in getChildIndex()
762 OrderedChildIdxs[*ArrayIndex], ChildIndexesWidth[*ArrayIndex]); in getChildIndex()
763 OrderedChildIdxs[*ArrayIndex]++; in getChildIndex()
/src/contrib/llvm-project/clang/lib/AST/Interp/
H A DCompiler.h367 std::optional<uint64_t> ArrayIndex; variable
573 OldArrayIndex = Ctx->ArrayIndex; in ArrayIndexScope()
574 Ctx->ArrayIndex = Index; in ArrayIndexScope()
577 ~ArrayIndexScope() { Ctx->ArrayIndex = OldArrayIndex; } in ~ArrayIndexScope()
H A DInterpBuiltin.cpp1463 unsigned ArrayIndex = 0; in InterpretOffsetOf() local
1486 int64_t Index = ArrayIndices[ArrayIndex]; in InterpretOffsetOf()
1493 ++ArrayIndex; in InterpretOffsetOf()
H A DPointer.cpp180 Path.push_back(APValue::LValuePathEntry::ArrayIndex(Index)); in toAPValue()
H A DCompiler.cpp1778 if (!ArrayIndex) in VisitArrayInitIndexExpr()
1780 return this->emitConst(*ArrayIndex, E); in VisitArrayInitIndexExpr()
/src/contrib/llvm-project/clang/include/clang/Analysis/Analyses/
H A DThreadSafetyOps.def36 TIL_OPCODE_DEF(ArrayIndex)
H A DThreadSafetyTIL.h1102 class ArrayIndex : public SExpr {
1104 ArrayIndex(SExpr *A, SExpr *N) : SExpr(COP_ArrayIndex), Array(A), Index(N) {} in ArrayIndex() function
1105 ArrayIndex(const ArrayIndex &E, SExpr *A, SExpr *N) in ArrayIndex() function
1124 typename C::CType compare(const ArrayIndex* E, C& Cmp) const { in compare()
H A DThreadSafetyTraverse.h763 void printArrayIndex(const ArrayIndex *E, StreamType &SS) { in printArrayIndex()
/src/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprAgg.cpp576 auto Emit = [&](Expr *Init, uint64_t ArrayIndex) { in EmitArrayInit() argument
578 if (ArrayIndex > 0) { in EmitArrayInit()
581 llvm::ConstantInt::get(CGF.SizeTy, ArrayIndex), "arrayinit.element"); in EmitArrayInit()
596 unsigned ArrayIndex = 0; in EmitArrayInit() local
599 if (ArrayIndex >= NumInitElements) in EmitArrayInit()
602 EmbedS->doForEachDataElement(Emit, ArrayIndex); in EmitArrayInit()
604 Emit(Args[i], ArrayIndex); in EmitArrayInit()
605 ArrayIndex++; in EmitArrayInit()
H A DCGExprConstant.cpp1328 auto Emit = [&](const Expr *Init, unsigned ArrayIndex) { in EmitArrayInitialization() argument
1333 if (ArrayIndex == 0) in EmitArrayInitialization()
1341 unsigned ArrayIndex = 0; in EmitArrayInitialization() local
1365 ArrayIndex++; in EmitArrayInitialization()
1367 if ((ArrayIndex - EmbedS->getDataElementCount()) == 0) in EmitArrayInitialization()
1372 if (!Emit(Init, ArrayIndex)) in EmitArrayInitialization()
1374 ArrayIndex++; in EmitArrayInitialization()
/src/contrib/llvm-project/clang/include/clang/AST/
H A DAbstractBasicReader.h209 APValue::LValuePathEntry::ArrayIndex(asImpl().readUInt32())); in readLValuePathSerializationHelper()
H A DAPValue.h216 static LValuePathEntry ArrayIndex(uint64_t Index) {
/src/contrib/llvm-project/clang/lib/AST/
H A DExprConstant.cpp373 uint64_t ArrayIndex = IsArray ? Entries.back().getAsArrayIndex() in validIndexAdjustments() local
377 return {ArrayIndex, ArraySize - ArrayIndex}; in validIndexAdjustments()
400 Entries.push_back(PathEntry::ArrayIndex(0)); in addArrayUnchecked()
411 Entries.push_back(PathEntry::ArrayIndex(0)); in addUnsizedArrayUnchecked()
436 Entries.push_back(PathEntry::ArrayIndex(Imag)); in addComplexUnchecked()
457 Entries.back() = PathEntry::ArrayIndex( in adjustIndex()
467 uint64_t ArrayIndex = IsArray ? Entries.back().getAsArrayIndex() in adjustIndex() local
472 if (N < -(int64_t)ArrayIndex || N > ArraySize - ArrayIndex) { in adjustIndex()
476 (llvm::APInt&)N += ArrayIndex; in adjustIndex()
483 ArrayIndex += TruncatedN; in adjustIndex()
[all …]
H A DExpr.cpp2297 LValuePathEntry Path[1] = {LValuePathEntry::ArrayIndex(0)}; in EvaluateInContext()
H A DItaniumMangle.cpp6106 {APValue::LValuePathEntry::ArrayIndex(0)}, in mangleTemplateArg()
H A DASTImporter.cpp10390 ToPath[LoopIdx] = APValue::LValuePathEntry::ArrayIndex( in ImportAPValue()
/src/contrib/llvm-project/clang/lib/Analysis/
H A DThreadSafetyCommon.cpp645 return new (Arena) til::ArrayIndex(E0, E1); in translateArraySubscriptExpr()