Home
last modified time | relevance | path

Searched refs:CurTy (Results 1 – 9 of 9) sorted by relevance

/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DGetElementPtrTypeIterator.h34 PointerUnion<StructType *, Type *> CurTy; variable
47 I.CurTy = Ty; in begin()
71 if (auto *T = CurTy.dyn_cast<Type *>()) in getIndexedType()
73 return CurTy.get<StructType *>()->getTypeAtIndex(getOperand()); in getIndexedType()
81 CurTy = ATy->getElementType();
83 CurTy = VTy->getElementType();
85 CurTy = dyn_cast<StructType>(Ty);
111 bool isStruct() const { return CurTy.is<StructType *>(); } in isStruct()
112 bool isSequential() const { return CurTy.is<Type *>(); } in isSequential()
114 StructType *getStructType() const { return CurTy.get<StructType *>(); } in getStructType()
[all …]
/llvm-project-15.0.7/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp2881 V = UndefValue::get(CurTy); in parseConstants()
2884 V = PoisonValue::get(CurTy); in parseConstants()
2894 CurTy = TypeList[CurTyID]; in parseConstants()
2898 if (CurTy->isVoidTy() || CurTy->isFunctionTy() || CurTy->isLabelTy()) in parseConstants()
2920 if (CurTy->isHalfTy()) in parseConstants()
2926 else if (CurTy->isFloatTy()) in parseConstants()
3241 Alloc, CurTy, in parseConstants()
3375 Alloc, CurTy, in parseConstants()
4905 CurTy = CurTy->getStructElementType(Index); in parseFunctionBody()
4907 CurTy = CurTy->getArrayElementType(); in parseFunctionBody()
[all …]
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp2364 Type *CurTy = nullptr; in visitGetElementPtrInst() local
2379 assert(CurTy && "No current type?"); in visitGetElementPtrInst()
2380 if (CurTy->isStructTy()) in visitGetElementPtrInst()
2399 CurTy = Op1->getSourceElementType(); in visitGetElementPtrInst()
2401 CurTy = in visitGetElementPtrInst()
2402 GetElementPtrInst::getTypeAtIndex(CurTy, Op1->getOperand(J)); in visitGetElementPtrInst()
/llvm-project-15.0.7/clang/lib/AST/
H A DType.cpp441 const Type *CurTy = Qs.strip(Cur); in getSplitDesugaredType() local
442 switch (CurTy->getTypeClass()) { in getSplitDesugaredType()
446 const auto *Ty = cast<Class##Type>(CurTy); \ in getSplitDesugaredType()
H A DVTableBuilder.cpp2718 QualType CurTy = Element.Base->getType(); in ComputeThisOffset() local
2720 *CurRD = CurTy->getAsCXXRecordDecl(); in ComputeThisOffset()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp5687 Type *CurTy = UI->getType(); in hasSameExtUse() local
5689 if (CurTy == ExtTy) in hasSameExtUse()
5709 CurTy->getScalarType()->getIntegerBitWidth()) { in hasSameExtUse()
5710 NarrowTy = CurTy; in hasSameExtUse()
5714 LargeTy = CurTy; in hasSameExtUse()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DScalarEvolution.cpp3691 Type *CurTy = GEP->getType(); in getGEPExpr() local
3696 if (StructType *STy = dyn_cast<StructType>(CurTy)) { in getGEPExpr()
3704 CurTy = STy->getTypeAtIndex(Index); in getGEPExpr()
3708 assert(isa<PointerType>(CurTy) && in getGEPExpr()
3710 CurTy = GEP->getSourceElementType(); in getGEPExpr()
3713 CurTy = GetElementPtrInst::getTypeAtIndex(CurTy, (uint64_t)0); in getGEPExpr()
3716 const SCEV *ElementSize = getSizeOfExpr(IntIdxTy, CurTy); in getGEPExpr()
/llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/
H A DLegalizerHelper.cpp2114 LLT CurTy = MRI.getType(SrcReg); in widenScalar() local
2121 APInt::getOneBitSet(WideTy.getSizeInBits(), CurTy.getSizeInBits()); in widenScalar()
2134 unsigned SizeDiff = WideTy.getSizeInBits() - CurTy.getSizeInBits(); in widenScalar()
/llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/
H A DSLPVectorizer.cpp5206 Type *CurTy = GEP->getSourceElementType(); in buildTree_rec() local
5207 if (Ty0 != CurTy) { in buildTree_rec()