/external/llvm/lib/Target/ |
D | TargetLoweringObjectFile.cpp | 77 ArrayType *ATy = cast<ArrayType>(C->getType()); in IsNullTerminatedString() local 81 if (ATy->getNumElements() == 0) return false; in IsNullTerminatedString() 84 dyn_cast<ConstantInt>(CVA->getOperand(ATy->getNumElements()-1)); in IsNullTerminatedString() 89 for (unsigned i = 0, e = ATy->getNumElements()-1; i != e; ++i) in IsNullTerminatedString() 99 return ATy->getNumElements() == 1; in IsNullTerminatedString() 172 if (ArrayType *ATy = dyn_cast<ArrayType>(C->getType())) { in getKindForGlobal() local 174 dyn_cast<IntegerType>(ATy->getElementType())) { in getKindForGlobal()
|
D | TargetData.cpp | 399 ArrayType *ATy = cast<ArrayType>(Ty); in getTypeSizeInBits() local 400 return getTypeAllocSizeInBits(ATy->getElementType())*ATy->getNumElements(); in getTypeSizeInBits()
|
/external/llvm/lib/Transforms/Instrumentation/ |
D | EdgeProfiling.cpp | 77 Type *ATy = ArrayType::get(Type::getInt32Ty(M.getContext()), NumEdges); in runOnModule() local 79 new GlobalVariable(M, ATy, false, GlobalValue::InternalLinkage, in runOnModule() 80 Constant::getNullValue(ATy), "EdgeProfCounters"); in runOnModule()
|
D | OptimalEdgeProfiling.cpp | 116 ArrayType *ATy = ArrayType::get(Int32, NumEdges); in runOnModule() local 118 new GlobalVariable(M, ATy, false, GlobalValue::InternalLinkage, in runOnModule() 119 Constant::getNullValue(ATy), "OptEdgeProfCounters"); in runOnModule() 218 Constant *init = ConstantArray::get(ATy, Initializer); in runOnModule()
|
/external/llvm/lib/CodeGen/ |
D | Analysis.cpp | 55 else if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) { in ComputeLinearIndex() local 56 Type *EltTy = ATy->getElementType(); in ComputeLinearIndex() 57 for (unsigned i = 0, e = ATy->getNumElements(); i != e; ++i) { in ComputeLinearIndex() 91 if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) { in ComputeValueVTs() local 92 Type *EltTy = ATy->getElementType(); in ComputeValueVTs() 94 for (unsigned i = 0, e = ATy->getNumElements(); i != e; ++i) in ComputeValueVTs()
|
/external/llvm/lib/VMCore/ |
D | Type.cpp | 114 const ArrayType *ATy = dyn_cast<ArrayType>(this); in isEmptyTy() local 115 if (ATy) { in isEmptyTy() 116 unsigned NumElements = ATy->getNumElements(); in isEmptyTy() 117 return NumElements == 0 || ATy->getElementType()->isEmptyTy(); in isEmptyTy() 175 if (const ArrayType *ATy = dyn_cast<ArrayType>(this)) in isSizedDerivedType() local 176 return ATy->getElementType()->isSized(); in isSizedDerivedType()
|
D | Value.cpp | 383 ArrayType *ATy = dyn_cast<ArrayType>(Ty); in isDereferenceablePointer() local 384 if (!ATy) in isDereferenceablePointer() 388 if (CI->getZExtValue() >= ATy->getNumElements()) in isDereferenceablePointer()
|
D | ConstantFold.cpp | 337 if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) { in getFoldedSizeOf() local 338 Constant *N = ConstantInt::get(DestTy, ATy->getNumElements()); in getFoldedSizeOf() 339 Constant *E = getFoldedSizeOf(ATy->getElementType(), DestTy, true); in getFoldedSizeOf() 396 if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) { in getFoldedAlignOf() local 397 Constant *C = ConstantExpr::getAlignOf(ATy->getElementType()); in getFoldedAlignOf() 461 if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) { in getFoldedOffsetOf() local 465 Constant *E = getFoldedSizeOf(ATy->getElementType(), DestTy, true); in getFoldedOffsetOf() 1473 } else if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) { in isMaybeZeroSizedType() local 1474 return isMaybeZeroSizedType(ATy->getElementType()); in isMaybeZeroSizedType() 2275 if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) in ConstantFoldGetElementPtrImpl() local [all …]
|
D | Constants.cpp | 631 ArrayType *ATy = ArrayType::get(Type::getInt8Ty(Context), ElementVals.size()); in get() local 632 return get(ATy, ElementVals); in get() 764 if (ArrayType *ATy = dyn_cast<ArrayType>(*GEPI)) in isGEPWithNoNotionalOverIndexing() local 766 CI->getZExtValue() >= ATy->getNumElements()) in isGEPWithNoNotionalOverIndexing()
|
D | AsmWriter.cpp | 246 ArrayType *ATy = cast<ArrayType>(Ty); in print() local 247 OS << '[' << ATy->getNumElements() << " x "; in print() 248 print(ATy->getElementType(), OS); in print()
|
/external/llvm/tools/lto/ |
D | LTOCodeGenerator.cpp | 347 llvm::ArrayType *ATy = llvm::ArrayType::get(i8PTy, asmUsed2.size()); in applyScopeRestrictions() local 349 new llvm::GlobalVariable(*mergedModule, ATy, false, in applyScopeRestrictions() 351 llvm::ConstantArray::get(ATy, asmUsed2), in applyScopeRestrictions()
|
/external/llvm/lib/Transforms/IPO/ |
D | Inliner.cpp | 142 ArrayType *ATy = dyn_cast<ArrayType>(AI->getAllocatedType()); in InlineCallIfPossible() local 143 if (ATy == 0 || AI->isArrayAllocation()) in InlineCallIfPossible() 147 std::vector<AllocaInst*> &AllocasForType = InlinedArrayAllocas[ATy]; in InlineCallIfPossible()
|
D | GlobalOpt.cpp | 536 if (ArrayType *ATy = dyn_cast<ArrayType>(STy)) in SRAGlobal() local 537 NumElements = ATy->getNumElements(); in SRAGlobal() 2230 if (ArrayType *ATy = dyn_cast<ArrayType>(InitTy)) in EvaluateStoreInto() local 2231 NumElts = ATy->getNumElements(); in EvaluateStoreInto()
|
/external/llvm/lib/Analysis/ |
D | ConstantFolding.cpp | 654 if (SequentialType *ATy = dyn_cast<SequentialType>(Ty)) { in SymbolicallyEvaluateGEP() local 655 if (ATy->isPointerTy()) { in SymbolicallyEvaluateGEP() 661 if (!ATy->getElementType()->isSized()) in SymbolicallyEvaluateGEP() 666 APInt ElemSize(BitWidth, TD->getTypeAllocSize(ATy->getElementType())); in SymbolicallyEvaluateGEP() 680 Ty = ATy->getElementType(); in SymbolicallyEvaluateGEP() 1003 if (ArrayType *ATy = dyn_cast<ArrayType>(*I)) { in ConstantFoldLoadThroughGEPConstantExpr() local 1004 if (CI->getZExtValue() >= ATy->getNumElements()) in ConstantFoldLoadThroughGEPConstantExpr() 1009 C = Constant::getNullValue(ATy->getElementType()); in ConstantFoldLoadThroughGEPConstantExpr() 1011 C = UndefValue::get(ATy->getElementType()); in ConstantFoldLoadThroughGEPConstantExpr()
|
/external/llvm/lib/Target/XCore/ |
D | XCoreAsmPrinter.cpp | 91 if (ArrayType *ATy = dyn_cast<ArrayType>( in emitArrayBound() local 97 OutStreamer.EmitRawText(".globound," + Twine(ATy->getNumElements())); in emitArrayBound()
|
/external/llvm/lib/Bitcode/Reader/ |
D | BitcodeReader.cpp | 1258 } else if (ArrayType *ATy = dyn_cast<ArrayType>(CurTy)) { in ParseConstants() local 1259 Type *EltTy = ATy->getElementType(); in ParseConstants() 1262 V = ConstantArray::get(ATy, Elts); in ParseConstants() 1277 ArrayType *ATy = cast<ArrayType>(CurTy); in ParseConstants() local 1278 Type *EltTy = ATy->getElementType(); in ParseConstants() 1284 V = ConstantArray::get(ATy, Elts); in ParseConstants() 1291 ArrayType *ATy = cast<ArrayType>(CurTy); in ParseConstants() local 1292 Type *EltTy = ATy->getElementType(); in ParseConstants() 1299 V = ConstantArray::get(ATy, Elts); in ParseConstants()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineLoadStoreAlloca.cpp | 288 } else if (ArrayType *ATy = dyn_cast<ArrayType>(SrcPTy)) { in InstCombineStoreToCast() local 290 SrcPTy = ATy->getElementType(); in InstCombineStoreToCast()
|
D | InstCombineCalls.cpp | 90 } else if (ArrayType *ATy = dyn_cast<ArrayType>(SrcETy)) { in SimplifyMemTransfer() local 91 if (ATy->getNumElements() == 1) in SimplifyMemTransfer() 92 SrcETy = ATy->getElementType(); in SimplifyMemTransfer()
|
/external/llvm/lib/CodeGen/AsmPrinter/ |
D | DwarfCompileUnit.cpp | 634 DIType ATy(Args.getElement(i)); in addPubTypes() local 635 if (!ATy.Verify()) in addPubTypes() 637 addGlobalType(ATy); in addPubTypes()
|
D | DwarfDebug.cpp | 385 DIType ATy = DIType(DIType(Args.getElement(i))); in createSubprogramDIE() local 386 SPCU->addType(Arg, ATy); in createSubprogramDIE() 387 if (ATy.isArtificial()) in createSubprogramDIE() 483 DIType ATy = DIType(DIType(Args.getElement(i))); in updateSubprogramScopeDIE() local 484 SPCU->addType(Arg, ATy); in updateSubprogramScopeDIE() 485 if (ATy.isArtificial()) in updateSubprogramScopeDIE()
|
/external/clang/lib/AST/ |
D | DeclPrinter.cpp | 101 else if (const ArrayType* ATy = dyn_cast<ArrayType>(BaseType)) in GetBaseType() local 102 BaseType = ATy->getElementType(); in GetBaseType()
|
D | ASTContext.cpp | 3284 const ArrayType *ATy = dyn_cast<ArrayType>(split.first); in getAsArrayType() local 3285 if (ATy == 0 || qs.empty()) in getAsArrayType() 3286 return ATy; in getAsArrayType() 3290 QualType NewEltTy = getQualifiedType(ATy->getElementType(), qs); in getAsArrayType() 3292 if (const ConstantArrayType *CAT = dyn_cast<ConstantArrayType>(ATy)) in getAsArrayType() 3296 if (const IncompleteArrayType *IAT = dyn_cast<IncompleteArrayType>(ATy)) in getAsArrayType() 3302 = dyn_cast<DependentSizedArrayType>(ATy)) in getAsArrayType() 3310 const VariableArrayType *VAT = cast<VariableArrayType>(ATy); in getAsArrayType()
|
/external/llvm/lib/Transforms/Scalar/ |
D | ScalarReplAggregates.cpp | 2328 ArrayType *ATy = cast<ArrayType>(AllocaEltTy); in RewriteStoreUserOfWholeAlloca() local 2329 Type *ArrayEltTy = ATy->getElementType(); in RewriteStoreUserOfWholeAlloca() 2470 if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) { in HasPadding() local 2471 Ty = ATy->getElementType(); in HasPadding()
|
/external/clang/lib/CodeGen/ |
D | TargetInfo.cpp | 1507 if (llvm::ArrayType *ATy = dyn_cast<llvm::ArrayType>(IRType)) { in ContainsFloatAtOffset() local 1508 llvm::Type *EltTy = ATy->getElementType(); in ContainsFloatAtOffset() 1593 if (llvm::ArrayType *ATy = dyn_cast<llvm::ArrayType>(IRType)) { in GetINTEGERTypeAtOffset() local 1594 llvm::Type *EltTy = ATy->getElementType(); in GetINTEGERTypeAtOffset()
|
D | CGExprConstant.cpp | 1315 llvm::ArrayType *ATy = in EmitNullConstant() local 1317 return llvm::ConstantArray::get(ATy, Array); in EmitNullConstant()
|