/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | Analysis.cpp | 53 else if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) { in ComputeLinearIndex() local 54 Type *EltTy = ATy->getElementType(); in ComputeLinearIndex() 55 unsigned NumElts = ATy->getNumElements(); in ComputeLinearIndex() 106 if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) { in ComputeValueVTs() local 107 Type *EltTy = ATy->getElementType(); in ComputeValueVTs() 109 for (unsigned i = 0, e = ATy->getNumElements(); i != e; ++i) in ComputeValueVTs() 159 if (ArrayType *ATy = dyn_cast<ArrayType>(&Ty)) { in computeValueLLTs() local 160 Type *EltTy = ATy->getElementType(); in computeValueLLTs() 162 for (unsigned i = 0, e = ATy->getNumElements(); i != e; ++i) in computeValueLLTs()
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaWasm.cpp | 32 const auto *ATy = dyn_cast<ArrayType>(ArgExpr->getType()); in CheckWasmBuiltinArgIsTable() local 33 if (!ATy || !ATy->getElementType().isWebAssemblyReferenceType()) { in CheckWasmBuiltinArgIsTable() 38 ElTy = ATy->getElementType(); in CheckWasmBuiltinArgIsTable()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | ModuleUtils.cpp | 107 ArrayType *ATy = ArrayType::get(ArrayEltTy, Init.size()); in appendToUsedList() local 108 GV = new llvm::GlobalVariable(M, ATy, false, GlobalValue::AppendingLinkage, in appendToUsedList() 109 ConstantArray::get(ATy, Init.getArrayRef()), in appendToUsedList() 140 ArrayType *ATy = ArrayType::get(ArrayEltTy, NewInit.size()); in removeFromUsedList() local 142 new GlobalVariable(M, ATy, false, GlobalValue::AppendingLinkage, in removeFromUsedList() 143 ConstantArray::get(ATy, NewInit), "", GV, in removeFromUsedList()
|
H A D | CtorUtils.cpp | 37 ArrayType *ATy = in removeGlobalCtors() local 39 Constant *CA = ConstantArray::get(ATy, CAList); in removeGlobalCtors()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | GetElementPtrTypeIterator.h | 114 if (auto *ATy = dyn_cast<ArrayType>(Ty)) in getStructType() 115 CurTy = ATy->getElementType(); 80 if (auto *ATy = dyn_cast<ArrayType>(Ty)) global() variable
|
H A D | DataLayout.h | 681 ArrayType *ATy = cast<ArrayType>(Ty); in getTypeSizeInBits() local 682 return ATy->getNumElements() * in getTypeSizeInBits() 683 getTypeAllocSizeInBits(ATy->getElementType()); in getTypeSizeInBits()
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | Type.cpp | 61 if (const auto *ATy = dyn_cast<ArrayType>(this)) in isScalableTy() local 62 return ATy->getElementType()->isScalableTy(); in isScalableTy() 150 if (auto *ATy = dyn_cast<ArrayType>(this)) { in isEmptyTy() local 151 unsigned NumElements = ATy->getNumElements(); in isEmptyTy() 152 return NumElements == 0 || ATy->getElementType()->isEmptyTy(); in isEmptyTy() 221 if (auto *ATy = dyn_cast<ArrayType>(this)) in isSizedDerivedType() local 222 return ATy->getElementType()->isSized(Visited); in isSizedDerivedType()
|
H A D | Constants.cpp | 1149 if (ArrayType *ATy = dyn_cast<ArrayType>(getType())) in getSequentialElement() local 1150 return UndefValue::get(ATy->getElementType()); in getSequentialElement() 1184 if (ArrayType *ATy = dyn_cast<ArrayType>(getType())) in getSequentialElement() local 1185 return PoisonValue::get(ATy->getElementType()); in getSequentialElement() 2780 if (ArrayType *ATy = dyn_cast<ArrayType>(getType())) in getElementType() local 2781 return ATy->getElementType(); in getElementType() 2837 if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) in getImpl() local 2838 assert(isElementTypeCompatible(ATy->getElementType())); in getImpl()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/ |
H A D | LoongArch.cpp | 148 if (const ConstantArrayType *ATy = getContext().getAsConstantArrayType(Ty)) { in detectFARsEligibleStructHelper() local 149 uint64_t ArraySize = ATy->getZExtSize(); in detectFARsEligibleStructHelper() 150 QualType EltTy = ATy->getElementType(); in detectFARsEligibleStructHelper()
|
H A D | RISCV.cpp | 154 if (const ConstantArrayType *ATy = getContext().getAsConstantArrayType(Ty)) { in detectFPCCEligibleStructHelper() local 155 uint64_t ArraySize = ATy->getZExtSize(); in detectFPCCEligibleStructHelper() 156 QualType EltTy = ATy->getElementType(); in detectFPCCEligibleStructHelper()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/XCore/ |
H A D | XCoreAsmPrinter.cpp | 92 if (ArrayType *ATy = dyn_cast<ArrayType>(GV->getValueType())) { in emitArrayBound() local 98 MCConstantExpr::create(ATy->getNumElements(), in emitArrayBound()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
H A D | HexagonTargetObjectFile.cpp | 307 const ArrayType *ATy = cast<const ArrayType>(Ty); in getSmallestAddressableSize() local 308 return getSmallestAddressableSize(ATy->getElementType(), GV, TM); in getSmallestAddressableSize()
|
H A D | HexagonBitTracker.cpp | 64 Type *ATy = Arg.getType(); in HexagonEvaluator() local 66 if (ATy->isIntegerTy()) in HexagonEvaluator() 67 Width = ATy->getIntegerBitWidth(); in HexagonEvaluator() 68 else if (ATy->isPointerTy()) in HexagonEvaluator()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ |
H A D | TargetLoweringObjectFile.cpp | 266 if (ArrayType *ATy = dyn_cast<ArrayType>(C->getType())) { in getKindForGlobal() local 268 dyn_cast<IntegerType>(ATy->getElementType())) { in getKindForGlobal()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
H A D | DeadArgumentElimination.cpp | 344 if (ArrayType *ATy = dyn_cast<ArrayType>(RetTy)) in numRetVals() local 345 return ATy->getNumElements(); in numRetVals() 358 if (ArrayType *ATy = dyn_cast<ArrayType>(RetTy)) in getRetComponentType() local 359 return ATy->getElementType(); in getRetComponentType()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/ |
H A D | DXILIntrinsicExpansion.cpp | 80 [[maybe_unused]] Type *ATy = A->getType(); in expandIntegerDot() local 82 assert(ATy->isVectorTy() && BTy->isVectorTy()); in expandIntegerDot()
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | Lint.cpp | 438 Type *ATy = AI->getAllocatedType(); in visitMemoryReference() local 439 if (!AI->isArrayAllocation() && ATy->isSized()) in visitMemoryReference() 440 BaseSize = DL->getTypeAllocSize(ATy); in visitMemoryReference()
|
H A D | ModuleSummaryAnalysis.cpp | 724 ArrayType *ATy = C->getType(); in findFuncPointers() local 725 Type *EltTy = ATy->getElementType(); in findFuncPointers() 727 for (unsigned i = 0, e = ATy->getNumElements(); i != e; ++i) { in findFuncPointers()
|
H A D | LoopAccessAnalysis.cpp | 1912 Type *ATy = getLoadStoreType(AInst); in getDependenceDistanceStrideAndSize() local 1921 getPtrStride(PSE, ATy, APtr, InnermostLoop, SymbolicStrides, true, true); in getDependenceDistanceStrideAndSize() 1951 getStartAndEndForAccess(InnermostLoop, Src, ATy, PSE, PointerBounds); in getDependenceDistanceStrideAndSize() 1995 uint64_t TypeByteSize = DL.getTypeAllocSize(ATy); in getDependenceDistanceStrideAndSize() 1997 DL.getTypeStoreSizeInBits(ATy) == DL.getTypeStoreSizeInBits(BTy); in getDependenceDistanceStrideAndSize()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
H A D | VPlanTransforms.cpp | 1008 Type *ATy = TypeInfo.inferScalarType(A); in simplifyRecipe() local 1009 if (TruncTy == ATy) { in simplifyRecipe() 1015 if (ATy->getScalarSizeInBits() < TruncTy->getScalarSizeInBits()) { in simplifyRecipe() 1028 } else if (ATy->getScalarSizeInBits() > TruncTy->getScalarSizeInBits()) { in simplifyRecipe()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPULowerModuleLDSPass.cpp | 1209 Type *ATy = ArrayType::get(Type::getInt8Ty(Ctx), Padding); in createLDSVariableReplacement() local 1211 M, ATy, false, GlobalValue::InternalLinkage, in createLDSVariableReplacement() 1212 PoisonValue::get(ATy), "", nullptr, GlobalValue::NotThreadLocal, in createLDSVariableReplacement()
|
/freebsd/contrib/llvm-project/llvm/lib/Demangle/ |
H A D | MicrosoftDemangle.cpp | 2152 ArrayTypeNode *ATy = Arena.alloc<ArrayTypeNode>(); in demangleArrayType() local 2169 ATy->Dimensions = nodeListToNodeArray(Arena, Head, Rank); in demangleArrayType() 2173 std::tie(ATy->Quals, IsMember) = demangleQualifiers(MangledName); in demangleArrayType() 2180 ATy->ElementType = demangleType(MangledName, QualifierMangleMode::Drop); in demangleArrayType() 2181 return ATy; in demangleArrayType()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGCall.cpp | 3676 static void setUsedBits(CodeGenModule &CGM, const ConstantArrayType *ATy, in setUsedBits() argument 3680 QualType ETy = Context.getBaseElementType(ATy); in setUsedBits() 3685 for (int I = 0, N = Context.getConstantArrayElementCount(ATy); I < N; ++I) { in setUsedBits() 3701 if (const auto *ATy = Context.getAsConstantArrayType(QTy)) in setUsedBits() local 3702 return setUsedBits(CGM, ATy, Offset, Bits); in setUsedBits() 3753 llvm::ArrayType *ATy, in EmitCMSEClearRecord() argument 3756 int Size = DataLayout.getTypeStoreSize(ATy); in EmitCMSEClearRecord() 3763 ATy->getArrayElementType()->getScalarSizeInBits() / CharWidth; in EmitCMSEClearRecord() 3765 llvm::Value *R = llvm::PoisonValue::get(ATy); in EmitCMSEClearRecord() 3766 for (int I = 0, N = ATy->getArrayNumElements(); I != N; ++I) { in EmitCMSEClearRecord() [all …]
|
H A D | CGExprConstant.cpp | 414 if (llvm::ArrayType *ATy = dyn_cast<llvm::ArrayType>(DesiredTy)) { in buildFrom() local 420 CharUnits ElemSize = Utils.getSize(ATy->getElementType()); in buildFrom() 438 return EmitArrayConstant(CGM, ATy, CommonType, ATy->getNumElements(), in buildFrom() 2620 llvm::ArrayType *ATy = in EmitNullConstant() local 2629 return llvm::ConstantArray::get(ATy, Array); in EmitNullConstant()
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | DeclPrinter.cpp | 165 else if (const ArrayType *ATy = dyn_cast<ArrayType>(BaseType)) in GetBaseType() local 166 BaseType = ATy->getElementType(); in GetBaseType() 173 else if (const AutoType *ATy = BaseType->getAs<AutoType>()) in GetBaseType() local 174 BaseType = ATy->getDeducedType(); in GetBaseType()
|