Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/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()
102 if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) { in ComputeValueVTs() local
103 Type *EltTy = ATy->getElementType(); in ComputeValueVTs()
105 for (unsigned i = 0, e = ATy->getNumElements(); i != e; ++i) in ComputeValueVTs()
147 if (ArrayType *ATy = dyn_cast<ArrayType>(&Ty)) { in computeValueLLTs() local
148 Type *EltTy = ATy->getElementType(); in computeValueLLTs()
150 for (unsigned i = 0, e = ATy->getNumElements(); i != e; ++i) in computeValueLLTs()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPULowerModuleLDSPass.cpp91 ArrayType *ATy = in removeFromUsedList() local
94 new llvm::GlobalVariable(M, ATy, false, GlobalValue::AppendingLinkage, in removeFromUsedList()
95 ConstantArray::get(ATy, Init), Name); in removeFromUsedList()
338 Type *ATy = ArrayType::get(Type::getInt8Ty(Ctx), Padding); in createLDSVariableReplacement() local
340 M, ATy, false, GlobalValue::InternalLinkage, UndefValue::get(ATy), in createLDSVariableReplacement()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DGetElementPtrTypeIterator.h80 if (auto *ATy = dyn_cast<ArrayType>(Ty)) variable
81 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()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DCtorUtils.cpp37 ArrayType *ATy = in removeGlobalCtors() local
39 Constant *CA = ConstantArray::get(ATy, CAList); in removeGlobalCtors()
H A DModuleUtils.cpp99 ArrayType *ATy = ArrayType::get(Int8PtrTy, Init.size()); in appendToUsedList() local
100 GV = new llvm::GlobalVariable(M, ATy, false, GlobalValue::AppendingLinkage, in appendToUsedList()
101 ConstantArray::get(ATy, Init), Name); in appendToUsedList()
/llvm-project-15.0.7/llvm/lib/IR/
H A DType.cpp148 if (auto *ATy = dyn_cast<ArrayType>(this)) { in isEmptyTy() local
149 unsigned NumElements = ATy->getNumElements(); in isEmptyTy()
150 return NumElements == 0 || ATy->getElementType()->isEmptyTy(); in isEmptyTy()
209 if (auto *ATy = dyn_cast<ArrayType>(this)) in isSizedDerivedType() local
210 return ATy->getElementType()->isSized(Visited); in isSizedDerivedType()
H A DConstants.cpp1098 if (ArrayType *ATy = dyn_cast<ArrayType>(getType())) in getSequentialElement() local
1099 return UndefValue::get(ATy->getElementType()); in getSequentialElement()
1133 if (ArrayType *ATy = dyn_cast<ArrayType>(getType())) in getSequentialElement() local
1134 return PoisonValue::get(ATy->getElementType()); in getSequentialElement()
2843 if (ArrayType *ATy = dyn_cast<ArrayType>(getType())) in getElementType() local
2844 return ATy->getElementType(); in getElementType()
2900 if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) in getImpl() local
2901 assert(isElementTypeCompatible(ATy->getElementType())); in getImpl()
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DDeadArgumentElimination.cpp339 if (ArrayType *ATy = dyn_cast<ArrayType>(RetTy)) in numRetVals() local
340 return ATy->getNumElements(); in numRetVals()
353 if (ArrayType *ATy = dyn_cast<ArrayType>(RetTy)) in getRetComponentType() local
354 return ATy->getElementType(); in getRetComponentType()
H A DInliner.cpp233 ArrayType *ATy = dyn_cast<ArrayType>(AI->getAllocatedType()); in mergeInlinedArrayAllocas() local
234 if (!ATy || AI->isArrayAllocation()) in mergeInlinedArrayAllocas()
238 std::vector<AllocaInst *> &AllocasForType = InlinedArrayAllocas[ATy]; in mergeInlinedArrayAllocas()
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/llvm/unittests/IR/
H A DConstantsTest.cpp708 ArrayType *ATy = ArrayType::get(Int32Ty, 2); in TEST() local
735 Constant *CUU = ConstantArray::get(ATy, {CU, CU}); in TEST()
736 Constant *CPP = ConstantArray::get(ATy, {CP, CP}); in TEST()
737 Constant *CUP = ConstantArray::get(ATy, {CU, CP}); in TEST()
738 Constant *CPU = ConstantArray::get(ATy, {CP, CU}); in TEST()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DLint.cpp450 Type *ATy = AI->getAllocatedType(); in visitMemoryReference() local
451 if (!AI->isArrayAllocation() && ATy->isSized()) in visitMemoryReference()
452 BaseSize = DL->getTypeAllocSize(ATy); in visitMemoryReference()
H A DModuleSummaryAnalysis.cpp551 ArrayType *ATy = C->getType(); in findFuncPointers() local
552 Type *EltTy = ATy->getElementType(); in findFuncPointers()
554 for (unsigned i = 0, e = ATy->getNumElements(); i != e; ++i) { in findFuncPointers()
H A DLoopAccessAnalysis.cpp1785 Type *ATy = getLoadStoreType(InstMap[AIdx]); in isDependent() local
1798 getPtrStride(PSE, ATy, APtr, InnermostLoop, Strides, true); in isDependent()
1809 std::swap(ATy, BTy); in isDependent()
1832 uint64_t TypeByteSize = DL.getTypeAllocSize(ATy); in isDependent()
1834 DL.getTypeStoreSizeInBits(ATy) == DL.getTypeStoreSizeInBits(BTy); in isDependent()
/llvm-project-15.0.7/llvm/lib/Demangle/
H A DMicrosoftDemangle.cpp2083 ArrayTypeNode *ATy = Arena.alloc<ArrayTypeNode>(); in demangleArrayType() local
2100 ATy->Dimensions = nodeListToNodeArray(Arena, Head, Rank); in demangleArrayType()
2104 std::tie(ATy->Quals, IsMember) = demangleQualifiers(MangledName); in demangleArrayType()
2111 ATy->ElementType = demangleType(MangledName, QualifierMangleMode::Drop); in demangleArrayType()
2112 return ATy; in demangleArrayType()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGExprConstant.cpp411 if (llvm::ArrayType *ATy = dyn_cast<llvm::ArrayType>(DesiredTy)) { in buildFrom() local
417 CharUnits ElemSize = Utils.getSize(ATy->getElementType()); in buildFrom()
435 return EmitArrayConstant(CGM, ATy, CommonType, ATy->getNumElements(), in buildFrom()
2352 llvm::ArrayType *ATy = in EmitNullConstant() local
2361 return llvm::ConstantArray::get(ATy, Array); in EmitNullConstant()
H A DCGCall.cpp3382 static void setUsedBits(CodeGenModule &CGM, const ConstantArrayType *ATy, in setUsedBits() argument
3386 QualType ETy = Context.getBaseElementType(ATy); in setUsedBits()
3407 if (const auto *ATy = Context.getAsConstantArrayType(QTy)) in setUsedBits() local
3408 return setUsedBits(CGM, ATy, Offset, Bits); in setUsedBits()
3459 llvm::ArrayType *ATy, in EmitCMSEClearRecord() argument
3462 int Size = DataLayout.getTypeStoreSize(ATy); in EmitCMSEClearRecord()
3469 ATy->getArrayElementType()->getScalarSizeInBits() / CharWidth; in EmitCMSEClearRecord()
3471 llvm::Value *R = llvm::PoisonValue::get(ATy); in EmitCMSEClearRecord()
3472 for (int I = 0, N = ATy->getArrayNumElements(); I != N; ++I) { in EmitCMSEClearRecord()
5071 auto *ATy = dyn_cast<llvm::ArrayType>(Load->getType()); in EmitCall() local
[all …]
/llvm-project-15.0.7/clang/lib/AST/
H A DDeclPrinter.cpp159 else if (const ArrayType *ATy = dyn_cast<ArrayType>(BaseType)) in GetBaseType() local
160 BaseType = ATy->getElementType(); in GetBaseType()
167 else if (const AutoType *ATy = BaseType->getAs<AutoType>()) in GetBaseType() local
168 BaseType = ATy->getDeducedType(); in GetBaseType()
H A DAPValue.cpp630 const ArrayType *ATy, in TryPrintAsStringLiteral() argument
635 QualType Ty = ATy->getElementType(); in TryPrintAsStringLiteral()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaStmtAsm.cpp760 if (const auto *ATy = Context.getAsArrayType(T)) in FillInlineAsmIdentifierInfo() local
761 Type = Context.getTypeSizeInChars(ATy->getElementType()).getQuantity(); in FillInlineAsmIdentifierInfo()
/llvm-project-15.0.7/llvm/lib/Target/BPF/
H A DBTFDebug.h334 void visitArrayType(const DICompositeType *ATy, uint32_t &TypeId);

12