Home
last modified time | relevance | path

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

/external/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/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/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()
DInstCombineCompares.cpp471 gep_type_iterator GTI = gep_type_begin(GEP); in EvaluateGEPOffsetExpression() local
480 for (i = 1; i != e; ++i, ++GTI) { in EvaluateGEPOffsetExpression()
486 if (StructType *STy = dyn_cast<StructType>(*GTI)) { in EvaluateGEPOffsetExpression()
489 uint64_t Size = TD.getTypeAllocSize(GTI.getIndexedType()); in EvaluateGEPOffsetExpression()
505 uint64_t VariableScale = TD.getTypeAllocSize(GTI.getIndexedType()); in EvaluateGEPOffsetExpression()
508 for (++i, ++GTI; i != e; ++i, ++GTI) { in EvaluateGEPOffsetExpression()
516 if (StructType *STy = dyn_cast<StructType>(*GTI)) { in EvaluateGEPOffsetExpression()
519 uint64_t Size = TD.getTypeAllocSize(GTI.getIndexedType()); in EvaluateGEPOffsetExpression()
DInstructionCombining.cpp756 gep_type_iterator GTI = gep_type_begin(GEP); in visitGetElementPtrInst() local
758 I != E; ++I, ++GTI) { in visitGetElementPtrInst()
760 SequentialType *SeqTy = dyn_cast<SequentialType>(*GTI); in visitGetElementPtrInst()
/external/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()
DBasicAliasAnalysis.cpp315 gep_type_iterator GTI = gep_type_begin(GEPOp); in DecomposeGEPExpression() local
320 if (StructType *STy = dyn_cast<StructType>(*GTI++)) { in DecomposeGEPExpression()
332 BaseOffs += TD->getTypeAllocSize(*GTI)*CIdx->getSExtValue(); in DecomposeGEPExpression()
336 uint64_t Scale = TD->getTypeAllocSize(*GTI); in DecomposeGEPExpression()
DConstantFolding.cpp208 gep_type_iterator GTI = gep_type_begin(CE); in IsConstantOffsetFromGlobal() local
210 i != e; ++i, ++GTI) { in IsConstantOffsetFromGlobal()
215 if (StructType *ST = dyn_cast<StructType>(*GTI)) { in IsConstantOffsetFromGlobal()
219 SequentialType *SQT = cast<SequentialType>(*GTI); in IsConstantOffsetFromGlobal()
DScalarEvolution.cpp3041 gep_type_iterator GTI = gep_type_begin(GEP); in createNodeForGEP() local
3047 if (StructType *STy = dyn_cast<StructType>(*GTI++)) { in createNodeForGEP()
3056 const SCEV *ElementSize = getSizeOfExpr(*GTI); in createNodeForGEP()
/external/llvm/lib/VMCore/
DValue.cpp368 gep_type_iterator GTI = gep_type_begin(GEP); in isDereferenceablePointer() local
372 Type *Ty = *GTI++; in isDereferenceablePointer()
DConstantFold.cpp1794 gep_type_iterator GTI = gep_type_begin(CE1); in evaluateICmpRelation() local
1796 ++i, ++GTI) in evaluateICmpRelation()
1798 CE2->getOperand(i), GTI.getIndexedType())) { in evaluateICmpRelation()
/external/llvm/lib/Target/X86/
DX86FastISel.cpp396 gep_type_iterator GTI = gep_type_begin(U); in X86SelectAddress() local
400 i != e; ++i, ++GTI) { in X86SelectAddress()
402 if (StructType *STy = dyn_cast<StructType>(*GTI)) { in X86SelectAddress()
410 uint64_t S = TD.getTypeAllocSize(GTI.getIndexedType()); in X86SelectAddress()
/external/llvm/lib/Target/ARM/
DARMFastISel.cpp748 gep_type_iterator GTI = gep_type_begin(U); in ARMComputeAddress() local
750 i != e; ++i, ++GTI) { in ARMComputeAddress()
752 if (StructType *STy = dyn_cast<StructType>(*GTI)) { in ARMComputeAddress()
757 uint64_t S = TD.getTypeAllocSize(GTI.getIndexedType()); in ARMComputeAddress()