HomeSort by relevance Sort by last modified time
    Searched refs:Allocas (Results 1 - 25 of 29) sorted by null

1 2

  /external/swiftshader/third_party/LLVM/include/llvm/Transforms/Utils/
PromoteMemToReg.h 1 //===- PromoteMemToReg.h - Promote Allocas to Scalars -----------*- C++ -*-===//
35 /// of the function at all. All allocas must be from the same function.
40 void PromoteMemToReg(const std::vector<AllocaInst*> &Allocas,
  /external/swiftshader/third_party/LLVM/lib/Transforms/Utils/
Mem2Reg.cpp 58 std::vector<AllocaInst*> Allocas;
67 Allocas.clear();
69 // Find allocas that are safe to promote, by looking at all instructions in
74 Allocas.push_back(AI);
76 if (Allocas.empty()) break;
78 PromoteMemToReg(Allocas, DT);
79 NumPromoted += Allocas.size();
PromoteMemoryToRegister.cpp 1 //===- PromoteMemoryToRegister.cpp - Convert allocas to registers ---------===//
150 /// blocks multiple times when promoting many allocas in the same block.
158 /// isInterestingInstruction - This code only looks at accesses to allocas.
199 /// Allocas - The alloca instructions being promoted.
201 std::vector<AllocaInst*> Allocas;
209 /// AllocaLookup - Reverse mapping of Allocas.
217 /// PhiToAllocaMap - For each PHI node, keep track of which entry in Allocas
248 : Allocas(A), DT(dt), DIB(0), AST(ast) {}
263 Allocas[AllocaIdx] = Allocas.back()
    [all...]
  /external/llvm/lib/Transforms/Utils/
Mem2Reg.cpp 32 std::vector<AllocaInst *> Allocas;
37 Allocas.clear();
39 // Find allocas that are safe to promote, by looking at all instructions in
44 Allocas.push_back(AI);
46 if (Allocas.empty())
49 PromoteMemToReg(Allocas, DT, nullptr, &AC);
50 NumPromoted += Allocas.size();
PromoteMemoryToRegister.cpp 1 //===- PromoteMemoryToRegister.cpp - Convert allocas to registers ---------===//
176 /// blocks multiple times when promoting many allocas in the same block.
187 /// This code only looks at accesses to allocas.
224 std::vector<AllocaInst *> Allocas;
234 /// Reverse mapping of Allocas.
245 /// For each PHI node, keep track of which entry in Allocas it corresponds
271 PromoteMem2Reg(ArrayRef<AllocaInst *> Allocas, DominatorTree &DT,
273 : Allocas(Allocas.begin(), Allocas.end()), DT(DT)
    [all...]
  /external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
Mem2Reg.cpp 37 std::vector<AllocaInst *> Allocas;
42 Allocas.clear();
44 // Find allocas that are safe to promote, by looking at all instructions in
49 Allocas.push_back(AI);
51 if (Allocas.empty())
54 PromoteMemToReg(Allocas, DT, &AC);
55 NumPromoted += Allocas.size();
PromoteMemoryToRegister.cpp 1 //===- PromoteMemoryToRegister.cpp - Convert allocas to registers ---------===//
185 /// blocks multiple times when promoting many allocas in the same block.
196 /// This code only looks at accesses to allocas.
233 std::vector<AllocaInst *> Allocas;
243 /// Reverse mapping of Allocas.
254 /// For each PHI node, keep track of which entry in Allocas it corresponds
279 PromoteMem2Reg(ArrayRef<AllocaInst *> Allocas, DominatorTree &DT,
281 : Allocas(Allocas.begin(), Allocas.end()), DT(DT)
    [all...]
  /external/llvm/include/llvm/Transforms/Utils/
PromoteMemToReg.h 1 //===- PromoteMemToReg.h - Promote Allocas to Scalars -----------*- C++ -*-===//
38 /// does not modify the CFG of the function at all. All allocas must be from
43 void PromoteMemToReg(ArrayRef<AllocaInst *> Allocas, DominatorTree &DT,
  /external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Transforms/Utils/
PromoteMemToReg.h 1 //===- PromoteMemToReg.h - Promote Allocas to Scalars -----------*- C++ -*-===//
38 /// does not modify the CFG of the function at all. All allocas must be from
41 void PromoteMemToReg(ArrayRef<AllocaInst *> Allocas, DominatorTree &DT,
CodeExtractor.h 48 /// 3) Add allocas for any scalar outputs, adding all of the outputs' allocas
112 const ValueSet &Allocas) const;
120 /// Find the set of allocas whose life ranges are contained within the
123 /// Allocas which have life_time markers contained in the outlined region
127 /// 'Allocas'.
  /external/llvm/lib/CodeGen/
SafeStackColoring.h 23 /// Compute live ranges of allocas.
74 ArrayRef<AllocaInst *> Allocas;
77 /// LiveRange for allocas.
80 /// The set of allocas that have at least one lifetime.start. All other
81 /// allocas get LiveRange that corresponds to the entire function.
103 StackColoring(Function &F, ArrayRef<AllocaInst *> Allocas)
104 : F(F), NumInst(-1), Allocas(Allocas), NumAllocas(Allocas.size()) {}
SafeStackColoring.cpp 59 AllocaInst *AI = Allocas[AllocaNo];
89 // * the sets of allocas whose lifetime starts or ends in this BB
238 dbgs() << "Allocas:\n";
240 dbgs() << " " << AllocaNo << ": " << *Allocas[AllocaNo] << "\n";
268 AllocaNumbering[Allocas[I]] = I;
StackColoring.cpp 19 // 2. Merge this pass with StackSlotColoring and allow merging of allocas with
64 /// The user may write code that uses allocas outside of the declared lifetime
70 ProtectFromEscapedAllocas("protect-from-escaped-allocas",
88 STATISTIC(EscapedAllocas, "Number of allocas that escaped the lifetime region");
795 // Keep a list of *allocas* which need to be remapped.
796 DenseMap<const AllocaInst*, const AllocaInst*> Allocas;
801 Allocas[From] = To;
849 // derived from the merged allocas. When doing this, we'll need to use
854 // We've replaced IR-level uses of the remapped allocas, so we only
860 if (!Allocas.count(AI)
    [all...]
  /external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
SafeStackColoring.h 30 /// Compute live ranges of allocas.
89 ArrayRef<AllocaInst *> Allocas;
93 /// LiveRange for allocas.
96 /// The set of allocas that have at least one lifetime.start. All other
97 /// allocas get LiveRange that corresponds to the entire function.
119 StackColoring(Function &F, ArrayRef<AllocaInst *> Allocas)
120 : F(F), Allocas(Allocas), NumAllocas(Allocas.size()) {}
SafeStackColoring.cpp 74 AllocaInst *AI = Allocas[AllocaNo];
104 // * the sets of allocas whose lifetime starts or ends in this BB
256 dbgs() << "Allocas:\n";
258 dbgs() << " " << AllocaNo << ": " << *Allocas[AllocaNo] << "\n";
287 AllocaNumbering[Allocas[I]] = I;
StackColoring.cpp 19 // 2. Merge this pass with StackSlotColoring and allow merging of allocas with
73 /// The user may write code that uses allocas outside of the declared lifetime
79 ProtectFromEscapedAllocas("protect-from-escaped-allocas",
97 STATISTIC(EscapedAllocas, "Number of allocas that escaped the lifetime region");
    [all...]
  /external/llvm/lib/ExecutionEngine/Interpreter/
Interpreter.h 72 AllocaHolder Allocas; // Track memory allocated by alloca
79 VarArgs(std::move(O.VarArgs)), Allocas(std::move(O.Allocas)) {}
88 Allocas = std::move(O.Allocas);
  /external/swiftshader/third_party/subzero/src/
IceCfg.cpp 910 void Cfg::sortAndCombineAllocas(CfgVector<InstAlloca *> &Allocas,
913 if (Allocas.empty())
916 std::sort(Allocas.begin(), Allocas.end(), [](InstAlloca *A1, InstAlloca *A2) {
924 // Process the allocas in order of decreasing stack alignment. This allows
    [all...]
IceCfg.h 211 /// Scan allocas to determine whether we need to use a frame pointer.
212 /// If SortAndCombine == true, merge all the fixed-size allocas in the
304 void sortAndCombineAllocas(CfgVector<InstAlloca *> &Allocas,
  /external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Instrumentation/
HWAddressSanitizer.cpp 95 cl::desc("instrument stack (allocas)"),
102 "to false, allocas are retagged before returning from the "
169 bool instrumentStack(SmallVectorImpl<AllocaInst *> &Allocas,
629 SmallVectorImpl<AllocaInst *> &Allocas,
631 Function *F = Allocas[0]->getParent()->getParent();
642 for (unsigned N = 0; N < Allocas.size(); ++N) {
643 auto *AI = Allocas[N];
676 // FIXME: instrument dynamic allocas, too
680 // We are only interested in allocas not promotable to registers.
681 // Promotable allocas are common under -O0
    [all...]
  /external/swiftshader/third_party/LLVM/lib/ExecutionEngine/Interpreter/
Interpreter.h 78 AllocaHolderHandle Allocas; // Track memory allocated by alloca
Execution.cpp 759 ECStack.back().Allocas.add(Memory);
    [all...]
  /external/swiftshader/third_party/llvm-7.0/llvm/lib/ExecutionEngine/Interpreter/
Interpreter.h 69 AllocaHolder Allocas; // Track memory allocated by alloca
  /external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Coroutines/
CoroFrame.cpp 465 // ; geps corresponding to allocas that were moved to coroutine frame
485 // We need to keep track of any allocas that need "spilling"
488 // we remember allocas and their indices to be handled once we processed
490 SmallVector<std::pair<AllocaInst *, unsigned>, 4> Allocas;
493 Allocas.emplace_back(Shape.PromiseAlloca, coro::Shape::PromiseField);
521 Allocas.emplace_back(AI, Index);
523 report_fatal_error("Coroutines cannot handle non static allocas yet");
589 // If we found any allocas, replace all of their remaining uses with Geps.
590 for (auto &P : Allocas) {
    [all...]
  /external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
ScalarReplAggregates.cpp 54 STATISTIC(NumReplaced, "Number of allocas broken up");
55 STATISTIC(NumPromoted, "Number of allocas promoted");
56 STATISTIC(NumAdjusted, "Number of scalar allocas adjusted to allow promotion");
58 STATISTIC(NumGlobals, "Number of allocas copied from constant global");
    [all...]

Completed in 488 milliseconds

1 2