Home
last modified time | relevance | path

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

123

/external/swiftshader/third_party/LLVM/lib/Target/
DTargetLoweringObjectFile.cpp78 ArrayType *ATy = cast<ArrayType>(C->getType()); in IsNullTerminatedString() local
82 if (ATy->getNumElements() == 0) return false; in IsNullTerminatedString()
85 dyn_cast<ConstantInt>(CVA->getOperand(ATy->getNumElements()-1)); in IsNullTerminatedString()
90 for (unsigned i = 0, e = ATy->getNumElements()-1; i != e; ++i) in IsNullTerminatedString()
100 return ATy->getNumElements() == 1; in IsNullTerminatedString()
173 if (ArrayType *ATy = dyn_cast<ArrayType>(C->getType())) { in getKindForGlobal() local
175 dyn_cast<IntegerType>(ATy->getElementType())) { in getKindForGlobal()
DTargetData.cpp407 ArrayType *ATy = cast<ArrayType>(Ty); in getTypeSizeInBits() local
408 return getTypeAllocSizeInBits(ATy->getElementType())*ATy->getNumElements(); in getTypeSizeInBits()
/external/swiftshader/third_party/LLVM/lib/CodeGen/
DAnalysis.cpp55 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/swiftshader/third_party/LLVM/lib/Transforms/Instrumentation/
DEdgeProfiling.cpp77 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()
DOptimalEdgeProfiling.cpp116 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/LTO/
DUpdateCompilerUsed.cpp140 llvm::ArrayType *ATy = llvm::ArrayType::get(i8PTy, UsedValuesList.size()); in updateCompilerUsed() local
142 TheModule, ATy, false, llvm::GlobalValue::AppendingLinkage, in updateCompilerUsed()
143 llvm::ConstantArray::get(ATy, UsedValuesList), "llvm.compiler.used"); in updateCompilerUsed()
DLTOCodeGenerator.cpp403 llvm::ArrayType *ATy = llvm::ArrayType::get(i8PTy, UsedValuesSet.size()); in preserveDiscardableGVs() local
405 TheModule, ATy, false, llvm::GlobalValue::AppendingLinkage, in preserveDiscardableGVs()
406 llvm::ConstantArray::get(ATy, UsedValuesSet.getArrayRef()), in preserveDiscardableGVs()
/external/llvm/lib/CodeGen/
DAnalysis.cpp59 else if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) { in ComputeLinearIndex() local
60 Type *EltTy = ATy->getElementType(); in ComputeLinearIndex()
61 unsigned NumElts = ATy->getNumElements(); in ComputeLinearIndex()
101 if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) { in ComputeValueVTs() local
102 Type *EltTy = ATy->getElementType(); in ComputeValueVTs()
104 for (unsigned i = 0, e = ATy->getNumElements(); i != e; ++i) in ComputeValueVTs()
/external/swiftshader/third_party/LLVM/lib/Analysis/
DAliasSetTracker.cpp299 AliasSet::AccessType ATy = AliasSet::Refs; in add() local
300 if (!LI->isUnordered()) ATy = AliasSet::ModRef; in add()
305 ATy, NewPtr); in add()
312 AliasSet::AccessType ATy = AliasSet::Mods; in add() local
313 if (!SI->isUnordered()) ATy = AliasSet::ModRef; in add()
319 ATy, NewPtr); in add()
DConstantFolding.cpp658 if (SequentialType *ATy = dyn_cast<SequentialType>(Ty)) { in SymbolicallyEvaluateGEP() local
659 if (ATy->isPointerTy()) { in SymbolicallyEvaluateGEP()
665 if (!ATy->getElementType()->isSized()) in SymbolicallyEvaluateGEP()
670 APInt ElemSize(BitWidth, TD->getTypeAllocSize(ATy->getElementType())); in SymbolicallyEvaluateGEP()
684 Ty = ATy->getElementType(); in SymbolicallyEvaluateGEP()
1006 if (ArrayType *ATy = dyn_cast<ArrayType>(*I)) { in ConstantFoldLoadThroughGEPConstantExpr() local
1007 if (CI->getZExtValue() >= ATy->getNumElements()) in ConstantFoldLoadThroughGEPConstantExpr()
1012 C = Constant::getNullValue(ATy->getElementType()); in ConstantFoldLoadThroughGEPConstantExpr()
1014 C = UndefValue::get(ATy->getElementType()); in ConstantFoldLoadThroughGEPConstantExpr()
/external/llvm/include/llvm/IR/
DDataLayout.h518 ArrayType *ATy = cast<ArrayType>(Ty); in getTypeSizeInBits() local
519 return ATy->getNumElements() * in getTypeSizeInBits()
520 getTypeAllocSizeInBits(ATy->getElementType()); in getTypeSizeInBits()
/external/swiftshader/third_party/LLVM/lib/VMCore/
DType.cpp114 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()
DValue.cpp383 ArrayType *ATy = dyn_cast<ArrayType>(Ty); in isDereferenceablePointer() local
384 if (!ATy) in isDereferenceablePointer()
388 if (CI->getZExtValue() >= ATy->getNumElements()) in isDereferenceablePointer()
DConstantFold.cpp336 if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) { in getFoldedSizeOf() local
337 Constant *N = ConstantInt::get(DestTy, ATy->getNumElements()); in getFoldedSizeOf()
338 Constant *E = getFoldedSizeOf(ATy->getElementType(), DestTy, true); in getFoldedSizeOf()
395 if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) { in getFoldedAlignOf() local
396 Constant *C = ConstantExpr::getAlignOf(ATy->getElementType()); in getFoldedAlignOf()
460 if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) { in getFoldedOffsetOf() local
464 Constant *E = getFoldedSizeOf(ATy->getElementType(), DestTy, true); in getFoldedOffsetOf()
1476 } else if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) { in isMaybeZeroSizedType() local
1477 return isMaybeZeroSizedType(ATy->getElementType()); in isMaybeZeroSizedType()
2272 if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) in ConstantFoldGetElementPtrImpl() local
[all …]
/external/llvm/lib/Transforms/Utils/
DCtorUtils.cpp39 ArrayType *ATy = in removeGlobalCtors() local
41 Constant *CA = ConstantArray::get(ATy, CAList); in removeGlobalCtors()
DModuleUtils.cpp33 ArrayType *ATy = cast<ArrayType>(GVCtor->getValueType()); in appendToGlobalArray() local
34 StructType *OldEltTy = cast<StructType>(ATy->getElementType()); in appendToGlobalArray()
/external/swiftshader/third_party/LLVM/tools/lto/
DLTOCodeGenerator.cpp345 llvm::ArrayType *ATy = llvm::ArrayType::get(i8PTy, asmUsed2.size()); in applyScopeRestrictions() local
347 new llvm::GlobalVariable(*mergedModule, ATy, false, in applyScopeRestrictions()
349 llvm::ConstantArray::get(ATy, asmUsed2), in applyScopeRestrictions()
/external/swiftshader/third_party/LLVM/lib/Transforms/IPO/
DInliner.cpp142 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()
/external/llvm/lib/IR/
DType.cpp92 if (auto *ATy = dyn_cast<ArrayType>(this)) { in isEmptyTy() local
93 unsigned NumElements = ATy->getNumElements(); in isEmptyTy()
94 return NumElements == 0 || ATy->getElementType()->isEmptyTy(); in isEmptyTy()
141 if (auto *ATy = dyn_cast<ArrayType>(this)) in isSizedDerivedType() local
142 return ATy->getElementType()->isSized(Visited); in isSizedDerivedType()
/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/Transforms/Instrumentation/
DIndirectCallPromotion.cpp241 Type *ATy = CS.getArgument(I)->getType(); in isPromotionLegal() local
242 if (PTy == ATy) in isPromotionLegal()
482 Type *ATy = NewCS.getArgument(I)->getType(); in createDirectCallInst() local
484 if (ATy != PTy) { in createDirectCallInst()
/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()
/external/llvm/lib/Transforms/IPO/
DInliner.cpp146 ArrayType *ATy = dyn_cast<ArrayType>(AI->getAllocatedType()); in InlineCallIfPossible() local
147 if (!ATy || AI->isArrayAllocation()) in InlineCallIfPossible()
151 std::vector<AllocaInst*> &AllocasForType = InlinedArrayAllocas[ATy]; in InlineCallIfPossible()
/external/llvm/lib/Target/XCore/
DXCoreAsmPrinter.cpp96 if (ArrayType *ATy = dyn_cast<ArrayType>(GV->getValueType())) { in emitArrayBound() local
102 MCConstantExpr::create(ATy->getNumElements(), in emitArrayBound()
/external/llvm/lib/Target/Hexagon/
DHexagonTargetObjectFile.cpp274 const ArrayType *ATy = cast<const ArrayType>(Ty); in getSmallestAddressableSize() local
275 return getSmallestAddressableSize(ATy->getElementType(), GV, TM); in getSmallestAddressableSize()

123