Searched refs:GTI (Results 1 - 21 of 21) sorted by relevance

/freebsd-11.0-release/contrib/llvm/lib/IR/
H A DOperator.cpp21 for (gep_type_iterator GTI = gep_type_begin(this), GTE = gep_type_end(this);
22 GTI != GTE; ++GTI) {
23 ConstantInt *OpC = dyn_cast<ConstantInt>(GTI.getOperand());
30 if (StructType *STy = dyn_cast<StructType>(*GTI)) {
40 DL.getTypeAllocSize(GTI.getIndexedType()));
H A DConstantFold.cpp1619 gep_type_iterator GTI = gep_type_begin(CE1);
1621 ++i, ++GTI)
1623 CE2->getOperand(i), GTI.getIndexedType())) {
/freebsd-11.0-release/contrib/llvm/lib/Transforms/Scalar/
H A DSeparateConstOffsetFromGEP.cpp721 gep_type_iterator GTI = gep_type_begin(*GEP); local
723 I != E; ++I, ++GTI) {
725 if (isa<SequentialType>(*GTI)) {
740 gep_type_iterator GTI = gep_type_begin(*GEP); local
741 for (unsigned I = 1, E = GEP->getNumOperands(); I != E; ++I, ++GTI) {
742 if (isa<SequentialType>(*GTI)) {
752 ConstantOffset * DL->getTypeAllocSize(GTI.getIndexedType());
755 StructType *StTy = cast<StructType>(*GTI);
786 gep_type_iterator GTI = gep_type_begin(*Variadic); local
789 for (unsigned I = 1, E = Variadic->getNumOperands(); I != E; ++I, ++GTI) {
846 gep_type_iterator GTI = gep_type_begin(*Variadic); local
929 gep_type_iterator GTI = gep_type_begin(*GEP); local
[all...]
H A DNaryReassociate.cpp316 gep_type_iterator GTI = gep_type_begin(GEP); local
317 for (auto I = GEP->idx_begin(); I != GEP->idx_end(); ++I, ++GTI) {
318 if (isa<SequentialType>(*GTI)) {
319 int64_t ElementSize = DL->getTypeAllocSize(GTI.getIndexedType());
331 StructType *STy = cast<StructType>(*GTI);
347 gep_type_iterator GTI = gep_type_begin(*GEP);
349 if (isa<SequentialType>(*GTI++)) {
350 if (auto *NewGEP = tryReassociateGEPAtIndex(GEP, I - 1, *GTI)) {
H A DStraightLineStrengthReduce.cpp251 gep_type_iterator GTI = gep_type_begin(GEP); local
252 for (auto I = GEP->idx_begin(); I != GEP->idx_end(); ++I, ++GTI) {
253 if (isa<SequentialType>(*GTI)) {
254 int64_t ElementSize = DL->getTypeAllocSize(GTI.getIndexedType());
266 StructType *STy = cast<StructType>(*GTI);
521 gep_type_iterator GTI = gep_type_begin(GEP); local
523 if (!isa<SequentialType>(*GTI++))
535 uint64_t ElementSize = DL->getTypeAllocSize(*GTI);
H A DMemCpyOptimizer.cpp48 gep_type_iterator GTI = gep_type_begin(GEP); local
49 for (unsigned i = 1; i != Idx; ++i, ++GTI)
54 for (unsigned i = Idx, e = GEP->getNumOperands(); i != e; ++i, ++GTI) {
61 if (StructType *STy = dyn_cast<StructType>(*GTI)) {
68 uint64_t Size = DL.getTypeAllocSize(GTI.getIndexedType());
H A DSROA.cpp701 for (gep_type_iterator GTI = gep_type_begin(GEPI),
703 GTI != GTE; ++GTI) {
704 ConstantInt *OpC = dyn_cast<ConstantInt>(GTI.getOperand());
709 if (StructType *STy = dyn_cast<StructType>(*GTI)) {
719 DL.getTypeAllocSize(GTI.getIndexedType()));
/freebsd-11.0-release/contrib/llvm/include/llvm/Transforms/Utils/
H A DLocal.h208 gep_type_iterator GTI = gep_type_begin(GEP); local
210 ++i, ++GTI) {
212 uint64_t Size = DL.getTypeAllocSize(GTI.getIndexedType()) & PtrSizeMask;
218 if (StructType *STy = dyn_cast<StructType>(*GTI)) {
/freebsd-11.0-release/contrib/llvm/include/llvm/Analysis/
H A DTargetTransformInfoImpl.h424 auto GTI = gep_type_begin(PointerType::get(PointeeType, AS), Operands); local
425 for (auto I = Operands.begin(); I != Operands.end(); ++I, ++GTI) {
432 if (isa<SequentialType>(*GTI)) {
433 int64_t ElementSize = DL.getTypeAllocSize(GTI.getIndexedType());
444 StructType *STy = cast<StructType>(*GTI);
453 PointerType::get(*GTI, AS), const_cast<GlobalValue *>(BaseGV),
/freebsd-11.0-release/contrib/llvm/lib/Analysis/
H A DInlineCost.cpp267 for (gep_type_iterator GTI = gep_type_begin(GEP), GTE = gep_type_end(GEP);
268 GTI != GTE; ++GTI) {
269 ConstantInt *OpC = dyn_cast<ConstantInt>(GTI.getOperand());
271 if (Constant *SimpleOp = SimplifiedValues.lookup(GTI.getOperand()))
278 if (StructType *STy = dyn_cast<StructType>(*GTI)) {
285 APInt TypeSize(IntPtrWidth, DL.getTypeAllocSize(GTI.getIndexedType()));
H A DBasicAliasAnalysis.cpp389 gep_type_iterator GTI = gep_type_begin(GEPOp); local
394 if (StructType *STy = dyn_cast<StructType>(*GTI++)) {
408 BaseOffs += DL.getTypeAllocSize(*GTI) * CIdx->getSExtValue();
412 uint64_t Scale = DL.getTypeAllocSize(*GTI);
H A DValueTracking.cpp1355 gep_type_iterator GTI = gep_type_begin(I); local
1356 for (unsigned i = 1, e = I->getNumOperands(); i != e; ++i, ++GTI) {
1358 if (StructType *STy = dyn_cast<StructType>(*GTI)) {
1376 Type *IndexedTy = GTI.getIndexedType();
1835 for (gep_type_iterator GTI = gep_type_begin(GEP), GTE = gep_type_end(GEP);
1836 GTI != GTE; ++GTI) {
1838 if (StructType *STy = dyn_cast<StructType>(*GTI)) {
1839 ConstantInt *OpC = cast<ConstantInt>(GTI.getOperand());
1849 if (DL.getTypeAllocSize(GTI
[all...]
/freebsd-11.0-release/contrib/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp507 gep_type_iterator GTI = gep_type_begin(GEP); local
516 for (i = 1; i != e; ++i, ++GTI) {
522 if (StructType *STy = dyn_cast<StructType>(*GTI)) {
525 uint64_t Size = DL.getTypeAllocSize(GTI.getIndexedType());
541 uint64_t VariableScale = DL.getTypeAllocSize(GTI.getIndexedType());
544 for (++i, ++GTI; i != e; ++i, ++GTI) {
552 if (StructType *STy = dyn_cast<StructType>(*GTI)) {
555 uint64_t Size = DL.getTypeAllocSize(GTI.getIndexedType());
H A DInstructionCombining.cpp1348 gep_type_iterator GTI = gep_type_begin(GEP); local
1350 ++I, ++GTI) {
1352 SequentialType *SeqTy = dyn_cast<SequentialType>(*GTI);
/freebsd-11.0-release/contrib/llvm/lib/Target/Mips/
H A DMipsFastISel.cpp435 gep_type_iterator GTI = gep_type_begin(U); local
437 ++i, ++GTI) {
439 if (StructType *STy = dyn_cast<StructType>(*GTI)) {
444 uint64_t S = DL.getTypeAllocSize(GTI.getIndexedType());
/freebsd-11.0-release/contrib/llvm/lib/Target/PowerPC/
H A DPPCFastISel.cpp340 gep_type_iterator GTI = gep_type_begin(U); local
342 II != IE; ++II, ++GTI) {
344 if (StructType *STy = dyn_cast<StructType>(*GTI)) {
349 uint64_t S = DL.getTypeAllocSize(GTI.getIndexedType());
/freebsd-11.0-release/contrib/llvm/lib/Target/ARM/
H A DARMFastISel.cpp802 gep_type_iterator GTI = gep_type_begin(U); local
804 i != e; ++i, ++GTI) {
806 if (StructType *STy = dyn_cast<StructType>(*GTI)) {
811 uint64_t S = DL.getTypeAllocSize(GTI.getIndexedType());
/freebsd-11.0-release/contrib/llvm/lib/Target/X86/
H A DX86FastISel.cpp766 gep_type_iterator GTI = gep_type_begin(U); local
770 i != e; ++i, ++GTI) {
772 if (StructType *STy = dyn_cast<StructType>(*GTI)) {
780 uint64_t S = DL.getTypeAllocSize(GTI.getIndexedType());
/freebsd-11.0-release/contrib/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp3181 gep_type_iterator GTI = gep_type_begin(AddrInst); local
3182 for (unsigned i = 1, e = AddrInst->getNumOperands(); i != e; ++i, ++GTI) {
3183 if (StructType *STy = dyn_cast<StructType>(*GTI)) {
3189 uint64_t TypeSize = DL.getTypeAllocSize(GTI.getIndexedType());
/freebsd-11.0-release/contrib/llvm/lib/Target/AArch64/
H A DAArch64FastISel.cpp558 gep_type_iterator GTI = gep_type_begin(U); local
560 ++i, ++GTI) {
562 if (StructType *STy = dyn_cast<StructType>(*GTI)) {
567 uint64_t S = DL.getTypeAllocSize(GTI.getIndexedType());
H A DAArch64ISelLowering.cpp6942 gep_type_iterator GTI = gep_type_begin(Instr); local
6944 std::advance(GTI, U.getOperandNo());
6945 Type *IdxTy = *GTI;

Completed in 290 milliseconds