Searched refs:ElementTy (Results 1 - 23 of 23) sorted by relevance

/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSROA.cpp1434 Type *ElementTy = Ty;
1436 if (ElementTy->isPointerTy())
1439 if (ArrayType *ArrayTy = dyn_cast<ArrayType>(ElementTy)) {
1440 ElementTy = ArrayTy->getElementType();
1442 } else if (VectorType *VectorTy = dyn_cast<VectorType>(ElementTy)) {
1443 ElementTy = VectorTy->getElementType();
1445 } else if (StructType *STy = dyn_cast<StructType>(ElementTy)) {
1448 ElementTy = *STy->element_begin();
1454 } while (ElementTy != TargetTy);
1455 if (ElementTy !
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstants.h702 template <typename ElementTy>
703 static Constant *get(LLVMContext &Context, ArrayRef<ElementTy> Elts) {
705 return getRaw(StringRef(Data, Elts.size() * sizeof(ElementTy)), Elts.size(),
706 Type::getScalarTy<ElementTy>(Context));
710 /// ArrayRef<ElementTy>. Calls get(LLVMContext, ArrayRef<ElementTy>).
717 /// count and element type matching the NumElements and ElementTy parameters
719 /// ElementTy needs to be one of i8/i16/i32/i64/float/double. Data is the
722 static Constant *getRaw(StringRef Data, uint64_t NumElements, Type *ElementTy) { argument
723 Type *Ty = ArrayType::get(ElementTy, NumElement
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DCallLowering.cpp101 Type *ElementTy = cast<PointerType>(Arg.Ty)->getElementType(); local
104 Flags.setByValSize(DL.getTypeAllocSize(Ty ? Ty : ElementTy));
112 FrameAlign = getTLI()->getByValTypeAlignment(ElementTy, DL);
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DStore.h161 virtual SVal ArrayToPointer(Loc Array, QualType ElementTy) = 0;
H A DProgramState.h543 SVal ArrayToPointer(Loc Array, QualType ElementTy) { argument
544 return StoreMgr->ArrayToPointer(Array, ElementTy);
/freebsd-11-stable/contrib/llvm-project/clang/lib/AST/
H A DMicrosoftMangle.cpp2525 QualType ElementTy(T, 0);
2528 if (ElementTy->isConstantArrayType()) {
2530 getASTContext().getAsConstantArrayType(ElementTy);
2532 ElementTy = CAT->getElementType();
2533 } else if (ElementTy->isIncompleteArrayType()) {
2535 getASTContext().getAsIncompleteArrayType(ElementTy);
2537 ElementTy = IAT->getElementType();
2538 } else if (ElementTy->isVariableArrayType()) {
2540 getASTContext().getAsVariableArrayType(ElementTy);
2542 ElementTy
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DRegionStore.cpp402 SVal ArrayToPointer(Loc Array, QualType ElementTy) override;
1193 QualType ElementTy = AT->getElementType();
1194 uint64_t ElemSize = Ctx.getTypeSize(ElementTy);
2238 QualType ElementTy = AT->getElementType(); local
2272 const ElementRegion *ER = MRMgr.getElementRegion(ElementTy, Idx, R, Ctx);
2274 if (ElementTy->isStructureOrClassType())
2276 else if (ElementTy->isArrayType())
2286 NewB = setImplicitDefaultValue(NewB, R, ElementTy);
/freebsd-11-stable/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprCXX.cpp980 const CXXNewExpr *E, QualType ElementType, llvm::Type *ElementTy,
1074 ElementTy = ConvertTypeForMem(AllocType);
1075 CurPtr = Builder.CreateElementBitCast(CurPtr, ElementTy);
1274 Builder.CreateConstInBoundsGEP1_32(ElementTy, CurPtr.getPointer(), 1,
1287 QualType ElementType, llvm::Type *ElementTy,
1292 CGF.EmitNewArrayInitializer(E, ElementType, ElementTy, NewPtr, NumElements,
979 EmitNewArrayInitializer( const CXXNewExpr *E, QualType ElementType, llvm::Type *ElementTy, Address BeginPtr, llvm::Value *NumElements, llvm::Value *AllocSizeWithoutCookie) argument
1286 EmitNewInitializer(CodeGenFunction &CGF, const CXXNewExpr *E, QualType ElementType, llvm::Type *ElementTy, Address NewPtr, llvm::Value *NumElements, llvm::Value *AllocSizeWithoutCookie) argument
H A DCGRecordLayoutBuilder.cpp828 llvm::Type *ElementTy = ST->getTypeAtIndex(RL->getLLVMFieldNo(FD)); local
849 getDataLayout().getTypeAllocSizeInBits(ElementTy) &&
H A DCGExprConstant.cpp2307 QualType ElementTy = CAT->getElementType(); local
2310 ConstantEmitter::emitNullForMemory(*this, ElementTy);
H A DCGOpenMPRuntime.cpp867 QualType ElementTy; local
871 llvm::Value *NumElements = CGF.emitArrayLength(ArrayTy, ElementTy, DestAddr);
895 CharUnits ElementSize = CGF.getContext().getTypeSizeInChars(ElementTy);
919 SrcElementCurrent, ElementTy);
921 CGF.EmitAnyExprToMem(Init, DestElementCurrent, ElementTy.getQualifiers(),
5457 QualType ElementTy; local
5463 llvm::Value *NumElements = CGF.emitArrayLength(ArrayTy, ElementTy, LHSAddr);
5480 CharUnits ElementSize = CGF.getContext().getTypeSizeInChars(ElementTy);
H A DCGStmtOpenMP.cpp648 QualType ElementTy; local
652 llvm::Value *NumElements = emitArrayLength(ArrayTy, ElementTy, DestAddr);
670 CharUnits ElementSize = getContext().getTypeSizeInChars(ElementTy);
H A DCGDebugInfo.cpp2645 llvm::DIType *ElementTy = getOrCreateType(Ty->getElementType(), Unit); local
2660 return DBuilder.createVectorType(Size, Align, ElementTy, SubscriptArray);
H A DCodeGenFunction.h2572 llvm::Type *ElementTy, Address NewPtr,
/freebsd-11-stable/contrib/llvm-project/clang/lib/Serialization/
H A DASTWriter.cpp3936 using ElementTy = std::pair<TypeID, const std::set<std::string> *>;
3937 llvm::SmallVector<ElementTy, 8> StableOpenCLTypeExtMap;
3944 auto CompareByTypeID = [](const ElementTy &E1, const ElementTy &E2) -> bool {
3950 for (const ElementTy &E : StableOpenCLTypeExtMap) {
3969 using ElementTy = std::pair<DeclID, const std::set<std::string> *>;
3970 llvm::SmallVector<ElementTy, 8> StableOpenCLDeclExtMap;
3976 auto CompareByDeclID = [](const ElementTy &E1, const ElementTy &E2) -> bool {
3982 for (const ElementTy
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DFastISel.cpp1223 Type *ElementTy = Ty->getElementType(); local
1225 DL.getTypeAllocSize(Arg.ByValType ? Arg.ByValType : ElementTy);
1231 FrameAlign = TLI.getByValTypeAlignment(ElementTy, DL);
H A DSelectionDAGBuilder.cpp9228 Type *ElementTy = Ty->getElementType(); local
9231 Args[i].ByValType ? Args[i].ByValType : ElementTy);
9239 FrameAlign = getByValTypeAlignment(ElementTy, DL);
9734 Type *ElementTy = Arg.getParamByValType(); local
9746 FrameAlign = TLI->getByValTypeAlignment(ElementTy, DL);
/freebsd-11-stable/contrib/llvm-project/llvm/lib/IR/
H A DConstants.cpp991 template <typename SequentialTy, typename ElementTy>
995 SmallVector<ElementTy, 16> Elts;
1004 template <typename SequentialTy, typename ElementTy>
1008 SmallVector<ElementTy, 16> Elts;
H A DCore.cpp1397 LLVMValueRef LLVMConstArray(LLVMTypeRef ElementTy,
1400 return wrap(ConstantArray::get(ArrayType::get(unwrap(ElementTy), Length), V));
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DMemorySanitizer.cpp4500 Type *ElementTy = A->getType()->getArrayElementType();
4501 if (!ElementTy->isPPC_FP128Ty())
4502 ArgAlign = DL.getTypeAllocSize(ElementTy);
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm-c/
H A DCore.h2021 LLVMValueRef LLVMConstArray(LLVMTypeRef ElementTy,
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/Sparc/
H A DSparcISelLowering.cpp831 Type *ElementTy = Ty->getElementType(); local
832 SRetArgSize = DAG.getDataLayout().getTypeAllocSize(ElementTy);
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.cpp10514 MVT ElementTy = NarrowTy.getVectorElementType();
10516 MVT NewVT = MVT::getVectorVT(ElementTy, NumElems * 2);

Completed in 752 milliseconds