| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Coroutines/ |
| H A D | CoroFrame.cpp | 309 AllocaInst *Alloca; member 312 AllocaInfo(AllocaInst *Alloca, in AllocaInfo() 315 : Alloca(Alloca), Aliases(std::move(Aliases)), in AllocaInfo() 331 Defs.push_back(A.Alloca); in getAllDefs() 404 A.Alloca->dump(); in dumpAllocas() 557 Updater(A.Alloca); in updateLayoutIndex() 577 for (auto *Alloca : AllocaList) in addFieldForAllocas() local 578 FrameData.setFieldIndex(Alloca, Id); in addFieldForAllocas() 584 AllocaInst *Alloca = A.Alloca; in addFieldForAllocas() local 585 NonOverlapedAllocas.emplace_back(AllocaSetType(1, Alloca)); in addFieldForAllocas() [all …]
|
| H A D | CoroSplit.cpp | 609 auto Alloca = Builder.CreateAlloca(ValueTy); in replaceSwiftErrorOps() local 610 Alloca->setSwiftError(true); in replaceSwiftErrorOps() 612 CachedSlot = Alloca; in replaceSwiftErrorOps() 613 return Alloca; in replaceSwiftErrorOps() 738 auto *Alloca = dyn_cast<AllocaInst>(&I); in replaceEntryBlock() local 739 if (!Alloca || I.use_empty()) in replaceEntryBlock() 742 !isa<ConstantInt>(Alloca->getArraySize())) in replaceEntryBlock()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/ |
| H A D | MachineFrameInfo.h | 165 const AllocaInst *Alloca; member 186 bool IsImmutable, bool IsSpillSlot, const AllocaInst *Alloca, 190 Alloca(Alloca), isAliased(IsAliased), SSPLayout(SSPLK_None) {} in SPOffset() 487 return Objects[ObjectIdx+NumFixedObjects].Alloca; in getObjectAllocation() 735 const AllocaInst *Alloca = nullptr, uint8_t ID = 0); 750 int CreateVariableSizedObject(Align Alignment, const AllocaInst *Alloca);
|
| H A D | WinEHFuncInfo.h | 65 const AllocaInst *Alloca; member
|
| /netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/MCJIT/lazy/ |
| H A 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 …]
|
| H A 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 …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/MCJIT/cached/ |
| H A 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 …]
|
| H A 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 …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/Chapter7/ |
| H A 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 …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/Chapter8/ |
| H A D | toy.cpp | 915 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 …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter3/ |
| H A 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 …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/ |
| H A 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 …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter1/ |
| H A 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 …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4/ |
| H A 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 …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/ |
| H A 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()
|
| H A 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()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/MCJIT/initial/ |
| H A 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 …]
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/ |
| H A D | CGGPUBuiltin.cpp | 109 llvm::Value *Alloca = CreateTempAlloca(AllocaTy); in EmitNVPTXDevicePrintfCallExpr() local 112 llvm::Value *P = Builder.CreateStructGEP(AllocaTy, Alloca, I - 1); in EmitNVPTXDevicePrintfCallExpr() 116 BufferPtr = Builder.CreatePointerCast(Alloca, llvm::Type::getInt8PtrTy(Ctx)); in EmitNVPTXDevicePrintfCallExpr()
|
| H A D | CGExpr.cpp | 71 auto Alloca = CreateTempAlloca(Ty, Name, ArraySize); in CreateTempAllocaWithoutCast() local 72 Alloca->setAlignment(Align.getAsAlign()); in CreateTempAllocaWithoutCast() 73 return Address(Alloca, Align); in CreateTempAllocaWithoutCast() 82 auto Alloca = CreateTempAllocaWithoutCast(Ty, Align, Name, ArraySize); in CreateTempAlloca() local 84 *AllocaAddr = Alloca; in CreateTempAlloca() 85 llvm::Value *V = Alloca.getPointer(); in CreateTempAlloca() 130 auto *Alloca = Var.getPointer(); in InitTempAlloca() local 131 assert(isa<llvm::AllocaInst>(Alloca) || in InitTempAlloca() 132 (isa<llvm::AddrSpaceCastInst>(Alloca) && in InitTempAlloca() 134 cast<llvm::AddrSpaceCastInst>(Alloca)->getPointerOperand()))); in InitTempAlloca() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/Chapter9/ |
| H A 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 …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/MCJIT/complete/ |
| H A 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 …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/ |
| H A D | RewriteStatepointsForGC.cpp | 1855 Value *Alloca = AllocaMap[OriginalValue]; in insertRelocationStores() local 1865 cast<AllocaInst>(Alloca)->getAllocatedType(), in insertRelocationStores() 1868 new StoreInst(CastedRelocatedValue, Alloca, in insertRelocationStores() 1889 Value *Alloca = AllocaMap[OriginalValue]; in insertRematerializationStores() local 1891 new StoreInst(RematerializedValue, Alloca, in insertRematerializationStores() 1924 AllocaInst *Alloca = new AllocaInst(LiveValue->getType(), in relocationViaAlloca() local 1927 AllocaMap[LiveValue] = Alloca; in relocationViaAlloca() 1928 PromotableAllocas.push_back(Alloca); in relocationViaAlloca() 1984 AllocaInst *Alloca = Pair.second; in relocationViaAlloca() local 1990 ToClobber.push_back(Alloca); in relocationViaAlloca() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUPromoteAlloca.cpp | 92 bool binaryOpIsDerivedFromSameAlloca(Value *Alloca, Value *Val, 407 static bool tryPromoteAllocaToVector(AllocaInst *Alloca, const DataLayout &DL, in tryPromoteAllocaToVector() argument 415 Type *AllocaTy = Alloca->getAllocatedType(); in tryPromoteAllocaToVector() 447 SmallVector<User *, 8> Users(Alloca->users()); in tryPromoteAllocaToVector() 448 SmallVector<User *, 8> UseUsers(Users.size(), Alloca); in tryPromoteAllocaToVector() 513 Value *BitCast = Builder.CreateBitCast(Alloca, VecPtrTy); in tryPromoteAllocaToVector() 534 Value *BitCast = Builder.CreateBitCast(Alloca, VecPtrTy); in tryPromoteAllocaToVector()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/docs/tutorial/MyFirstLanguageFrontend/ |
| H A 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;
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/MIRParser/ |
| H A D | MIRParser.cpp | 749 const AllocaInst *Alloca = nullptr; in initializeFrameInfo() local 752 Alloca = dyn_cast_or_null<AllocaInst>( in initializeFrameInfo() 754 if (!Alloca) in initializeFrameInfo() 765 MFI.CreateVariableSizedObject(Object.Alignment.valueOrOne(), Alloca); in initializeFrameInfo() 769 Object.Type == yaml::MachineStackObject::SpillSlot, Alloca, in initializeFrameInfo()
|