Searched refs:ATy (Results 1 - 25 of 38) sorted by relevance

12

/external/llvm/lib/Transforms/Utils/
H A DModuleUtils.cpp35 ArrayType *ATy = cast<ArrayType>(GVCtor->getType()->getElementType()); local
36 EltTy = cast<StructType>(ATy->getElementType());
/external/llvm/lib/IR/
H A DAutoUpgrade.cpp177 ArrayType *ATy = dyn_cast<ArrayType>(GV->getType()->getElementType()); local
179 ATy ? dyn_cast<StructType>(ATy->getElementType()) : nullptr;
211 assert(Initializers.size() == ATy->getNumElements());
214 ATy = ArrayType::get(NewTy, Initializers.size());
215 Constant *NewInit = ConstantArray::get(ATy, Initializers);
217 *GV->getParent(), ATy, GV->isConstant(), GV->getLinkage(), NewInit, "",
H A DType.cpp99 const ArrayType *ATy = dyn_cast<ArrayType>(this); local
100 if (ATy) {
101 unsigned NumElements = ATy->getNumElements();
102 return NumElements == 0 || ATy->getElementType()->isEmptyTy();
159 if (const ArrayType *ATy = dyn_cast<ArrayType>(this))
160 return ATy->getElementType()->isSized(Visited);
H A DConstantFold.cpp339 if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) {
340 Constant *N = ConstantInt::get(DestTy, ATy->getNumElements());
341 Constant *E = getFoldedSizeOf(ATy->getElementType(), DestTy, true);
398 if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) {
399 Constant *C = ConstantExpr::getAlignOf(ATy->getElementType());
463 if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) {
467 Constant *E = getFoldedSizeOf(ATy->getElementType(), DestTy, true);
1229 } else if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) {
1230 return isMaybeZeroSizedType(ATy->getElementType());
1938 if (const ArrayType *ATy
[all...]
H A DValue.cpp534 ArrayType *ATy = dyn_cast<ArrayType>(Ty); local
535 if (!ATy)
539 if (CI->getZExtValue() >= ATy->getNumElements())
H A DAsmWriter.cpp254 ArrayType *ATy = cast<ArrayType>(Ty); local
255 OS << '[' << ATy->getNumElements() << " x ";
256 print(ATy->getElementType(), OS);
H A DVerifier.cpp419 if (ArrayType *ATy = dyn_cast<ArrayType>(GV.getType()->getElementType())) {
420 StructType *STy = dyn_cast<StructType>(ATy->getElementType());
443 if (ArrayType *ATy = dyn_cast<ArrayType>(GVType)) {
444 PointerType *PTy = dyn_cast<PointerType>(ATy->getElementType());
/external/llvm/lib/CodeGen/
H A DAnalysis.cpp55 else if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) {
56 Type *EltTy = ATy->getElementType();
57 for (unsigned i = 0, e = ATy->getNumElements(); i != e; ++i) {
91 if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) {
92 Type *EltTy = ATy->getElementType();
94 for (unsigned i = 0, e = ATy->getNumElements(); i != e; ++i)
/external/llvm/include/llvm/IR/
H A DDataLayout.h530 ArrayType *ATy = cast<ArrayType>(Ty); local
531 return ATy->getNumElements() *
532 getTypeAllocSizeInBits(ATy->getElementType());
/external/llvm/lib/Target/
H A DTargetLoweringObjectFile.cpp182 if (ArrayType *ATy = dyn_cast<ArrayType>(C->getType())) {
184 dyn_cast<IntegerType>(ATy->getElementType())) {
/external/llvm/lib/Target/XCore/
H A DXCoreAsmPrinter.cpp97 if (ArrayType *ATy = dyn_cast<ArrayType>(
104 MCConstantExpr::Create(ATy->getNumElements(),
/external/llvm/lib/LTO/
H A DLTOCodeGenerator.cpp424 llvm::ArrayType *ATy = llvm::ArrayType::get(i8PTy, asmUsed2.size()); local
426 new llvm::GlobalVariable(*mergedModule, ATy, false,
428 llvm::ConstantArray::get(ATy, asmUsed2),
/external/llvm/lib/Analysis/
H A DAliasSetTracker.cpp300 AliasSet::AccessType ATy = AliasSet::Refs;
305 ATy, NewPtr);
312 AliasSet::AccessType ATy = AliasSet::Mods;
318 ATy, NewPtr);
H A DLint.cpp426 Type *ATy = AI->getAllocatedType(); local
427 if (DL && !AI->isArrayAllocation() && ATy->isSized())
428 BaseSize = DL->getTypeAllocSize(ATy);
430 if (DL && BaseAlign == 0 && ATy->isSized())
431 BaseAlign = DL->getABITypeAlignment(ATy);
H A DConstantFolding.cpp815 if (SequentialType *ATy = dyn_cast<SequentialType>(Ty)) {
816 if (ATy->isPointerTy()) {
822 if (!ATy->getElementType()->isSized())
827 APInt ElemSize(BitWidth, TD->getTypeAllocSize(ATy->getElementType()));
840 Ty = ATy->getElementType();
/external/llvm/lib/Transforms/IPO/
H A DInliner.cpp187 ArrayType *ATy = dyn_cast<ArrayType>(AI->getAllocatedType()); local
188 if (!ATy || AI->isArrayAllocation())
192 std::vector<AllocaInst*> &AllocasForType = InlinedArrayAllocas[ATy];
H A DGlobalOpt.cpp513 if (ArrayType *ATy = dyn_cast<ArrayType>(STy))
514 NumElements = ATy->getNumElements();
2140 if (ArrayType *ATy = dyn_cast<ArrayType>(InitTy))
2141 NumElts = ATy->getNumElements();
2735 ArrayType *ATy = ArrayType::get(Int8PtrTy, UsedArray.size()); local
2740 new GlobalVariable(*M, ATy, false, llvm::GlobalValue::AppendingLinkage,
2741 llvm::ConstantArray::get(ATy, UsedArray), "");
/external/clang/lib/Sema/
H A DSemaStmtAsm.cpp417 const ArrayType *ATy = Context.getAsArrayType(T); local
418 Info.Type = Context.getTypeSizeInChars(ATy->getElementType()).getQuantity();
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp505 } else if (ArrayType *ATy = dyn_cast<ArrayType>(SrcPTy)) {
507 SrcPTy = ATy->getElementType();
H A DInstCombineCalls.cpp48 } else if (ArrayType *ATy = dyn_cast<ArrayType>(T)) {
49 if (ATy->getNumElements() == 1)
50 T = ATy->getElementType();
/external/clang/lib/CodeGen/
H A DCGExprConstant.cpp1450 llvm::ArrayType *ATy = local
1459 return llvm::ConstantAggregateZero::get(ATy);
1462 return llvm::ConstantArray::get(ATy, Array);
/external/llvm/lib/Transforms/Scalar/
H A DScalarReplAggregates.cpp2389 ArrayType *ATy = cast<ArrayType>(AllocaEltTy); local
2390 Type *ArrayEltTy = ATy->getElementType();
2532 if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) {
2533 Ty = ATy->getElementType();
/external/clang/lib/AST/
H A DDeclPrinter.cpp114 else if (const ArrayType* ATy = dyn_cast<ArrayType>(BaseType))
115 BaseType = ATy->getElementType();
H A DASTContext.cpp4225 const ArrayType *ATy = dyn_cast<ArrayType>(split.Ty); local
4226 if (!ATy || qs.empty())
4227 return ATy;
4231 QualType NewEltTy = getQualifiedType(ATy->getElementType(), qs);
4233 if (const ConstantArrayType *CAT = dyn_cast<ConstantArrayType>(ATy))
4237 if (const IncompleteArrayType *IAT = dyn_cast<IncompleteArrayType>(ATy))
4243 = dyn_cast<DependentSizedArrayType>(ATy))
4251 const VariableArrayType *VAT = cast<VariableArrayType>(ATy);
/external/llvm/lib/Target/NVPTX/
H A DNVPTXAsmPrinter.cpp1710 const ArrayType *ATy = dyn_cast<ArrayType>(Ty); local
1711 if (ATy)
1712 return getOpenCLAlignment(TD, ATy->getElementType());

Completed in 359 milliseconds

12