Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/lib/Edit/
H A DCommit.cpp52 FileOffset Offs; in insert() local
53 if ((!afterToken && !canInsert(loc, Offs)) || in insert()
54 ( afterToken && !canInsertAfterToken(loc, Offs, loc))) { in insert()
59 addInsert(loc, Offs, text, beforePreviousInsertions); in insert()
73 FileOffset Offs; in insertFromRange() local
74 if ((!afterToken && !canInsert(loc, Offs)) || in insertFromRange()
75 ( afterToken && !canInsertAfterToken(loc, Offs, loc))) { in insertFromRange()
86 addInsertFromRange(loc, Offs, RangeOffs, RangeLen, beforePreviousInsertions); in insertFromRange()
91 FileOffset Offs; in remove() local
93 if (!canRemoveRange(range, Offs, Len)) { in remove()
[all …]
H A DEditedSource.cpp72 bool EditedSource::canInsertInOffset(SourceLocation OrigLoc, FileOffset Offs) { in canInsertInOffset() argument
73 FileEditsTy::iterator FA = getActionForOffset(Offs); in canInsertInOffset()
75 if (FA->first != Offs) in canInsertInOffset()
110 FileOffset Offs, StringRef text, in commitInsert() argument
112 if (!canInsertInOffset(OrigLoc, Offs)) in commitInsert()
125 FileEdit &FA = FileEdits[Offs]; in commitInsert()
140 FileOffset Offs, in commitInsertFromRange() argument
194 return commitInsert(OrigLoc, Offs, StrVec, beforePreviousInsertions); in commitInsertFromRange()
466 EditedSource::getActionForOffset(FileOffset Offs) { in getActionForOffset() argument
467 FileEditsTy::iterator I = FileEdits.upper_bound(Offs); in getActionForOffset()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Edit/
H A DFileOffset.h20 unsigned Offs = 0; variable
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;
46 return std::tie(LHS.FID, LHS.Offs) < std::tie(RHS.FID, RHS.Offs);
H A DCommit.h126 FileOffset Offs, StringRef text, bool beforePreviousInsertions);
127 void addInsertFromRange(SourceLocation OrigLoc, FileOffset Offs,
130 void addRemove(SourceLocation OrigLoc, FileOffset Offs, unsigned Len);
135 bool canInsertInOffset(SourceLocation OrigLoc, FileOffset Offs);
136 bool canRemoveRange(CharSourceRange range, FileOffset &Offs, unsigned &Len);
138 FileOffset &Offs, unsigned &Len);
H A DEditedSource.h84 bool canInsertInOffset(SourceLocation OrigLoc, FileOffset Offs);
95 bool commitInsert(SourceLocation OrigLoc, FileOffset Offs, StringRef text,
97 bool commitInsertFromRange(SourceLocation OrigLoc, FileOffset Offs,
104 FileEditsTy::iterator getActionForOffset(FileOffset Offs);
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZMachineFunctionInfo.h64 void setSpillGPRRegs(Register Low, Register High, unsigned Offs) { in setSpillGPRRegs() argument
67 SpillGPRRegs.GPROffset = Offs; in setSpillGPRRegs()
74 void setRestoreGPRRegs(Register Low, Register High, unsigned Offs) { in setRestoreGPRRegs() argument
77 RestoreGPRRegs.GPROffset = Offs; in setRestoreGPRRegs()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DMVEGatherScatterLowering.cpp979 Instruction *Offs = cast<Instruction>(Offsets); in optimiseOffsets() local
980 if (Offs->getOpcode() != Instruction::Add && !isAddLikeOr(Offs, *DL) && in optimiseOffsets()
981 Offs->getOpcode() != Instruction::Mul && in optimiseOffsets()
982 Offs->getOpcode() != Instruction::Shl) in optimiseOffsets()
987 if (!Offs->hasOneUse()) { in optimiseOffsets()
988 if (!hasAllGatScatUsers(Offs, *DL)) in optimiseOffsets()
996 if (isa<PHINode>(Offs->getOperand(0))) { in optimiseOffsets()
997 Phi = cast<PHINode>(Offs->getOperand(0)); in optimiseOffsets()
999 } else if (isa<PHINode>(Offs->getOperand(1))) { in optimiseOffsets()
1000 Phi = cast<PHINode>(Offs->getOperand(1)); in optimiseOffsets()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DSourceManagerInternals.h52 static LineEntry get(unsigned Offs, unsigned Line, int Filename, in get()
56 E.FileOffset = Offs; in get()
H A DSourceManager.h1581 SourceLocation::UIntTy Offs = Loc.getOffset();
1582 if (isOffsetInFileID(FID, Offs)) {
1584 *RelativeOffset = Offs - getSLocEntry(FID).getOffset();
/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/
H A DAVRISelDAGToDAG.cpp157 int Offs = cast<ConstantSDNode>(LD->getOffset())->getSExtValue(); in selectIndexedLoad() local
161 if ((!isPre && Offs != 1) || (isPre && Offs != -1)) { in selectIndexedLoad()
169 if ((!isPre && Offs != 2) || (isPre && Offs != -2)) { in selectIndexedLoad()
201 int Offs = cast<ConstantSDNode>(LD->getOffset())->getSExtValue(); in selectIndexedProgMemLoad() local
203 if (VT.SimpleTy == MVT::i8 && Offs == 1 && Bank == 0) in selectIndexedProgMemLoad()
H A DAVRExpandPseudoInsts.cpp324 int64_t Offs = MI.getOperand(2).getOffset(); in expand() local
326 MIBLO.addGlobalAddress(GV, Offs, TF | AVRII::MO_NEG | AVRII::MO_LO); in expand()
327 MIBHI.addGlobalAddress(GV, Offs, TF | AVRII::MO_NEG | AVRII::MO_HI); in expand()
580 int64_t Offs = MI.getOperand(1).getOffset(); in expand() local
583 MIBLO.addGlobalAddress(GV, Offs, TF | AVRII::MO_LO); in expand()
584 MIBHI.addGlobalAddress(GV, Offs, TF | AVRII::MO_HI); in expand()
631 int64_t Offs = MI.getOperand(1).getOffset(); in expand() local
634 MIBLO.addGlobalAddress(GV, Offs, TF); in expand()
635 MIBHI.addGlobalAddress(GV, Offs + 1, TF); in expand()
1092 int64_t Offs = MI.getOperand(0).getOffset(); in expand() local
[all …]
H A DAVRISelLowering.cpp989 int64_t Offs = AM.BaseOffs; in isLegalAddressingMode() local
992 if (AM.BaseGV && !AM.HasBaseReg && AM.Scale == 0 && Offs == 0) { in isLegalAddressingMode()
1002 if (Offs < 0) in isLegalAddressingMode()
1003 Offs = -Offs; in isLegalAddressingMode()
1005 isUInt<6>(Offs)) { in isLegalAddressingMode()
/freebsd/sys/dev/msk/
H A Dif_mskreg.h536 #define MR_ADDR(Mac, Offs) (((Mac) << 7) + (Offs)) argument
580 #define Q_ADDR(Queue, Offs) (B8_Q_REGS + (Queue) + (Offs)) argument
598 #define Y2_PREF_Q_ADDR(Queue, Offs) (Y2_B8_PREF_REGS + (Queue) + (Offs)) argument
1212 #define RB_ADDR(Queue, Offs) (B16_RAM_REGS + (Queue) + (Offs)) argument
/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DASTUnit.cpp2558 unsigned Offs; in mapLocationFromPreamble() local
2559 if (SourceMgr->isInFileID(Loc, PreambleID, &Offs) && Offs < Preamble->getBounds().Size) { in mapLocationFromPreamble()
2562 return FileLoc.getLocWithOffset(Offs); in mapLocationFromPreamble()
2579 unsigned Offs; in mapLocationToPreamble() local
2580 if (SourceMgr->isInFileID(Loc, SourceMgr->getMainFileID(), &Offs) && in mapLocationToPreamble()
2581 Offs < Preamble->getBounds().Size) { in mapLocationToPreamble()
2583 return FileLoc.getLocWithOffset(Offs); in mapLocationToPreamble()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DMicrosoftCXXABI.cpp109 CharUnits Offs = VBT->NonVirtualOffset; in getVBPtrOffsets() local
110 Offs += SubobjectLayout.getVBPtrOffset(); in getVBPtrOffsets()
112 Offs += Layout.getVBaseClassOffset(VBT->getVBaseWithVPtr()); in getVBPtrOffsets()
113 VBPtrOffsets.push_back(Offs); in getVBPtrOffsets()
1329 CharUnits Offs = VBT->NonVirtualOffset; in EmitVBPtrStores() local
1330 Offs += SubobjectLayout.getVBPtrOffset(); in EmitVBPtrStores()
1332 Offs += Layout.getVBaseClassOffset(VBT->getVBaseWithVPtr()); in EmitVBPtrStores()
1333 Address VBPtr = CGF.Builder.CreateConstInBoundsByteGEP(This, Offs); in EmitVBPtrStores()
2868 CharUnits Offs = CharUnits::Zero(); in EmitFullMemberPointer() local
2870 Offs = getContext().getASTRecordLayout(RD).getVBPtrOffset(); in EmitFullMemberPointer()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/ABI/PowerPC/
H A DABISysV_ppc64.cpp432 uint32_t Offs() const { return m_offs; } in Offs() function in __anon31ea58350111::ReturnValueExtractor::Register
867 memcpy(buf, (char *)&raw_data + reg.Offs(), n); in ExtractFromRegs()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/LiveDebugValues/
H A DInstrRefBasedImpl.h806 unsigned short Offs = TRI.getSubRegIdxOffset(SpillSubReg);
807 return getLocID(Spill, {Size, Offs});
H A DInstrRefBasedImpl.cpp1072 unsigned Offs = TRI.getSubRegIdxOffset(I); in MLocTracker() local
1077 if (Size > 60000 || Offs > 60000) in MLocTracker()
1080 StackSlotIdxes.insert({{Size, Offs}, Idx}); in MLocTracker()
1838 StackOffset Offs = TFI->getFrameIndexReference(*MI.getMF(), FI, Base); in transferDebugPHI() local
1839 SpillLoc SL = {Base, Offs}; in transferDebugPHI()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULowerBufferFatPointers.cpp1247 SmallVector<Constant *> Offs; in materializeBufferFatPtrConst() local
1254 Offs.push_back(Off); in materializeBufferFatPtrConst()
1257 Constant *OffVec = ConstantVector::get(Offs); in materializeBufferFatPtrConst()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DSelectionDAG.h779 int Offs = 0, bool isT = false,
788 int Offs = 0, bool isT = false,
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp371 Value *Offs = ConstantInt::get(Idx->getType(), -FirstTrueElement); in foldCmpLoadFromIndexedGlobal() local
372 Idx = Builder.CreateAdd(Idx, Offs); in foldCmpLoadFromIndexedGlobal()
386 Value *Offs = ConstantInt::get(Idx->getType(), -FirstFalseElement); in foldCmpLoadFromIndexedGlobal() local
387 Idx = Builder.CreateAdd(Idx, Offs); in foldCmpLoadFromIndexedGlobal()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp4407 APInt Offs = ElementMul * CI->getValue().sextOrTrunc(IdxSize); in visitGetElementPtr() local
4412 Offs, dl, EVT::getVectorVT(Context, IdxTy, VectorElementCount)); in visitGetElementPtr()
4414 OffsVal = DAG.getConstant(Offs, dl, IdxTy); in visitGetElementPtr()
4420 (Offs.isNonNegative() && NW.hasNoUnsignedSignedWrap())) in visitGetElementPtr()