Home
last modified time | relevance | path

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

/minix/external/bsd/llvm/dist/clang/lib/Edit/
H A DCommit.cpp48 FileOffset Offs; in insert() local
69 FileOffset Offs; in insertFromRange() local
87 FileOffset Offs; in remove() local
115 FileOffset Offs; in replace() local
117 if (!canInsert(range.getBegin(), Offs) || !canRemoveRange(range, Offs, Len)) { in replace()
165 FileOffset Offs; in replaceText() local
172 addRemove(loc, Offs, Len); in replaceText()
185 data.Offset = Offs; in addInsert()
200 data.Offset = Offs; in addInsertFromRange()
215 data.Offset = Offs; in addRemove()
[all …]
H A DEditedSource.cpp31 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.str(), beforePreviousInsertions); in commitInsertFromRange()
392 EditedSource::getActionForOffset(FileOffset Offs) { in getActionForOffset() argument
393 FileEditsTy::iterator I = FileEdits.upper_bound(Offs); in getActionForOffset()
[all …]
/minix/external/bsd/llvm/dist/clang/include/clang/Edit/
H A 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);
H A 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);
H A DEditedSource.h58 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);
/minix/external/bsd/llvm/dist/clang/include/clang/Basic/
H A DSourceManagerInternals.h49 static LineEntry get(unsigned Offs, unsigned Line, int Filename, in get()
53 E.FileOffset = Offs; in get()
H A DSourceManager.h1344 unsigned Offs = Loc.getOffset();
1345 if (isOffsetInFileID(FID, Offs)) {
1347 *RelativeOffset = Offs - getSLocEntry(FID).getOffset();
/minix/external/bsd/llvm/dist/clang/lib/Basic/
H A DSourceManager.cpp1207 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()
/minix/external/bsd/llvm/dist/clang/lib/Frontend/
H A DASTUnit.cpp2670 unsigned Offs; in mapLocationFromPreamble() local
2671 if (SourceMgr->isInFileID(Loc, PreambleID, &Offs) && Offs < Preamble.size()) { in mapLocationFromPreamble()
2674 return FileLoc.getLocWithOffset(Offs); in mapLocationFromPreamble()
2691 unsigned Offs; in mapLocationToPreamble() local
2692 if (SourceMgr->isInFileID(Loc, SourceMgr->getMainFileID(), &Offs) && in mapLocationToPreamble()
2693 Offs < Preamble.size()) { in mapLocationToPreamble()
2695 return FileLoc.getLocWithOffset(Offs); in mapLocationToPreamble()
/minix/external/bsd/llvm/dist/clang/lib/CodeGen/
H A DCGCall.cpp1902 if (unsigned Offs = ArgI.getDirectOffset()) { in EmitFunctionProlog() local
1904 Ptr = Builder.CreateConstGEP1_32(Ptr, Offs); in EmitFunctionProlog()
2297 if (unsigned Offs = RetAI.getDirectOffset()) { in EmitFunctionEpilog() local
2299 V = Builder.CreateConstGEP1_32(V, Offs); in EmitFunctionEpilog()
3159 if (unsigned Offs = ArgInfo.getDirectOffset()) { in EmitCall() local
3161 SrcPtr = Builder.CreateConstGEP1_32(SrcPtr, Offs); in EmitCall()
3414 if (unsigned Offs = RetAI.getDirectOffset()) { in EmitCall() local
3416 StorePtr = Builder.CreateConstGEP1_32(StorePtr, Offs); in EmitCall()
H A DMicrosoftCXXABI.cpp967 CharUnits Offs = VBT->NonVirtualOffset; in EmitVBPtrStores() local
968 Offs += SubobjectLayout.getVBPtrOffset(); in EmitVBPtrStores()
970 Offs += Layout.getVBaseClassOffset(VBT->getVBaseWithVPtr()); in EmitVBPtrStores()
972 CGF.Builder.CreateConstInBoundsGEP1_64(ThisInt8Ptr, Offs.getQuantity()); in EmitVBPtrStores()
2060 CharUnits Offs = CharUnits::Zero(); in EmitFullMemberPointer() local
2062 Offs = getContext().getASTRecordLayout(RD).getVBPtrOffset(); in EmitFullMemberPointer()
2063 fields.push_back(llvm::ConstantInt::get(CGM.IntTy, Offs.getQuantity())); in EmitFullMemberPointer()
/minix/external/bsd/llvm/dist/llvm/include/llvm/CodeGen/
H A DSelectionDAG.h476 unsigned Align = 0, int Offs = 0, bool isT=false,
484 unsigned Align = 0, int Offs = 0, bool isT=false,
/minix/external/bsd/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp454 Value *Offs = ConstantInt::get(Idx->getType(), -FirstTrueElement); in FoldCmpLoadFromIndexedGlobal() local
455 Idx = Builder->CreateAdd(Idx, Offs); in FoldCmpLoadFromIndexedGlobal()
468 Value *Offs = ConstantInt::get(Idx->getType(), -FirstFalseElement); in FoldCmpLoadFromIndexedGlobal() local
469 Idx = Builder->CreateAdd(Idx, Offs); in FoldCmpLoadFromIndexedGlobal()
/minix/external/bsd/llvm/dist/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp2160 int64_t Offs = GA->getOffset(); in LowerAsmOperandForConstraint() local
2161 if (C) Offs += C->getZExtValue(); in LowerAsmOperandForConstraint()
2164 Op.getValueType(), Offs)); in LowerAsmOperandForConstraint()
H A DSelectionDAGBuilder.cpp3410 APInt Offs = ElementSize * CI->getValue().sextOrTrunc(PtrSize); in visitGetElementPtr() local
3411 SDValue OffsVal = DAG.getConstant(Offs, PtrTy); in visitGetElementPtr()