Home
last modified time | relevance | path

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

12

/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/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/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()
DValueTracking.cpp1163 gep_type_iterator GTI = gep_type_begin(I); in computeKnownBitsFromOperator() local
1164 for (unsigned i = 1, e = I->getNumOperands(); i != e; ++i, ++GTI) { in computeKnownBitsFromOperator()
1166 if (StructType *STy = dyn_cast<StructType>(*GTI)) { in computeKnownBitsFromOperator()
1184 Type *IndexedTy = GTI.getIndexedType(); in computeKnownBitsFromOperator()
1609 for (gep_type_iterator GTI = gep_type_begin(GEP), GTE = gep_type_end(GEP); in isGEPKnownNonNull() local
1610 GTI != GTE; ++GTI) { in isGEPKnownNonNull()
1612 if (StructType *STy = dyn_cast<StructType>(*GTI)) { in isGEPKnownNonNull()
1613 ConstantInt *OpC = cast<ConstantInt>(GTI.getOperand()); in isGEPKnownNonNull()
1623 if (Q.DL.getTypeAllocSize(GTI.getIndexedType()) == 0) in isGEPKnownNonNull()
1628 if (ConstantInt *OpC = dyn_cast<ConstantInt>(GTI.getOperand())) { in isGEPKnownNonNull()
[all …]
DBasicAliasAnalysis.cpp410 gep_type_iterator GTI = gep_type_begin(GEPOp); in DecomposeGEPExpression() local
416 if (StructType *STy = dyn_cast<StructType>(*GTI++)) { in DecomposeGEPExpression()
432 DL.getTypeAllocSize(*GTI) * CIdx->getSExtValue(); in DecomposeGEPExpression()
436 uint64_t Scale = DL.getTypeAllocSize(*GTI); in DecomposeGEPExpression()
/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()
DInstCombineCompares.cpp472 gep_type_iterator GTI = gep_type_begin(GEP); in EvaluateGEPOffsetExpression() local
481 for (i = 1; i != e; ++i, ++GTI) { in EvaluateGEPOffsetExpression()
487 if (StructType *STy = dyn_cast<StructType>(*GTI)) { in EvaluateGEPOffsetExpression()
490 uint64_t Size = TD.getTypeAllocSize(GTI.getIndexedType()); in EvaluateGEPOffsetExpression()
506 uint64_t VariableScale = TD.getTypeAllocSize(GTI.getIndexedType()); in EvaluateGEPOffsetExpression()
509 for (++i, ++GTI; i != e; ++i, ++GTI) { in EvaluateGEPOffsetExpression()
517 if (StructType *STy = dyn_cast<StructType>(*GTI)) { in EvaluateGEPOffsetExpression()
520 uint64_t Size = TD.getTypeAllocSize(GTI.getIndexedType()); in EvaluateGEPOffsetExpression()
/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()
DBasicAliasAnalysis.cpp316 gep_type_iterator GTI = gep_type_begin(GEPOp); in DecomposeGEPExpression() local
321 if (StructType *STy = dyn_cast<StructType>(*GTI++)) { in DecomposeGEPExpression()
333 BaseOffs += TD->getTypeAllocSize(*GTI)*CIdx->getSExtValue(); in DecomposeGEPExpression()
337 uint64_t Scale = TD->getTypeAllocSize(*GTI); in DecomposeGEPExpression()
DConstantFolding.cpp213 gep_type_iterator GTI = gep_type_begin(CE); in IsConstantOffsetFromGlobal() local
215 i != e; ++i, ++GTI) { in IsConstantOffsetFromGlobal()
220 if (StructType *ST = dyn_cast<StructType>(*GTI)) { in IsConstantOffsetFromGlobal()
224 SequentialType *SQT = cast<SequentialType>(*GTI); in IsConstantOffsetFromGlobal()
/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()
/external/llvm/lib/CodeGen/SelectionDAG/
DFastISel.cpp499 for (gep_type_iterator GTI = gep_type_begin(I), E = gep_type_end(I); in selectGetElementPtr() local
500 GTI != E; ++GTI) { in selectGetElementPtr()
501 const Value *Idx = GTI.getOperand(); in selectGetElementPtr()
502 if (auto *StTy = dyn_cast<StructType>(*GTI)) { in selectGetElementPtr()
516 Type *Ty = GTI.getIndexedType(); in selectGetElementPtr()
/external/llvm/lib/Target/AArch64/
DAArch64FastISel.cpp554 for (gep_type_iterator GTI = gep_type_begin(U), E = gep_type_end(U); in computeAddress() local
555 GTI != E; ++GTI) { in computeAddress()
556 const Value *Op = GTI.getOperand(); in computeAddress()
557 if (StructType *STy = dyn_cast<StructType>(*GTI)) { in computeAddress()
562 uint64_t S = DL.getTypeAllocSize(GTI.getIndexedType()); in computeAddress()
4851 for (gep_type_iterator GTI = gep_type_begin(I), E = gep_type_end(I); in selectGetElementPtr() local
4852 GTI != E; ++GTI) { in selectGetElementPtr()
4853 const Value *Idx = GTI.getOperand(); in selectGetElementPtr()
4854 if (auto *StTy = dyn_cast<StructType>(*GTI)) { in selectGetElementPtr()
4860 Type *Ty = GTI.getIndexedType(); in selectGetElementPtr()
/external/llvm/lib/Target/Mips/
DMipsFastISel.cpp449 gep_type_iterator GTI = gep_type_begin(U); in computeAddress() local
451 ++i, ++GTI) { in computeAddress()
453 if (StructType *STy = dyn_cast<StructType>(*GTI)) { in computeAddress()
458 uint64_t S = DL.getTypeAllocSize(GTI.getIndexedType()); in computeAddress()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp514 gep_type_iterator GTI = gep_type_begin(GEP); in EvaluateGEPOffsetExpression() local
523 for (i = 1; i != e; ++i, ++GTI) { in EvaluateGEPOffsetExpression()
529 if (StructType *STy = dyn_cast<StructType>(*GTI)) { in EvaluateGEPOffsetExpression()
532 uint64_t Size = DL.getTypeAllocSize(GTI.getIndexedType()); in EvaluateGEPOffsetExpression()
548 uint64_t VariableScale = DL.getTypeAllocSize(GTI.getIndexedType()); in EvaluateGEPOffsetExpression()
551 for (++i, ++GTI; i != e; ++i, ++GTI) { in EvaluateGEPOffsetExpression()
559 if (StructType *STy = dyn_cast<StructType>(*GTI)) { in EvaluateGEPOffsetExpression()
562 uint64_t Size = DL.getTypeAllocSize(GTI.getIndexedType()); in EvaluateGEPOffsetExpression()
/external/swiftshader/third_party/LLVM/lib/Target/ARM/
DARMFastISel.cpp757 gep_type_iterator GTI = gep_type_begin(U); in ARMComputeAddress() local
759 i != e; ++i, ++GTI) { in ARMComputeAddress()
761 if (StructType *STy = dyn_cast<StructType>(*GTI)) { in ARMComputeAddress()
766 uint64_t S = TD.getTypeAllocSize(GTI.getIndexedType()); in ARMComputeAddress()

12