Home
last modified time | relevance | path

Searched refs:ATy (Results 1 – 25 of 57) 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/Transforms/Utils/
H A DModuleUtils.cpp107 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 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.h681 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 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.cpp1149 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 DLoongArch.cpp148 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 DRISCV.cpp154 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 DXCoreAsmPrinter.cpp92 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 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/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/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DDeadArgumentElimination.cpp344 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 DDXILIntrinsicExpansion.cpp80 [[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 DLint.cpp438 Type *ATy = AI->getAllocatedType(); in visitMemoryReference() local
439 if (!AI->isArrayAllocation() && ATy->isSized()) in visitMemoryReference()
440 BaseSize = DL->getTypeAllocSize(ATy); in visitMemoryReference()
H A DModuleSummaryAnalysis.cpp724 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 DLoopAccessAnalysis.cpp1912 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 DVPlanTransforms.cpp1008 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 DAMDGPULowerModuleLDSPass.cpp1209 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 DMicrosoftDemangle.cpp2152 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 DCGCall.cpp3676 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 DCGExprConstant.cpp414 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 DDeclPrinter.cpp165 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()

123