Home
last modified time | relevance | path

Searched refs:Offs (Results 1 – 25 of 41) sorted by relevance

12

/external/clang/lib/Edit/
DCommit.cpp48 FileOffset Offs; in insert() local
49 if ((!afterToken && !canInsert(loc, Offs)) || in insert()
50 ( afterToken && !canInsertAfterToken(loc, Offs, loc))) { in insert()
55 addInsert(loc, Offs, text, beforePreviousInsertions); in insert()
69 FileOffset Offs; in insertFromRange() local
70 if ((!afterToken && !canInsert(loc, Offs)) || in insertFromRange()
71 ( afterToken && !canInsertAfterToken(loc, Offs, loc))) { in insertFromRange()
82 addInsertFromRange(loc, Offs, RangeOffs, RangeLen, beforePreviousInsertions); in insertFromRange()
87 FileOffset Offs; in remove() local
89 if (!canRemoveRange(range, Offs, Len)) { in remove()
[all …]
DEditedSource.cpp61 bool EditedSource::canInsertInOffset(SourceLocation OrigLoc, FileOffset Offs) { in canInsertInOffset() argument
62 FileEditsTy::iterator FA = getActionForOffset(Offs); in canInsertInOffset()
64 if (FA->first != Offs) in canInsertInOffset()
96 FileOffset Offs, StringRef text, in commitInsert() argument
98 if (!canInsertInOffset(OrigLoc, Offs)) in commitInsert()
111 FileEdit &FA = FileEdits[Offs]; in commitInsert()
126 FileOffset Offs, in commitInsertFromRange() argument
180 return commitInsert(OrigLoc, Offs, StrVec, beforePreviousInsertions); in commitInsertFromRange()
446 EditedSource::getActionForOffset(FileOffset Offs) { in getActionForOffset() argument
447 FileEditsTy::iterator I = FileEdits.upper_bound(Offs); in getActionForOffset()
[all …]
/external/llvm-project/clang/lib/Edit/
DCommit.cpp53 FileOffset Offs; in insert() local
54 if ((!afterToken && !canInsert(loc, Offs)) || in insert()
55 ( afterToken && !canInsertAfterToken(loc, Offs, loc))) { in insert()
60 addInsert(loc, Offs, text, beforePreviousInsertions); in insert()
74 FileOffset Offs; in insertFromRange() local
75 if ((!afterToken && !canInsert(loc, Offs)) || in insertFromRange()
76 ( afterToken && !canInsertAfterToken(loc, Offs, loc))) { in insertFromRange()
87 addInsertFromRange(loc, Offs, RangeOffs, RangeLen, beforePreviousInsertions); in insertFromRange()
92 FileOffset Offs; in remove() local
94 if (!canRemoveRange(range, Offs, Len)) { in remove()
[all …]
DEditedSource.cpp74 bool EditedSource::canInsertInOffset(SourceLocation OrigLoc, FileOffset Offs) { in canInsertInOffset() argument
75 FileEditsTy::iterator FA = getActionForOffset(Offs); in canInsertInOffset()
77 if (FA->first != Offs) in canInsertInOffset()
112 FileOffset Offs, StringRef text, in commitInsert() argument
114 if (!canInsertInOffset(OrigLoc, Offs)) in commitInsert()
127 FileEdit &FA = FileEdits[Offs]; in commitInsert()
142 FileOffset Offs, in commitInsertFromRange() argument
196 return commitInsert(OrigLoc, Offs, StrVec, beforePreviousInsertions); in commitInsertFromRange()
468 EditedSource::getActionForOffset(FileOffset Offs) { in getActionForOffset() argument
469 FileEditsTy::iterator I = FileEdits.upper_bound(Offs); in getActionForOffset()
[all …]
/external/clang/include/clang/Edit/
DFileOffset.h21 unsigned Offs; variable
23 FileOffset() : Offs(0) { } in FileOffset()
24 FileOffset(FileID fid, unsigned offs) : FID(fid), Offs(offs) { } in FileOffset()
29 unsigned getOffset() const { return Offs; } in getOffset()
33 NewOffs.Offs += offset; in getWithOffset()
38 return LHS.FID == RHS.FID && LHS.Offs == RHS.Offs;
44 return std::tie(LHS.FID, LHS.Offs) < std::tie(RHS.FID, RHS.Offs);
DCommit.h115 FileOffset Offs, StringRef text, bool beforePreviousInsertions);
116 void addInsertFromRange(SourceLocation OrigLoc, FileOffset Offs,
119 void addRemove(SourceLocation OrigLoc, FileOffset Offs, unsigned Len);
124 bool canInsertInOffset(SourceLocation OrigLoc, FileOffset Offs);
125 bool canRemoveRange(CharSourceRange range, FileOffset &Offs, unsigned &Len);
127 FileOffset &Offs, unsigned &Len);
DEditedSource.h64 bool canInsertInOffset(SourceLocation OrigLoc, FileOffset Offs);
75 bool commitInsert(SourceLocation OrigLoc, FileOffset Offs, StringRef text,
77 bool commitInsertFromRange(SourceLocation OrigLoc, FileOffset Offs,
84 FileEditsTy::iterator getActionForOffset(FileOffset Offs);
/external/llvm-project/clang/include/clang/Edit/
DFileOffset.h20 unsigned Offs = 0; variable
24 FileOffset(FileID fid, unsigned offs) : FID(fid), Offs(offs) {} in FileOffset()
29 unsigned getOffset() const { return Offs; } in getOffset()
33 NewOffs.Offs += offset; in getWithOffset()
38 return LHS.FID == RHS.FID && LHS.Offs == RHS.Offs;
46 return std::tie(LHS.FID, LHS.Offs) < std::tie(RHS.FID, RHS.Offs);
DCommit.h126 FileOffset Offs, StringRef text, bool beforePreviousInsertions);
127 void addInsertFromRange(SourceLocation OrigLoc, FileOffset Offs,
130 void addRemove(SourceLocation OrigLoc, FileOffset Offs, unsigned Len);
135 bool canInsertInOffset(SourceLocation OrigLoc, FileOffset Offs);
136 bool canRemoveRange(CharSourceRange range, FileOffset &Offs, unsigned &Len);
138 FileOffset &Offs, unsigned &Len);
DEditedSource.h84 bool canInsertInOffset(SourceLocation OrigLoc, FileOffset Offs);
95 bool commitInsert(SourceLocation OrigLoc, FileOffset Offs, StringRef text,
97 bool commitInsertFromRange(SourceLocation OrigLoc, FileOffset Offs,
104 FileEditsTy::iterator getActionForOffset(FileOffset Offs);
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/SystemZ/
DSystemZMachineFunctionInfo.h50 void setSpillGPRRegs(unsigned Low, unsigned High, unsigned Offs) { in setSpillGPRRegs() argument
53 SpillGPRRegs.GPROffset = Offs; in setSpillGPRRegs()
60 void setRestoreGPRRegs(unsigned Low, unsigned High, unsigned Offs) { in setRestoreGPRRegs() argument
63 RestoreGPRRegs.GPROffset = Offs; in setRestoreGPRRegs()
/external/llvm-project/llvm/lib/Target/SystemZ/
DSystemZMachineFunctionInfo.h50 void setSpillGPRRegs(Register Low, Register High, unsigned Offs) { in setSpillGPRRegs() argument
53 SpillGPRRegs.GPROffset = Offs; in setSpillGPRRegs()
60 void setRestoreGPRRegs(Register Low, Register High, unsigned Offs) { in setRestoreGPRRegs() argument
63 RestoreGPRRegs.GPROffset = Offs; in setRestoreGPRRegs()
/external/llvm-project/llvm/lib/Target/ARM/
DMVEGatherScatterLowering.cpp891 Instruction *Offs = cast<Instruction>(Offsets); in optimiseOffsets() local
892 if (Offs->getOpcode() != Instruction::Add && in optimiseOffsets()
893 Offs->getOpcode() != Instruction::Mul) in optimiseOffsets()
898 if (!Offs->hasOneUse()) { in optimiseOffsets()
899 if (!hasAllGatScatUsers(Offs)) in optimiseOffsets()
907 if (isa<PHINode>(Offs->getOperand(0))) { in optimiseOffsets()
908 Phi = cast<PHINode>(Offs->getOperand(0)); in optimiseOffsets()
910 } else if (isa<PHINode>(Offs->getOperand(1))) { in optimiseOffsets()
911 Phi = cast<PHINode>(Offs->getOperand(1)); in optimiseOffsets()
915 if (isa<Instruction>(Offs->getOperand(0)) && in optimiseOffsets()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AVR/
DAVRISelDAGToDAG.cpp136 int Offs = cast<ConstantSDNode>(LD->getOffset())->getSExtValue(); in selectIndexedLoad() local
140 if ((!isPre && Offs != 1) || (isPre && Offs != -1)) { in selectIndexedLoad()
148 if ((!isPre && Offs != 2) || (isPre && Offs != -2)) { in selectIndexedLoad()
178 int Offs = cast<ConstantSDNode>(LD->getOffset())->getSExtValue(); in selectIndexedProgMemLoad() local
182 if (Offs != 1) { in selectIndexedProgMemLoad()
189 if (Offs != 2) { in selectIndexedProgMemLoad()
DAVRExpandPseudoInsts.cpp294 int64_t Offs = MI.getOperand(2).getOffset(); in expand() local
296 MIBLO.addGlobalAddress(GV, Offs, TF | AVRII::MO_NEG | AVRII::MO_LO); in expand()
297 MIBHI.addGlobalAddress(GV, Offs, TF | AVRII::MO_NEG | AVRII::MO_HI); in expand()
505 int64_t Offs = MI.getOperand(1).getOffset(); in expand() local
508 MIBLO.addGlobalAddress(GV, Offs, TF | AVRII::MO_LO); in expand()
509 MIBHI.addGlobalAddress(GV, Offs, TF | AVRII::MO_HI); in expand()
554 int64_t Offs = MI.getOperand(1).getOffset(); in expand() local
557 MIBLO.addGlobalAddress(GV, Offs, TF); in expand()
558 MIBHI.addGlobalAddress(GV, Offs + 1, TF); in expand()
986 int64_t Offs = MI.getOperand(0).getOffset(); in expand() local
[all …]
/external/llvm-project/llvm/lib/Target/AVR/
DAVRISelDAGToDAG.cpp136 int Offs = cast<ConstantSDNode>(LD->getOffset())->getSExtValue(); in selectIndexedLoad() local
140 if ((!isPre && Offs != 1) || (isPre && Offs != -1)) { in selectIndexedLoad()
148 if ((!isPre && Offs != 2) || (isPre && Offs != -2)) { in selectIndexedLoad()
178 int Offs = cast<ConstantSDNode>(LD->getOffset())->getSExtValue(); in selectIndexedProgMemLoad() local
182 if (Offs != 1) { in selectIndexedProgMemLoad()
189 if (Offs != 2) { in selectIndexedProgMemLoad()
DAVRExpandPseudoInsts.cpp294 int64_t Offs = MI.getOperand(2).getOffset(); in expand() local
296 MIBLO.addGlobalAddress(GV, Offs, TF | AVRII::MO_NEG | AVRII::MO_LO); in expand()
297 MIBHI.addGlobalAddress(GV, Offs, TF | AVRII::MO_NEG | AVRII::MO_HI); in expand()
543 int64_t Offs = MI.getOperand(1).getOffset(); in expand() local
546 MIBLO.addGlobalAddress(GV, Offs, TF | AVRII::MO_LO); in expand()
547 MIBHI.addGlobalAddress(GV, Offs, TF | AVRII::MO_HI); in expand()
592 int64_t Offs = MI.getOperand(1).getOffset(); in expand() local
595 MIBLO.addGlobalAddress(GV, Offs, TF); in expand()
596 MIBHI.addGlobalAddress(GV, Offs + 1, TF); in expand()
1024 int64_t Offs = MI.getOperand(0).getOffset(); in expand() local
[all …]
/external/llvm-project/clang/include/clang/Basic/
DSourceManagerInternals.h52 static LineEntry get(unsigned Offs, unsigned Line, int Filename, in get()
56 E.FileOffset = Offs; in get()
/external/clang/include/clang/Basic/
DSourceManagerInternals.h49 static LineEntry get(unsigned Offs, unsigned Line, int Filename, in get()
53 E.FileOffset = Offs; in get()
DSourceManager.h1373 unsigned Offs = Loc.getOffset();
1374 if (isOffsetInFileID(FID, Offs)) {
1376 *RelativeOffset = Offs - getSLocEntry(FID).getOffset();
/external/pigweed/pw_hex_dump/
Ddocs.rst46 Offs. 0 1 2 3 4 5 6 7 8 9 A B C D E F Text
68 Offs. 0 1 2 3 4 5 6 7 8 9 A B C D E F
101 Offs. 0 1 2 3 4 5 6 7 8 9 A B C D E F
/external/llvm/lib/Transforms/Instrumentation/
DEfficiencySanitizer.cpp563 uint64_t Offs; in appToShadow() local
566 Offs = ShadowOffs[Scale]; in appToShadow()
568 Offs = ShadowOffs[0] << Scale; in appToShadow()
569 Shadow = IRB.CreateAdd(Shadow, ConstantInt::get(IntptrTy, Offs)); in appToShadow()
/external/clang/lib/Basic/
DSourceManager.cpp1217 unsigned Offs = 0; in ComputeLineNumbers() local
1258 Offs += NextBuf-Buf; in ComputeLineNumbers()
1264 ++Offs; in ComputeLineNumbers()
1267 ++Offs; in ComputeLineNumbers()
1269 LineOffsets.push_back(Offs); in ComputeLineNumbers()
1274 ++Offs; in ComputeLineNumbers()
/external/llvm-project/clang/lib/Frontend/
DASTUnit.cpp2524 unsigned Offs; in mapLocationFromPreamble() local
2525 if (SourceMgr->isInFileID(Loc, PreambleID, &Offs) && Offs < Preamble->getBounds().Size) { in mapLocationFromPreamble()
2528 return FileLoc.getLocWithOffset(Offs); in mapLocationFromPreamble()
2545 unsigned Offs; in mapLocationToPreamble() local
2546 if (SourceMgr->isInFileID(Loc, SourceMgr->getMainFileID(), &Offs) && in mapLocationToPreamble()
2547 Offs < Preamble->getBounds().Size) { in mapLocationToPreamble()
2549 return FileLoc.getLocWithOffset(Offs); in mapLocationToPreamble()
/external/clang/lib/Frontend/
DASTUnit.cpp2687 unsigned Offs; in mapLocationFromPreamble() local
2688 if (SourceMgr->isInFileID(Loc, PreambleID, &Offs) && Offs < Preamble.size()) { in mapLocationFromPreamble()
2691 return FileLoc.getLocWithOffset(Offs); in mapLocationFromPreamble()
2708 unsigned Offs; in mapLocationToPreamble() local
2709 if (SourceMgr->isInFileID(Loc, SourceMgr->getMainFileID(), &Offs) && in mapLocationToPreamble()
2710 Offs < Preamble.size()) { in mapLocationToPreamble()
2712 return FileLoc.getLocWithOffset(Offs); in mapLocationToPreamble()

12