Home
last modified time | relevance | path

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

123

/freebsd/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()
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 DSemaWasm.cpp32 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/IR/
H A DType.cpp63 if (const auto *ATy = dyn_cast<ArrayType>(this)) in isScalableTy() local
64 return ATy->getElementType()->isScalableTy(Visited); in isScalableTy()
77 if (const auto *ATy = dyn_cast<ArrayType>(this)) in containsNonGlobalTargetExtType() local
78 return ATy->getElementType()->containsNonGlobalTargetExtType(Visited); in containsNonGlobalTargetExtType()
93 if (const auto *ATy = dyn_cast<ArrayType>(this)) in containsNonLocalTargetExtType() local
94 return ATy->getElementType()->containsNonLocalTargetExtType(Visited); in containsNonLocalTargetExtType()
182 if (auto *ATy = dyn_cast<ArrayType>(this)) { in isEmptyTy() local
183 unsigned NumElements = ATy->getNumElements(); in isEmptyTy()
184 return NumElements == 0 || ATy->getElementType()->isEmptyTy(); in isEmptyTy()
265 if (auto *ATy = dyn_cast<ArrayType>(this)) in isSizedDerivedType() local
[all …]
H A DConstants.cpp1170 if (ArrayType *ATy = dyn_cast<ArrayType>(getType())) in getSequentialElement() local
1171 return UndefValue::get(ATy->getElementType()); in getSequentialElement()
1205 if (ArrayType *ATy = dyn_cast<ArrayType>(getType())) in getSequentialElement() local
1206 return PoisonValue::get(ATy->getElementType()); in getSequentialElement()
2816 if (ArrayType *ATy = dyn_cast<ArrayType>(getType())) in getElementType() local
2817 return ATy->getElementType(); in getElementType()
2871 if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) in getImpl() local
2872 assert(isElementTypeCompatible(ATy->getElementType())); in getImpl()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DModuleUtils.cpp151 ArrayType *ATy = ArrayType::get(ArrayEltTy, Init.size()); in appendToUsedList() local
152 GV = new llvm::GlobalVariable(M, ATy, false, GlobalValue::AppendingLinkage, in appendToUsedList()
153 ConstantArray::get(ATy, Init.getArrayRef()), in appendToUsedList()
184 ArrayType *ATy = ArrayType::get(ArrayEltTy, NewInit.size()); in removeFromUsedList() local
186 new GlobalVariable(M, ATy, false, GlobalValue::AppendingLinkage, in removeFromUsedList()
187 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/contrib/llvm-project/llvm/include/llvm/IR/
H A DGetElementPtrTypeIterator.h114 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 DDataLayout.h683 ArrayType *ATy = cast<ArrayType>(Ty); in getTypeSizeInBits() local
684 return ATy->getNumElements() * in getTypeSizeInBits()
685 getTypeAllocSizeInBits(ATy->getElementType()); in getTypeSizeInBits()
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/
H A DDXILIntrinsicExpansion.cpp201 Type *ATy = A->getType(); in expandFloatDotIntrinsic() local
203 assert(ATy->isVectorTy() && BTy->isVectorTy()); in expandFloatDotIntrinsic()
207 auto *AVec = dyn_cast<FixedVectorType>(ATy); in expandFloatDotIntrinsic()
209 assert(ATy->getScalarType()->isFloatingPointTy()); in expandFloatDotIntrinsic()
234 return Builder.CreateIntrinsic(ATy->getScalarType(), DotIntrinsic, Args, in expandFloatDotIntrinsic()
253 Type *ATy = A->getType(); in expandIntegerDotIntrinsic() local
255 assert(ATy->isVectorTy() && BTy->isVectorTy()); in expandIntegerDotIntrinsic()
259 auto *AVec = dyn_cast<FixedVectorType>(ATy); in expandIntegerDotIntrinsic()
261 assert(ATy->getScalarType()->isIntegerTy()); in expandIntegerDotIntrinsic()
H A DDXILCBufferAccess.cpp100 if (auto *ATy = dyn_cast<ArrayType>(Member->getValueType())) in getOffsetForCBufferGEP() local
102 hlsl::translateCBufArrayOffset(DL, ConstantOffset, ATy); in getOffsetForCBufferGEP()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DLoongArch.cpp147 if (const ConstantArrayType *ATy = getContext().getAsConstantArrayType(Ty)) { in detectFARsEligibleStructHelper() local
148 uint64_t ArraySize = ATy->getZExtSize(); in detectFARsEligibleStructHelper()
149 QualType EltTy = ATy->getElementType(); in detectFARsEligibleStructHelper()
H A DRISCV.cpp225 if (const ConstantArrayType *ATy = getContext().getAsConstantArrayType(Ty)) { in detectFPCCEligibleStructHelper() local
226 uint64_t ArraySize = ATy->getZExtSize(); in detectFPCCEligibleStructHelper()
227 QualType EltTy = ATy->getElementType(); in detectFPCCEligibleStructHelper()
/freebsd/contrib/llvm-project/llvm/lib/Target/XCore/
H A DXCoreAsmPrinter.cpp89 if (ArrayType *ATy = dyn_cast<ArrayType>(GV->getValueType())) { in emitArrayBound() local
95 MCConstantExpr::create(ATy->getNumElements(), in emitArrayBound()
/freebsd/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.cpp54 Type *ATy = Arg.getType(); in HexagonEvaluator() local
56 if (ATy->isIntegerTy()) in HexagonEvaluator()
57 Width = ATy->getIntegerBitWidth(); in HexagonEvaluator()
58 else if (ATy->isPointerTy()) in HexagonEvaluator()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DLint.cpp461 Type *ATy = AI->getAllocatedType(); in visitMemoryReference() local
462 if (!AI->isArrayAllocation() && ATy->isSized() && !ATy->isScalableTy()) in visitMemoryReference()
463 BaseSize = DL->getTypeAllocSize(ATy).getFixedValue(); in visitMemoryReference()
H A DLoopAccessAnalysis.cpp2002 Type *ATy = getLoadStoreType(AInst); in getDependenceDistanceStrideAndSize() local
2011 getPtrStride(PSE, ATy, APtr, InnermostLoop, SymbolicStrides, true, true); in getDependenceDistanceStrideAndSize()
2024 std::swap(ATy, BTy); in getDependenceDistanceStrideAndSize()
2064 TypeSize AStoreSz = DL.getTypeStoreSize(ATy); in getDependenceDistanceStrideAndSize()
2069 uint64_t ASz = DL.getTypeAllocSize(ATy); in getDependenceDistanceStrideAndSize()
2103 Type *ATy = getLoadStoreType(InstMap[AIdx]); in isDependent() local
2107 return areAccessesCompletelyBeforeOrAfter(Src, ATy, Sink, BTy); in isDependent()
H A DModuleSummaryAnalysis.cpp773 ArrayType *ATy = C->getType(); in findFuncPointers() local
774 Type *EltTy = ATy->getElementType(); in findFuncPointers()
776 for (unsigned i = 0, e = ATy->getNumElements(); i != e; ++i) { in findFuncPointers()
/freebsd/contrib/llvm-project/llvm/lib/Target/
H A DTargetLoweringObjectFile.cpp293 if (ArrayType *ATy = dyn_cast<ArrayType>(C->getType())) { in getKindForGlobal() local
295 dyn_cast<IntegerType>(ATy->getElementType())) { in getKindForGlobal()
/freebsd/contrib/llvm-project/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()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULowerModuleLDSPass.cpp1336 Type *ATy = ArrayType::get(Type::getInt8Ty(Ctx), Padding); in createLDSVariableReplacement() local
1338 M, ATy, false, GlobalValue::InternalLinkage, in createLDSVariableReplacement()
1339 PoisonValue::get(ATy), "", nullptr, GlobalValue::NotThreadLocal, in createLDSVariableReplacement()
/freebsd/contrib/llvm-project/llvm/lib/Demangle/
H A DMicrosoftDemangle.cpp2208 ArrayTypeNode *ATy = Arena.alloc<ArrayTypeNode>(); in demangleArrayType() local
2225 ATy->Dimensions = nodeListToNodeArray(Arena, Head, Rank); in demangleArrayType()
2229 std::tie(ATy->Quals, IsMember) = demangleQualifiers(MangledName); in demangleArrayType()
2236 ATy->ElementType = demangleType(MangledName, QualifierMangleMode::Drop); in demangleArrayType()
2237 return ATy; in demangleArrayType()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DDeclPrinter.cpp169 else if (const ArrayType *ATy = dyn_cast<ArrayType>(BaseType)) in GetBaseType() local
170 BaseType = ATy->getElementType(); in GetBaseType()
177 else if (const AutoType *ATy = BaseType->getAs<AutoType>()) in GetBaseType() local
178 BaseType = ATy->getDeducedType(); in GetBaseType()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGCall.cpp3837 static void setUsedBits(CodeGenModule &CGM, const ConstantArrayType *ATy, in setUsedBits() argument
3841 QualType ETy = Context.getBaseElementType(ATy); in setUsedBits()
3846 for (int I = 0, N = Context.getConstantArrayElementCount(ATy); I < N; ++I) { in setUsedBits()
3862 if (const auto *ATy = Context.getAsConstantArrayType(QTy)) in setUsedBits() local
3863 return setUsedBits(CGM, ATy, Offset, Bits); in setUsedBits()
3914 llvm::ArrayType *ATy, in EmitCMSEClearRecord() argument
3917 int Size = DataLayout.getTypeStoreSize(ATy); in EmitCMSEClearRecord()
3924 ATy->getArrayElementType()->getScalarSizeInBits() / CharWidth; in EmitCMSEClearRecord()
3926 llvm::Value *R = llvm::PoisonValue::get(ATy); in EmitCMSEClearRecord()
3927 for (int I = 0, N = ATy->getArrayNumElements(); I != N; ++I) { in EmitCMSEClearRecord()
[all …]
H A DCGExprConstant.cpp421 if (llvm::ArrayType *ATy = dyn_cast<llvm::ArrayType>(DesiredTy)) { in buildFrom() local
427 CharUnits ElemSize = Utils.getSize(ATy->getElementType()); in buildFrom()
445 return EmitArrayConstant(CGM, ATy, CommonType, ATy->getNumElements(), in buildFrom()
2737 llvm::ArrayType *ATy = in EmitNullConstant() local
2746 return llvm::ConstantArray::get(ATy, Array); in EmitNullConstant()

123