HomeSort by: relevance | last modified time | path
    Searched refs:Alloca (Results 1 - 25 of 74) sorted by relevancy

1 2 3

  /src/external/apache2/llvm/dist/llvm/lib/Transforms/Coroutines/
CoroFrame.cpp 309 AllocaInst *Alloca;
312 AllocaInfo(AllocaInst *Alloca,
315 : Alloca(Alloca), Aliases(std::move(Aliases)),
331 Defs.push_back(A.Alloca);
404 A.Alloca->dump();
412 // coroutine frame and if the alignment specified on the Alloca instruction
413 // differs from the natural alignment of the alloca type we will need to insert
439 /// Add a field to this structure for the storage of an `alloca`
476 /// Spills to non-overlapped sets in order to put Alloca in the sam
    [all...]
  /src/external/apache2/llvm/dist/clang/lib/CodeGen/
CGGPUBuiltin.cpp 60 // char* buf = alloca(sizeof(Tmp));
105 // compute the offsets within the alloca -- we wouldn't be able to assume
109 llvm::Value *Alloca = CreateTempAlloca(AllocaTy);
112 llvm::Value *P = Builder.CreateStructGEP(AllocaTy, Alloca, I - 1);
116 BufferPtr = Builder.CreatePointerCast(Alloca, llvm::Type::getInt8PtrTy(Ctx));
CGExpr.cpp 65 /// CreateTempAlloca - This creates a alloca and inserts it into the entry
71 auto Alloca = CreateTempAlloca(Ty, Name, ArraySize);
72 Alloca->setAlignment(Align.getAsAlign());
73 return Address(Alloca, Align);
76 /// CreateTempAlloca - This creates a alloca and inserts it into the entry
77 /// block. The alloca is casted to default address space if necessary.
82 auto Alloca = CreateTempAllocaWithoutCast(Ty, Align, Name, ArraySize);
84 *AllocaAddr = Alloca;
85 llvm::Value *V = Alloca.getPointer();
86 // Alloca always returns a pointer in alloca address space, which ma
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/CodeGen/
MachineFrameInfo.cpp 53 const AllocaInst *Alloca,
57 Objects.push_back(StackObject(Size, Alignment, 0, false, IsSpillSlot, Alloca,
75 const AllocaInst *Alloca) {
78 Objects.push_back(StackObject(0, Alignment, 0, false, false, Alloca, true));
97 /*IsSpillSlot=*/false, /*Alloca=*/nullptr,
110 /*IsSpillSlot=*/true, /*Alloca=*/nullptr,
170 // any calls or alloca's, align to the target's StackAlignment value to
171 // ensure that the callee's frame or the alloca data is suitably aligned;
SwiftErrorValueTracking.cpp 109 if (const AllocaInst *Alloca = dyn_cast<AllocaInst>(&Inst))
110 if (Alloca->isSwiftError())
111 SwiftErrorVals.push_back(Alloca);
MIRPrinter.cpp 417 if (const auto *Alloca = MFI.getObjectAllocation(I))
419 Alloca->hasName() ? Alloca->getName() : "");
  /src/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/
MachineFrameInfo.h 95 /// variable sized alloca's in the source program are the only source of
163 /// If this stack object is originated from an Alloca instruction
165 const AllocaInst *Alloca;
186 bool IsImmutable, bool IsSpillSlot, const AllocaInst *Alloca,
190 Alloca(Alloca), isAliased(IsAliased), SSPLayout(SSPLK_None) {}
200 /// lowering. All non-alloca stack objects have their alignment clamped to the
204 /// then only use a single alloca to allocate this frame and only a
206 /// optimization, each such alloca gets its own dynamic realignment.
482 /// Return the underlying Alloca of the specifie
    [all...]
WinEHFuncInfo.h 62 /// The CatchObj starts out life as an LLVM alloca and is eventually turned
65 const AllocaInst *Alloca;
  /src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/Chapter7/
toy.cpp 733 /// CreateEntryBlockAlloca - Create an alloca instruction in the entry block of
894 // var = alloca double
915 // Create an alloca for the variable in the entry block.
916 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName);
923 // Store the value into the alloca.
924 Builder->CreateStore(StartVal, Alloca);
939 NamedValues[VarName] = Alloca;
963 // Reload, increment, and restore the alloca. This handles the case where
966 Builder->CreateLoad(Alloca->getAllocatedType(), Alloca, VarName.c_str())
    [all...]
  /src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter1/
toy.cpp 727 /// CreateEntryBlockAlloca - Create an alloca instruction in the entry block of
888 // var = alloca double
909 // Create an alloca for the variable in the entry block.
910 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName);
917 // Store the value into the alloca.
918 Builder->CreateStore(StartVal, Alloca);
933 NamedValues[VarName] = Alloca;
957 // Reload, increment, and restore the alloca. This handles the case where
959 Value *CurVar = Builder->CreateLoad(Type::getDoubleTy(*TheContext), Alloca,
962 Builder->CreateStore(NextVar, Alloca);
    [all...]
  /src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/
toy.cpp 727 /// CreateEntryBlockAlloca - Create an alloca instruction in the entry block of
888 // var = alloca double
909 // Create an alloca for the variable in the entry block.
910 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName);
917 // Store the value into the alloca.
918 Builder->CreateStore(StartVal, Alloca);
933 NamedValues[VarName] = Alloca;
957 // Reload, increment, and restore the alloca. This handles the case where
959 Value *CurVar = Builder->CreateLoad(Type::getDoubleTy(*TheContext), Alloca,
962 Builder->CreateStore(NextVar, Alloca);
    [all...]
  /src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter3/
toy.cpp 727 /// CreateEntryBlockAlloca - Create an alloca instruction in the entry block of
888 // var = alloca double
909 // Create an alloca for the variable in the entry block.
910 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName);
917 // Store the value into the alloca.
918 Builder->CreateStore(StartVal, Alloca);
933 NamedValues[VarName] = Alloca;
957 // Reload, increment, and restore the alloca. This handles the case where
959 Value *CurVar = Builder->CreateLoad(Type::getDoubleTy(*TheContext), Alloca,
962 Builder->CreateStore(NextVar, Alloca);
    [all...]
  /src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4/
toy.cpp 710 /// CreateEntryBlockAlloca - Create an alloca instruction in the entry block of
871 // var = alloca double
892 // Create an alloca for the variable in the entry block.
893 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName);
900 // Store the value into the alloca.
901 Builder->CreateStore(StartVal, Alloca);
916 NamedValues[VarName] = Alloca;
940 // Reload, increment, and restore the alloca. This handles the case where
942 Value *CurVar = Builder->CreateLoad(Type::getDoubleTy(*TheContext), Alloca,
945 Builder->CreateStore(NextVar, Alloca);
    [all...]
  /src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/Chapter8/
toy.cpp 732 /// CreateEntryBlockAlloca - Create an alloca instruction in the entry block of
893 // var = alloca double
914 // Create an alloca for the variable in the entry block.
915 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName);
922 // Store the value into the alloca.
923 Builder->CreateStore(StartVal, Alloca);
938 NamedValues[VarName] = Alloca;
962 // Reload, increment, and restore the alloca. This handles the case where
964 Value *CurVar = Builder->CreateLoad(Type::getDoubleTy(*TheContext), Alloca,
967 Builder->CreateStore(NextVar, Alloca);
    [all...]
  /src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/MCJIT/cached/
toy-jit.cpp 632 /// CreateEntryBlockAlloca - Create an alloca instruction in the entry block of
788 // var = alloca double
809 // Create an alloca for the variable in the entry block.
810 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName);
816 // Store the value into the alloca.
817 Builder.CreateStore(StartVal, Alloca);
832 NamedValues[VarName] = Alloca;
854 // Reload, increment, and restore the alloca. This handles the case where
856 Value *CurVar = Builder.CreateLoad(Alloca, VarName.c_str());
858 Builder.CreateStore(NextVar, Alloca);
    [all...]
toy.cpp 1003 /// CreateEntryBlockAlloca - Create an alloca instruction in the entry block of
1152 // var = alloca double
1173 // Create an alloca for the variable in the entry block.
1174 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName);
1180 // Store the value into the alloca.
1181 Builder.CreateStore(StartVal, Alloca);
1196 NamedValues[VarName] = Alloca;
1218 // Reload, increment, and restore the alloca. This handles the case where
1220 Value *CurVar = Builder.CreateLoad(Alloca, VarName.c_str());
1222 Builder.CreateStore(NextVar, Alloca);
    [all...]
  /src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/MCJIT/initial/
toy.cpp 861 /// CreateEntryBlockAlloca - Create an alloca instruction in the entry block of
1010 // var = alloca double
1031 // Create an alloca for the variable in the entry block.
1032 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName);
1038 // Store the value into the alloca.
1039 Builder.CreateStore(StartVal, Alloca);
1054 NamedValues[VarName] = Alloca;
1076 // Reload, increment, and restore the alloca. This handles the case where
1078 Value *CurVar = Builder.CreateLoad(Alloca, VarName.c_str());
1080 Builder.CreateStore(NextVar, Alloca);
    [all...]
  /src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/MCJIT/lazy/
toy-jit.cpp 617 /// CreateEntryBlockAlloca - Create an alloca instruction in the entry block of
770 // var = alloca double
791 // Create an alloca for the variable in the entry block.
792 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName);
798 // Store the value into the alloca.
799 Builder.CreateStore(StartVal, Alloca);
814 NamedValues[VarName] = Alloca;
836 // Reload, increment, and restore the alloca. This handles the case where
838 Value *CurVar = Builder.CreateLoad(Alloca, VarName.c_str());
840 Builder.CreateStore(NextVar, Alloca);
    [all...]
toy.cpp 901 /// CreateEntryBlockAlloca - Create an alloca instruction in the entry block of
1050 // var = alloca double
1071 // Create an alloca for the variable in the entry block.
1072 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName);
1078 // Store the value into the alloca.
1079 Builder.CreateStore(StartVal, Alloca);
1094 NamedValues[VarName] = Alloca;
1116 // Reload, increment, and restore the alloca. This handles the case where
1118 Value *CurVar = Builder.CreateLoad(Alloca, VarName.c_str());
1120 Builder.CreateStore(NextVar, Alloca);
    [all...]
  /src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/Chapter9/
toy.cpp 892 /// CreateEntryBlockAlloca - Create an alloca instruction in the entry block of
1062 // var = alloca double
1083 // Create an alloca for the variable in the entry block.
1084 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName);
1093 // Store the value into the alloca.
1094 Builder->CreateStore(StartVal, Alloca);
1109 NamedValues[VarName] = Alloca;
1133 // Reload, increment, and restore the alloca. This handles the case where
1135 Value *CurVar = Builder->CreateLoad(Type::getDoubleTy(*TheContext), Alloca,
1138 Builder->CreateStore(NextVar, Alloca);
    [all...]
  /src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/MCJIT/complete/
toy.cpp 1075 /// CreateEntryBlockAlloca - Create an alloca instruction in the entry block of
1230 // var = alloca double
1251 // Create an alloca for the variable in the entry block.
1252 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName);
1258 // Store the value into the alloca.
1259 Builder.CreateStore(StartVal, Alloca);
1274 NamedValues[VarName] = Alloca;
1296 // Reload, increment, and restore the alloca. This handles the case where
1298 Value *CurVar = Builder.CreateLoad(Alloca, VarName.c_str());
1300 Builder.CreateStore(NextVar, Alloca);
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
AMDGPUPromoteAlloca.cpp 25 #define DEBUG_TYPE "amdgpu-promote-alloca"
32 "disable-promote-alloca-to-vector",
33 cl::desc("Disable promote alloca to vector"),
37 "disable-promote-alloca-to-lds",
38 cl::desc("Disable promote alloca to LDS"),
42 "amdgpu-promote-alloca-to-vector-limit",
43 cl::desc("Maximum byte size to consider promote alloca to vector"),
55 StringRef getPassName() const override { return "AMDGPU Promote Alloca"; }
82 /// BaseAlloca is the alloca root the search started from.
83 /// Val may be that alloca or a recursive user of it
    [all...]
AMDGPUTargetTransformInfo.cpp 59 static cl::opt<unsigned> ArgAllocaCost("amdgpu-inline-arg-alloca-cost",
61 cl::desc("Cost of alloca argument"));
67 ArgAllocaCutoff("amdgpu-inline-arg-alloca-cutoff", cl::Hidden,
69 cl::desc("Maximum alloca size to use for inline cost"));
115 // Maximum alloca size than can fit registers. Reserve 16 registers.
191 const AllocaInst *Alloca =
193 if (!Alloca || !Alloca->isStaticAlloca())
195 Type *Ty = Alloca->getAllocatedType();
231 // We want to do whatever we can to limit the number of alloca
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
RewriteStatepointsForGC.cpp 1855 Value *Alloca = AllocaMap[OriginalValue];
1857 // Emit store into the related alloca
1859 // the correct type according to alloca.
1865 cast<AllocaInst>(Alloca)->getAllocatedType(),
1868 new StoreInst(CastedRelocatedValue, Alloca,
1888 "Can not find alloca for rematerialized value");
1889 Value *Alloca = AllocaMap[OriginalValue];
1891 new StoreInst(RematerializedValue, Alloca,
1920 // Emit alloca for "LiveValue" and record it in "allocaMap" and
1924 AllocaInst *Alloca = new AllocaInst(LiveValue->getType()
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/CodeGen/MIRParser/
MIRParser.cpp 749 const AllocaInst *Alloca = nullptr;
752 Alloca = dyn_cast_or_null<AllocaInst>(
754 if (!Alloca)
756 "alloca instruction named '" + Name.Value +
765 MFI.CreateVariableSizedObject(Object.Alignment.valueOrOne(), Alloca);
769 Object.Type == yaml::MachineStackObject::SpillSlot, Alloca,

Completed in 75 milliseconds

1 2 3