/external/clang/lib/Edit/ |
D | Commit.cpp | 48 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 …]
|
D | EditedSource.cpp | 31 bool EditedSource::canInsertInOffset(SourceLocation OrigLoc, FileOffset Offs) { in canInsertInOffset() argument 32 FileEditsTy::iterator FA = getActionForOffset(Offs); in canInsertInOffset() 34 if (FA->first != Offs) in canInsertInOffset() 54 FileOffset Offs, StringRef text, in commitInsert() argument 56 if (!canInsertInOffset(OrigLoc, Offs)) in commitInsert() 69 FileEdit &FA = FileEdits[Offs]; in commitInsert() 84 FileOffset Offs, in commitInsertFromRange() argument 138 return commitInsert(OrigLoc, Offs, StrVec, beforePreviousInsertions); in commitInsertFromRange() 394 EditedSource::getActionForOffset(FileOffset Offs) { in getActionForOffset() argument 395 FileEditsTy::iterator I = FileEdits.upper_bound(Offs); in getActionForOffset() [all …]
|
/external/clang/include/clang/Edit/ |
D | FileOffset.h | 21 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);
|
D | Commit.h | 115 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);
|
D | EditedSource.h | 58 bool canInsertInOffset(SourceLocation OrigLoc, FileOffset Offs); 73 bool commitInsert(SourceLocation OrigLoc, FileOffset Offs, StringRef text, 75 bool commitInsertFromRange(SourceLocation OrigLoc, FileOffset Offs, 82 FileEditsTy::iterator getActionForOffset(FileOffset Offs);
|
/external/clang/include/clang/Basic/ |
D | SourceManagerInternals.h | 49 static LineEntry get(unsigned Offs, unsigned Line, int Filename, in get() 53 E.FileOffset = Offs; in get()
|
D | SourceManager.h | 1336 unsigned Offs = Loc.getOffset(); 1337 if (isOffsetInFileID(FID, Offs)) { 1339 *RelativeOffset = Offs - getSLocEntry(FID).getOffset();
|
/external/clang/lib/Basic/ |
D | SourceManager.cpp | 1207 unsigned Offs = 0; in ComputeLineNumbers() local 1248 Offs += NextBuf-Buf; in ComputeLineNumbers() 1254 ++Offs, ++Buf; in ComputeLineNumbers() 1255 ++Offs, ++Buf; in ComputeLineNumbers() 1256 LineOffsets.push_back(Offs); in ComputeLineNumbers() 1261 ++Offs, ++Buf; in ComputeLineNumbers()
|
/external/clang/lib/Frontend/ |
D | ASTUnit.cpp | 2647 unsigned Offs; in mapLocationFromPreamble() local 2648 if (SourceMgr->isInFileID(Loc, PreambleID, &Offs) && Offs < Preamble.size()) { in mapLocationFromPreamble() 2651 return FileLoc.getLocWithOffset(Offs); in mapLocationFromPreamble() 2668 unsigned Offs; in mapLocationToPreamble() local 2669 if (SourceMgr->isInFileID(Loc, SourceMgr->getMainFileID(), &Offs) && in mapLocationToPreamble() 2670 Offs < Preamble.size()) { in mapLocationToPreamble() 2672 return FileLoc.getLocWithOffset(Offs); in mapLocationToPreamble()
|
/external/clang/lib/CodeGen/ |
D | CGCall.cpp | 1944 if (unsigned Offs = ArgI.getDirectOffset()) { in EmitFunctionProlog() local 1946 Ptr = Builder.CreateConstGEP1_32(Builder.getInt8Ty(), Ptr, Offs); in EmitFunctionProlog() 2340 if (unsigned Offs = RetAI.getDirectOffset()) { in EmitFunctionEpilog() local 2342 V = Builder.CreateConstGEP1_32(Builder.getInt8Ty(), V, Offs); in EmitFunctionEpilog() 3210 if (unsigned Offs = ArgInfo.getDirectOffset()) { in EmitCall() local 3212 SrcPtr = Builder.CreateConstGEP1_32(Builder.getInt8Ty(), SrcPtr, Offs); in EmitCall() 3472 if (unsigned Offs = RetAI.getDirectOffset()) { in EmitCall() local 3475 Builder.CreateConstGEP1_32(Builder.getInt8Ty(), StorePtr, Offs); in EmitCall()
|
D | MicrosoftCXXABI.cpp | 1120 CharUnits Offs = VBT->NonVirtualOffset; in EmitVBPtrStores() local 1121 Offs += SubobjectLayout.getVBPtrOffset(); in EmitVBPtrStores() 1123 Offs += Layout.getVBaseClassOffset(VBT->getVBaseWithVPtr()); in EmitVBPtrStores() 1125 CGF.Builder.CreateConstInBoundsGEP1_64(ThisInt8Ptr, Offs.getQuantity()); in EmitVBPtrStores() 2212 CharUnits Offs = CharUnits::Zero(); in EmitFullMemberPointer() local 2214 Offs = getContext().getASTRecordLayout(RD).getVBPtrOffset(); in EmitFullMemberPointer() 2215 fields.push_back(llvm::ConstantInt::get(CGM.IntTy, Offs.getQuantity())); in EmitFullMemberPointer()
|
/external/llvm/include/llvm/CodeGen/ |
D | SelectionDAG.h | 465 unsigned Align = 0, int Offs = 0, bool isT=false, 473 unsigned Align = 0, int Offs = 0, bool isT=false,
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCompares.cpp | 449 Value *Offs = ConstantInt::get(Idx->getType(), -FirstTrueElement); in FoldCmpLoadFromIndexedGlobal() local 450 Idx = Builder->CreateAdd(Idx, Offs); in FoldCmpLoadFromIndexedGlobal() 463 Value *Offs = ConstantInt::get(Idx->getType(), -FirstFalseElement); in FoldCmpLoadFromIndexedGlobal() local 464 Idx = Builder->CreateAdd(Idx, Offs); in FoldCmpLoadFromIndexedGlobal()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | TargetLowering.cpp | 2169 int64_t Offs = GA->getOffset(); in LowerAsmOperandForConstraint() local 2170 if (C) Offs += C->getZExtValue(); in LowerAsmOperandForConstraint() 2173 Op.getValueType(), Offs)); in LowerAsmOperandForConstraint()
|
D | SelectionDAGBuilder.cpp | 3410 APInt Offs = ElementSize * CI->getValue().sextOrTrunc(PtrSize); in visitGetElementPtr() local 3411 SDValue OffsVal = DAG.getConstant(Offs, PtrTy); in visitGetElementPtr()
|