Home
last modified time | relevance | path

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

12

/openbsd/gnu/llvm/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()
/openbsd/gnu/llvm/llvm/lib/Transforms/Utils/
H A DModuleUtils.cpp102 ArrayType *ATy = ArrayType::get(ArrayEltTy, Init.size()); in appendToUsedList() local
103 GV = new llvm::GlobalVariable(M, ATy, false, GlobalValue::AppendingLinkage, in appendToUsedList()
104 ConstantArray::get(ATy, Init.getArrayRef()), in appendToUsedList()
135 ArrayType *ATy = ArrayType::get(ArrayEltTy, NewInit.size()); in removeFromUsedList() local
137 new GlobalVariable(M, ATy, false, GlobalValue::AppendingLinkage, in removeFromUsedList()
138 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()
/openbsd/gnu/llvm/llvm/include/llvm/IR/
H A DGetElementPtrTypeIterator.h80 if (auto *ATy = dyn_cast<ArrayType>(Ty)) variable
81 CurTy = ATy->getElementType();
H A DDataLayout.h684 ArrayType *ATy = cast<ArrayType>(Ty); in getTypeSizeInBits() local
685 return ATy->getNumElements() * in getTypeSizeInBits()
686 getTypeAllocSizeInBits(ATy->getElementType()); in getTypeSizeInBits()
/openbsd/gnu/llvm/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()
/openbsd/gnu/llvm/llvm/lib/IR/
H A DType.cpp147 if (auto *ATy = dyn_cast<ArrayType>(this)) { in isEmptyTy() local
148 unsigned NumElements = ATy->getNumElements(); in isEmptyTy()
149 return NumElements == 0 || ATy->getElementType()->isEmptyTy(); in isEmptyTy()
208 if (auto *ATy = dyn_cast<ArrayType>(this)) in isSizedDerivedType() local
209 return ATy->getElementType()->isSized(Visited); in isSizedDerivedType()
H A DConstants.cpp1106 if (ArrayType *ATy = dyn_cast<ArrayType>(getType())) in getSequentialElement() local
1107 return UndefValue::get(ATy->getElementType()); in getSequentialElement()
1141 if (ArrayType *ATy = dyn_cast<ArrayType>(getType())) in getSequentialElement() local
1142 return PoisonValue::get(ATy->getElementType()); in getSequentialElement()
2836 if (ArrayType *ATy = dyn_cast<ArrayType>(getType())) in getElementType() local
2837 return ATy->getElementType(); in getElementType()
2893 if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) in getImpl() local
2894 assert(isElementTypeCompatible(ATy->getElementType())); in getImpl()
/openbsd/gnu/llvm/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()
/openbsd/gnu/llvm/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()
/openbsd/gnu/llvm/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()
H A DHexagonLoopIdiomRecognition.cpp1441 auto *ATy = cast<IntegerType>(ShAmt->getType()); in convertShiftsToLeft() local
1446 if (VTy != ATy) { in convertShiftsToLeft()
1447 if (VTy->getBitWidth() < ATy->getBitWidth()) in convertShiftsToLeft()
1448 ShVal = upcast(CastMap, IRB, ShVal, ATy); in convertShiftsToLeft()
/openbsd/gnu/llvm/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.cpp609 ArrayType *ATy = C->getType(); in findFuncPointers() local
610 Type *EltTy = ATy->getElementType(); in findFuncPointers()
612 for (unsigned i = 0, e = ATy->getNumElements(); i != e; ++i) { in findFuncPointers()
H A DLoopAccessAnalysis.cpp1838 Type *ATy = getLoadStoreType(InstMap[AIdx]); in isDependent() local
1851 getPtrStride(PSE, ATy, APtr, InnermostLoop, Strides, true).value_or(0); in isDependent()
1862 std::swap(ATy, BTy); in isDependent()
1886 uint64_t TypeByteSize = DL.getTypeAllocSize(ATy); in isDependent()
1888 DL.getTypeStoreSizeInBits(ATy) == DL.getTypeStoreSizeInBits(BTy); in isDependent()
/openbsd/gnu/llvm/llvm/lib/Target/AMDGPU/
H A DAMDGPULowerModuleLDSPass.cpp1055 Type *ATy = ArrayType::get(Type::getInt8Ty(Ctx), Padding); in createLDSVariableReplacement() local
1057 M, ATy, false, GlobalValue::InternalLinkage, UndefValue::get(ATy), in createLDSVariableReplacement()
/openbsd/gnu/llvm/llvm/lib/Demangle/
H A DMicrosoftDemangle.cpp2075 ArrayTypeNode *ATy = Arena.alloc<ArrayTypeNode>(); in demangleArrayType() local
2092 ATy->Dimensions = nodeListToNodeArray(Arena, Head, Rank); in demangleArrayType()
2096 std::tie(ATy->Quals, IsMember) = demangleQualifiers(MangledName); in demangleArrayType()
2103 ATy->ElementType = demangleType(MangledName, QualifierMangleMode::Drop); in demangleArrayType()
2104 return ATy; in demangleArrayType()
/openbsd/gnu/llvm/clang/lib/CodeGen/
H A DCGExprConstant.cpp412 if (llvm::ArrayType *ATy = dyn_cast<llvm::ArrayType>(DesiredTy)) { in buildFrom() local
418 CharUnits ElemSize = Utils.getSize(ATy->getElementType()); in buildFrom()
436 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.cpp3432 static void setUsedBits(CodeGenModule &CGM, const ConstantArrayType *ATy, in setUsedBits() argument
3436 QualType ETy = Context.getBaseElementType(ATy); in setUsedBits()
3457 if (const auto *ATy = Context.getAsConstantArrayType(QTy)) in setUsedBits() local
3458 return setUsedBits(CGM, ATy, Offset, Bits); in setUsedBits()
3509 llvm::ArrayType *ATy, in EmitCMSEClearRecord() argument
3512 int Size = DataLayout.getTypeStoreSize(ATy); in EmitCMSEClearRecord()
3519 ATy->getArrayElementType()->getScalarSizeInBits() / CharWidth; in EmitCMSEClearRecord()
3521 llvm::Value *R = llvm::PoisonValue::get(ATy); in EmitCMSEClearRecord()
3522 for (int I = 0, N = ATy->getArrayNumElements(); I != N; ++I) { in EmitCMSEClearRecord()
5139 auto *ATy = dyn_cast<llvm::ArrayType>(Load->getType()); in EmitCall() local
[all …]
/openbsd/gnu/llvm/clang/lib/AST/
H A DDeclPrinter.cpp161 else if (const ArrayType *ATy = dyn_cast<ArrayType>(BaseType)) in GetBaseType() local
162 BaseType = ATy->getElementType(); in GetBaseType()
169 else if (const AutoType *ATy = BaseType->getAs<AutoType>()) in GetBaseType() local
170 BaseType = ATy->getDeducedType(); in GetBaseType()
H A DAPValue.cpp630 const ArrayType *ATy, in TryPrintAsStringLiteral() argument
635 QualType Ty = ATy->getElementType(); in TryPrintAsStringLiteral()
/openbsd/gnu/llvm/clang/lib/Sema/
H A DSemaStmtAsm.cpp766 if (const auto *ATy = Context.getAsArrayType(T)) in FillInlineAsmIdentifierInfo() local
767 Type = Context.getTypeSizeInChars(ATy->getElementType()).getQuantity(); in FillInlineAsmIdentifierInfo()
/openbsd/gnu/llvm/llvm/lib/Target/BPF/
H A DBTFDebug.h334 void visitArrayType(const DICompositeType *ATy, uint32_t &TypeId);

12