Home
last modified time | relevance | path

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

/external/llvm/include/llvm/Transforms/Utils/
DLocal.h182 gep_type_iterator GTI = gep_type_begin(GEP); variable
195 ++i, ++GTI) {
197 uint64_t Size = TD.getTypeAllocSize(GTI.getIndexedType()) & PtrSizeMask;
202 if (StructType *STy = dyn_cast<StructType>(*GTI)) {
/external/llvm/include/llvm/IR/
DOperator.h449 for (gep_type_iterator GTI = gep_type_begin(this), GTE = gep_type_end(this); in accumulateConstantOffset() local
450 GTI != GTE; ++GTI) { in accumulateConstantOffset()
451 ConstantInt *OpC = dyn_cast<ConstantInt>(GTI.getOperand()); in accumulateConstantOffset()
458 if (StructType *STy = dyn_cast<StructType>(*GTI)) { in accumulateConstantOffset()
469 DL.getTypeAllocSize(GTI.getIndexedType())); in accumulateConstantOffset()
/external/llvm/lib/Analysis/IPA/
DInlineCost.cpp256 for (gep_type_iterator GTI = gep_type_begin(GEP), GTE = gep_type_end(GEP); in accumulateGEPOffset() local
257 GTI != GTE; ++GTI) { in accumulateGEPOffset()
258 ConstantInt *OpC = dyn_cast<ConstantInt>(GTI.getOperand()); in accumulateGEPOffset()
260 if (Constant *SimpleOp = SimplifiedValues.lookup(GTI.getOperand())) in accumulateGEPOffset()
267 if (StructType *STy = dyn_cast<StructType>(*GTI)) { in accumulateGEPOffset()
274 APInt TypeSize(IntPtrWidth, TD->getTypeAllocSize(GTI.getIndexedType())); in accumulateGEPOffset()
/external/llvm/lib/Analysis/
DValueTracking.cpp627 gep_type_iterator GTI = gep_type_begin(I); in ComputeMaskedBits() local
628 for (unsigned i = 1, e = I->getNumOperands(); i != e; ++i, ++GTI) { in ComputeMaskedBits()
630 if (StructType *STy = dyn_cast<StructType>(*GTI)) { in ComputeMaskedBits()
640 Type *IndexedTy = GTI.getIndexedType(); in ComputeMaskedBits()
895 for (gep_type_iterator GTI = gep_type_begin(GEP), GTE = gep_type_end(GEP); in isGEPKnownNonNull() local
896 GTI != GTE; ++GTI) { in isGEPKnownNonNull()
898 if (StructType *STy = dyn_cast<StructType>(*GTI)) { in isGEPKnownNonNull()
899 ConstantInt *OpC = cast<ConstantInt>(GTI.getOperand()); in isGEPKnownNonNull()
909 if (DL->getTypeAllocSize(GTI.getIndexedType()) == 0) in isGEPKnownNonNull()
914 if (ConstantInt *OpC = dyn_cast<ConstantInt>(GTI.getOperand())) { in isGEPKnownNonNull()
[all …]
DBasicAliasAnalysis.cpp291 gep_type_iterator GTI = gep_type_begin(GEPOp); in DecomposeGEPExpression() local
296 if (StructType *STy = dyn_cast<StructType>(*GTI++)) { in DecomposeGEPExpression()
308 BaseOffs += TD->getTypeAllocSize(*GTI)*CIdx->getSExtValue(); in DecomposeGEPExpression()
312 uint64_t Scale = TD->getTypeAllocSize(*GTI); in DecomposeGEPExpression()
DScalarEvolution.cpp3152 gep_type_iterator GTI = gep_type_begin(GEP); in createNodeForGEP() local
3158 if (StructType *STy = dyn_cast<StructType>(*GTI++)) { in createNodeForGEP()
3167 const SCEV *ElementSize = getSizeOfExpr(*GTI); in createNodeForGEP()
/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()
DCodeGenPrepare.cpp1094 gep_type_iterator GTI = gep_type_begin(AddrInst); in MatchOperationAddr() local
1095 for (unsigned i = 1, e = AddrInst->getNumOperands(); i != e; ++i, ++GTI) { in MatchOperationAddr()
1096 if (StructType *STy = dyn_cast<StructType>(*GTI)) { in MatchOperationAddr()
1102 uint64_t TypeSize = TD->getTypeAllocSize(GTI.getIndexedType()); in MatchOperationAddr()
/external/llvm/lib/IR/
DValue.cpp425 gep_type_iterator GTI = gep_type_begin(GEP); in isDereferenceablePointer() local
429 Type *Ty = *GTI++; in isDereferenceablePointer()
DConstantFold.cpp1530 gep_type_iterator GTI = gep_type_begin(CE1); in evaluateICmpRelation() local
1532 ++i, ++GTI) in evaluateICmpRelation()
1534 CE2->getOperand(i), GTI.getIndexedType())) { in evaluateICmpRelation()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp478 gep_type_iterator GTI = gep_type_begin(GEP); in EvaluateGEPOffsetExpression() local
487 for (i = 1; i != e; ++i, ++GTI) { in EvaluateGEPOffsetExpression()
493 if (StructType *STy = dyn_cast<StructType>(*GTI)) { in EvaluateGEPOffsetExpression()
496 uint64_t Size = TD.getTypeAllocSize(GTI.getIndexedType()); in EvaluateGEPOffsetExpression()
512 uint64_t VariableScale = TD.getTypeAllocSize(GTI.getIndexedType()); in EvaluateGEPOffsetExpression()
515 for (++i, ++GTI; i != e; ++i, ++GTI) { in EvaluateGEPOffsetExpression()
523 if (StructType *STy = dyn_cast<StructType>(*GTI)) { in EvaluateGEPOffsetExpression()
526 uint64_t Size = TD.getTypeAllocSize(GTI.getIndexedType()); in EvaluateGEPOffsetExpression()
DInstructionCombining.cpp1081 gep_type_iterator GTI = gep_type_begin(GEP); in visitGetElementPtrInst() local
1083 I != E; ++I, ++GTI) { in visitGetElementPtrInst()
1085 SequentialType *SeqTy = dyn_cast<SequentialType>(*GTI); in visitGetElementPtrInst()
/external/llvm/lib/Target/X86/
DX86FastISel.cpp414 gep_type_iterator GTI = gep_type_begin(U); in X86SelectAddress() local
418 i != e; ++i, ++GTI) { in X86SelectAddress()
420 if (StructType *STy = dyn_cast<StructType>(*GTI)) { in X86SelectAddress()
428 uint64_t S = TD.getTypeAllocSize(GTI.getIndexedType()); in X86SelectAddress()
/external/llvm/lib/Target/ARM/
DARMFastISel.cpp839 gep_type_iterator GTI = gep_type_begin(U); in ARMComputeAddress() local
841 i != e; ++i, ++GTI) { in ARMComputeAddress()
843 if (StructType *STy = dyn_cast<StructType>(*GTI)) { in ARMComputeAddress()
848 uint64_t S = TD.getTypeAllocSize(GTI.getIndexedType()); in ARMComputeAddress()