HomeSort by: relevance | last modified time | path
    Searched defs:ElementSize (Results 1 - 25 of 30) sorted by relevancy

1 2

  /src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Core/
DynamicExtent.cpp 50 SVal ElementSize = getElementExtent(ElementTy, SVB);
53 SVB.evalBinOp(State, BO_Div, Size, ElementSize, SVB.getArrayIndexType());
ExprEngineCallAndReturn.cpp 706 SVal ElementSize = getElementExtent(CNE->getAllocatedType(), svalBuilder);
709 svalBuilder.evalBinOp(State, BO_Mul, ElementCount, ElementSize,
  /src/external/apache2/llvm/dist/llvm/include/llvm/DebugInfo/PDB/
UDTLayout.h 103 uint32_t getElementSize() const { return ElementSize; }
106 uint32_t ElementSize = 0;
  /src/external/apache2/llvm/dist/llvm/include/llvm/MC/MCParser/
MCAsmParser.h 98 unsigned ElementSize = 0;
  /src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
NaryReassociate.cpp 428 uint64_t ElementSize = DL->getTypeAllocSize(ElementType);
431 // necessarily divisible by ElementSize. For example,
443 if (IndexedSize % ElementSize != 0)
450 if (IndexedSize != ElementSize) {
452 RHS, ConstantInt::get(IntPtrTy, IndexedSize / ElementSize));
StraightLineStrengthReduce.cpp 216 // A helper function that scales Idx with ElementSize before invoking
219 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,
484 // I = B + sext(Idx *nsw S) * ElementSize
485 // = B + (sext(Idx) * sext(S)) * ElementSize
486 // = B + (sext(Idx) * ElementSize) * sext(S)
490 IntPtrTy, Idx->getSExtValue() * (int64_t)ElementSize, true);
496 uint64_t ElementSize,
501 ArrayIdx, ElementSize, GEP)
    [all...]
SeparateConstOffsetFromGEP.cpp 875 APInt ElementSize = APInt(IntPtrTy->getIntegerBitWidth(),
878 if (ElementSize != 1) {
879 if (ElementSize.isPowerOf2()) {
881 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2()));
883 Idx = Builder.CreateMul(Idx, ConstantInt::get(IntPtrTy, ElementSize));
936 APInt ElementSize = APInt(IntPtrTy->getIntegerBitWidth(),
939 if (ElementSize != 1) {
940 if (ElementSize.isPowerOf2()) {
942 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2()));
944 Idx = Builder.CreateMul(Idx, ConstantInt::get(IntPtrTy, ElementSize));
    [all...]
DeadStoreElimination.cpp 626 const uint32_t ElementSize = AMI->getElementSizeInBytes();
627 if (0 != NewSize % ElementSize)
  /src/external/apache2/llvm/dist/llvm/lib/CodeGen/GlobalISel/
LegalizerInfo.cpp 352 const uint16_t ElementSize = VectorSpecifiedActions.first;
353 ElementSizesSeen.push_back({ElementSize, Legal});
361 assert(BitsizeAndAction.first % ElementSize == 0);
362 const uint16_t NumElements = BitsizeAndAction.first / ElementSize;
366 Opcode, TypeIdx, ElementSize,
IRTranslator.cpp 241 uint64_t ElementSize = DL->getTypeAllocSize(AI.getAllocatedType());
243 ElementSize * cast<ConstantInt>(AI.getArraySize())->getZExtValue();
1495 uint64_t ElementSize = DL->getTypeAllocSize(GTI.getIndexedType());
1500 Offset += ElementSize * CI->getSExtValue();
1522 // N = N + Idx * ElementSize;
1523 // Avoid doing it for ElementSize of 1.
1525 if (ElementSize != 1) {
1527 getLLTForType(*OffsetIRTy, *DL), ElementSize);
  /src/external/apache2/llvm/dist/llvm/lib/Analysis/
MemoryBuiltins.cpp 358 unsigned ElementSize = DL.getTypeAllocSize(T);
360 ElementSize = DL.getStructLayout(ST)->getSizeInBytes();
362 // If malloc call's arg can be determined to be a multiple of ElementSize,
366 if (ComputeMultiple(MallocArg, ElementSize, Multiple, LookThroughSExt))
DependenceAnalysis.cpp 3410 const SCEV *ElementSize = SE->getElementSize(Src);
3411 if (ElementSize != SE->getElementSize(Dst))
3429 SE->findArrayDimensions(Terms, Sizes, ElementSize);
  /src/external/apache2/llvm/dist/llvm/lib/Target/AArch64/
AArch64ExpandPseudoInsts.cpp 478 uint64_t ElementSize = TII->getElementSizeForOpcode(Opcode);
480 switch (ElementSize) {
499 llvm_unreachable("Unsupported ElementSize");
510 assert(ElementSize != AArch64::ElementSizeNone &&
AArch64FastISel.cpp 4922 // N = N + Idx * ElementSize;
4923 uint64_t ElementSize = DL.getTypeAllocSize(Ty);
4928 if (ElementSize != 1) {
4929 unsigned C = fastEmit_i(VT, VT, ISD::Constant, ElementSize);
  /src/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/
ExecutionEngine.cpp 1139 unsigned ElementSize =
1142 InitializeMemory(CP->getOperand(i), (char*)Addr+i*ElementSize);
1152 unsigned ElementSize =
1155 InitializeMemory(CPA->getOperand(i), (char*)Addr+i*ElementSize);
  /src/external/apache2/llvm/dist/llvm/lib/CodeGen/AsmPrinter/
DwarfUnit.cpp 1403 const uint64_t ElementSize = BaseTy->getSizeInBits();
1418 assert(ActualSize >= (NumVecElements * ElementSize) && "Invalid vector size");
1419 return ActualSize != (NumVecElements * ElementSize);
CodeViewDebug.cpp 1610 uint64_t ElementSize = getBaseTypeSize(ElementType) / 8;
1638 ElementSize *= Count;
1643 (i == 0 && ElementSize == 0) ? Ty->getSizeInBits() / 8 : ElementSize;
  /src/external/apache2/llvm/dist/llvm/lib/CodeGen/SelectionDAG/
FastISel.cpp 596 // N = N + Idx * ElementSize;
597 uint64_t ElementSize = DL.getTypeAllocSize(Ty);
602 if (ElementSize != 1) {
603 IdxN = fastEmit_ri_(VT, ISD::MUL, IdxN, ElementSize, VT);
  /src/external/apache2/llvm/dist/llvm/lib/Target/NVPTX/
NVPTXAsmPrinter.cpp 1168 unsigned int ElementSize = 0;
1179 ElementSize = DL.getTypeStoreSize(ETy);
1187 AggBuffer aggBuffer(ElementSize, O, *this);
1194 O << ElementSize / 8;
1199 O << ElementSize / 4;
1206 O << ElementSize;
1215 if (ElementSize) {
1217 O << ElementSize;
1224 if (ElementSize) {
1226 O << ElementSize;
    [all...]
  /src/external/apache2/llvm/dist/clang/lib/CodeGen/
CGExprCXX.cpp 1000 CharUnits ElementSize = getContext().getTypeSizeInChars(ElementType);
1002 BeginPtr.getAlignment().alignmentOfArrayElement(ElementSize);
1058 ElementSize));
1117 StartAlign.alignmentAtOffset((i + 1) * ElementSize));
2037 CharUnits elementSize = CGF.getContext().getTypeSizeInChars(elementType);
2039 deletedPtr.getAlignment().alignmentOfArrayElement(elementSize);
CGExprScalar.cpp 3797 CharUnits elementSize;
3801 elementSize = CharUnits::One();
3803 elementSize = CGF.getContext().getTypeSizeInChars(elementType);
3806 if (elementSize.isOne())
3809 divisor = CGF.CGM.getSize(elementSize);
4987 auto *ElementSize = llvm::ConstantInt::get(
4990 LocalOffset = eval(BO_Mul, ElementSize, IndexS);
CGStmtOpenMP.cpp 711 CharUnits ElementSize = getContext().getTypeSizeInChars(ElementTy);
718 SrcAddr.getAlignment().alignmentOfArrayElement(ElementSize));
725 DestAddr.getAlignment().alignmentOfArrayElement(ElementSize));
  /src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/
InstCombineCasts.cpp 2166 unsigned ElementSize = VecEltTy->getPrimitiveSizeInBits();
2167 Type *ElementIntTy = IntegerType::get(C->getContext(), ElementSize);
2170 unsigned ShiftI = Shift+i*ElementSize;
  /src/external/apache2/llvm/dist/clang/lib/AST/
Type.cpp 144 uint64_t ElementSize = Context.getTypeSizeInChars(ElementType).getQuantity();
152 if (llvm::isPowerOf2_64(ElementSize)) {
153 return NumElements.getActiveBits() + llvm::Log2_64(ElementSize);
158 if ((ElementSize >> 32) == 0 && NumElements.getBitWidth() <= 64 &&
160 uint64_t TotalSize = NumElements.getZExtValue() * ElementSize;
170 llvm::APSInt TotalSize(llvm::APInt(SizeExtended.getBitWidth(), ElementSize));
  /src/external/apache2/llvm/dist/llvm/lib/Target/AArch64/AsmParser/
AArch64AsmParser.cpp 100 Prefix.ElementSize = TSFlags & AArch64::ElementSizeMask;
101 assert(Prefix.ElementSize != AArch64::ElementSizeNone &&
112 Prefix.ElementSize = TSFlags & AArch64::ElementSizeMask;
113 assert(Prefix.ElementSize != AArch64::ElementSizeNone &&
130 return ElementSize;
141 unsigned ElementSize;

Completed in 120 milliseconds

1 2