Home
last modified time | relevance | path

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

12

/external/llvm/lib/CodeGen/
DAnalysis.cpp58 else if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) { in ComputeLinearIndex() local
59 Type *EltTy = ATy->getElementType(); in ComputeLinearIndex()
60 unsigned NumElts = ATy->getNumElements(); in ComputeLinearIndex()
100 if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) { in ComputeValueVTs() local
101 Type *EltTy = ATy->getElementType(); in ComputeValueVTs()
103 for (unsigned i = 0, e = ATy->getNumElements(); i != e; ++i) in ComputeValueVTs()
/external/llvm/lib/Transforms/Utils/
DModuleUtils.cpp36 ArrayType *ATy = cast<ArrayType>(GVCtor->getType()->getElementType()); in appendToGlobalArray() local
37 EltTy = cast<StructType>(ATy->getElementType()); in appendToGlobalArray()
DCtorUtils.cpp39 ArrayType *ATy = in removeGlobalCtors() local
41 Constant *CA = ConstantArray::get(ATy, CAList); in removeGlobalCtors()
/external/llvm/include/llvm/IR/
DDataLayout.h513 ArrayType *ATy = cast<ArrayType>(Ty); in getTypeSizeInBits() local
514 return ATy->getNumElements() * in getTypeSizeInBits()
515 getTypeAllocSizeInBits(ATy->getElementType()); in getTypeSizeInBits()
/external/llvm/lib/IR/
DType.cpp103 const ArrayType *ATy = dyn_cast<ArrayType>(this); in isEmptyTy() local
104 if (ATy) { in isEmptyTy()
105 unsigned NumElements = ATy->getNumElements(); in isEmptyTy()
106 return NumElements == 0 || ATy->getElementType()->isEmptyTy(); in isEmptyTy()
163 if (const ArrayType *ATy = dyn_cast<ArrayType>(this)) in isSizedDerivedType() local
164 return ATy->getElementType()->isSized(Visited); in isSizedDerivedType()
DConstantFold.cpp353 if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) { in getFoldedSizeOf() local
354 Constant *N = ConstantInt::get(DestTy, ATy->getNumElements()); in getFoldedSizeOf()
355 Constant *E = getFoldedSizeOf(ATy->getElementType(), DestTy, true); in getFoldedSizeOf()
412 if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) { in getFoldedAlignOf() local
413 Constant *C = ConstantExpr::getAlignOf(ATy->getElementType()); in getFoldedAlignOf()
477 if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) { in getFoldedOffsetOf() local
481 Constant *E = getFoldedSizeOf(ATy->getElementType(), DestTy, true); in getFoldedOffsetOf()
1267 } else if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) { in isMaybeZeroSizedType() local
1268 return isMaybeZeroSizedType(ATy->getElementType()); in isMaybeZeroSizedType()
2002 if (const ArrayType *ATy = dyn_cast<ArrayType>(STy)) in isIndexInRangeOfSequentialType() local
[all …]
DValue.cpp559 ArrayType *ATy = dyn_cast<ArrayType>(Ty); in isDereferenceablePointer() local
560 if (!ATy) in isDereferenceablePointer()
564 if (CI->getZExtValue() >= ATy->getNumElements()) in isDereferenceablePointer()
/external/llvm/lib/Transforms/Instrumentation/
DInstrProfiling.cpp322 ArrayType *ATy = ArrayType::get(i8PTy, MergedVars.size()); in emitUses() local
324 *M, ATy, false, llvm::GlobalValue::AppendingLinkage, in emitUses()
325 llvm::ConstantArray::get(ATy, MergedVars), "llvm.used"); in emitUses()
/external/llvm/lib/Target/
DTargetLoweringObjectFile.cpp183 if (ArrayType *ATy = dyn_cast<ArrayType>(C->getType())) { in getKindForGlobal() local
185 dyn_cast<IntegerType>(ATy->getElementType())) { in getKindForGlobal()
/external/llvm/lib/Analysis/
DAliasSetTracker.cpp317 AliasSet::AccessType ATy = AliasSet::Refs; in add() local
321 AAInfo, ATy, NewPtr); in add()
332 AliasSet::AccessType ATy = AliasSet::Mods; in add() local
337 AAInfo, ATy, NewPtr); in add()
DLint.cpp442 Type *ATy = AI->getAllocatedType(); in visitMemoryReference() local
443 if (!AI->isArrayAllocation() && ATy->isSized()) in visitMemoryReference()
444 BaseSize = DL.getTypeAllocSize(ATy); in visitMemoryReference()
446 if (BaseAlign == 0 && ATy->isSized()) in visitMemoryReference()
447 BaseAlign = DL.getABITypeAlignment(ATy); in visitMemoryReference()
DLoopAccessAnalysis.cpp733 Type *ATy = APtr->getType()->getPointerElementType(); in isDependent() local
736 unsigned TypeByteSize = DL.getTypeAllocSize(ATy); in isDependent()
744 ATy != BTy)) in isDependent()
754 if (ATy == BTy) in isDependent()
762 if (ATy != BTy) { in isDependent()
DConstantFolding.cpp813 if (SequentialType *ATy = dyn_cast<SequentialType>(Ty)) { in SymbolicallyEvaluateGEP() local
814 if (ATy->isPointerTy()) { in SymbolicallyEvaluateGEP()
820 if (!ATy->getElementType()->isSized()) in SymbolicallyEvaluateGEP()
825 APInt ElemSize(BitWidth, DL.getTypeAllocSize(ATy->getElementType())); in SymbolicallyEvaluateGEP()
838 Ty = ATy->getElementType(); in SymbolicallyEvaluateGEP()
/external/llvm/lib/Target/XCore/
DXCoreAsmPrinter.cpp96 if (ArrayType *ATy = dyn_cast<ArrayType>( in emitArrayBound() local
103 MCConstantExpr::Create(ATy->getNumElements(), in emitArrayBound()
/external/llvm/lib/Transforms/IPO/
DInliner.cpp182 ArrayType *ATy = dyn_cast<ArrayType>(AI->getAllocatedType()); in InlineCallIfPossible() local
183 if (!ATy || AI->isArrayAllocation()) in InlineCallIfPossible()
187 std::vector<AllocaInst*> &AllocasForType = InlinedArrayAllocas[ATy]; in InlineCallIfPossible()
DDeadArgumentElimination.cpp395 else if (ArrayType *ATy = dyn_cast<ArrayType>(RetTy)) in NumRetVals() local
396 return ATy->getNumElements(); in NumRetVals()
410 else if (ArrayType *ATy = dyn_cast<ArrayType>(RetTy)) in getRetComponentType() local
411 return ATy->getElementType(); in getRetComponentType()
DGlobalOpt.cpp513 if (ArrayType *ATy = dyn_cast<ArrayType>(STy)) in SRAGlobal() local
514 NumElements = ATy->getNumElements(); in SRAGlobal()
2133 if (ArrayType *ATy = dyn_cast<ArrayType>(InitTy)) in EvaluateStoreInto() local
2134 NumElts = ATy->getNumElements(); in EvaluateStoreInto()
2736 ArrayType *ATy = ArrayType::get(Int8PtrTy, UsedArray.size()); in setUsedInitializer() local
2741 new GlobalVariable(*M, ATy, false, llvm::GlobalValue::AppendingLinkage, in setUsedInitializer()
2742 llvm::ConstantArray::get(ATy, UsedArray), ""); in setUsedInitializer()
/external/llvm/lib/LTO/
DLTOCodeGenerator.cpp509 llvm::ArrayType *ATy = llvm::ArrayType::get(i8PTy, asmUsed2.size()); in applyScopeRestrictions() local
511 new llvm::GlobalVariable(*mergedModule, ATy, false, in applyScopeRestrictions()
513 llvm::ConstantArray::get(ATy, asmUsed2), in applyScopeRestrictions()
/external/llvm/lib/Linker/
DLinkModules.cpp880 ArrayType *ATy = cast<ArrayType>(GV->getType()->getElementType()); in upgradeGlobalArray() local
881 StructType *OldTy = cast<StructType>(ATy->getElementType()); in upgradeGlobalArray()
905 assert(Initializers.size() == ATy->getNumElements() && in upgradeGlobalArray()
909 ATy = ArrayType::get(NewTy, Initializers.size()); in upgradeGlobalArray()
910 Constant *NewInit = ConstantArray::get(ATy, Initializers); in upgradeGlobalArray()
912 *GV->getParent(), ATy, GV->isConstant(), GV->getLinkage(), NewInit, "", in upgradeGlobalArray()
/external/clang/lib/Sema/
DSemaStmtAsm.cpp547 const ArrayType *ATy = Context.getAsArrayType(T); in LookupInlineAsmIdentifier() local
548 Info.Type = Context.getTypeSizeInChars(ATy->getElementType()).getQuantity(); in LookupInlineAsmIdentifier()
/external/clang/lib/CodeGen/
DCGExprConstant.cpp1404 llvm::ArrayType *ATy = in EmitNullConstant() local
1413 return llvm::ConstantAggregateZero::get(ATy); in EmitNullConstant()
1416 return llvm::ConstantArray::get(ATy, Array); in EmitNullConstant()
/external/clang/lib/AST/
DDeclPrinter.cpp115 else if (const ArrayType* ATy = dyn_cast<ArrayType>(BaseType)) in GetBaseType() local
116 BaseType = ATy->getElementType(); in GetBaseType()
/external/llvm/lib/Target/NVPTX/
DNVPTXAsmPrinter.cpp1384 const ArrayType *ATy = dyn_cast<ArrayType>(Ty); in getOpenCLAlignment() local
1385 if (ATy) in getOpenCLAlignment()
1386 return getOpenCLAlignment(TD, ATy->getElementType()); in getOpenCLAlignment()
/external/llvm/lib/Transforms/Scalar/
DScalarReplAggregates.cpp2413 ArrayType *ATy = cast<ArrayType>(AllocaEltTy); in RewriteStoreUserOfWholeAlloca() local
2414 Type *ArrayEltTy = ATy->getElementType(); in RewriteStoreUserOfWholeAlloca()
2557 if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) { in HasPadding() local
2558 Ty = ATy->getElementType(); in HasPadding()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCalls.cpp50 } else if (ArrayType *ATy = dyn_cast<ArrayType>(T)) { in reduceToSingleValueType() local
51 if (ATy->getNumElements() == 1) in reduceToSingleValueType()
52 T = ATy->getElementType(); in reduceToSingleValueType()

12