Home
last modified time | relevance | path

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

123

/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DAnalysis.cpp53 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()
103 if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) { in ComputeValueVTs() local
104 Type *EltTy = ATy->getElementType(); in ComputeValueVTs()
106 for (unsigned i = 0, e = ATy->getNumElements(); i != e; ++i) in ComputeValueVTs()
196 if (ArrayType *ATy = dyn_cast<ArrayType>(&Ty)) { in computeValueLLTs() local
197 Type *EltTy = ATy->getElementType(); in computeValueLLTs()
199 for (unsigned i = 0, e = ATy->getNumElements(); i != e; ++i) in computeValueLLTs()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DModuleUtils.cpp106 ArrayType *ATy = ArrayType::get(ArrayEltTy, Init.size()); in appendToUsedList() local
107 GV = new llvm::GlobalVariable(M, ATy, false, GlobalValue::AppendingLinkage, in appendToUsedList()
108 ConstantArray::get(ATy, Init.getArrayRef()), in appendToUsedList()
139 ArrayType *ATy = ArrayType::get(ArrayEltTy, NewInit.size()); in removeFromUsedList() local
141 new GlobalVariable(M, ATy, false, GlobalValue::AppendingLinkage, in removeFromUsedList()
142 ConstantArray::get(ATy, NewInit), "", GV, in removeFromUsedList()
H A DCtorUtils.cpp37 ArrayType *ATy = in removeGlobalCtors() local
39 Constant *CA = ConstantArray::get(ATy, CAList); in removeGlobalCtors()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DGetElementPtrTypeIterator.h114 if (auto *ATy = dyn_cast<ArrayType>(Ty)) variable
115 CurTy = ATy->getElementType();
H A DDataLayout.h681 ArrayType *ATy = cast<ArrayType>(Ty); in getTypeSizeInBits() local
682 return ATy->getNumElements() * in getTypeSizeInBits()
683 getTypeAllocSizeInBits(ATy->getElementType()); in getTypeSizeInBits()
/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DType.cpp61 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 DConstants.cpp1092 if (ArrayType *ATy = dyn_cast<ArrayType>(getType())) in getSequentialElement() local
1093 return UndefValue::get(ATy->getElementType()); in getSequentialElement()
1127 if (ArrayType *ATy = dyn_cast<ArrayType>(getType())) in getSequentialElement() local
1128 return PoisonValue::get(ATy->getElementType()); in getSequentialElement()
2635 if (ArrayType *ATy = dyn_cast<ArrayType>(getType())) in getElementType() local
2636 return ATy->getElementType(); in getElementType()
2692 if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) in getImpl() local
2693 assert(isElementTypeCompatible(ATy->getElementType())); in getImpl()
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DLoongArch.cpp148 if (const ConstantArrayType *ATy = getContext().getAsConstantArrayType(Ty)) { in detectFARsEligibleStructHelper() local
149 uint64_t ArraySize = ATy->getSize().getZExtValue(); in detectFARsEligibleStructHelper()
150 QualType EltTy = ATy->getElementType(); in detectFARsEligibleStructHelper()
H A DRISCV.cpp154 if (const ConstantArrayType *ATy = getContext().getAsConstantArrayType(Ty)) { in detectFPCCEligibleStructHelper() local
155 uint64_t ArraySize = ATy->getSize().getZExtValue(); in detectFPCCEligibleStructHelper()
156 QualType EltTy = ATy->getElementType(); in detectFPCCEligibleStructHelper()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/XCore/
H A DXCoreAsmPrinter.cpp92 if (ArrayType *ATy = dyn_cast<ArrayType>(GV->getValueType())) { in emitArrayBound() local
98 MCConstantExpr::create(ATy->getNumElements(), in emitArrayBound()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/
H A DTargetLoweringObjectFile.cpp266 if (ArrayType *ATy = dyn_cast<ArrayType>(C->getType())) { in getKindForGlobal() local
268 dyn_cast<IntegerType>(ATy->getElementType())) { in getKindForGlobal()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonTargetObjectFile.cpp307 const ArrayType *ATy = cast<const ArrayType>(Ty); in getSmallestAddressableSize() local
308 return getSmallestAddressableSize(ATy->getElementType(), GV, TM); in getSmallestAddressableSize()
H A DHexagonBitTracker.cpp64 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-14.2/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DDeadArgumentElimination.cpp346 if (ArrayType *ATy = dyn_cast<ArrayType>(RetTy)) in numRetVals() local
347 return ATy->getNumElements(); in numRetVals()
360 if (ArrayType *ATy = dyn_cast<ArrayType>(RetTy)) in getRetComponentType() local
361 return ATy->getElementType(); in getRetComponentType()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DLint.cpp452 Type *ATy = AI->getAllocatedType(); in visitMemoryReference() local
453 if (!AI->isArrayAllocation() && ATy->isSized()) in visitMemoryReference()
454 BaseSize = DL->getTypeAllocSize(ATy); in visitMemoryReference()
H A DModuleSummaryAnalysis.cpp681 ArrayType *ATy = C->getType(); in findFuncPointers() local
682 Type *EltTy = ATy->getElementType(); in findFuncPointers()
684 for (unsigned i = 0, e = ATy->getNumElements(); i != e; ++i) { in findFuncPointers()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlanTransforms.cpp828 Type *ATy = TypeInfo.inferScalarType(A); in simplifyRecipe() local
829 if (TruncTy == ATy) { in simplifyRecipe()
835 if (ATy->getScalarSizeInBits() < TruncTy->getScalarSizeInBits()) { in simplifyRecipe()
840 } else if (ATy->getScalarSizeInBits() > TruncTy->getScalarSizeInBits()) { in simplifyRecipe()
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprConstant.cpp413 if (llvm::ArrayType *ATy = dyn_cast<llvm::ArrayType>(DesiredTy)) { in buildFrom() local
419 CharUnits ElemSize = Utils.getSize(ATy->getElementType()); in buildFrom()
437 return EmitArrayConstant(CGM, ATy, CommonType, ATy->getNumElements(), in buildFrom()
2376 llvm::ArrayType *ATy = in EmitNullConstant() local
2385 return llvm::ConstantArray::get(ATy, Array); in EmitNullConstant()
H A DCGCall.cpp3668 static void setUsedBits(CodeGenModule &CGM, const ConstantArrayType *ATy, in setUsedBits() argument
3672 QualType ETy = Context.getBaseElementType(ATy); in setUsedBits()
3693 if (const auto *ATy = Context.getAsConstantArrayType(QTy)) in setUsedBits() local
3694 return setUsedBits(CGM, ATy, Offset, Bits); in setUsedBits()
3745 llvm::ArrayType *ATy, in EmitCMSEClearRecord() argument
3748 int Size = DataLayout.getTypeStoreSize(ATy); in EmitCMSEClearRecord()
3755 ATy->getArrayElementType()->getScalarSizeInBits() / CharWidth; in EmitCMSEClearRecord()
3757 llvm::Value *R = llvm::PoisonValue::get(ATy); in EmitCMSEClearRecord()
3758 for (int I = 0, N = ATy->getArrayNumElements(); I != N; ++I) { in EmitCMSEClearRecord()
5369 auto *ATy = dyn_cast<llvm::ArrayType>(Load->getType()); in EmitCall() local
[all …]
H A DCGDecl.cpp1265 } else if (auto *ATy = dyn_cast<llvm::ArrayType>(Ty)) { in emitStoresForConstant() local
1266 if (ATy == Loc.getElementType() || in emitStoresForConstant()
1267 (ATy != Loc.getElementType() && IsTrivialAutoVarInitPattern)) { in emitStoresForConstant()
1268 for (unsigned i = 0; i != ATy->getNumElements(); i++) { in emitStoresForConstant()
1270 Loc.withElementType(ATy->getElementType()), i); in emitStoresForConstant()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Demangle/
H A DMicrosoftDemangle.cpp2140 ArrayTypeNode *ATy = Arena.alloc<ArrayTypeNode>(); in demangleArrayType() local
2157 ATy->Dimensions = nodeListToNodeArray(Arena, Head, Rank); in demangleArrayType()
2161 std::tie(ATy->Quals, IsMember) = demangleQualifiers(MangledName); in demangleArrayType()
2168 ATy->ElementType = demangleType(MangledName, QualifierMangleMode::Drop); in demangleArrayType()
2169 return ATy; in demangleArrayType()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULowerModuleLDSPass.cpp1419 Type *ATy = ArrayType::get(Type::getInt8Ty(Ctx), Padding); in createLDSVariableReplacement() local
1421 M, ATy, false, GlobalValue::InternalLinkage, in createLDSVariableReplacement()
1422 PoisonValue::get(ATy), "", nullptr, GlobalValue::NotThreadLocal, in createLDSVariableReplacement()
/freebsd-14.2/contrib/llvm-project/clang/lib/AST/
H A DDeclPrinter.cpp177 else if (const ArrayType *ATy = dyn_cast<ArrayType>(BaseType)) in GetBaseType() local
178 BaseType = ATy->getElementType(); in GetBaseType()
185 else if (const AutoType *ATy = BaseType->getAs<AutoType>()) in GetBaseType() local
186 BaseType = ATy->getDeducedType(); in GetBaseType()
/freebsd-14.2/contrib/llvm-project/clang/lib/Sema/
H A DSemaStmtAsm.cpp768 if (const auto *ATy = Context.getAsArrayType(T)) in FillInlineAsmIdentifierInfo() local
769 Type = Context.getTypeSizeInChars(ATy->getElementType()).getQuantity(); in FillInlineAsmIdentifierInfo()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBTFDebug.h334 void visitArrayType(const DICompositeType *ATy, uint32_t &TypeId);

123