Searched defs:Offs (Results 1 - 10 of 10) sorted by relevance

/external/clang/include/clang/Edit/
H A DFileOffset.h21 unsigned Offs; member in class:clang::edit::FileOffset
23 FileOffset() : Offs(0) { }
24 FileOffset(FileID fid, unsigned offs) : FID(fid), Offs(offs) { }
29 unsigned getOffset() const { return Offs; }
33 NewOffs.Offs += offset;
38 return LHS.FID == RHS.FID && LHS.Offs == RHS.Offs;
44 return std::tie(LHS.FID, LHS.Offs) < std::tie(RHS.FID, RHS.Offs);
/external/clang/include/clang/Basic/
H A DSourceManagerInternals.h49 static LineEntry get(unsigned Offs, unsigned Line, int Filename, argument
53 E.FileOffset = Offs;
H A DSourceManager.h1340 unsigned Offs = Loc.getOffset(); local
1341 if (isOffsetInFileID(FID, Offs)) {
1343 *RelativeOffset = Offs - getSLocEntry(FID).getOffset();
/external/clang/lib/Edit/
H A DCommit.cpp48 FileOffset Offs;
49 if ((!afterToken && !canInsert(loc, Offs)) ||
50 ( afterToken && !canInsertAfterToken(loc, Offs, loc))) {
55 addInsert(loc, Offs, text, beforePreviousInsertions);
69 FileOffset Offs; local
70 if ((!afterToken && !canInsert(loc, Offs)) ||
71 ( afterToken && !canInsertAfterToken(loc, Offs, loc))) {
82 addInsertFromRange(loc, Offs, RangeOffs, RangeLen, beforePreviousInsertions);
87 FileOffset Offs; local
89 if (!canRemoveRange(range, Offs, Le
177 addInsert(SourceLocation OrigLoc, FileOffset Offs, StringRef text, bool beforePreviousInsertions) argument
191 addInsertFromRange(SourceLocation OrigLoc, FileOffset Offs, FileOffset RangeOffs, unsigned RangeLen, bool beforePreviousInsertions) argument
207 addRemove(SourceLocation OrigLoc, FileOffset Offs, unsigned Len) argument
280 canInsertInOffset(SourceLocation OrigLoc, FileOffset Offs) argument
295 canRemoveRange(CharSourceRange range, FileOffset &Offs, unsigned &Len) argument
322 canReplaceText(SourceLocation loc, StringRef text, FileOffset &Offs, unsigned &Len) argument
[all...]
H A DEditedSource.cpp31 bool EditedSource::canInsertInOffset(SourceLocation OrigLoc, FileOffset Offs) { argument
32 FileEditsTy::iterator FA = getActionForOffset(Offs);
34 if (FA->first != Offs)
54 FileOffset Offs, StringRef text,
56 if (!canInsertInOffset(OrigLoc, Offs))
69 FileEdit &FA = FileEdits[Offs];
84 FileOffset Offs,
138 return commitInsert(OrigLoc, Offs, StrVec.str(), beforePreviousInsertions);
386 EditedSource::getActionForOffset(FileOffset Offs) { argument
387 FileEditsTy::iterator I = FileEdits.upper_bound(Offs);
53 commitInsert(SourceLocation OrigLoc, FileOffset Offs, StringRef text, bool beforePreviousInsertions) argument
83 commitInsertFromRange(SourceLocation OrigLoc, FileOffset Offs, FileOffset InsertFromRangeOffs, unsigned Len, bool beforePreviousInsertions) argument
[all...]
/external/clang/lib/Basic/
H A DSourceManager.cpp1216 unsigned Offs = 0; local
1257 Offs += NextBuf-Buf;
1263 ++Offs, ++Buf;
1264 ++Offs, ++Buf;
1265 LineOffsets.push_back(Offs);
1270 ++Offs, ++Buf;
/external/clang/lib/Frontend/
H A DASTUnit.cpp2700 unsigned Offs; local
2701 if (SourceMgr->isInFileID(Loc, PreambleID, &Offs) && Offs < Preamble.size()) {
2704 return FileLoc.getLocWithOffset(Offs);
2721 unsigned Offs; local
2722 if (SourceMgr->isInFileID(Loc, SourceMgr->getMainFileID(), &Offs) &&
2723 Offs < Preamble.size()) {
2725 return FileLoc.getLocWithOffset(Offs);
/external/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp2142 int64_t Offs = GA->getOffset(); local
2143 if (C) Offs += C->getZExtValue();
2146 Op.getValueType(), Offs));
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp444 Value *Offs = ConstantInt::get(Idx->getType(), -FirstTrueElement); local
445 Idx = Builder->CreateAdd(Idx, Offs);
458 Value *Offs = ConstantInt::get(Idx->getType(), -FirstFalseElement); local
459 Idx = Builder->CreateAdd(Idx, Offs);
/external/clang/lib/CodeGen/
H A DMicrosoftCXXABI.cpp900 CharUnits Offs = VBT->NonVirtualOffset; local
901 Offs += SubobjectLayout.getVBPtrOffset();
903 Offs += Layout.getVBaseClassOffset(VBT->getVBaseWithVPtr());
905 CGF.Builder.CreateConstInBoundsGEP1_64(ThisInt8Ptr, Offs.getQuantity());
1899 CharUnits Offs = CharUnits::Zero(); local
1901 Offs = getContext().getASTRecordLayout(RD).getVBPtrOffset();
1902 fields.push_back(llvm::ConstantInt::get(CGM.IntTy, Offs.getQuantity()));

Completed in 257 milliseconds