Home
last modified time | relevance | path

Searched refs:Alloca (Results 1 – 25 of 107) sorted by relevance

12345

/llvm-project-15.0.7/polly/lib/CodeGen/
H A DManagedMemoryRewrite.cpp274 auto *Alloca = dyn_cast<AllocaInst>(&I); in getAllocasToBeManaged() local
275 if (!Alloca) in getAllocasToBeManaged()
281 Allocas.insert(Alloca); in getAllocasToBeManaged()
293 Module *M = Alloca->getModule(); in rewriteAllocaAsManagedMemory()
297 Builder.SetInsertPoint(Alloca); in rewriteAllocaAsManagedMemory()
306 Function *F = Alloca->getFunction(); in rewriteAllocaAsManagedMemory()
309 Bitcasted->takeName(Alloca); in rewriteAllocaAsManagedMemory()
310 Alloca->replaceAllUsesWith(Bitcasted); in rewriteAllocaAsManagedMemory()
311 Alloca->eraseFromParent(); in rewriteAllocaAsManagedMemory()
395 for (AllocaInst *Alloca : AllocasToBeManaged) in runOnModule()
[all …]
/llvm-project-15.0.7/llvm/lib/Transforms/Coroutines/
H A DCoroFrame.cpp304 AllocaInst *Alloca; member
310 : Alloca(Alloca), Aliases(std::move(Aliases)), in AllocaInfo()
411 A.Alloca->dump(); in dumpAllocas()
591 Updater(A.Alloca); in updateLayoutIndex()
613 AllocaInst *Alloca = A.Alloca; in addFieldForAllocas() local
670 AllocaInst *Alloca = A.Alloca; in addFieldForAllocas() local
1743 AllocaInst *Alloca = P.Alloca; in insertSpills() local
1763 AllocaInst *Alloca = A.Alloca; in insertSpills() local
1785 AllocaInst *Alloca = A.Alloca; in insertSpills() local
1793 auto *Value = Builder.CreateLoad(Alloca->getAllocatedType(), Alloca); in insertSpills()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/CodeGen/
H A DMachineFrameInfo.h163 const AllocaInst *Alloca; member
184 bool IsImmutable, bool IsSpillSlot, const AllocaInst *Alloca,
188 Alloca(Alloca), isAliased(IsAliased) {} in SPOffset()
505 return Objects[ObjectIdx+NumFixedObjects].Alloca; in getObjectAllocation()
513 Objects[ObjectIdx + NumFixedObjects].Alloca = nullptr; in clearObjectAllocation()
761 const AllocaInst *Alloca = nullptr, uint8_t ID = 0);
776 int CreateVariableSizedObject(Align Alignment, const AllocaInst *Alloca);
/llvm-project-15.0.7/llvm/examples/Kaleidoscope/MCJIT/cached/
H A Dtoy-jit.cpp810 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in Codegen() local
817 Builder.CreateStore(StartVal, Alloca); in Codegen()
832 NamedValues[VarName] = Alloca; in Codegen()
856 Value *CurVar = Builder.CreateLoad(Alloca, VarName.c_str()); in Codegen()
858 Builder.CreateStore(NextVar, Alloca); in Codegen()
908 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in Codegen() local
909 Builder.CreateStore(InitVal, Alloca); in Codegen()
916 NamedValues[VarName] = Alloca; in Codegen()
971 AllocaInst *Alloca = CreateEntryBlockAlloca(F, Args[Idx]); in CreateArgumentAllocas() local
974 Builder.CreateStore(AI, Alloca); in CreateArgumentAllocas()
[all …]
H A Dtoy.cpp1174 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in Codegen() local
1181 Builder.CreateStore(StartVal, Alloca); in Codegen()
1196 NamedValues[VarName] = Alloca; in Codegen()
1220 Value *CurVar = Builder.CreateLoad(Alloca, VarName.c_str()); in Codegen()
1222 Builder.CreateStore(NextVar, Alloca); in Codegen()
1272 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in Codegen() local
1273 Builder.CreateStore(InitVal, Alloca); in Codegen()
1280 NamedValues[VarName] = Alloca; in Codegen()
1342 AllocaInst *Alloca = CreateEntryBlockAlloca(F, Args[Idx]); in CreateArgumentAllocas() local
1345 Builder.CreateStore(AI, Alloca); in CreateArgumentAllocas()
[all …]
/llvm-project-15.0.7/llvm/examples/Kaleidoscope/MCJIT/lazy/
H A Dtoy-jit.cpp792 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in Codegen() local
799 Builder.CreateStore(StartVal, Alloca); in Codegen()
814 NamedValues[VarName] = Alloca; in Codegen()
838 Value *CurVar = Builder.CreateLoad(Alloca, VarName.c_str()); in Codegen()
840 Builder.CreateStore(NextVar, Alloca); in Codegen()
890 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in Codegen() local
891 Builder.CreateStore(InitVal, Alloca); in Codegen()
898 NamedValues[VarName] = Alloca; in Codegen()
953 AllocaInst *Alloca = CreateEntryBlockAlloca(F, Args[Idx]); in CreateArgumentAllocas() local
956 Builder.CreateStore(AI, Alloca); in CreateArgumentAllocas()
[all …]
H A Dtoy.cpp1072 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in Codegen() local
1079 Builder.CreateStore(StartVal, Alloca); in Codegen()
1094 NamedValues[VarName] = Alloca; in Codegen()
1118 Value *CurVar = Builder.CreateLoad(Alloca, VarName.c_str()); in Codegen()
1120 Builder.CreateStore(NextVar, Alloca); in Codegen()
1170 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in Codegen() local
1171 Builder.CreateStore(InitVal, Alloca); in Codegen()
1178 NamedValues[VarName] = Alloca; in Codegen()
1240 AllocaInst *Alloca = CreateEntryBlockAlloca(F, Args[Idx]); in CreateArgumentAllocas() local
1243 Builder.CreateStore(AI, Alloca); in CreateArgumentAllocas()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUPromoteAlloca.cpp94 bool binaryOpIsDerivedFromSameAlloca(Value *Alloca, Value *Val,
349 static Value *GEPToVectorIndex(GetElementPtrInst *GEP, AllocaInst *Alloca, in GEPToVectorIndex() argument
356 if (GEP->getPointerOperand()->stripPointerCasts() != Alloca || in GEPToVectorIndex()
390 Type *AllocaTy = Alloca->getAllocatedType(); in tryPromoteAllocaToVector()
423 for (Use &U : Alloca->uses()) in tryPromoteAllocaToVector()
441 if (Ptr == Alloca && DL.getTypeStoreSize(Alloca->getAllocatedType()) == in tryPromoteAllocaToVector()
466 Value *Index = GEPToVectorIndex(GEP, Alloca, VecEltTy, DL); in tryPromoteAllocaToVector()
501 Type *VecPtrTy = VectorTy->getPointerTo(Alloca->getAddressSpace()); in tryPromoteAllocaToVector()
502 Value *BitCast = Builder.CreateBitCast(Alloca, VecPtrTy); in tryPromoteAllocaToVector()
515 Type *VecPtrTy = VectorTy->getPointerTo(Alloca->getAddressSpace()); in tryPromoteAllocaToVector()
[all …]
/llvm-project-15.0.7/llvm/examples/Kaleidoscope/Chapter7/
H A Dtoy.cpp916 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen() local
924 Builder->CreateStore(StartVal, Alloca); in codegen()
939 NamedValues[VarName] = Alloca; in codegen()
966 Builder->CreateLoad(Alloca->getAllocatedType(), Alloca, VarName.c_str()); in codegen()
968 Builder->CreateStore(NextVar, Alloca); in codegen()
1018 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen() local
1019 Builder->CreateStore(InitVal, Alloca); in codegen()
1026 NamedValues[VarName] = Alloca; in codegen()
1080 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, Arg.getName()); in codegen() local
1083 Builder->CreateStore(&Arg, Alloca); in codegen()
[all …]
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DMachineFrameInfo.cpp53 const AllocaInst *Alloca, in CreateStackObject() argument
57 Objects.push_back(StackObject(Size, Alignment, 0, false, IsSpillSlot, Alloca, in CreateStackObject()
75 const AllocaInst *Alloca) { in CreateVariableSizedObject() argument
78 Objects.push_back(StackObject(0, Alignment, 0, false, false, Alloca, true)); in CreateVariableSizedObject()
H A DSwiftErrorValueTracking.cpp109 if (const AllocaInst *Alloca = dyn_cast<AllocaInst>(&Inst)) in setFunction() local
110 if (Alloca->isSwiftError()) in setFunction()
111 SwiftErrorVals.push_back(Alloca); in setFunction()
/llvm-project-15.0.7/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter1/
H A Dtoy.cpp910 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen() local
918 Builder->CreateStore(StartVal, Alloca); in codegen()
933 NamedValues[VarName] = Alloca; in codegen()
959 Value *CurVar = Builder->CreateLoad(Type::getDoubleTy(*TheContext), Alloca, in codegen()
962 Builder->CreateStore(NextVar, Alloca); in codegen()
1012 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen() local
1013 Builder->CreateStore(InitVal, Alloca); in codegen()
1020 NamedValues[VarName] = Alloca; in codegen()
1074 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, Arg.getName()); in codegen() local
1077 Builder->CreateStore(&Arg, Alloca); in codegen()
[all …]
/llvm-project-15.0.7/llvm/examples/Kaleidoscope/Chapter8/
H A Dtoy.cpp915 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen() local
923 Builder->CreateStore(StartVal, Alloca); in codegen()
938 NamedValues[VarName] = Alloca; in codegen()
964 Value *CurVar = Builder->CreateLoad(Type::getDoubleTy(*TheContext), Alloca, in codegen()
967 Builder->CreateStore(NextVar, Alloca); in codegen()
1017 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen() local
1018 Builder->CreateStore(InitVal, Alloca); in codegen()
1025 NamedValues[VarName] = Alloca; in codegen()
1079 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, Arg.getName()); in codegen() local
1082 Builder->CreateStore(&Arg, Alloca); in codegen()
[all …]
/llvm-project-15.0.7/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4/
H A Dtoy.cpp893 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen() local
901 Builder->CreateStore(StartVal, Alloca); in codegen()
916 NamedValues[VarName] = Alloca; in codegen()
942 Value *CurVar = Builder->CreateLoad(Type::getDoubleTy(*TheContext), Alloca, in codegen()
945 Builder->CreateStore(NextVar, Alloca); in codegen()
995 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen() local
996 Builder->CreateStore(InitVal, Alloca); in codegen()
1003 NamedValues[VarName] = Alloca; in codegen()
1065 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, Arg.getName()); in codegen() local
1068 Builder->CreateStore(&Arg, Alloca); in codegen()
[all …]
/llvm-project-15.0.7/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/
H A Dtoy.cpp910 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen() local
918 Builder->CreateStore(StartVal, Alloca); in codegen()
933 NamedValues[VarName] = Alloca; in codegen()
959 Value *CurVar = Builder->CreateLoad(Type::getDoubleTy(*TheContext), Alloca, in codegen()
962 Builder->CreateStore(NextVar, Alloca); in codegen()
1012 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen() local
1013 Builder->CreateStore(InitVal, Alloca); in codegen()
1020 NamedValues[VarName] = Alloca; in codegen()
1074 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, Arg.getName()); in codegen() local
1077 Builder->CreateStore(&Arg, Alloca); in codegen()
[all …]
/llvm-project-15.0.7/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter3/
H A Dtoy.cpp910 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen() local
918 Builder->CreateStore(StartVal, Alloca); in codegen()
933 NamedValues[VarName] = Alloca; in codegen()
959 Value *CurVar = Builder->CreateLoad(Type::getDoubleTy(*TheContext), Alloca, in codegen()
962 Builder->CreateStore(NextVar, Alloca); in codegen()
1012 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen() local
1013 Builder->CreateStore(InitVal, Alloca); in codegen()
1020 NamedValues[VarName] = Alloca; in codegen()
1074 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, Arg.getName()); in codegen() local
1077 Builder->CreateStore(&Arg, Alloca); in codegen()
[all …]
/llvm-project-15.0.7/llvm/examples/Kaleidoscope/MCJIT/initial/
H A Dtoy.cpp1032 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in Codegen() local
1039 Builder.CreateStore(StartVal, Alloca); in Codegen()
1054 NamedValues[VarName] = Alloca; in Codegen()
1078 Value *CurVar = Builder.CreateLoad(Alloca, VarName.c_str()); in Codegen()
1080 Builder.CreateStore(NextVar, Alloca); in Codegen()
1130 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in Codegen() local
1131 Builder.CreateStore(InitVal, Alloca); in Codegen()
1138 NamedValues[VarName] = Alloca; in Codegen()
1200 AllocaInst *Alloca = CreateEntryBlockAlloca(F, Args[Idx]); in CreateArgumentAllocas() local
1203 Builder.CreateStore(AI, Alloca); in CreateArgumentAllocas()
[all …]
/llvm-project-15.0.7/llvm/examples/Kaleidoscope/Chapter9/
H A Dtoy.cpp1084 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen() local
1094 Builder->CreateStore(StartVal, Alloca); in codegen()
1109 NamedValues[VarName] = Alloca; in codegen()
1138 Builder->CreateStore(NextVar, Alloca); in codegen()
1188 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen() local
1189 Builder->CreateStore(InitVal, Alloca); in codegen()
1196 NamedValues[VarName] = Alloca; in codegen()
1273 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, Arg.getName()); in codegen() local
1280 DBuilder->insertDeclare(Alloca, D, DBuilder->createExpression(), in codegen()
1285 Builder->CreateStore(&Arg, Alloca); in codegen()
[all …]
/llvm-project-15.0.7/llvm/examples/Kaleidoscope/MCJIT/complete/
H A Dtoy.cpp1252 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in Codegen() local
1259 Builder.CreateStore(StartVal, Alloca); in Codegen()
1274 NamedValues[VarName] = Alloca; in Codegen()
1298 Value *CurVar = Builder.CreateLoad(Alloca, VarName.c_str()); in Codegen()
1300 Builder.CreateStore(NextVar, Alloca); in Codegen()
1350 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in Codegen() local
1351 Builder.CreateStore(InitVal, Alloca); in Codegen()
1358 NamedValues[VarName] = Alloca; in Codegen()
1420 AllocaInst *Alloca = CreateEntryBlockAlloca(F, Args[Idx]); in CreateArgumentAllocas() local
1423 Builder.CreateStore(AI, Alloca); in CreateArgumentAllocas()
[all …]
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGGPUBuiltin.cpp115 llvm::Value *Alloca = CGF->CreateTempAlloca(AllocaTy); in packArgsIntoNVPTXFormatBuffer() local
118 llvm::Value *P = Builder.CreateStructGEP(AllocaTy, Alloca, I - 1); in packArgsIntoNVPTXFormatBuffer()
123 Builder.CreatePointerCast(Alloca, llvm::Type::getInt8PtrTy(Ctx)); in packArgsIntoNVPTXFormatBuffer()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DFunctionSpecialization.cpp141 static Constant *getPromotableAlloca(AllocaInst *Alloca, CallInst *Call) { in getPromotableAlloca() argument
143 for (auto *User : Alloca->users()) { in getPromotableAlloca()
177 auto *Alloca = dyn_cast<AllocaInst>(Val); in getConstantStackValue() local
178 if (!Alloca || !Alloca->getAllocatedType()->isIntegerTy()) in getConstantStackValue()
180 return getPromotableAlloca(Alloca, Call); in getConstantStackValue()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DRewriteStatepointsForGC.cpp1945 Value *Alloca = AllocaMap[OriginalValue]; in insertRelocationStores() local
1958 new StoreInst(CastedRelocatedValue, Alloca, in insertRelocationStores()
1979 Value *Alloca = AllocaMap[OriginalValue]; in insertRematerializationStores() local
1981 new StoreInst(RematerializedValue, Alloca, in insertRematerializationStores()
2017 AllocaMap[LiveValue] = Alloca; in relocationViaAlloca()
2018 PromotableAllocas.push_back(Alloca); in relocationViaAlloca()
2074 AllocaInst *Alloca = Pair.second; in relocationViaAlloca() local
2080 ToClobber.push_back(Alloca); in relocationViaAlloca()
2105 AllocaInst *Alloca = Pair.second; in relocationViaAlloca() local
2134 new LoadInst(Alloca->getAllocatedType(), Alloca, "", in relocationViaAlloca()
[all …]
/llvm-project-15.0.7/llvm/test/Assembler/
H A D2002-04-29-NameBinding.ll15 %v1 = alloca i32 ;; Alloca should have one use!
/llvm-project-15.0.7/llvm/unittests/IR/
H A DDebugInfoTest.cpp338 auto *Alloca = &*EntryBlock->begin(); in TEST() local
354 auto *Inst = DIB.insertDbgAddrIntrinsic(Alloca, LocalVar, in TEST()
363 EXPECT_EQ(MD0Local->getValue(), Alloca); in TEST()
/llvm-project-15.0.7/llvm/unittests/Analysis/
H A DMemorySSATest.cpp605 Value *Alloca = B.CreateAlloca(Int8, ConstantInt::get(Int8, 1), "A"); in TEST_F() local
606 StoreInst *S1 = B.CreateStore(ConstantInt::get(Int8, 0), Alloca); in TEST_F()
607 StoreInst *S2 = B.CreateStore(ConstantInt::get(Int8, 1), Alloca); in TEST_F()
608 StoreInst *S3 = B.CreateStore(ConstantInt::get(Int8, 2), Alloca); in TEST_F()
637 Instruction *SI = B.CreateStore(ConstantInt::get(Int8, 0), Alloca); in TEST_F()
638 Instruction *LI = B.CreateLoad(Int8, Alloca); in TEST_F()
667 StoreInst *SI = B.CreateStore(ConstantInt::get(Int8, 0), Alloca); in TEST_F()
1313 StoreInst *StoreEntry = B.CreateStore(B.getInt8(0), Alloca); in TEST_F()
1317 StoreInst *StoreA = B.CreateStore(B.getInt8(1), Alloca); in TEST_F()
1321 StoreInst *StoreB = B.CreateStore(B.getInt8(2), Alloca); in TEST_F()
[all …]

12345