Searched refs:AllocaTy (Results 1 – 5 of 5) sorted by relevance
/external/clang/lib/CodeGen/ |
D | CGCUDABuiltin.cpp | 102 llvm::Type *AllocaTy = llvm::StructType::create(ArgTypes, "printf_args"); in EmitCUDADevicePrintfCallExpr() local 103 llvm::Value *Alloca = CreateTempAlloca(AllocaTy); in EmitCUDADevicePrintfCallExpr() 106 llvm::Value *P = Builder.CreateStructGEP(AllocaTy, Alloca, I - 1); in EmitCUDADevicePrintfCallExpr()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPUPromoteAlloca.cpp | 352 ArrayType *AllocaTy = dyn_cast<ArrayType>(Alloca->getAllocatedType()); in tryPromoteAllocaToVector() local 360 if (!AllocaTy || in tryPromoteAllocaToVector() 361 AllocaTy->getNumElements() > 16 || in tryPromoteAllocaToVector() 362 AllocaTy->getNumElements() < 2 || in tryPromoteAllocaToVector() 363 !VectorType::isValidElementType(AllocaTy->getElementType())) { in tryPromoteAllocaToVector() 399 VectorType *VectorTy = arrayTypeToVecType(AllocaTy); in tryPromoteAllocaToVector() 401 LLVM_DEBUG(dbgs() << " Converting alloca to vector " << *AllocaTy << " -> " in tryPromoteAllocaToVector() 705 Type *AllocaTy = I.getAllocatedType(); in handleAlloca() local 749 uint32_t AllocSize = WorkGroupSize * DL.getTypeAllocSize(AllocaTy); in handleAlloca()
|
/external/llvm/lib/Target/AMDGPU/ |
D | AMDGPUPromoteAlloca.cpp | 393 ArrayType *AllocaTy = dyn_cast<ArrayType>(Alloca->getAllocatedType()); in tryPromoteAllocaToVector() local 399 if (!AllocaTy || in tryPromoteAllocaToVector() 400 AllocaTy->getElementType()->isVectorTy() || in tryPromoteAllocaToVector() 401 AllocaTy->getNumElements() > 4) { in tryPromoteAllocaToVector() 436 VectorType *VectorTy = arrayTypeToVecType(AllocaTy); in tryPromoteAllocaToVector() 439 << *AllocaTy << " -> " << *VectorTy << '\n'); in tryPromoteAllocaToVector() 641 Type *AllocaTy = I.getAllocatedType(); in handleAlloca() local 669 uint32_t AllocSize = WorkGroupSize * DL.getTypeAllocSize(AllocaTy); in handleAlloca()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | SROA.cpp | 1962 Type *AllocaTy, in isIntegerWideningViableForSlice() argument 1965 uint64_t Size = DL.getTypeStoreSize(AllocaTy); in isIntegerWideningViableForSlice() 1996 !canConvertValue(DL, AllocaTy, LI->getType())) { in isIntegerWideningViableForSlice() 2021 !canConvertValue(DL, ValueTy, AllocaTy)) { in isIntegerWideningViableForSlice() 2048 static bool isIntegerWideningViable(Partition &P, Type *AllocaTy, in isIntegerWideningViable() argument 2050 uint64_t SizeInBits = DL.getTypeSizeInBits(AllocaTy); in isIntegerWideningViable() 2056 if (SizeInBits != DL.getTypeStoreSizeInBits(AllocaTy)) in isIntegerWideningViable() 2062 Type *IntTy = Type::getIntNTy(AllocaTy->getContext(), SizeInBits); in isIntegerWideningViable() 2063 if (!canConvertValue(DL, AllocaTy, IntTy) || in isIntegerWideningViable() 2064 !canConvertValue(DL, IntTy, AllocaTy)) in isIntegerWideningViable() [all …]
|
/external/llvm/lib/Transforms/Scalar/ |
D | SROA.cpp | 1892 Type *AllocaTy, in isIntegerWideningViableForSlice() argument 1895 uint64_t Size = DL.getTypeStoreSize(AllocaTy); in isIntegerWideningViableForSlice() 1922 !canConvertValue(DL, AllocaTy, LI->getType())) { in isIntegerWideningViableForSlice() 1943 !canConvertValue(DL, ValueTy, AllocaTy)) { in isIntegerWideningViableForSlice() 1970 static bool isIntegerWideningViable(Partition &P, Type *AllocaTy, in isIntegerWideningViable() argument 1972 uint64_t SizeInBits = DL.getTypeSizeInBits(AllocaTy); in isIntegerWideningViable() 1978 if (SizeInBits != DL.getTypeStoreSizeInBits(AllocaTy)) in isIntegerWideningViable() 1984 Type *IntTy = Type::getIntNTy(AllocaTy->getContext(), SizeInBits); in isIntegerWideningViable() 1985 if (!canConvertValue(DL, AllocaTy, IntTy) || in isIntegerWideningViable() 1986 !canConvertValue(DL, IntTy, AllocaTy)) in isIntegerWideningViable() [all …]
|