Searched refs:Cur (Results 1 - 25 of 66) sorted by relevance

123

/netbsd-current/external/apache2/llvm/dist/llvm/lib/Support/
H A Dcircular_raw_ostream.cpp26 std::min(unsigned(Size), unsigned(BufferSize - (Cur - BufferArray)));
27 memcpy(Cur, Ptr, Bytes);
29 Cur += Bytes;
30 if (Cur == BufferArray + BufferSize) {
32 Cur = BufferArray;
H A DOptimizedStructLayout.cpp249 static Field *getNext(Field *Cur) { argument
250 return static_cast<Field *>(Cur->Scratch);
294 auto spliceFromQueue = [&](AlignmentQueue *Queue, Field *Last, Field *Cur) {
295 assert(Last ? Queue->getNext(Last) == Cur : Queue->Head == Cur);
297 // If we're removing Cur from a non-initial position, splice it out
300 Last->Scratch = Cur->Scratch;
302 // If Cur was the last field in the list, we need to update MinSize.
305 if (!Cur->Scratch)
310 if (auto NewHead = Queue->getNext(Cur))
[all...]
/netbsd-current/external/apache2/llvm/dist/llvm/include/llvm/Support/
H A Dcircular_raw_ostream.h56 /// Cur - Pointer to the current output point in BufferArray.
58 char *Cur; member in class:llvm::circular_raw_ostream
75 TheStream->write(Cur, BufferArray + BufferSize - Cur);
77 TheStream->write(BufferArray, Cur - BufferArray);
78 Cur = BufferArray;
114 Cur = BufferArray;
H A DRegistry.h86 const node *Cur; member in class:llvm::Registry::iterator
89 explicit iterator(const node *N) : Cur(N) {}
91 bool operator==(const iterator &That) const { return Cur == That.Cur; }
92 iterator &operator++() { Cur = Cur->Next; return *this; }
93 const entry &operator*() const { return Cur->Val; }
/netbsd-current/external/apache2/llvm/dist/llvm/include/llvm/FuzzMutate/
H A DOpDescriptor.h47 using PredT = std::function<bool(ArrayRef<Value *> Cur, const Value *New)>;
52 ArrayRef<Value *> Cur, ArrayRef<Type *> BaseTypes)>;
62 Make = [Pred](ArrayRef<Value *> Cur, ArrayRef<Type *> BaseTypes) {
67 if (Pred(Cur, V))
76 /// Returns true if \c New is compatible for the argument after \c Cur
77 bool matches(ArrayRef<Value *> Cur, const Value *New) { argument
78 return Pred(Cur, New);
81 /// Generates a list of potential values for the argument after \c Cur.
82 std::vector<Constant *> generate(ArrayRef<Value *> Cur, argument
84 return Make(Cur, BaseType
[all...]
/netbsd-current/external/apache2/llvm/dist/llvm/tools/llvm-profgen/
H A DPseudoProbe.cpp41 PseudoProbeInlineTree *Cur = InlineTree; local
44 while (Cur->hasInlineSite()) {
48 getProbeFNameForGUID(GUID2FuncMAP, std::get<0>(Cur->ISite));
51 ContextStr += Twine(std::get<0>(Cur->ISite)).str();
54 ContextStr += Twine(std::get<1>(Cur->ISite)).str();
56 Cur = Cur->Parent;
211 PseudoProbeInlineTree *Cur = &DummyInlineRoot; local
216 if (Root == Cur) {
224 Cur
[all...]
H A DPerfReader.cpp117 void VirtualUnwinder::collectSamplesFromFrame(UnwindState::ProfiledFrame *Cur, argument
119 if (Cur->RangeSamples.empty() && Cur->BranchSamples.empty())
127 for (auto &Item : Cur->RangeSamples) {
133 for (auto &Item : Cur->BranchSamples) {
142 UnwindState::ProfiledFrame *Cur, T &Stack) {
143 if (!Cur->isDummyRoot()) {
144 if (!Stack.pushFrame(Cur)) {
146 for (const auto &Item : Cur->Children) {
154 collectSamplesFromFrame(Cur, Stac
141 collectSamplesFromFrameTrie( UnwindState::ProfiledFrame *Cur, T &Stack) argument
163 collectSamplesFromFrameTrie( UnwindState::ProfiledFrame *Cur) argument
[all...]
H A DPerfReader.h285 ProfiledFrame *Cur = &DummyTrieRoot; local
287 Cur = Cur->getOrCreateChildFrame(Address);
289 CurrentLeafFrame = Cur;
387 bool pushFrame(UnwindState::ProfiledFrame *Cur) { argument
388 Stack.push_back(Cur->Address);
403 bool pushFrame(UnwindState::ProfiledFrame *Cur) { argument
404 const PseudoProbe *CallProbe = Binary->getCallProbeForAddr(Cur->Address);
477 void collectSamplesFromFrame(UnwindState::ProfiledFrame *Cur, T &Stack);
480 void collectSamplesFromFrameTrie(UnwindState::ProfiledFrame *Cur,
[all...]
/netbsd-current/external/apache2/llvm/dist/llvm/lib/FuzzMutate/
H A DOperations.cpp190 auto Pred = [](ArrayRef<Value *> Cur, const Value *V) {
192 if (!CI->uge(getAggregateNumElements(Cur[0]->getType())))
196 auto Make = [](ArrayRef<Value *> Cur, ArrayRef<Type *> Ts) {
198 auto *Int32Ty = Type::getInt32Ty(Cur[0]->getContext());
199 uint64_t N = getAggregateNumElements(Cur[0]->getType());
222 auto Pred = [](ArrayRef<Value *> Cur, const Value *V) {
223 if (auto *ArrayT = dyn_cast<ArrayType>(Cur[0]->getType()))
226 auto *STy = cast<StructType>(Cur[0]->getType());
232 auto Make = [](ArrayRef<Value *> Cur, ArrayRef<Type *>) {
233 if (auto *ArrayT = dyn_cast<ArrayType>(Cur[
[all...]
/netbsd-current/external/apache2/llvm/dist/llvm/tools/llvm-c-test/
H A Decho.cpp907 LLVMValueRef Cur = First; local
910 CloneInstruction(Cur, Builder);
911 Next = LLVMGetNextInstruction(Cur);
913 if (Cur != Last)
919 if (Prev != Cur)
922 Cur = Next;
937 LLVMBasicBlockRef Cur = First; local
940 CloneBB(Cur);
942 Next = LLVMGetNextBasicBlock(Cur);
944 if (Cur !
967 LLVMValueRef Cur = Begin; local
1147 LLVMValueRef Cur = Begin; local
[all...]
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Object/
H A DELF.cpp388 DataExtractor::Cursor Cur(/*Offset=*/4);
390 uint64_t NumRelocs = Data.getSLEB128(Cur);
391 uint64_t Offset = Data.getSLEB128(Cur);
394 if (!Cur)
395 return std::move(Cur.takeError());
400 uint64_t NumRelocsInGroup = Data.getSLEB128(Cur);
401 if (!Cur)
402 return std::move(Cur.takeError());
407 uint64_t GroupFlags = Data.getSLEB128(Cur);
415 GroupOffsetDelta = Data.getSLEB128(Cur);
[all...]
H A DXCOFFObjectFile.cpp976 DataExtractor::Cursor Cur(/*Offset=*/0);
979 DE.getU64(Cur);
982 if (Cur) {
989 uint32_t ParamsTypeValue = DE.getU32(Cur);
990 if (Cur)
997 if (Cur && hasTraceBackTableOffset())
998 TraceBackTableOffset = DE.getU32(Cur);
1000 if (Cur && isInterruptHandler())
1001 HandlerMask = DE.getU32(Cur);
1003 if (Cur
[all...]
/netbsd-current/external/apache2/llvm/dist/llvm/lib/MC/
H A DMCPseudoProbe.cpp113 auto *Cur = getOrAddNode(Top); local
115 // Make interior edges by walking the inline stack. Once it's done, Cur should
123 Cur = Cur->getOrAddNode(InlineSite(std::get<0>(*Iter), Index));
126 Cur = Cur->getOrAddNode(InlineSite(Probe.getGuid(), Index));
129 Cur->Probes.push_back(Probe);
/netbsd-current/external/apache2/llvm/dist/llvm/lib/DebugInfo/PDB/Native/
H A DNativeEnumInjectedSources.cpp98 : File(File), Stream(IJS), Strings(Strings), Cur(Stream.begin()) {}
113 if (Cur == Stream.end())
115 return std::make_unique<NativeInjectedSource>((Cur++)->second, File, Strings);
118 void NativeEnumInjectedSources::reset() { Cur = Stream.begin(); }
/netbsd-current/external/apache2/llvm/dist/llvm/include/llvm/DebugInfo/PDB/Native/
H A DNativeEnumInjectedSources.h38 InjectedSourceStream::const_iterator Cur; member in class:llvm::pdb::NativeEnumInjectedSources
/netbsd-current/external/apache2/llvm/dist/clang/lib/AST/
H A DTypeLoc.cpp192 TypeLoc Cur = *this; local
193 TypeLoc LeftMost = Cur;
195 switch (Cur.getTypeLocClass()) {
197 LeftMost = Cur;
200 if (Cur.castAs<FunctionProtoTypeLoc>().getTypePtr()
202 LeftMost = Cur;
213 Cur = Cur.getNextTypeLoc();
216 if (Cur.getLocalSourceRange().getBegin().isValid())
217 LeftMost = Cur;
229 TypeLoc Cur = *this; local
[all...]
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DIVDescriptors.cpp305 Instruction *Cur = Worklist.pop_back_val(); local
310 if (Cur->use_empty())
313 bool IsAPhi = isa<PHINode>(Cur);
316 if (Cur != Phi && IsAPhi && Cur->getParent() == Phi->getParent())
321 if (!Cur->isCommutative() && !IsAPhi && !isa<SelectInst>(Cur) &&
322 !isa<ICmpInst>(Cur) && !isa<FCmpInst>(Cur) &&
323 !VisitedInsts.count(dyn_cast<Instruction>(Cur
[all...]
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Target/AArch64/MCTargetDesc/
H A DAArch64TargetStreamer.cpp76 MCSection *Cur = OutStreamer.getCurrentSectionOnly(); local
93 OutStreamer.SwitchSection(Cur);
/netbsd-current/sys/external/bsd/compiler_rt/dist/lib/fuzzer/
H A DFuzzerMerge.cpp134 auto &Cur = Files[i].Features; local
135 AllFeatures.insert(Cur.begin(), Cur.end());
141 auto &Cur = Files[i].Features; local
143 std::set_difference(Cur.begin(), Cur.end(), AllFeatures.begin(),
145 Cur.swap(Tmp);
161 auto &Cur = Files[i].Features; local
163 // Files[i].Size, Cur.size());
165 AllFeatures.insert(Cur
[all...]
/netbsd-current/external/apache2/llvm/dist/llvm/lib/CodeGen/AsmPrinter/
H A DDIEHash.cpp86 const DIE *Cur = &Parent; local
87 while (Cur->getParent()) {
88 Parents.push_back(Cur);
89 Cur = Cur->getParent();
91 assert(Cur->getTag() == dwarf::DW_TAG_compile_unit ||
92 Cur->getTag() == dwarf::DW_TAG_type_unit);
/netbsd-current/external/apache2/llvm/dist/llvm/tools/obj2yaml/
H A Delf2yaml.cpp816 DataExtractor::Cursor Cur(0);
817 while (Cur && Cur.tell() < Content.size()) {
818 uint64_t Address = Data.getAddress(Cur);
819 uint64_t Size = Data.getULEB128(Cur);
823 if (Content.empty() || !Cur) {
825 consumeError(Cur.takeError());
852 DataExtractor::Cursor Cur(0);
853 while (Cur && Cur
[all...]
/netbsd-current/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DScheduleDAG.cpp268 SUnit *Cur = WorkList.back();
272 for (const SDep &PredDep : Cur->Preds) {
285 if (MaxPredDepth != Cur->Depth) {
286 Cur->setDepthDirty();
287 Cur->Depth = MaxPredDepth;
289 Cur->isDepthCurrent = true;
299 SUnit *Cur = WorkList.back();
303 for (const SDep &SuccDep : Cur->Succs) {
316 if (MaxSuccHeight != Cur->Height) {
317 Cur
[all...]
H A DPseudoProbeInserter.cpp92 auto Cur = MII++; variable
93 if (Cur->getOpcode() != TargetOpcode::PSEUDO_PROBE)
96 auto *ProbeInstr = &*Cur;
/netbsd-current/external/apache2/llvm/dist/llvm/utils/TableGen/
H A DDAGISelMatcher.cpp40 Matcher *Cur = this;
41 for (; Cur && Cur->getNext() != Other; Cur = Cur->getNext())
44 if (!Cur) return nullptr;
45 Cur->takeNext();
46 Cur->setNext(Other->takeNext());
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Option/
H A DArgList.cpp177 StringRef Cur = getArgString(Index); local
178 if (Cur.size() == LHS.size() + RHS.size() &&
179 Cur.startswith(LHS) && Cur.endswith(RHS))
180 return Cur.data();

Completed in 417 milliseconds

123