| /openbsd/src/gnu/llvm/llvm/lib/Transforms/Coroutines/ |
| D | CoroFrame.cpp | 325 AllocaInst *Alloca; member 328 AllocaInfo(AllocaInst *Alloca, in AllocaInfo() 331 : Alloca(Alloca), Aliases(std::move(Aliases)), in AllocaInfo() 347 Defs.push_back(A.Alloca); in getAllDefs() 432 A.Alloca->dump(); in dumpAllocas() 612 Updater(A.Alloca); in updateLayoutIndex() 627 for (auto *Alloca : AllocaList) in addFieldForAllocas() local 628 FrameData.setFieldIndex(Alloca, Id); in addFieldForAllocas() 634 AllocaInst *Alloca = A.Alloca; in addFieldForAllocas() local 635 NonOverlapedAllocas.emplace_back(AllocaSetType(1, Alloca)); in addFieldForAllocas() [all …]
|
| /openbsd/src/gnu/llvm/llvm/lib/Target/AMDGPU/ |
| D | AMDGPUPromoteAlloca.cpp | 94 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() 387 static bool tryPromoteAllocaToVector(AllocaInst *Alloca, const DataLayout &DL, in tryPromoteAllocaToVector() argument 395 Type *AllocaTy = Alloca->getAllocatedType(); in tryPromoteAllocaToVector() 431 for (Use &U : Alloca->uses()) in tryPromoteAllocaToVector() 450 if (Ptr == Alloca && DL.getTypeStoreSize(Alloca->getAllocatedType()) == in tryPromoteAllocaToVector() 475 Value *Index = GEPToVectorIndex(GEP, Alloca, VecEltTy, DL); in tryPromoteAllocaToVector() 504 if (Ptr != Alloca && !GEPVectorIdx.count(GEP)) in tryPromoteAllocaToVector() 561 Type *VecPtrTy = VectorTy->getPointerTo(Alloca->getAddressSpace()); in tryPromoteAllocaToVector() [all …]
|
| /openbsd/src/gnu/llvm/llvm/include/llvm/CodeGen/ |
| D | MachineFrameInfo.h | 164 const AllocaInst *Alloca; member 185 bool IsImmutable, bool IsSpillSlot, const AllocaInst *Alloca, 189 Alloca(Alloca), isAliased(IsAliased) {} in SPOffset() 533 return Objects[ObjectIdx+NumFixedObjects].Alloca; in getObjectAllocation() 541 Objects[ObjectIdx + NumFixedObjects].Alloca = nullptr; in clearObjectAllocation() 789 const AllocaInst *Alloca = nullptr, uint8_t ID = 0); 804 int CreateVariableSizedObject(Align Alignment, const AllocaInst *Alloca);
|
| D | WinEHFuncInfo.h | 65 const AllocaInst *Alloca; member
|
| /openbsd/src/gnu/llvm/llvm/lib/FuzzMutate/ |
| D | RandomIRBuilder.cpp | 82 AllocaInst *Alloca = new AllocaInst(Ty, DL.getProgramAddressSpace(), "A", in newSource() local 84 new StoreInst(newSrc, Alloca, EntryBB->getTerminator()); in newSource() 86 newSrc = new LoadInst(Ty, Alloca, /*ArrLen,*/ "L", BB.getTerminator()); in newSource() 88 newSrc = new LoadInst(Ty, Alloca, /*ArrLen,*/ "L", &BB); in newSource()
|
| /openbsd/src/gnu/llvm/llvm/examples/Kaleidoscope/MCJIT/lazy/ |
| D | toy-jit.cpp | 792 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 …]
|
| D | toy.cpp | 1072 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 …]
|
| /openbsd/src/gnu/llvm/llvm/examples/Kaleidoscope/MCJIT/cached/ |
| D | toy-jit.cpp | 810 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 …]
|
| D | toy.cpp | 1174 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 …]
|
| /openbsd/src/gnu/llvm/llvm/examples/Kaleidoscope/Chapter7/ |
| D | toy.cpp | 916 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 …]
|
| /openbsd/src/gnu/llvm/llvm/lib/CodeGen/ |
| D | MachineFrameInfo.cpp | 53 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()
|
| D | SwiftErrorValueTracking.cpp | 109 if (const AllocaInst *Alloca = dyn_cast<AllocaInst>(&Inst)) in setFunction() local 110 if (Alloca->isSwiftError()) in setFunction() 111 SwiftErrorVals.push_back(Alloca); in setFunction()
|
| /openbsd/src/gnu/llvm/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter3/ |
| D | toy.cpp | 910 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 …]
|
| /openbsd/src/gnu/llvm/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter1/ |
| D | toy.cpp | 910 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 …]
|
| /openbsd/src/gnu/llvm/llvm/examples/Kaleidoscope/Chapter8/ |
| D | toy.cpp | 914 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen() local 922 Builder->CreateStore(StartVal, Alloca); in codegen() 937 NamedValues[VarName] = Alloca; in codegen() 963 Value *CurVar = Builder->CreateLoad(Type::getDoubleTy(*TheContext), Alloca, in codegen() 966 Builder->CreateStore(NextVar, Alloca); in codegen() 1016 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen() local 1017 Builder->CreateStore(InitVal, Alloca); in codegen() 1024 NamedValues[VarName] = Alloca; in codegen() 1078 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, Arg.getName()); in codegen() local 1081 Builder->CreateStore(&Arg, Alloca); in codegen() [all …]
|
| /openbsd/src/gnu/llvm/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4/ |
| D | toy.cpp | 893 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 …]
|
| /openbsd/src/gnu/llvm/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/ |
| D | toy.cpp | 910 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 …]
|
| /openbsd/src/gnu/llvm/llvm/examples/Kaleidoscope/MCJIT/initial/ |
| D | toy.cpp | 1032 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 …]
|
| /openbsd/src/gnu/llvm/llvm/examples/Kaleidoscope/Chapter9/ |
| D | toy.cpp | 1084 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen() local 1094 Builder->CreateStore(StartVal, Alloca); in codegen() 1109 NamedValues[VarName] = Alloca; in codegen() 1135 Value *CurVar = Builder->CreateLoad(Type::getDoubleTy(*TheContext), 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() [all …]
|
| /openbsd/src/gnu/llvm/llvm/examples/Kaleidoscope/MCJIT/complete/ |
| D | toy.cpp | 1252 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 …]
|
| /openbsd/src/gnu/llvm/llvm/lib/Transforms/IPO/ |
| D | FunctionSpecialization.cpp | 104 Constant *FunctionSpecializer::getPromotableAlloca(AllocaInst *Alloca, in getPromotableAlloca() argument 107 for (auto *User : Alloca->users()) { in getPromotableAlloca() 141 auto *Alloca = dyn_cast<AllocaInst>(Val); in getConstantStackValue() local 142 if (!Alloca || !Alloca->getAllocatedType()->isIntegerTy()) in getConstantStackValue() 144 return getPromotableAlloca(Alloca, Call); in getConstantStackValue()
|
| /openbsd/src/gnu/llvm/clang/lib/CodeGen/ |
| D | CGGPUBuiltin.cpp | 115 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()
|
| /openbsd/src/gnu/llvm/llvm/lib/Transforms/Scalar/ |
| D | RewriteStatepointsForGC.cpp | 1999 Value *Alloca = AllocaMap[OriginalValue]; in insertRelocationStores() local 2009 cast<AllocaInst>(Alloca)->getAllocatedType(), in insertRelocationStores() 2012 new StoreInst(CastedRelocatedValue, Alloca, in insertRelocationStores() 2033 Value *Alloca = AllocaMap[OriginalValue]; in insertRematerializationStores() local 2035 new StoreInst(RematerializedValue, Alloca, in insertRematerializationStores() 2068 AllocaInst *Alloca = new AllocaInst(LiveValue->getType(), in relocationViaAlloca() local 2071 AllocaMap[LiveValue] = Alloca; in relocationViaAlloca() 2072 PromotableAllocas.push_back(Alloca); in relocationViaAlloca() 2128 AllocaInst *Alloca = Pair.second; in relocationViaAlloca() local 2134 ToClobber.push_back(Alloca); in relocationViaAlloca() [all …]
|
| /openbsd/src/gnu/llvm/llvm/docs/tutorial/MyFirstLanguageFrontend/ |
| D | LangImpl07.rst | 378 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); 386 Builder.CreateStore(StartVal, Alloca); 396 Value *CurVar = Builder.CreateLoad(Alloca); 398 Builder.CreateStore(NextVar, Alloca); 419 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, Arg.getName()); 422 Builder.CreateStore(&Arg, Alloca); 425 NamedValues[Arg.getName()] = Alloca; 820 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); 821 Builder.CreateStore(InitVal, Alloca); 828 NamedValues[VarName] = Alloca;
|
| /openbsd/src/gnu/llvm/llvm/include/llvm/Transforms/IPO/ |
| D | FunctionSpecialization.h | 158 Constant *getPromotableAlloca(AllocaInst *Alloca, CallInst *Call);
|