Home
last modified time | relevance | path

Searched refs:Amount (Results 1 – 25 of 57) sorted by relevance

123

/llvm-project-15.0.7/lldb/tools/lldb-test/
H A DFormatUtil.cpp24 void LinePrinter::Indent(uint32_t Amount) { in Indent() argument
25 if (Amount == 0) in Indent()
26 Amount = IndentSpaces; in Indent()
27 CurrentIndent += Amount; in Indent()
30 void LinePrinter::Unindent(uint32_t Amount) { in Unindent() argument
31 if (Amount == 0) in Unindent()
32 Amount = IndentSpaces; in Unindent()
33 CurrentIndent = std::max<int>(0, CurrentIndent - Amount); in Unindent()
H A DFormatUtil.h43 void Indent(uint32_t Amount = 0);
44 void Unindent(uint32_t Amount = 0);
62 explicit AutoIndent(LinePrinter &L, uint32_t Amount = 0)
63 : L(&L), Amount(Amount) {
64 L.Indent(Amount);
68 L->Unindent(Amount); in ~AutoIndent()
72 uint32_t Amount = 0; member
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86DynAllocaExpander.cpp160 Lowering L = getLowering(Offset, Amount); in computeLowerings()
164 Offset += Amount; in computeLowerings()
167 Offset = Amount; in computeLowerings()
203 int64_t Amount = getDynAllocaAmount(MI, MRI); in lower() local
204 if (Amount == 0) { in lower()
223 assert(Amount >= SlotSize); in lower()
229 Amount -= SlotSize; in lower()
230 if (!Amount) in lower()
237 assert(Amount > 0); in lower()
238 if (Amount == SlotSize) { in lower()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DFormatCommon.h22 size_t Amount; member
25 FmtAlign(detail::format_adapter &Adapter, AlignStyle Where, size_t Amount,
27 : Adapter(Adapter), Where(Where), Amount(Amount), Fill(Fill) {} in Adapter()
35 if (Amount == 0) { in format()
43 if (Amount <= Item.size()) { in format()
48 size_t PadAmount = Amount - Item.size(); in format()
H A DFormatAdapters.h29 size_t Amount; variable
33 AlignAdapter(T &&Item, AlignStyle Where, size_t Amount, char Fill) in AlignAdapter() argument
34 : FormatAdapter<T>(std::forward<T>(Item)), Where(Where), Amount(Amount), in AlignAdapter()
39 FmtAlign(Adapter, Where, Amount, Fill).format(Stream, Style); in format()
86 detail::AlignAdapter<T> fmt_align(T &&Item, AlignStyle Where, size_t Amount,
88 return detail::AlignAdapter<T>(std::forward<T>(Item), Where, Amount, Fill);
/llvm-project-15.0.7/llvm/include/llvm/DebugInfo/PDB/Native/
H A DLinePrinter.h57 void Indent(uint32_t Amount = 0);
58 void Unindent(uint32_t Amount = 0);
133 explicit AutoIndent(LinePrinter &L, uint32_t Amount = 0)
134 : L(&L), Amount(Amount) {
135 L.Indent(Amount);
139 Amount = Scope.IndentLevel; in AutoIndent()
143 L->Unindent(Amount); in ~AutoIndent()
147 uint32_t Amount = 0; member
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DBlockFrequencyInfoImpl.cpp146 assert(Amount && "invalid weight of 0"); in add()
147 uint64_t NewTotal = Total + Amount; in add()
163 if (!W.Amount) { in combineWeight()
170 if (W.Amount > W.Amount + OtherW.Amount) in combineWeight()
172 W.Amount = UINT64_MAX; in combineWeight()
174 W.Amount += OtherW.Amount; in combineWeight()
247 Weights.front().Amount = 1; in normalize()
267 return Sum + W.Amount; in normalize()
282 W.Amount = std::max(UINT64_C(1), shiftRightAndRound(W.Amount, Shift)); in normalize()
283 assert(W.Amount <= UINT32_MAX); in normalize()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/Mips/
H A DMipsFrameLowering.cpp143 int64_t Amount = I->getOperand(0).getImm(); in eliminateCallFramePseudoInstr() local
145 Amount = -Amount; in eliminateCallFramePseudoInstr()
147 STI.getInstrInfo()->adjustStackPtr(SP, Amount, MBB, I); in eliminateCallFramePseudoInstr()
H A DMips16InstrInfo.h82 void adjustStackPtr(unsigned SP, int64_t Amount, MachineBasicBlock &MBB,
92 static bool validImmediate(unsigned Opcode, unsigned Reg, int64_t Amount);
118 void adjustStackPtrBig(unsigned SP, int64_t Amount, MachineBasicBlock &MBB,
123 void adjustStackPtrBigUnrestricted(unsigned SP, int64_t Amount,
H A DMips16InstrInfo.cpp275 void Mips16InstrInfo::adjustStackPtrBig(unsigned SP, int64_t Amount, in adjustStackPtrBig() argument
288 MIB1.addImm(Amount).addImm(-1); in adjustStackPtrBig()
300 unsigned SP, int64_t Amount, MachineBasicBlock &MBB, in adjustStackPtrBigUnrestricted() argument
306 void Mips16InstrInfo::adjustStackPtr(unsigned SP, int64_t Amount, in adjustStackPtr() argument
309 if (Amount == 0) in adjustStackPtr()
313 BuildAddiuSpImm(MBB, I, Amount); in adjustStackPtr()
315 adjustStackPtrBigUnrestricted(SP, Amount, MBB, I); in adjustStackPtr()
473 int64_t Amount) { in validImmediate() argument
485 return isInt<16>(Amount); in validImmediate()
488 return isInt<16>(Amount); in validImmediate()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/MSP430/
H A DMSP430FrameLowering.cpp231 uint64_t Amount = TII.getFrameSize(Old); in eliminateCallFramePseudoInstr() local
232 if (Amount != 0) { in eliminateCallFramePseudoInstr()
236 Amount = alignTo(Amount, getStackAlign()); in eliminateCallFramePseudoInstr()
243 .addImm(Amount); in eliminateCallFramePseudoInstr()
247 Amount -= TII.getFramePoppedByCallee(Old); in eliminateCallFramePseudoInstr()
248 if (Amount) in eliminateCallFramePseudoInstr()
252 .addImm(Amount); in eliminateCallFramePseudoInstr()
/llvm-project-15.0.7/llvm/lib/DebugInfo/PDB/Native/
H A DLinePrinter.cpp75 void LinePrinter::Indent(uint32_t Amount) { in Indent() argument
76 if (Amount == 0) in Indent()
77 Amount = IndentSpaces; in Indent()
78 CurrentIndent += Amount; in Indent()
81 void LinePrinter::Unindent(uint32_t Amount) { in Unindent() argument
82 if (Amount == 0) in Unindent()
83 Amount = IndentSpaces; in Unindent()
84 CurrentIndent = std::max<int>(0, CurrentIndent - Amount); in Unindent()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DIteratorModeling.cpp117 SVal Amount) const;
119 SVal Amount) const;
121 SVal Amount) const;
394 const SVal &Amount = IsIterFirst ? SecondArg : FirstArg; in handleOverloadedOperator() local
397 Iterator, Amount); in handleOverloadedOperator()
602 const auto *Value = &Amount; in handleRandomIncrOrDecr()
604 if (auto LocAmount = Amount.getAs<Loc>()) { in handleRandomIncrOrDecr()
674 SVal Amount) const { in handleAdvance()
675 handleRandomIncrOrDecr(C, CE, OO_PlusEqual, RetVal, Iter, Amount); in handleAdvance()
680 handleRandomIncrOrDecr(C, CE, OO_Minus, RetVal, Iter, Amount); in handlePrev()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/XCore/
H A DXCoreFrameLowering.cpp488 uint64_t Amount = Old.getOperand(0).getImm(); in eliminateCallFramePseudoInstr() local
489 if (Amount != 0) { in eliminateCallFramePseudoInstr()
493 Amount = alignTo(Amount, getStackAlign()); in eliminateCallFramePseudoInstr()
495 assert(Amount%4 == 0); in eliminateCallFramePseudoInstr()
496 Amount /= 4; in eliminateCallFramePseudoInstr()
498 bool isU6 = isImmU6(Amount); in eliminateCallFramePseudoInstr()
499 if (!isU6 && !isImmU16(Amount)) { in eliminateCallFramePseudoInstr()
503 << Amount << "\n"; in eliminateCallFramePseudoInstr()
511 New = BuildMI(MF, Old.getDebugLoc(), TII.get(Opcode)).addImm(Amount); in eliminateCallFramePseudoInstr()
516 .addImm(Amount); in eliminateCallFramePseudoInstr()
/llvm-project-15.0.7/llvm/lib/Target/AVR/
H A DAVRFrameLowering.cpp340 int Amount = TII.getFrameSize(*MI); in eliminateCallFramePseudoInstr() local
342 if (Amount == 0) { in eliminateCallFramePseudoInstr()
359 .addImm(Amount); in eliminateCallFramePseudoInstr()
377 if (isUInt<6>(Amount)) { in eliminateCallFramePseudoInstr()
381 Amount = -Amount; in eliminateCallFramePseudoInstr()
389 .addImm(Amount); in eliminateCallFramePseudoInstr()
/llvm-project-15.0.7/polly/include/polly/Support/
H A DISLTools.h244 isl::set shiftDim(isl::set Set, int Pos, int Amount);
247 isl::union_set shiftDim(isl::union_set USet, int Pos, int Amount);
259 isl::map shiftDim(isl::map Map, isl::dim Dim, int Pos, int Amount);
271 isl::union_map shiftDim(isl::union_map UMap, isl::dim Dim, int Pos, int Amount);
/llvm-project-15.0.7/llvm/lib/Target/RISCV/
H A DRISCVFrameLowering.cpp371 const DebugLoc &DL, int64_t Amount, in adjustStackForRVV() argument
373 assert(Amount != 0 && "Did not need to adjust stack pointer for RVV."); in adjustStackForRVV()
378 if (Amount < 0) { in adjustStackForRVV()
379 Amount = -Amount; in adjustStackForRVV()
384 TII->getVLENFactoredAmount(MF, MBB, MBBI, DL, Amount, Flag); in adjustStackForRVV()
1095 int64_t Amount = MI->getOperand(0).getImm(); in eliminateCallFramePseudoInstr() local
1097 if (Amount != 0) { in eliminateCallFramePseudoInstr()
1099 Amount = alignSPAdjust(Amount); in eliminateCallFramePseudoInstr()
1102 Amount = -Amount; in eliminateCallFramePseudoInstr()
1104 adjustReg(MBB, MI, DL, SPReg, SPReg, Amount, MachineInstr::NoFlags); in eliminateCallFramePseudoInstr()
/llvm-project-15.0.7/llvm/tools/llvm-pdbutil/
H A DPrettyClassLayoutGraphicalDumper.cpp98 void PrettyClassLayoutGraphicalDumper::printPaddingRow(uint32_t Amount) { in printPaddingRow() argument
99 if (Amount == 0) in printPaddingRow()
103 WithColor(Printer, PDB_ColorItem::Padding).get() << "<padding> (" << Amount in printPaddingRow()
/llvm-project-15.0.7/llvm/lib/Support/
H A DBinaryStreamReader.cpp148 Error BinaryStreamReader::skip(uint64_t Amount) { in skip() argument
149 if (Amount > bytesRemaining()) in skip()
151 Offset += Amount; in skip()
/llvm-project-15.0.7/llvm/lib/Target/M68k/
H A DM68kFrameLowering.cpp234 uint64_t Amount = !ReserveCallFrame ? I->getOperand(0).getImm() : 0; in eliminateCallFramePseudoInstr() local
235 uint64_t InternalAmt = (IsDestroy && Amount) ? I->getOperand(1).getImm() : 0; in eliminateCallFramePseudoInstr()
247 Amount = alignTo(Amount, StackAlign); in eliminateCallFramePseudoInstr()
265 MCCFIInstruction::createGnuArgsSize(nullptr, Amount)); in eliminateCallFramePseudoInstr()
268 if (Amount == 0) in eliminateCallFramePseudoInstr()
273 Amount -= InternalAmt; in eliminateCallFramePseudoInstr()
283 int64_t StackAdjustment = IsDestroy ? Amount : -Amount; in eliminateCallFramePseudoInstr()
/llvm-project-15.0.7/llvm/lib/Target/ARC/
H A DARCOptAddrMode.cpp134 static bool isAddConstantOp(const MachineInstr &MI, int64_t &Amount) { in isAddConstantOp() argument
142 Amount = Sign * MI.getOperand(2).getImm(); in isAddConstantOp()
378 int64_t Amount; in fixPastUses() local
380 if (isAddConstantOp(*MI, Amount)) { in fixPastUses()
381 NewOffset += Amount; in fixPastUses()
H A DARCFrameLowering.cpp47 int Amount, int StackPtr) { in generateStackAdjustment() argument
49 if (!Amount) in generateStackAdjustment()
53 if (Amount < 0) { in generateStackAdjustment()
54 AbsAmount = -Amount; in generateStackAdjustment()
57 AbsAmount = Amount; in generateStackAdjustment()
61 LLVM_DEBUG(dbgs() << "Internal: adjust stack by: " << Amount << "," in generateStackAdjustment()
/llvm-project-15.0.7/polly/lib/Support/
H A DISLTools.cpp35 isl::multi_aff makeShiftDimAff(isl::space Space, int Pos, int Amount) { in makeShiftDimAff() argument
37 if (Amount == 0) in makeShiftDimAff()
40 ShiftAff = ShiftAff.set_constant_si(Amount); in makeShiftDimAff()
216 isl::set polly::shiftDim(isl::set Set, int Pos, int Amount) { in shiftDim() argument
223 isl::multi_aff Translator = makeShiftDimAff(Space, Pos, Amount); in shiftDim()
228 isl::union_set polly::shiftDim(isl::union_set USet, int Pos, int Amount) { in shiftDim() argument
231 isl::set Shifted = shiftDim(Set, Pos, Amount); in shiftDim()
237 isl::map polly::shiftDim(isl::map Map, isl::dim Dim, int Pos, int Amount) { in shiftDim() argument
254 isl::multi_aff Translator = makeShiftDimAff(Space, Pos, Amount); in shiftDim()
267 int Amount) { in shiftDim() argument
[all …]
/llvm-project-15.0.7/llvm/lib/Target/CSKY/
H A DCSKYFrameLowering.cpp520 int64_t Amount = MI->getOperand(0).getImm(); in eliminateCallFramePseudoInstr() local
522 if (Amount != 0) { in eliminateCallFramePseudoInstr()
524 Amount = alignSPAdjust(Amount); in eliminateCallFramePseudoInstr()
527 Amount = -Amount; in eliminateCallFramePseudoInstr()
529 adjustReg(MBB, MI, DL, SPReg, SPReg, Amount, MachineInstr::NoFlags); in eliminateCallFramePseudoInstr()
/llvm-project-15.0.7/llvm/tools/llvm-rc/
H A DResourceScriptToken.cpp95 bool advance(size_t Amount = 1);
199 bool Tokenizer::advance(size_t Amount) { in advance() argument
200 Pos += Amount; in advance()

123