/external/clang/include/clang/Edit/ |
H A D | FileOffset.h | 21 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; 46 return LHS.Offs < RHS.Offs; 51 return LHS.Offs > RH [all...] |
/external/clang/include/clang/Basic/ |
H A D | SourceManagerInternals.h | 49 static LineEntry get(unsigned Offs, unsigned Line, int Filename, argument 53 E.FileOffset = Offs;
|
H A D | SourceManager.h | 1225 unsigned Offs = Loc.getOffset(); local 1226 if (isOffsetInFileID(FID, Offs)) { 1228 *RelativeOffset = Offs - getSLocEntry(FID).getOffset();
|
/external/clang/lib/Edit/ |
H A D | Commit.cpp | 48 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 D | EditedSource.cpp | 30 bool EditedSource::canInsertInOffset(SourceLocation OrigLoc, FileOffset Offs) { argument 31 FileEditsTy::iterator FA = getActionForOffset(Offs); 33 if (FA->first != Offs) 53 FileOffset Offs, StringRef text, 55 if (!canInsertInOffset(OrigLoc, Offs)) 68 FileEdit &FA = FileEdits[Offs]; 85 FileOffset Offs, 139 return commitInsert(OrigLoc, Offs, StrVec.str(), beforePreviousInsertions); 320 EditedSource::getActionForOffset(FileOffset Offs) { argument 321 FileEditsTy::iterator I = FileEdits.upper_bound(Offs); 52 commitInsert(SourceLocation OrigLoc, FileOffset Offs, StringRef text, bool beforePreviousInsertions) argument 84 commitInsertFromRange(SourceLocation OrigLoc, FileOffset Offs, FileOffset InsertFromRangeOffs, unsigned Len, bool beforePreviousInsertions) argument [all...] |
/external/llvm/lib/Target/CellSPU/ |
H A D | SPUISelDAGToDAG.cpp | 515 SDValue Offs; local 517 Offs = ((OpOpc == ISD::STORE) ? Op->getOperand(3) : Op->getOperand(2)); 519 if (Offs.getOpcode() == ISD::Constant || Offs.getOpcode() == ISD::UNDEF) { 520 if (Offs.getOpcode() == ISD::UNDEF) 521 Offs = CurDAG->getTargetConstant(0, Offs.getValueType()); 523 Base = Offs;
|
/external/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineCompares.cpp | 422 Value *Offs = ConstantInt::get(Idx->getType(), -FirstTrueElement); local 423 Idx = Builder->CreateAdd(Idx, Offs); 436 Value *Offs = ConstantInt::get(Idx->getType(), -FirstFalseElement); local 437 Idx = Builder->CreateAdd(Idx, Offs);
|
/external/clang/lib/Basic/ |
H A D | SourceManager.cpp | 1094 unsigned Offs = 0; local 1135 Offs += NextBuf-Buf; 1141 ++Offs, ++Buf; 1142 ++Offs, ++Buf; 1143 LineOffsets.push_back(Offs); 1148 ++Offs, ++Buf;
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
H A D | TargetLowering.cpp | 2794 int64_t Offs = GA->getOffset(); local 2795 if (C) Offs += C->getZExtValue(); 2798 Op.getValueType(), Offs));
|
H A D | SelectionDAGBuilder.cpp | 3132 uint64_t Offs = local 3140 DAG.getConstant(Offs, MVT::i64)); 3142 OffsVal = DAG.getIntPtrConstant(Offs);
|
/external/clang/lib/Frontend/ |
H A D | ASTUnit.cpp | 2689 unsigned Offs; local 2690 if (SourceMgr->isInFileID(Loc, PreambleID, &Offs) && Offs < Preamble.size()) { 2693 return FileLoc.getLocWithOffset(Offs); 2710 unsigned Offs; local 2711 if (SourceMgr->isInFileID(Loc, SourceMgr->getMainFileID(), &Offs) && 2712 Offs < Preamble.size()) { 2714 return FileLoc.getLocWithOffset(Offs);
|
/external/llvm/lib/Transforms/Scalar/ |
H A D | LoopStrengthReduce.cpp | 1307 // Offs is the ICmp immediate. 1308 int64_t Offs = AM.BaseOffs; 1310 Offs = -(uint64_t)Offs; // The cast does the right thing with INT64_MIN. 1311 return TLI->isLegalICmpImmediate(Offs); 3554 int64_t Offs = (uint64_t)F.AM.BaseOffs + local 3558 ConstantInt::get(IntTy, -(uint64_t)Offs)))) 3561 NewF.AM.BaseOffs = Offs;
|