Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DLowerGlobalDtors.cpp88 !ETy->getTypeAtIndex(0U)->isIntegerTy() || in runImpl()
89 !ETy->getTypeAtIndex(1U)->isPointerTy() || in runImpl()
90 !ETy->getTypeAtIndex(2U)->isPointerTy()) in runImpl()
H A DScalarEvolutionExpander.cpp532 ElTy = STy->getTypeAtIndex(ElIdx); in expandAddToGEP()
543 ElTy = STy->getTypeAtIndex(0u); in expandAddToGEP()
/llvm-project-15.0.7/clang/unittests/CodeGen/
H A DCodeGenExternalTest.cpp229 llvm::Type* xTy = structTy->getTypeAtIndex(x); in test_codegen_fns()
230 llvm::Type* yTy = structTy->getTypeAtIndex(y); in test_codegen_fns()
231 llvm::Type* zTy = structTy->getTypeAtIndex(z); in test_codegen_fns()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DGetElementPtrTypeIterator.h73 return CurTy.get<StructType *>()->getTypeAtIndex(getOperand()); in getIndexedType()
H A DDerivedTypes.h333 Type *getTypeAtIndex(const Value *V) const;
334 Type *getTypeAtIndex(unsigned N) const { return getElementType(N); } in getTypeAtIndex() function
H A DInstructions.h1036 static Type *getTypeAtIndex(Type *Ty, Value *Idx);
1037 static Type *getTypeAtIndex(Type *Ty, uint64_t Idx);
/llvm-project-15.0.7/llvm/lib/FuzzMutate/
H A DOperations.cpp235 if (STy->getTypeAtIndex(I) == V->getType()) in matchScalarInAggregate()
246 makeConstantsWithType(STy->getTypeAtIndex(I), Result); in matchScalarInAggregate()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DArgumentPromotion.cpp117 Type *NextTy = GetElementPtrInst::getTypeAtIndex(TmpTy, (uint64_t)0); in createByteGEP()
/llvm-project-15.0.7/llvm/lib/IR/
H A DType.cpp603 Type *StructType::getTypeAtIndex(const Value *V) const { in getTypeAtIndex() function in StructType
H A DInstructions.cpp1753 Type *GetElementPtrInst::getTypeAtIndex(Type *Ty, Value *Idx) { in getTypeAtIndex() function in GetElementPtrInst
1757 return Struct->getTypeAtIndex(Idx); in getTypeAtIndex()
1768 Type *GetElementPtrInst::getTypeAtIndex(Type *Ty, uint64_t Idx) { in getTypeAtIndex() function in GetElementPtrInst
1786 Ty = GetElementPtrInst::getTypeAtIndex(Ty, V); in getIndexedTypeInternal()
H A DVerifier.cpp732 STy->getTypeAtIndex(0u)->isIntegerTy(32) && in visitGlobalVariable()
733 STy->getTypeAtIndex(1) == FuncPtrTy, in visitGlobalVariable()
738 Type *ETy = STy->getTypeAtIndex(2); in visitGlobalVariable()
H A DConstantFold.cpp127 ElTy = GetElementPtrInst::getTypeAtIndex(ElTy, (uint64_t)0); in FoldBitCast()
H A DConstants.cpp1230 assert(V[I]->getType() == ST->getTypeAtIndex(I) && in ConstantAggregate()
H A DCore.cpp757 return wrap(Ty->getTypeAtIndex(i)); in LLVMStructGetTypeAtIndex()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGRecordLayoutBuilder.cpp973 llvm::Type *ElementTy = ST->getTypeAtIndex(RL->getLLVMFieldNo(FD)); in ComputeRecordLayout()
H A DCGExprConstant.cpp330 llvm::GetElementPtrInst::getTypeAtIndex(CA->getType(), (uint64_t)0); in split()
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86FastISel.cpp238 cast<StructType>(Callee->getReturnType())->getTypeAtIndex(0U); in foldX86XALUIntrinsic()
2857 Type *RetTy = Ty->getTypeAtIndex(0U); in fastLowerIntrinsicCall()
2858 assert(Ty->getTypeAtIndex(1)->isIntegerTy() && in fastLowerIntrinsicCall()
2859 Ty->getTypeAtIndex(1)->getScalarSizeInBits() == 1 && in fastLowerIntrinsicCall()
/llvm-project-15.0.7/llvm/lib/Target/Hexagon/
H A DHexagonCommonGEP.cpp397 PtrTy = GetElementPtrInst::getTypeAtIndex(PtrTy, Op); in processGepInst()
/llvm-project-15.0.7/llvm/lib/Target/AArch64/
H A DAArch64FastISel.cpp3339 cast<StructType>(Callee->getReturnType())->getTypeAtIndex(0U); in foldXALUIntrinsic()
3623 Type *RetTy = Ty->getTypeAtIndex(0U); in fastLowerIntrinsicCall()
4967 Type *RetTy = RetPairTy->getTypeAtIndex(0U); in selectAtomicCmpXchg()
4968 assert(RetPairTy->getTypeAtIndex(1U)->isIntegerTy(1) && in selectAtomicCmpXchg()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp638 LoadInst *NewLoad = IC.combineLoadToNewType(LI, ST->getTypeAtIndex(0U), in unpackLoadToAggregate()
H A DInstCombineCasts.cpp2714 SrcElTy = GetElementPtrInst::getTypeAtIndex(SrcElTy, (uint64_t)0); in convertBitCastToGEP()
H A DInstructionCombining.cpp2402 GetElementPtrInst::getTypeAtIndex(CurTy, Op1->getOperand(J)); in visitGetElementPtrInst()
/llvm-project-15.0.7/llvm/lib/Transforms/Coroutines/
H A DCoroSplit.cpp300 Shape.FrameTy->getTypeAtIndex(coro::Shape::SwitchFieldIndex::Resume))); in markCoroutineAsDone()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DConstantFolding.cpp980 Type *NextTy = GetElementPtrInst::getTypeAtIndex(ElemTy, (uint64_t)0); in SymbolicallyEvaluateGEP()
H A DScalarEvolution.cpp3704 CurTy = STy->getTypeAtIndex(Index); in getGEPExpr()
3713 CurTy = GetElementPtrInst::getTypeAtIndex(CurTy, (uint64_t)0); in getGEPExpr()