Home
last modified time | relevance | path

Searched refs:elementTy (Results 1 – 2 of 2) sorted by relevance

/external/swiftshader/third_party/LLVM/lib/Target/PTX/
DPTXAsmPrinter.cpp320 Type* elementTy = pointerTy->getElementType(); in EmitVariableDeclaration() local
326 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()
/external/clang/lib/CodeGen/
DCGExprCXX.cpp1440 llvm::Type *elementTy = ConvertTypeForMem(allocType); in EmitCXXNewExpr() local
1441 Address result = Builder.CreateElementBitCast(allocation, elementTy); in EmitCXXNewExpr()
1451 EmitNewInitializer(*this, E, allocType, elementTy, result, numElements, in EmitCXXNewExpr()