/external/llvm/lib/Transforms/Utils/ |
H A D | ModuleUtils.cpp | 35 ArrayType *ATy = cast<ArrayType>(GVCtor->getType()->getElementType()); local 36 EltTy = cast<StructType>(ATy->getElementType());
|
/external/llvm/lib/IR/ |
H A D | AutoUpgrade.cpp | 177 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 D | Type.cpp | 99 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 D | ConstantFold.cpp | 339 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 D | Value.cpp | 534 ArrayType *ATy = dyn_cast<ArrayType>(Ty); local 535 if (!ATy) 539 if (CI->getZExtValue() >= ATy->getNumElements())
|
H A D | AsmWriter.cpp | 254 ArrayType *ATy = cast<ArrayType>(Ty); local 255 OS << '[' << ATy->getNumElements() << " x "; 256 print(ATy->getElementType(), OS);
|
H A D | Verifier.cpp | 419 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 D | Analysis.cpp | 55 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 D | DataLayout.h | 530 ArrayType *ATy = cast<ArrayType>(Ty); local 531 return ATy->getNumElements() * 532 getTypeAllocSizeInBits(ATy->getElementType());
|
/external/llvm/lib/Target/ |
H A D | TargetLoweringObjectFile.cpp | 182 if (ArrayType *ATy = dyn_cast<ArrayType>(C->getType())) { 184 dyn_cast<IntegerType>(ATy->getElementType())) {
|
/external/llvm/lib/Target/XCore/ |
H A D | XCoreAsmPrinter.cpp | 97 if (ArrayType *ATy = dyn_cast<ArrayType>( 104 MCConstantExpr::Create(ATy->getNumElements(),
|
/external/llvm/lib/LTO/ |
H A D | LTOCodeGenerator.cpp | 424 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 D | AliasSetTracker.cpp | 300 AliasSet::AccessType ATy = AliasSet::Refs; 305 ATy, NewPtr); 312 AliasSet::AccessType ATy = AliasSet::Mods; 318 ATy, NewPtr);
|
H A D | Lint.cpp | 426 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 D | ConstantFolding.cpp | 815 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 D | Inliner.cpp | 187 ArrayType *ATy = dyn_cast<ArrayType>(AI->getAllocatedType()); local 188 if (!ATy || AI->isArrayAllocation()) 192 std::vector<AllocaInst*> &AllocasForType = InlinedArrayAllocas[ATy];
|
H A D | GlobalOpt.cpp | 513 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 D | SemaStmtAsm.cpp | 417 const ArrayType *ATy = Context.getAsArrayType(T); local 418 Info.Type = Context.getTypeSizeInChars(ATy->getElementType()).getQuantity();
|
/external/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineLoadStoreAlloca.cpp | 505 } else if (ArrayType *ATy = dyn_cast<ArrayType>(SrcPTy)) { 507 SrcPTy = ATy->getElementType();
|
H A D | InstCombineCalls.cpp | 48 } else if (ArrayType *ATy = dyn_cast<ArrayType>(T)) { 49 if (ATy->getNumElements() == 1) 50 T = ATy->getElementType();
|
/external/clang/lib/CodeGen/ |
H A D | CGExprConstant.cpp | 1450 llvm::ArrayType *ATy = local 1459 return llvm::ConstantAggregateZero::get(ATy); 1462 return llvm::ConstantArray::get(ATy, Array);
|
/external/llvm/lib/Transforms/Scalar/ |
H A D | ScalarReplAggregates.cpp | 2389 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 D | DeclPrinter.cpp | 114 else if (const ArrayType* ATy = dyn_cast<ArrayType>(BaseType)) 115 BaseType = ATy->getElementType();
|
H A D | ASTContext.cpp | 4225 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 D | NVPTXAsmPrinter.cpp | 1710 const ArrayType *ATy = dyn_cast<ArrayType>(Ty); local 1711 if (ATy) 1712 return getOpenCLAlignment(TD, ATy->getElementType());
|