Home | History | Annotate | Download | only in R600

Lines Matching refs:Alloca

22 #define DEBUG_TYPE "amdgpu-promote-alloca"
42 return "AMDGPU Promote Alloca";
148 static bool tryPromoteAllocaToVector(AllocaInst *Alloca) {
149 Type *AllocaTy = Alloca->getAllocatedType();
151 DEBUG(dbgs() << "Alloca Candidate for vectorization \n");
165 for (User *AllocaUser : Alloca->users()) {
178 // promote this alloca to vector.
195 DEBUG(dbgs() << " Converting alloca to vector "
206 Value *BitCast = Builder.CreateBitCast(Alloca, VectorTy->getPointerTo(0));
216 Value *BitCast = Builder.CreateBitCast(Alloca, VectorTy->getPointerTo(0));
255 // First try to replace the alloca with a vector
263 DEBUG(dbgs() << " alloca is not a candidate for vectorization.\n");
273 DEBUG(dbgs() << " Not enough local memory to promote alloca.\n");
277 DEBUG(dbgs() << "Promoting alloca to local memory\n");
380 llvm_unreachable("Don't know how to promote alloca intrinsic use.");