Searched defs:ElementSize (Results 1 - 10 of 10) sorted by relevance

/external/llvm/lib/Analysis/
H A DMemoryBuiltins.cpp211 unsigned ElementSize = TD->getTypeAllocSize(T); local
213 ElementSize = TD->getStructLayout(ST)->getSizeInBytes();
215 // If malloc call's arg can be determined to be a multiple of ElementSize,
219 if (ComputeMultiple(MallocArg, ElementSize, Multiple,
/external/llvm/lib/CodeGen/SelectionDAG/
H A DFastISel.cpp526 // N = N + Idx * ElementSize;
527 uint64_t ElementSize = TD.getTypeAllocSize(Ty); local
535 if (ElementSize != 1) {
536 IdxN = FastEmit_ri_(VT, ISD::MUL, IdxN, IdxNIsKill, ElementSize, VT);
H A DSelectionDAG.cpp3065 unsigned ElementSize = VT.getSizeInBits(); local
3066 unsigned Shift = ElementSize * N2C->getZExtValue();
3068 return getConstant(ShiftedVal.trunc(ElementSize), VT);
H A DSelectionDAGBuilder.cpp3196 // N = N + Idx * ElementSize;
3197 APInt ElementSize = APInt(TLI->getPointerTy().getSizeInBits(), local
3207 if (ElementSize != 1) {
3208 if (ElementSize.isPowerOf2()) {
3209 unsigned Amt = ElementSize.logBase2();
3214 SDValue Scale = DAG.getConstant(ElementSize, IdxN.getValueType());
/external/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp1125 unsigned ElementSize = local
1128 InitializeMemory(CP->getOperand(i), (char*)Addr+i*ElementSize);
1138 unsigned ElementSize = local
1141 InitializeMemory(CPA->getOperand(i), (char*)Addr+i*ElementSize);
/external/clang/lib/AST/
H A DType.cpp79 uint64_t ElementSize = Context.getTypeSizeInChars(ElementType).getQuantity(); local
87 if (llvm::isPowerOf2_64(ElementSize)) {
88 return NumElements.getActiveBits() + llvm::Log2_64(ElementSize);
93 if ((ElementSize >> 32) == 0 && NumElements.getBitWidth() <= 64 &&
95 uint64_t TotalSize = NumElements.getZExtValue() * ElementSize;
105 llvm::APSInt TotalSize(llvm::APInt(SizeExtended.getBitWidth(), ElementSize));
/external/clang/lib/CodeGen/
H A DCGExprConstant.cpp1278 uint64_t ElementSize = CGM.getContext().getTypeSize(ElementTy); local
1282 StartOffset + I * ElementSize);
/external/llvm/lib/Target/NVPTX/
H A DNVPTXAsmPrinter.cpp1207 unsigned int ElementSize = 0; local
1217 ElementSize = TD->getTypeStoreSize(ETy);
1225 AggBuffer aggBuffer(ElementSize, O, *this);
1230 O << ElementSize / 8; local
1233 O << ElementSize / 4; local
1238 O << ElementSize; local
1246 if (ElementSize) {
1248 O << ElementSize; local
1254 if (ElementSize) {
1256 O << ElementSize; local
1364 int64_t ElementSize = 0; local
1867 int ElementSize = TD->getTypeAllocSize(CPV->getType()); local
[all...]
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp1532 unsigned ElementSize = VecEltTy->getPrimitiveSizeInBits(); local
1533 Type *ElementIntTy = IntegerType::get(C->getContext(), ElementSize);
1537 i*ElementSize));
/external/llvm/lib/Transforms/Scalar/
H A DSROA.cpp1238 APInt ElementSize(Offset.getBitWidth(), ElementSizeInBits / 8);
1239 APInt NumSkippedElements = Offset.sdiv(ElementSize);
1242 Offset -= NumSkippedElements * ElementSize;
1250 APInt ElementSize(Offset.getBitWidth(), DL.getTypeAllocSize(ElementTy));
1251 APInt NumSkippedElements = Offset.sdiv(ElementSize);
1255 Offset -= NumSkippedElements * ElementSize;
1303 APInt ElementSize(Offset.getBitWidth(), DL.getTypeAllocSize(ElementTy));
1304 if (ElementSize == 0)
1306 APInt NumSkippedElements = Offset.sdiv(ElementSize);
1308 Offset -= NumSkippedElements * ElementSize;
1473 isVectorPromotionViableForSlice( const DataLayout &DL, AllocaSlices &S, uint64_t SliceBeginOffset, uint64_t SliceEndOffset, VectorType *Ty, uint64_t ElementSize, AllocaSlices::const_iterator I) argument
1860 uint64_t ElementSize; member in class:__anon22622::AllocaSliceRewriter
2887 uint64_t ElementSize = DL.getTypeAllocSize(ElementTy); local
2932 uint64_t ElementSize = DL.getTypeAllocSize(ElementTy); local
[all...]

Completed in 478 milliseconds