Home
last modified time | relevance | path

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

12

/external/llvm/lib/CodeGen/
DAnalysis.cpp60 else if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) { in ComputeLinearIndex() local
61 Type *EltTy = ATy->getElementType(); in ComputeLinearIndex()
62 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()
/external/llvm/lib/Transforms/Utils/
DCtorUtils.cpp39 ArrayType *ATy = in removeGlobalCtors() local
41 Constant *CA = ConstantArray::get(ATy, CAList); in removeGlobalCtors()
DModuleUtils.cpp36 ArrayType *ATy = cast<ArrayType>(GVCtor->getType()->getElementType()); in appendToGlobalArray() local
37 EltTy = cast<StructType>(ATy->getElementType()); in appendToGlobalArray()
/external/llvm/include/llvm/IR/
DDataLayout.h520 ArrayType *ATy = cast<ArrayType>(Ty); in getTypeSizeInBits() local
521 return ATy->getNumElements() * in getTypeSizeInBits()
522 getTypeAllocSizeInBits(ATy->getElementType()); in getTypeSizeInBits()
/external/llvm/lib/Target/
DTargetLoweringObjectFile.cpp181 if (ArrayType *ATy = dyn_cast<ArrayType>(C->getType())) { in getKindForGlobal() local
183 dyn_cast<IntegerType>(ATy->getElementType())) { in getKindForGlobal()
/external/llvm/lib/IR/
DType.cpp98 if (auto *ATy = dyn_cast<ArrayType>(this)) { in isEmptyTy() local
99 unsigned NumElements = ATy->getNumElements(); in isEmptyTy()
100 return NumElements == 0 || ATy->getElementType()->isEmptyTy(); in isEmptyTy()
156 if (auto *ATy = dyn_cast<ArrayType>(this)) in isSizedDerivedType() local
157 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()
1273 } else if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) { in isMaybeZeroSizedType() local
1274 return isMaybeZeroSizedType(ATy->getElementType()); in isMaybeZeroSizedType()
2011 if (auto *ATy = dyn_cast<ArrayType>(STy)) in isIndexInRangeOfSequentialType() local
[all …]
DVerifier.cpp499 if (ArrayType *ATy = dyn_cast<ArrayType>(GV.getValueType())) { in visitGlobalVariable() local
500 StructType *STy = dyn_cast<StructType>(ATy->getElementType()); in visitGlobalVariable()
523 if (ArrayType *ATy = dyn_cast<ArrayType>(GVType)) { in visitGlobalVariable() local
524 PointerType *PTy = dyn_cast<PointerType>(ATy->getElementType()); in visitGlobalVariable()
/external/llvm/lib/Analysis/
DLint.cpp428 Type *ATy = AI->getAllocatedType(); in visitMemoryReference() local
429 if (!AI->isArrayAllocation() && ATy->isSized()) in visitMemoryReference()
430 BaseSize = DL->getTypeAllocSize(ATy); in visitMemoryReference()
432 if (BaseAlign == 0 && ATy->isSized()) in visitMemoryReference()
433 BaseAlign = DL->getABITypeAlignment(ATy); in visitMemoryReference()
DLoopAccessAnalysis.cpp1093 Type *ATy = APtr->getType()->getPointerElementType(); in isDependent() local
1096 unsigned TypeByteSize = DL.getTypeAllocSize(ATy); in isDependent()
1104 ATy != BTy)) in isDependent()
1114 if (ATy == BTy) in isDependent()
1122 if (ATy != BTy) { in isDependent()
DConstantFolding.cpp816 if (SequentialType *ATy = dyn_cast<SequentialType>(Ty)) { in SymbolicallyEvaluateGEP() local
817 if (ATy->isPointerTy()) { in SymbolicallyEvaluateGEP()
823 if (!ATy->getElementType()->isSized()) in SymbolicallyEvaluateGEP()
828 APInt ElemSize(BitWidth, DL.getTypeAllocSize(ATy->getElementType())); in SymbolicallyEvaluateGEP()
841 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/LTO/
DLTOCodeGenerator.cpp438 llvm::ArrayType *ATy = llvm::ArrayType::get(i8PTy, asmUsed2.size()); in applyScopeRestrictions() local
440 new llvm::GlobalVariable(*MergedModule, ATy, false, in applyScopeRestrictions()
442 llvm::ConstantArray::get(ATy, asmUsed2), in applyScopeRestrictions()
/external/llvm/lib/Transforms/Instrumentation/
DInstrProfiling.cpp454 ArrayType *ATy = ArrayType::get(i8PTy, MergedVars.size()); in emitUses() local
456 new GlobalVariable(*M, ATy, false, GlobalValue::AppendingLinkage, in emitUses()
457 ConstantArray::get(ATy, MergedVars), "llvm.used"); in emitUses()
/external/llvm/lib/Transforms/IPO/
DInliner.cpp198 ArrayType *ATy = dyn_cast<ArrayType>(AI->getAllocatedType()); in InlineCallIfPossible() local
199 if (!ATy || AI->isArrayAllocation()) in InlineCallIfPossible()
203 std::vector<AllocaInst*> &AllocasForType = InlinedArrayAllocas[ATy]; in InlineCallIfPossible()
DDeadArgumentElimination.cpp388 else if (ArrayType *ATy = dyn_cast<ArrayType>(RetTy)) in NumRetVals() local
389 return ATy->getNumElements(); in NumRetVals()
403 else if (ArrayType *ATy = dyn_cast<ArrayType>(RetTy)) in getRetComponentType() local
404 return ATy->getElementType(); in getRetComponentType()
DGlobalOpt.cpp516 if (ArrayType *ATy = dyn_cast<ArrayType>(STy)) in SRAGlobal() local
517 NumElements = ATy->getNumElements(); in SRAGlobal()
2267 if (ArrayType *ATy = dyn_cast<ArrayType>(InitTy)) in EvaluateStoreInto() local
2268 NumElts = ATy->getNumElements(); in EvaluateStoreInto()
2873 ArrayType *ATy = ArrayType::get(Int8PtrTy, UsedArray.size()); in setUsedInitializer() local
2878 new GlobalVariable(*M, ATy, false, llvm::GlobalValue::AppendingLinkage, in setUsedInitializer()
2879 llvm::ConstantArray::get(ATy, UsedArray), ""); in setUsedInitializer()
/external/llvm/lib/Target/Hexagon/
DHexagonBitTracker.cpp53 Type *ATy = Arg.getType(); in HexagonEvaluator() local
55 if (ATy->isIntegerTy()) in HexagonEvaluator()
56 Width = ATy->getIntegerBitWidth(); in HexagonEvaluator()
57 else if (ATy->isPointerTy()) in HexagonEvaluator()
/external/clang/lib/Sema/
DSemaStmtAsm.cpp555 const ArrayType *ATy = Context.getAsArrayType(T); in fillInlineAsmTypeInfo() local
556 Info.Type = Context.getTypeSizeInChars(ATy->getElementType()).getQuantity(); in fillInlineAsmTypeInfo()
/external/llvm/lib/Transforms/Scalar/
DScalarReplAggregates.cpp2414 ArrayType *ATy = cast<ArrayType>(AllocaEltTy); in RewriteStoreUserOfWholeAlloca() local
2415 Type *ArrayEltTy = ATy->getElementType(); in RewriteStoreUserOfWholeAlloca()
2558 if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) { in HasPadding() local
2559 Ty = ATy->getElementType(); in HasPadding()
/external/clang/lib/AST/
DDeclPrinter.cpp125 else if (const ArrayType* ATy = dyn_cast<ArrayType>(BaseType)) in GetBaseType() local
126 BaseType = ATy->getElementType(); in GetBaseType()
DASTContext.cpp4463 const ArrayType *ATy = dyn_cast<ArrayType>(split.Ty); in getAsArrayType() local
4464 if (!ATy || qs.empty()) in getAsArrayType()
4465 return ATy; in getAsArrayType()
4469 QualType NewEltTy = getQualifiedType(ATy->getElementType(), qs); in getAsArrayType()
4471 if (const ConstantArrayType *CAT = dyn_cast<ConstantArrayType>(ATy)) in getAsArrayType()
4475 if (const IncompleteArrayType *IAT = dyn_cast<IncompleteArrayType>(ATy)) in getAsArrayType()
4481 = dyn_cast<DependentSizedArrayType>(ATy)) in getAsArrayType()
4489 const VariableArrayType *VAT = cast<VariableArrayType>(ATy); in getAsArrayType()
/external/llvm/lib/Target/NVPTX/
DNVPTXAsmPrinter.cpp1391 auto *ATy = dyn_cast<ArrayType>(Ty); in getOpenCLAlignment() local
1392 if (ATy) in getOpenCLAlignment()
1393 return getOpenCLAlignment(DL, ATy->getElementType()); in getOpenCLAlignment()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCalls.cpp51 } else if (ArrayType *ATy = dyn_cast<ArrayType>(T)) { in reduceToSingleValueType() local
52 if (ATy->getNumElements() == 1) in reduceToSingleValueType()
53 T = ATy->getElementType(); in reduceToSingleValueType()
/external/clang/lib/CodeGen/
DCGExprConstant.cpp1582 llvm::ArrayType *ATy = in EmitNullConstant() local
1590 return llvm::ConstantArray::get(ATy, Array); in EmitNullConstant()

12