/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/ |
D | Operator.cpp | 41 for (gep_type_iterator GTI = gep_type_begin(this), GTE = gep_type_end(this); in accumulateConstantOffset() local 42 GTI != GTE; ++GTI) { in accumulateConstantOffset() 43 ConstantInt *OpC = dyn_cast<ConstantInt>(GTI.getOperand()); in accumulateConstantOffset() 50 if (StructType *STy = GTI.getStructTypeOrNull()) { in accumulateConstantOffset() 60 DL.getTypeAllocSize(GTI.getIndexedType())); in accumulateConstantOffset()
|
D | DataLayout.cpp | 784 GTI = gep_type_begin(ElemTy, Indices), in getIndexedOffsetInType() local 786 for (; GTI != GTE; ++GTI) { in getIndexedOffsetInType() 787 Value *Idx = GTI.getOperand(); in getIndexedOffsetInType() 788 if (StructType *STy = GTI.getStructTypeOrNull()) { in getIndexedOffsetInType() 800 Result += arrayIdx * getTypeAllocSize(GTI.getIndexedType()); in getIndexedOffsetInType()
|
/external/llvm/lib/IR/ |
D | Operator.cpp | 27 for (gep_type_iterator GTI = gep_type_begin(this), GTE = gep_type_end(this); in accumulateConstantOffset() local 28 GTI != GTE; ++GTI) { in accumulateConstantOffset() 29 ConstantInt *OpC = dyn_cast<ConstantInt>(GTI.getOperand()); in accumulateConstantOffset() 36 if (StructType *STy = dyn_cast<StructType>(*GTI)) { in accumulateConstantOffset() 46 DL.getTypeAllocSize(GTI.getIndexedType())); in accumulateConstantOffset()
|
D | DataLayout.cpp | 734 GTI = gep_type_begin(ElemTy, AS, Indices), in getIndexedOffsetInType() local 736 for (; GTI != GTE; ++GTI) { in getIndexedOffsetInType() 737 Value *Idx = GTI.getOperand(); in getIndexedOffsetInType() 738 if (auto *STy = dyn_cast<StructType>(*GTI)) { in getIndexedOffsetInType() 750 Result += arrayIdx * getTypeAllocSize(GTI.getIndexedType()); in getIndexedOffsetInType()
|
/external/llvm/lib/Transforms/Scalar/ |
D | SeparateConstOffsetFromGEP.cpp | 721 gep_type_iterator GTI = gep_type_begin(*GEP); in canonicalizeArrayIndicesToPointerSize() local 723 I != E; ++I, ++GTI) { in canonicalizeArrayIndicesToPointerSize() 725 if (isa<SequentialType>(*GTI)) { in canonicalizeArrayIndicesToPointerSize() 740 gep_type_iterator GTI = gep_type_begin(*GEP); in accumulateByteOffset() local 741 for (unsigned I = 1, E = GEP->getNumOperands(); I != E; ++I, ++GTI) { in accumulateByteOffset() 742 if (isa<SequentialType>(*GTI)) { in accumulateByteOffset() 752 ConstantOffset * DL->getTypeAllocSize(GTI.getIndexedType()); in accumulateByteOffset() 755 StructType *StTy = cast<StructType>(*GTI); in accumulateByteOffset() 786 gep_type_iterator GTI = gep_type_begin(*Variadic); in lowerToSingleIndexGEPs() local 789 for (unsigned I = 1, E = Variadic->getNumOperands(); I != E; ++I, ++GTI) { in lowerToSingleIndexGEPs() [all …]
|
D | NaryReassociate.cpp | 316 gep_type_iterator GTI = gep_type_begin(*GEP); in tryReassociateGEP() local 318 if (isa<SequentialType>(*GTI++)) { in tryReassociateGEP() 319 if (auto *NewGEP = tryReassociateGEPAtIndex(GEP, I - 1, *GTI)) { in tryReassociateGEP()
|
D | StraightLineStrengthReduce.cpp | 492 gep_type_iterator GTI = gep_type_begin(GEP); in allocateCandidatesAndFindBasisForGEP() local 494 if (!isa<SequentialType>(*GTI++)) in allocateCandidatesAndFindBasisForGEP() 506 uint64_t ElementSize = DL->getTypeAllocSize(*GTI); in allocateCandidatesAndFindBasisForGEP()
|
D | MemCpyOptimizer.cpp | 42 gep_type_iterator GTI = gep_type_begin(GEP); in GetOffsetFromIndex() local 43 for (unsigned i = 1; i != Idx; ++i, ++GTI) in GetOffsetFromIndex() 48 for (unsigned i = Idx, e = GEP->getNumOperands(); i != e; ++i, ++GTI) { in GetOffsetFromIndex() 55 if (StructType *STy = dyn_cast<StructType>(*GTI)) { in GetOffsetFromIndex() 62 uint64_t Size = DL.getTypeAllocSize(GTI.getIndexedType()); in GetOffsetFromIndex()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | SeparateConstOffsetFromGEP.cpp | 767 gep_type_iterator GTI = gep_type_begin(*GEP); in canonicalizeArrayIndicesToPointerSize() local 769 I != E; ++I, ++GTI) { in canonicalizeArrayIndicesToPointerSize() 771 if (GTI.isSequential()) { in canonicalizeArrayIndicesToPointerSize() 786 gep_type_iterator GTI = gep_type_begin(*GEP); in accumulateByteOffset() local 787 for (unsigned I = 1, E = GEP->getNumOperands(); I != E; ++I, ++GTI) { in accumulateByteOffset() 788 if (GTI.isSequential()) { in accumulateByteOffset() 798 ConstantOffset * DL->getTypeAllocSize(GTI.getIndexedType()); in accumulateByteOffset() 801 StructType *StTy = GTI.getStructType(); in accumulateByteOffset() 832 gep_type_iterator GTI = gep_type_begin(*Variadic); in lowerToSingleIndexGEPs() local 835 for (unsigned I = 1, E = Variadic->getNumOperands(); I != E; ++I, ++GTI) { in lowerToSingleIndexGEPs() [all …]
|
D | NaryReassociate.cpp | 312 gep_type_iterator GTI = gep_type_begin(*GEP); in tryReassociateGEP() local 313 for (unsigned I = 1, E = GEP->getNumOperands(); I != E; ++I, ++GTI) { in tryReassociateGEP() 314 if (GTI.isSequential()) { in tryReassociateGEP() 316 GTI.getIndexedType())) { in tryReassociateGEP()
|
D | StraightLineStrengthReduce.cpp | 528 gep_type_iterator GTI = gep_type_begin(GEP); in allocateCandidatesAndFindBasisForGEP() local 529 for (unsigned I = 1, E = GEP->getNumOperands(); I != E; ++I, ++GTI) { in allocateCandidatesAndFindBasisForGEP() 530 if (GTI.isStruct()) in allocateCandidatesAndFindBasisForGEP() 540 uint64_t ElementSize = DL->getTypeAllocSize(GTI.getIndexedType()); in allocateCandidatesAndFindBasisForGEP()
|
D | MemCpyOptimizer.cpp | 77 gep_type_iterator GTI = gep_type_begin(GEP); in GetOffsetFromIndex() local 78 for (unsigned i = 1; i != Idx; ++i, ++GTI) in GetOffsetFromIndex() 83 for (unsigned i = Idx, e = GEP->getNumOperands(); i != e; ++i, ++GTI) { in GetOffsetFromIndex() 90 if (StructType *STy = GTI.getStructTypeOrNull()) { in GetOffsetFromIndex() 97 uint64_t Size = DL.getTypeAllocSize(GTI.getIndexedType()); in GetOffsetFromIndex()
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/Utils/ |
D | Local.h | 44 gep_type_iterator GTI = gep_type_begin(GEP); variable 46 ++i, ++GTI) { 48 uint64_t Size = DL.getTypeAllocSize(GTI.getIndexedType()) & PtrSizeMask; 54 if (StructType *STy = GTI.getStructTypeOrNull()) {
|
/external/llvm/include/llvm/Transforms/Utils/ |
D | Local.h | 202 gep_type_iterator GTI = gep_type_begin(GEP); variable 204 ++i, ++GTI) { 206 uint64_t Size = DL.getTypeAllocSize(GTI.getIndexedType()) & PtrSizeMask; 212 if (StructType *STy = dyn_cast<StructType>(*GTI)) {
|
/external/llvm/include/llvm/Analysis/ |
D | TargetTransformInfoImpl.h | 453 auto GTI = gep_type_begin(PointeeType, AS, Operands); in getGEPCost() local 454 for (auto I = Operands.begin(); I != Operands.end(); ++I, ++GTI) { in getGEPCost() 461 if (isa<SequentialType>(*GTI)) { in getGEPCost() 462 int64_t ElementSize = DL.getTypeAllocSize(GTI.getIndexedType()); in getGEPCost() 473 StructType *STy = cast<StructType>(*GTI); in getGEPCost() 482 PointerType::get(*GTI, AS), const_cast<GlobalValue *>(BaseGV), in getGEPCost()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/ |
D | AddrModeMatcher.cpp | 223 gep_type_iterator GTI = gep_type_begin(AddrInst); in MatchOperationAddr() local 224 for (unsigned i = 1, e = AddrInst->getNumOperands(); i != e; ++i, ++GTI) { in MatchOperationAddr() 225 if (StructType *STy = dyn_cast<StructType>(*GTI)) { in MatchOperationAddr() 231 uint64_t TypeSize = TD->getTypeAllocSize(GTI.getIndexedType()); in MatchOperationAddr()
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/ |
D | TargetTransformInfoImpl.h | 715 auto GTI = gep_type_begin(PointeeType, Operands); in getGEPCost() local 723 for (auto I = Operands.begin(); I != Operands.end(); ++I, ++GTI) { in getGEPCost() 724 TargetType = GTI.getIndexedType(); in getGEPCost() 731 if (StructType *STy = GTI.getStructTypeOrNull()) { in getGEPCost() 737 int64_t ElementSize = DL.getTypeAllocSize(GTI.getIndexedType()); in getGEPCost()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/ |
D | MemCpyOptimizer.cpp | 44 gep_type_iterator GTI = gep_type_begin(GEP); in GetOffsetFromIndex() local 45 for (unsigned i = 1; i != Idx; ++i, ++GTI) in GetOffsetFromIndex() 50 for (unsigned i = Idx, e = GEP->getNumOperands(); i != e; ++i, ++GTI) { in GetOffsetFromIndex() 57 if (StructType *STy = dyn_cast<StructType>(*GTI)) { in GetOffsetFromIndex() 64 uint64_t Size = TD.getTypeAllocSize(GTI.getIndexedType()); in GetOffsetFromIndex()
|
/external/llvm/lib/Analysis/ |
D | InlineCost.cpp | 311 for (gep_type_iterator GTI = gep_type_begin(GEP), GTE = gep_type_end(GEP); in accumulateGEPOffset() local 312 GTI != GTE; ++GTI) { in accumulateGEPOffset() 313 ConstantInt *OpC = dyn_cast<ConstantInt>(GTI.getOperand()); in accumulateGEPOffset() 315 if (Constant *SimpleOp = SimplifiedValues.lookup(GTI.getOperand())) in accumulateGEPOffset() 323 if (StructType *STy = dyn_cast<StructType>(*GTI)) { in accumulateGEPOffset() 330 APInt TypeSize(IntPtrWidth, DL.getTypeAllocSize(GTI.getIndexedType())); in accumulateGEPOffset()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineAddSub.cpp | 403 gep_type_iterator GTI = gep_type_begin(GEP); in EmitGEPOffset() local 416 ++i, ++GTI) { in EmitGEPOffset() 418 uint64_t Size = TD.getTypeAllocSize(GTI.getIndexedType()) & PtrSizeMask; in EmitGEPOffset() 423 if (StructType *STy = dyn_cast<StructType>(*GTI)) { in EmitGEPOffset()
|
/external/llvm/lib/Target/WebAssembly/ |
D | WebAssemblyFastISel.cpp | 234 for (gep_type_iterator GTI = gep_type_begin(U), E = gep_type_end(U); in computeAddress() local 235 GTI != E; ++GTI) { in computeAddress() 236 const Value *Op = GTI.getOperand(); in computeAddress() 237 if (StructType *STy = dyn_cast<StructType>(*GTI)) { in computeAddress() 242 uint64_t S = DL.getTypeAllocSize(GTI.getIndexedType()); in computeAddress()
|
/external/swiftshader/third_party/LLVM/lib/Analysis/ |
D | ValueTracking.cpp | 559 gep_type_iterator GTI = gep_type_begin(I); in ComputeMaskedBits() local 560 for (unsigned i = 1, e = I->getNumOperands(); i != e; ++i, ++GTI) { in ComputeMaskedBits() 562 if (StructType *STy = dyn_cast<StructType>(*GTI)) { in ComputeMaskedBits() 572 Type *IndexedTy = GTI.getIndexedType(); in ComputeMaskedBits() 1499 gep_type_iterator GTI = gep_type_begin(GEP); in GetPointerBaseWithConstantOffset() local 1501 ++I, ++GTI) { in GetPointerBaseWithConstantOffset() 1506 if (StructType *STy = dyn_cast<StructType>(*GTI)) { in GetPointerBaseWithConstantOffset() 1509 uint64_t Size = TD.getTypeAllocSize(GTI.getIndexedType()); in GetPointerBaseWithConstantOffset()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/WebAssembly/ |
D | WebAssemblyFastISel.cpp | 262 for (gep_type_iterator GTI = gep_type_begin(U), E = gep_type_end(U); in computeAddress() local 263 GTI != E; ++GTI) { in computeAddress() 264 const Value *Op = GTI.getOperand(); in computeAddress() 265 if (StructType *STy = GTI.getStructTypeOrNull()) { in computeAddress() 270 uint64_t S = DL.getTypeAllocSize(GTI.getIndexedType()); in computeAddress()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
D | InlineCost.cpp | 380 for (gep_type_iterator GTI = gep_type_begin(GEP), GTE = gep_type_end(GEP); in accumulateGEPOffset() local 381 GTI != GTE; ++GTI) { in accumulateGEPOffset() 382 ConstantInt *OpC = dyn_cast<ConstantInt>(GTI.getOperand()); in accumulateGEPOffset() 384 if (Constant *SimpleOp = SimplifiedValues.lookup(GTI.getOperand())) in accumulateGEPOffset() 392 if (StructType *STy = GTI.getStructTypeOrNull()) { in accumulateGEPOffset() 399 APInt TypeSize(IntPtrWidth, DL.getTypeAllocSize(GTI.getIndexedType())); in accumulateGEPOffset()
|
/external/swiftshader/third_party/LLVM/lib/VMCore/ |
D | Value.cpp | 368 gep_type_iterator GTI = gep_type_begin(GEP); in isDereferenceablePointer() local 372 Type *Ty = *GTI++; in isDereferenceablePointer()
|