Home
last modified time | relevance | path

Searched refs:ElementSize (Results 1 – 25 of 54) sorted by relevance

123

/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/ADT/
H A DSparseBitVector.h41 template <unsigned ElementSize = 128> struct SparseBitVectorElement {
47 BITWORDS_PER_ELEMENT = (ElementSize + BITWORD_SIZE - 1) / BITWORD_SIZE,
48 BITS_PER_ELEMENT = ElementSize
254 template <unsigned ElementSize = 128>
256 using ElementList = std::list<SparseBitVectorElement<ElementSize>>;
260 BITWORD_SIZE = SparseBitVectorElement<ElementSize>::BITWORD_SIZE
279 const_cast<SparseBitVector<ElementSize> *>(this)->Elements.begin(); in FindLowerBoundImpl()
281 const_cast<SparseBitVector<ElementSize> *>(this)->Elements.end(); in FindLowerBoundImpl()
322 const SparseBitVector<ElementSize> *BitVector = nullptr;
334 typename SparseBitVectorElement<ElementSize>::BitWord Bits;
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DStraightLineStrengthReduce.cpp219 Value *S, uint64_t ElementSize,
234 void factorArrayIndex(Value *ArrayIdx, const SCEV *Base, uint64_t ElementSize,
482 const SCEV *B, ConstantInt *Idx, Value *S, uint64_t ElementSize, in allocateCandidatesAndFindBasisForGEP() argument
490 IntPtrTy, Idx->getSExtValue() * (int64_t)ElementSize, true); in allocateCandidatesAndFindBasisForGEP()
496 uint64_t ElementSize, in factorArrayIndex() argument
501 ArrayIdx, ElementSize, GEP); in factorArrayIndex()
518 allocateCandidatesAndFindBasisForGEP(Base, RHS, LHS, ElementSize, GEP); in factorArrayIndex()
525 allocateCandidatesAndFindBasisForGEP(Base, PowerOf2, LHS, ElementSize, GEP); in factorArrayIndex()
551 uint64_t ElementSize = DL->getTypeAllocSize(GTI.getIndexedType()); in allocateCandidatesAndFindBasisForGEP() local
556 factorArrayIndex(ArrayIdx, BaseExpr, ElementSize, GEP); in allocateCandidatesAndFindBasisForGEP()
[all …]
H A DSeparateConstOffsetFromGEP.cpp875 APInt ElementSize = APInt(IntPtrTy->getIntegerBitWidth(), in lowerToSingleIndexGEPs() local
878 if (ElementSize != 1) { in lowerToSingleIndexGEPs()
879 if (ElementSize.isPowerOf2()) { in lowerToSingleIndexGEPs()
881 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2())); in lowerToSingleIndexGEPs()
883 Idx = Builder.CreateMul(Idx, ConstantInt::get(IntPtrTy, ElementSize)); in lowerToSingleIndexGEPs()
936 APInt ElementSize = APInt(IntPtrTy->getIntegerBitWidth(), in lowerToArithmetics() local
939 if (ElementSize != 1) { in lowerToArithmetics()
940 if (ElementSize.isPowerOf2()) { in lowerToArithmetics()
942 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2())); in lowerToArithmetics()
944 Idx = Builder.CreateMul(Idx, ConstantInt::get(IntPtrTy, ElementSize)); in lowerToArithmetics()
H A DSROA.cpp1491 APInt ElementSize(Offset.getBitWidth(), ElementSizeInBits / 8); in getNaturalGEPRecursively() local
1492 APInt NumSkippedElements = Offset.sdiv(ElementSize); in getNaturalGEPRecursively()
1495 Offset -= NumSkippedElements * ElementSize; in getNaturalGEPRecursively()
1503 APInt ElementSize(Offset.getBitWidth(), in getNaturalGEPRecursively() local
1505 APInt NumSkippedElements = Offset.sdiv(ElementSize); in getNaturalGEPRecursively()
1509 Offset -= NumSkippedElements * ElementSize; in getNaturalGEPRecursively()
1560 APInt ElementSize(Offset.getBitWidth(), in getNaturalGEPWithOffset() local
1562 if (ElementSize == 0) in getNaturalGEPWithOffset()
1564 APInt NumSkippedElements = Offset.sdiv(ElementSize); in getNaturalGEPWithOffset()
1566 Offset -= NumSkippedElements * ElementSize; in getNaturalGEPWithOffset()
[all …]
H A DNaryReassociate.cpp428 uint64_t ElementSize = DL->getTypeAllocSize(ElementType); in tryReassociateGEPAtIndex() local
443 if (IndexedSize % ElementSize != 0) in tryReassociateGEPAtIndex()
450 if (IndexedSize != ElementSize) { in tryReassociateGEPAtIndex()
452 RHS, ConstantInt::get(IntPtrTy, IndexedSize / ElementSize)); in tryReassociateGEPAtIndex()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/
H A DRuntimeLibcalls.h71 Libcall getMEMCPY_ELEMENT_UNORDERED_ATOMIC(uint64_t ElementSize);
76 Libcall getMEMMOVE_ELEMENT_UNORDERED_ATOMIC(uint64_t ElementSize);
81 Libcall getMEMSET_ELEMENT_UNORDERED_ATOMIC(uint64_t ElementSize);
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/NVPTX/
H A DNVPTXAsmPrinter.cpp1168 unsigned int ElementSize = 0; in printModuleLevelGV() local
1179 ElementSize = DL.getTypeStoreSize(ETy); in printModuleLevelGV()
1187 AggBuffer aggBuffer(ElementSize, O, *this); in printModuleLevelGV()
1194 O << ElementSize / 8; in printModuleLevelGV()
1199 O << ElementSize / 4; in printModuleLevelGV()
1206 O << ElementSize; in printModuleLevelGV()
1215 if (ElementSize) { in printModuleLevelGV()
1217 O << ElementSize; in printModuleLevelGV()
1224 if (ElementSize) { in printModuleLevelGV()
1226 O << ElementSize; in printModuleLevelGV()
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Core/
H A DDynamicExtent.cpp50 SVal ElementSize = getElementExtent(ElementTy, SVB); in getDynamicElementCount() local
53 SVB.evalBinOp(State, BO_Div, Size, ElementSize, SVB.getArrayIndexType()); in getDynamicElementCount()
H A DExprEngineCallAndReturn.cpp706 SVal ElementSize = getElementExtent(CNE->getAllocatedType(), svalBuilder); in bindReturnValue() local
709 svalBuilder.evalBinOp(State, BO_Mul, ElementCount, ElementSize, in bindReturnValue()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/DebugInfo/PDB/
H A DUDTLayout.h103 uint32_t getElementSize() const { return ElementSize; } in getElementSize()
106 uint32_t ElementSize = 0;
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/GlobalISel/
H A DLegalizerInfo.cpp352 const uint16_t ElementSize = VectorSpecifiedActions.first; in computeTables() local
353 ElementSizesSeen.push_back({ElementSize, Legal}); in computeTables()
361 assert(BitsizeAndAction.first % ElementSize == 0); in computeTables()
362 const uint16_t NumElements = BitsizeAndAction.first / ElementSize; in computeTables()
366 Opcode, TypeIdx, ElementSize, in computeTables()
H A DIRTranslator.cpp241 uint64_t ElementSize = DL->getTypeAllocSize(AI.getAllocatedType()); in getOrCreateFrameIndex() local
243 ElementSize * cast<ConstantInt>(AI.getArraySize())->getZExtValue(); in getOrCreateFrameIndex()
1495 uint64_t ElementSize = DL->getTypeAllocSize(GTI.getIndexedType()); in translateGetElementPtr() local
1500 Offset += ElementSize * CI->getSExtValue(); in translateGetElementPtr()
1525 if (ElementSize != 1) { in translateGetElementPtr()
1527 getLLTForType(*OffsetIRTy, *DL), ElementSize); in translateGetElementPtr()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/
H A DIRBuilder.cpp142 Value *Ptr, Value *Val, Value *Size, Align Alignment, uint32_t ElementSize, in CreateElementUnorderedAtomicMemSet() argument
146 Value *Ops[] = {Ptr, Val, Size, getInt32(ElementSize)}; in CreateElementUnorderedAtomicMemSet()
232 uint32_t ElementSize, MDNode *TBAATag, MDNode *TBAAStructTag, in CreateElementUnorderedAtomicMemCpy() argument
234 assert(DstAlign >= ElementSize && in CreateElementUnorderedAtomicMemCpy()
236 assert(SrcAlign >= ElementSize && in CreateElementUnorderedAtomicMemCpy()
241 Value *Ops[] = {Dst, Src, Size, getInt32(ElementSize)}; in CreateElementUnorderedAtomicMemCpy()
307 uint32_t ElementSize, MDNode *TBAATag, MDNode *TBAAStructTag, in CreateElementUnorderedAtomicMemMove() argument
309 assert(DstAlign >= ElementSize && in CreateElementUnorderedAtomicMemMove()
311 assert(SrcAlign >= ElementSize && in CreateElementUnorderedAtomicMemMove()
316 Value *Ops[] = {Dst, Src, Size, getInt32(ElementSize)}; in CreateElementUnorderedAtomicMemMove()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AArch64/
H A DSVEInstrFormats.td295 let ElementSize = pprty.ElementSize;
718 let ElementSize = ElementSizeNone;
832 let ElementSize = ElementSizeNone;
1383 let ElementSize = ElementSizeNone;
1532 let ElementSize = ElementSizeNone;
1661 let ElementSize = zprty.ElementSize;
1690 let ElementSize = zprty.ElementSize;
1749 let ElementSize = ElementSizeNone;
1836 let ElementSize = zprty.ElementSize;
1878 let ElementSize = zprty.ElementSize;
[all …]
H A DAArch64ExpandPseudoInsts.cpp478 uint64_t ElementSize = TII->getElementSizeForOpcode(Opcode); in expand_DestructiveOp() local
480 switch (ElementSize) { in expand_DestructiveOp()
510 assert(ElementSize != AArch64::ElementSizeNone && in expand_DestructiveOp()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/GlobalISel/
H A DLegalizerInfo.h1371 const unsigned ElementSize, in setVectorNumElementAction() argument
1374 if (NumElements2Actions[OpcodeIdx].find(ElementSize) == in setVectorNumElementAction()
1376 NumElements2Actions[OpcodeIdx][ElementSize] = {{}}; in setVectorNumElementAction()
1378 NumElements2Actions[OpcodeIdx].find(ElementSize)->second; in setVectorNumElementAction()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DTargetLoweringBase.cpp587 RTLIB::Libcall RTLIB::getMEMCPY_ELEMENT_UNORDERED_ATOMIC(uint64_t ElementSize) { in getMEMCPY_ELEMENT_UNORDERED_ATOMIC() argument
588 switch (ElementSize) { in getMEMCPY_ELEMENT_UNORDERED_ATOMIC()
604 RTLIB::Libcall RTLIB::getMEMMOVE_ELEMENT_UNORDERED_ATOMIC(uint64_t ElementSize) { in getMEMMOVE_ELEMENT_UNORDERED_ATOMIC() argument
605 switch (ElementSize) { in getMEMMOVE_ELEMENT_UNORDERED_ATOMIC()
621 RTLIB::Libcall RTLIB::getMEMSET_ELEMENT_UNORDERED_ATOMIC(uint64_t ElementSize) { in getMEMSET_ELEMENT_UNORDERED_ATOMIC() argument
622 switch (ElementSize) { in getMEMSET_ELEMENT_UNORDERED_ATOMIC()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DMemoryBuiltins.cpp358 unsigned ElementSize = DL.getTypeAllocSize(T); in computeArraySize() local
360 ElementSize = DL.getStructLayout(ST)->getSizeInBytes(); in computeArraySize()
366 if (ComputeMultiple(MallocArg, ElementSize, Multiple, LookThroughSExt)) in computeArraySize()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
H A DTargetTransformInfoImpl.h897 int64_t ElementSize =
901 ConstIdx->getValue().sextOrTrunc(PtrSizeBits) * ElementSize;
907 Scale = ElementSize;
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/MC/MCParser/
H A DMCAsmParser.h98 unsigned ElementSize = 0; member
/netbsd-src/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp1139 unsigned ElementSize = in InitializeMemory() local
1142 InitializeMemory(CP->getOperand(i), (char*)Addr+i*ElementSize); in InitializeMemory()
1152 unsigned ElementSize = in InitializeMemory() local
1155 InitializeMemory(CPA->getOperand(i), (char*)Addr+i*ElementSize); in InitializeMemory()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/DebugInfo/PDB/
H A DUDTLayout.cpp101 ElementSize = VTableType->getLength(); in VTableLayoutItem()
/netbsd-src/external/apache2/llvm/dist/clang/utils/TableGen/
H A DNeonEmitter.cpp1585 unsigned ElementSize; in emitDagShuffle() member in Intrinsic::DagEmitter::emitDagShuffle::Rev
1588 Rev(unsigned ElementSize) : ElementSize(ElementSize) {} in emitDagShuffle() argument
1596 VectorSize /= ElementSize; in emitDagShuffle()
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DCGExprCXX.cpp1000 CharUnits ElementSize = getContext().getTypeSizeInChars(ElementType); in EmitNewArrayInitializer() local
1002 BeginPtr.getAlignment().alignmentOfArrayElement(ElementSize); in EmitNewArrayInitializer()
1058 ElementSize)); in EmitNewArrayInitializer()
1117 StartAlign.alignmentAtOffset((i + 1) * ElementSize)); in EmitNewArrayInitializer()
/netbsd-src/external/apache2/llvm/dist/clang/lib/AST/
H A DType.cpp144 uint64_t ElementSize = Context.getTypeSizeInChars(ElementType).getQuantity(); in getNumAddressingBits() local
152 if (llvm::isPowerOf2_64(ElementSize)) { in getNumAddressingBits()
153 return NumElements.getActiveBits() + llvm::Log2_64(ElementSize); in getNumAddressingBits()
158 if ((ElementSize >> 32) == 0 && NumElements.getBitWidth() <= 64 && in getNumAddressingBits()
160 uint64_t TotalSize = NumElements.getZExtValue() * ElementSize; in getNumAddressingBits()
170 llvm::APSInt TotalSize(llvm::APInt(SizeExtended.getBitWidth(), ElementSize)); in getNumAddressingBits()

123