Home
last modified time | relevance | path

Searched refs:GTI (Results 1 – 25 of 67) sorted by relevance

123

/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DOperator.cpp41 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()
DDataLayout.cpp784 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/
DOperator.cpp27 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()
DDataLayout.cpp734 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/
DSeparateConstOffsetFromGEP.cpp721 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 …]
DNaryReassociate.cpp316 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()
DStraightLineStrengthReduce.cpp492 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()
DMemCpyOptimizer.cpp42 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/
DSeparateConstOffsetFromGEP.cpp767 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 …]
DNaryReassociate.cpp312 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()
DStraightLineStrengthReduce.cpp528 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()
DMemCpyOptimizer.cpp77 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/
DLocal.h44 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/
DLocal.h202 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/
DTargetTransformInfoImpl.h453 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/
DAddrModeMatcher.cpp223 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/
DTargetTransformInfoImpl.h715 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/
DMemCpyOptimizer.cpp44 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/
DInlineCost.cpp311 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/
DInstCombineAddSub.cpp403 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/
DWebAssemblyFastISel.cpp234 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/
DValueTracking.cpp559 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/
DWebAssemblyFastISel.cpp262 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/
DInlineCost.cpp380 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/
DValue.cpp368 gep_type_iterator GTI = gep_type_begin(GEP); in isDereferenceablePointer() local
372 Type *Ty = *GTI++; in isDereferenceablePointer()

123