Home
last modified time | relevance | path

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

123

/external/llvm/examples/Kaleidoscope/MCJIT/lazy/
Dtoy-jit.cpp795 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in Codegen() local
802 Builder.CreateStore(StartVal, Alloca); in Codegen()
817 NamedValues[VarName] = Alloca; in Codegen()
841 Value *CurVar = Builder.CreateLoad(Alloca, VarName.c_str()); in Codegen()
843 Builder.CreateStore(NextVar, Alloca); in Codegen()
893 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in Codegen() local
894 Builder.CreateStore(InitVal, Alloca); in Codegen()
901 NamedValues[VarName] = Alloca; in Codegen()
957 AllocaInst *Alloca = CreateEntryBlockAlloca(F, Args[Idx]); in CreateArgumentAllocas() local
960 Builder.CreateStore(AI, Alloca); in CreateArgumentAllocas()
[all …]
Dtoy.cpp1075 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in Codegen() local
1082 Builder.CreateStore(StartVal, Alloca); in Codegen()
1097 NamedValues[VarName] = Alloca; in Codegen()
1121 Value *CurVar = Builder.CreateLoad(Alloca, VarName.c_str()); in Codegen()
1123 Builder.CreateStore(NextVar, Alloca); in Codegen()
1173 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in Codegen() local
1174 Builder.CreateStore(InitVal, Alloca); in Codegen()
1181 NamedValues[VarName] = Alloca; in Codegen()
1244 AllocaInst *Alloca = CreateEntryBlockAlloca(F, Args[Idx]); in CreateArgumentAllocas() local
1247 Builder.CreateStore(AI, Alloca); in CreateArgumentAllocas()
[all …]
/external/llvm/examples/Kaleidoscope/MCJIT/cached/
Dtoy-jit.cpp813 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in Codegen() local
820 Builder.CreateStore(StartVal, Alloca); in Codegen()
835 NamedValues[VarName] = Alloca; in Codegen()
859 Value *CurVar = Builder.CreateLoad(Alloca, VarName.c_str()); in Codegen()
861 Builder.CreateStore(NextVar, Alloca); in Codegen()
911 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in Codegen() local
912 Builder.CreateStore(InitVal, Alloca); in Codegen()
919 NamedValues[VarName] = Alloca; in Codegen()
975 AllocaInst *Alloca = CreateEntryBlockAlloca(F, Args[Idx]); in CreateArgumentAllocas() local
978 Builder.CreateStore(AI, Alloca); in CreateArgumentAllocas()
[all …]
Dtoy.cpp1177 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in Codegen() local
1184 Builder.CreateStore(StartVal, Alloca); in Codegen()
1199 NamedValues[VarName] = Alloca; in Codegen()
1223 Value *CurVar = Builder.CreateLoad(Alloca, VarName.c_str()); in Codegen()
1225 Builder.CreateStore(NextVar, Alloca); in Codegen()
1275 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in Codegen() local
1276 Builder.CreateStore(InitVal, Alloca); in Codegen()
1283 NamedValues[VarName] = Alloca; in Codegen()
1346 AllocaInst *Alloca = CreateEntryBlockAlloca(F, Args[Idx]); in CreateArgumentAllocas() local
1349 Builder.CreateStore(AI, Alloca); in CreateArgumentAllocas()
[all …]
/external/llvm/include/llvm/CodeGen/
DMachineFrameInfo.h106 const AllocaInst *Alloca; member
121 isSpillSlot(isSS), Alloca(Val), PreAllocated(false), isAliased(A) {} in StackObject()
427 return Objects[ObjectIdx+NumFixedObjects].Alloca; in getObjectAllocation()
568 const AllocaInst *Alloca = nullptr);
583 int CreateVariableSizedObject(unsigned Alignment, const AllocaInst *Alloca);
DWinEHFuncInfo.h67 const AllocaInst *Alloca; member
/external/llvm/lib/Target/AMDGPU/
DAMDGPUPromoteAlloca.cpp153 static bool tryPromoteAllocaToVector(AllocaInst *Alloca) { in tryPromoteAllocaToVector() argument
154 Type *AllocaTy = Alloca->getAllocatedType(); in tryPromoteAllocaToVector()
170 for (User *AllocaUser : Alloca->users()) { in tryPromoteAllocaToVector()
173 if (!canVectorizeInst(cast<Instruction>(AllocaUser), Alloca)) in tryPromoteAllocaToVector()
211 Value *BitCast = Builder.CreateBitCast(Alloca, VectorTy->getPointerTo(0)); in tryPromoteAllocaToVector()
221 Value *BitCast = Builder.CreateBitCast(Alloca, VectorTy->getPointerTo(0)); in tryPromoteAllocaToVector()
DAMDGPUTargetTransformInfo.cpp47 const AllocaInst *Alloca = in getUnrollingPreferences() local
49 if (Alloca) { in getUnrollingPreferences()
/external/llvm/examples/Kaleidoscope/Chapter7/
Dtoy.cpp888 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen() local
896 Builder.CreateStore(StartVal, Alloca); in codegen()
912 NamedValues[VarName] = Alloca; in codegen()
938 Value *CurVar = Builder.CreateLoad(Alloca, VarName.c_str()); in codegen()
940 Builder.CreateStore(NextVar, Alloca); in codegen()
990 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen() local
991 Builder.CreateStore(InitVal, Alloca); in codegen()
998 NamedValues[VarName] = Alloca; in codegen()
1053 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, Arg.getName()); in codegen() local
1056 Builder.CreateStore(&Arg, Alloca); in codegen()
[all …]
/external/llvm/examples/Kaleidoscope/MCJIT/initial/
Dtoy.cpp1035 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in Codegen() local
1042 Builder.CreateStore(StartVal, Alloca); in Codegen()
1057 NamedValues[VarName] = Alloca; in Codegen()
1081 Value *CurVar = Builder.CreateLoad(Alloca, VarName.c_str()); in Codegen()
1083 Builder.CreateStore(NextVar, Alloca); in Codegen()
1133 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in Codegen() local
1134 Builder.CreateStore(InitVal, Alloca); in Codegen()
1141 NamedValues[VarName] = Alloca; in Codegen()
1204 AllocaInst *Alloca = CreateEntryBlockAlloca(F, Args[Idx]); in CreateArgumentAllocas() local
1207 Builder.CreateStore(AI, Alloca); in CreateArgumentAllocas()
[all …]
/external/llvm/examples/Kaleidoscope/Chapter8/
Dtoy.cpp1079 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen() local
1089 Builder.CreateStore(StartVal, Alloca); in codegen()
1105 NamedValues[VarName] = Alloca; in codegen()
1131 Value *CurVar = Builder.CreateLoad(Alloca, VarName.c_str()); in codegen()
1133 Builder.CreateStore(NextVar, Alloca); in codegen()
1183 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen() local
1184 Builder.CreateStore(InitVal, Alloca); in codegen()
1191 NamedValues[VarName] = Alloca; in codegen()
1270 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, Arg.getName()); in codegen() local
1277 DBuilder->insertDeclare(Alloca, D, DBuilder->createExpression(), in codegen()
[all …]
/external/llvm/lib/Transforms/Scalar/
DRewriteStatepointsForGC.cpp1663 Value *Alloca = AllocaMap[OriginalValue]; in insertRelocationStores() local
1673 cast<AllocaInst>(Alloca)->getAllocatedType(), in insertRelocationStores()
1676 StoreInst *Store = new StoreInst(CastedRelocatedValue, Alloca); in insertRelocationStores()
1699 Value *Alloca = AllocaMap[OriginalValue]; in insertRematerializationStores() local
1701 StoreInst *Store = new StoreInst(RematerializedValue, Alloca); in insertRematerializationStores()
1734 AllocaInst *Alloca = new AllocaInst(LiveValue->getType(), "", in relocationViaAlloca() local
1736 AllocaMap[LiveValue] = Alloca; in relocationViaAlloca()
1737 PromotableAllocas.push_back(Alloca); in relocationViaAlloca()
1793 AllocaInst *Alloca = cast<AllocaInst>(Pair.second); in relocationViaAlloca() local
1799 ToClobber.push_back(Alloca); in relocationViaAlloca()
[all …]
/external/llvm/examples/Kaleidoscope/Orc/lazy_codegen/
Dtoy.cpp919 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in IRGen() local
926 C.getBuilder().CreateStore(StartVal, Alloca); in IRGen()
941 C.NamedValues[VarName] = Alloca; in IRGen()
965 Value *CurVar = C.getBuilder().CreateLoad(Alloca, VarName.c_str()); in IRGen()
967 C.getBuilder().CreateStore(NextVar, Alloca); in IRGen()
1015 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in IRGen() local
1016 C.getBuilder().CreateStore(InitVal, Alloca); in IRGen()
1023 C.NamedValues[VarName] = Alloca; in IRGen()
1084 AllocaInst *Alloca = CreateEntryBlockAlloca(F, Args[Idx]); in CreateArgumentAllocas() local
1087 C.getBuilder().CreateStore(&*AI, Alloca); in CreateArgumentAllocas()
[all …]
/external/llvm/examples/Kaleidoscope/MCJIT/complete/
Dtoy.cpp1255 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in Codegen() local
1262 Builder.CreateStore(StartVal, Alloca); in Codegen()
1277 NamedValues[VarName] = Alloca; in Codegen()
1301 Value *CurVar = Builder.CreateLoad(Alloca, VarName.c_str()); in Codegen()
1303 Builder.CreateStore(NextVar, Alloca); in Codegen()
1353 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in Codegen() local
1354 Builder.CreateStore(InitVal, Alloca); in Codegen()
1361 NamedValues[VarName] = Alloca; in Codegen()
1424 AllocaInst *Alloca = CreateEntryBlockAlloca(F, Args[Idx]); in CreateArgumentAllocas() local
1427 Builder.CreateStore(AI, Alloca); in CreateArgumentAllocas()
[all …]
/external/llvm/examples/Kaleidoscope/Orc/lazy_irgen/
Dtoy.cpp919 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in IRGen() local
926 C.getBuilder().CreateStore(StartVal, Alloca); in IRGen()
941 C.NamedValues[VarName] = Alloca; in IRGen()
965 Value *CurVar = C.getBuilder().CreateLoad(Alloca, VarName.c_str()); in IRGen()
967 C.getBuilder().CreateStore(NextVar, Alloca); in IRGen()
1015 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in IRGen() local
1016 C.getBuilder().CreateStore(InitVal, Alloca); in IRGen()
1023 C.NamedValues[VarName] = Alloca; in IRGen()
1084 AllocaInst *Alloca = CreateEntryBlockAlloca(F, Args[Idx]); in CreateArgumentAllocas() local
1087 C.getBuilder().CreateStore(&*AI, Alloca); in CreateArgumentAllocas()
[all …]
/external/llvm/examples/Kaleidoscope/Orc/initial/
Dtoy.cpp919 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in IRGen() local
926 C.getBuilder().CreateStore(StartVal, Alloca); in IRGen()
941 C.NamedValues[VarName] = Alloca; in IRGen()
965 Value *CurVar = C.getBuilder().CreateLoad(Alloca, VarName.c_str()); in IRGen()
967 C.getBuilder().CreateStore(NextVar, Alloca); in IRGen()
1015 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in IRGen() local
1016 C.getBuilder().CreateStore(InitVal, Alloca); in IRGen()
1023 C.NamedValues[VarName] = Alloca; in IRGen()
1084 AllocaInst *Alloca = CreateEntryBlockAlloca(F, Args[Idx]); in CreateArgumentAllocas() local
1087 C.getBuilder().CreateStore(&*AI, Alloca); in CreateArgumentAllocas()
[all …]
/external/llvm/examples/Kaleidoscope/Orc/fully_lazy/
Dtoy.cpp920 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in IRGen() local
927 C.getBuilder().CreateStore(StartVal, Alloca); in IRGen()
942 C.NamedValues[VarName] = Alloca; in IRGen()
966 Value *CurVar = C.getBuilder().CreateLoad(Alloca, VarName.c_str()); in IRGen()
968 C.getBuilder().CreateStore(NextVar, Alloca); in IRGen()
1016 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in IRGen() local
1017 C.getBuilder().CreateStore(InitVal, Alloca); in IRGen()
1024 C.NamedValues[VarName] = Alloca; in IRGen()
1085 AllocaInst *Alloca = CreateEntryBlockAlloca(F, Args[Idx]); in CreateArgumentAllocas() local
1088 C.getBuilder().CreateStore(&*AI, Alloca); in CreateArgumentAllocas()
[all …]
/external/llvm/test/Assembler/
D2002-04-29-NameBinding.ll15 %v1 = alloca i32 ;; Alloca should have one use!
/external/llvm/lib/CodeGen/MIRParser/
DMIRParser.cpp473 const AllocaInst *Alloca = nullptr; in initializeFrameInfo() local
476 Alloca = dyn_cast_or_null<AllocaInst>( in initializeFrameInfo()
478 if (!Alloca) in initializeFrameInfo()
485 ObjectIdx = MFI.CreateVariableSizedObject(Object.Alignment, Alloca); in initializeFrameInfo()
489 Object.Type == yaml::MachineStackObject::SpillSlot, Alloca); in initializeFrameInfo()
/external/llvm/unittests/Transforms/Utils/
DCloning.cpp248 AllocaInst* Alloca = IBuilder.CreateAlloca(IntegerType::getInt32Ty(C)); in CreateOldFunctionBodyAndDI() local
251 Instruction* Store = IBuilder.CreateStore(AllocaContent, Alloca); in CreateOldFunctionBodyAndDI()
262 DBuilder.insertDeclare(Alloca, Variable, E, DL, Store); in CreateOldFunctionBodyAndDI()
/external/llvm/lib/CodeGen/SelectionDAG/
DFunctionLoweringInfo.cpp305 if (H.CatchObj.Alloca) { in set()
306 assert(StaticAllocaMap.count(H.CatchObj.Alloca)); in set()
307 H.CatchObj.FrameIndex = StaticAllocaMap[H.CatchObj.Alloca]; in set()
/external/llvm/docs/tutorial/
DLangImpl7.rst378 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName);
386 Builder.CreateStore(StartVal, Alloca);
396 Value *CurVar = Builder.CreateLoad(Alloca);
398 Builder.CreateStore(NextVar, Alloca);
417 AllocaInst *Alloca = CreateEntryBlockAlloca(F, Args[Idx]);
420 Builder.CreateStore(AI, Alloca);
423 NamedValues[Args[Idx]] = Alloca;
818 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName);
819 Builder.CreateStore(InitVal, Alloca);
826 NamedValues[VarName] = Alloca;
/external/llvm/lib/CodeGen/
DMachineFunction.cpp538 bool isSS, const AllocaInst *Alloca) { in CreateStackObject() argument
542 Objects.push_back(StackObject(Size, Alignment, 0, false, isSS, Alloca, in CreateStackObject()
566 const AllocaInst *Alloca) { in CreateVariableSizedObject() argument
570 Objects.push_back(StackObject(0, Alignment, 0, false, false, Alloca, true)); in CreateVariableSizedObject()
DMIRPrinter.cpp303 if (const auto *Alloca = MFI.getObjectAllocation(I)) in convertStackObjects() local
305 Alloca->hasName() ? Alloca->getName() : "<unnamed alloca>"; in convertStackObjects()
/external/bison/tests/
Dtorture.at463 ## Exploding the Stack Size with Alloca. ##
466 AT_SETUP([Exploding the Stack Size with Alloca])

123