/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 | 61 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/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 | 64 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/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 | 1373 unsigned Offs = Loc.getOffset(); 1374 if (isOffsetInFileID(FID, Offs)) { 1376 *RelativeOffset = Offs - getSLocEntry(FID).getOffset();
|
/external/swiftshader/third_party/LLVM/lib/Target/CellSPU/ |
D | SPUISelDAGToDAG.cpp | 519 SDValue Offs; in DFormAddressPredicate() local 521 Offs = ((OpOpc == ISD::STORE) ? Op->getOperand(3) : Op->getOperand(2)); in DFormAddressPredicate() 523 if (Offs.getOpcode() == ISD::Constant || Offs.getOpcode() == ISD::UNDEF) { in DFormAddressPredicate() 524 if (Offs.getOpcode() == ISD::UNDEF) in DFormAddressPredicate() 525 Offs = CurDAG->getTargetConstant(0, Offs.getValueType()); in DFormAddressPredicate() 527 Base = Offs; in DFormAddressPredicate()
|
/external/llvm/lib/Transforms/Instrumentation/ |
D | EfficiencySanitizer.cpp | 563 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/ |
D | SourceManager.cpp | 1217 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/clang/lib/Frontend/ |
D | ASTUnit.cpp | 2687 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()
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/ |
D | FastISel.cpp | 439 uint64_t Offs = TD.getStructLayout(StTy)->getElementOffset(Field); in SelectGetElementPtr() local 442 N = FastEmit_ri_(VT, ISD::ADD, N, NIsKill, Offs, VT); in SelectGetElementPtr() 455 uint64_t Offs = in SelectGetElementPtr() local 457 N = FastEmit_ri_(VT, ISD::ADD, N, NIsKill, Offs, VT); in SelectGetElementPtr()
|
D | TargetLowering.cpp | 2721 int64_t Offs = GA->getOffset(); in LowerAsmOperandForConstraint() local 2722 if (C) Offs += C->getZExtValue(); in LowerAsmOperandForConstraint() 2725 Op.getValueType(), Offs)); in LowerAsmOperandForConstraint()
|
D | SelectionDAGBuilder.cpp | 3066 uint64_t Offs = in visitGetElementPtr() local 3074 DAG.getConstant(Offs, MVT::i64)); in visitGetElementPtr() 3076 OffsVal = DAG.getIntPtrConstant(Offs); in visitGetElementPtr()
|
/external/clang/lib/CodeGen/ |
D | MicrosoftCXXABI.cpp | 102 CharUnits Offs = VBT->NonVirtualOffset; in getVBPtrOffsets() local 103 Offs += SubobjectLayout.getVBPtrOffset(); in getVBPtrOffsets() 105 Offs += Layout.getVBaseClassOffset(VBT->getVBaseWithVPtr()); in getVBPtrOffsets() 106 VBPtrOffsets.push_back(Offs); in getVBPtrOffsets() 1215 CharUnits Offs = VBT->NonVirtualOffset; in EmitVBPtrStores() local 1216 Offs += SubobjectLayout.getVBPtrOffset(); in EmitVBPtrStores() 1218 Offs += Layout.getVBaseClassOffset(VBT->getVBaseWithVPtr()); in EmitVBPtrStores() 1219 Address VBPtr = CGF.Builder.CreateConstInBoundsByteGEP(This, Offs); in EmitVBPtrStores() 2589 CharUnits Offs = CharUnits::Zero(); in EmitFullMemberPointer() local 2591 Offs = getContext().getASTRecordLayout(RD).getVBPtrOffset(); in EmitFullMemberPointer() [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm/CodeGen/ |
D | SelectionDAG.h | 370 unsigned Align = 0, int Offs = 0, bool isT=false, 378 unsigned Align = 0, int Offs = 0, bool isT=false,
|
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineCompares.cpp | 416 Value *Offs = ConstantInt::get(Idx->getType(), -FirstTrueElement); in FoldCmpLoadFromIndexedGlobal() local 417 Idx = Builder->CreateAdd(Idx, Offs); in FoldCmpLoadFromIndexedGlobal() 430 Value *Offs = ConstantInt::get(Idx->getType(), -FirstFalseElement); in FoldCmpLoadFromIndexedGlobal() local 431 Idx = Builder->CreateAdd(Idx, Offs); in FoldCmpLoadFromIndexedGlobal()
|
/external/llvm/include/llvm/CodeGen/ |
D | SelectionDAG.h | 542 unsigned Align = 0, int Offs = 0, bool isT=false, 550 unsigned Align = 0, int Offs = 0, bool isT=false,
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCompares.cpp | 453 Value *Offs = ConstantInt::get(Idx->getType(), -FirstTrueElement); in FoldCmpLoadFromIndexedGlobal() local 454 Idx = Builder->CreateAdd(Idx, Offs); in FoldCmpLoadFromIndexedGlobal() 467 Value *Offs = ConstantInt::get(Idx->getType(), -FirstFalseElement); in FoldCmpLoadFromIndexedGlobal() local 468 Idx = Builder->CreateAdd(Idx, Offs); in FoldCmpLoadFromIndexedGlobal()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/ |
D | LoopStrengthReduce.cpp | 2809 int64_t Offs = (uint64_t)F.AM.BaseOffs + in GenerateCrossUseConstantOffsets() local 2813 ConstantInt::get(IntTy, -(uint64_t)Offs)))) in GenerateCrossUseConstantOffsets() 2816 NewF.AM.BaseOffs = Offs; in GenerateCrossUseConstantOffsets()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | TargetLowering.cpp | 2318 int64_t Offs = GA->getOffset(); in LowerAsmOperandForConstraint() local 2319 if (C) Offs += C->getZExtValue(); in LowerAsmOperandForConstraint() 2322 Op.getValueType(), Offs)); in LowerAsmOperandForConstraint()
|
D | SelectionDAGBuilder.cpp | 3334 APInt Offs = ElementSize * CI->getValue().sextOrTrunc(PtrSize); in visitGetElementPtr() local 3336 DAG.getConstant(Offs, dl, MVT::getVectorVT(PtrTy, VectorWidth)) : in visitGetElementPtr() 3337 DAG.getConstant(Offs, dl, PtrTy); in visitGetElementPtr() 3342 if (Offs.isNonNegative() && cast<GEPOperator>(I).isInBounds()) in visitGetElementPtr()
|