Searched refs:elementTy (Results 1 – 2 of 2) sorted by relevance
320 Type* elementTy = pointerTy->getElementType(); in EmitVariableDeclaration() local326 if (elementTy->isArrayTy()) in EmitVariableDeclaration()328 assert(elementTy->isArrayTy() && "Only pointers to arrays are supported"); in EmitVariableDeclaration()330 ArrayType* arrayTy = dyn_cast<ArrayType>(elementTy); in EmitVariableDeclaration()331 elementTy = arrayTy->getElementType(); in EmitVariableDeclaration()335 while (elementTy->isArrayTy()) { in EmitVariableDeclaration()337 arrayTy = dyn_cast<ArrayType>(elementTy); in EmitVariableDeclaration()338 elementTy = arrayTy->getElementType(); in EmitVariableDeclaration()344 assert(elementTy->isSingleValueType() && in EmitVariableDeclaration()348 uint64_t arraySize = (elementTy->getPrimitiveSizeInBits() >> 3) in EmitVariableDeclaration()
1440 llvm::Type *elementTy = ConvertTypeForMem(allocType); in EmitCXXNewExpr() local1441 Address result = Builder.CreateElementBitCast(allocation, elementTy); in EmitCXXNewExpr()1451 EmitNewInitializer(*this, E, allocType, elementTy, result, numElements, in EmitCXXNewExpr()