/freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | FormatCommon.h | 22 size_t Amount; member 26 size_t Amount, char Fill = ' ') 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 D | FormatAdapters.h | 31 size_t Amount; variable 35 AlignAdapter(T &&Item, AlignStyle Where, size_t Amount, char Fill) in AlignAdapter() argument 36 : FormatAdapter<T>(std::forward<T>(Item)), Where(Where), Amount(Amount), in AlignAdapter() 41 FmtAlign(Adapter, Where, Amount, Fill).format(Stream, Style); in format() 90 size_t Amount, char Fill = ' ') { 91 return support::detail::AlignAdapter<T>(std::forward<T>(Item), Where, Amount,
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86DynAllocaExpander.cpp | 157 int64_t Amount = getDynAllocaAmount(&MI, MRI); in computeLowerings() local 158 Lowering L = getLowering(Offset, Amount); in computeLowerings() 162 Offset += Amount; in computeLowerings() 165 Offset = Amount; in computeLowerings() 201 int64_t Amount = getDynAllocaAmount(MI, MRI); in lower() local 202 if (Amount == 0) { in lower() 221 assert(Amount >= SlotSize); in lower() 227 Amount -= SlotSize; in lower() 228 if (!Amount) in lower() 235 assert(Amount > 0); in lower() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/PDB/Native/ |
H A D | LinePrinter.h | 57 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
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | BlockFrequencyInfoImpl.cpp | 145 void Distribution::add(const BlockNode &Node, uint64_t Amount, in add() argument 147 assert(Amount && "invalid weight of 0"); in add() 148 uint64_t NewTotal = Total + Amount; in add() 159 Weights.push_back(Weight(Type, Node, Amount)); in add() 164 if (!W.Amount) { in combineWeight() 170 assert(OtherW.Amount && "Expected non-zero weight"); in combineWeight() 171 if (W.Amount > W.Amount + OtherW.Amount) in combineWeight() 173 W.Amount = UINT64_MAX; in combineWeight() 175 W.Amount += OtherW.Amount; in combineWeight() 248 Weights.front().Amount = 1; in normalize() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/ |
H A D | MipsFrameLowering.cpp | 143 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 D | Mips16InstrInfo.cpp | 275 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() 312 if (isInt<16>(Amount)) // need to change to addiu sp, ....and isInt<16> in adjustStackPtr() 313 BuildAddiuSpImm(MBB, I, Amount); in adjustStackPtr() 315 adjustStackPtrBigUnrestricted(SP, Amount, MBB, I); in adjustStackPtr() 471 int64_t Amount) { in validImmediate() argument 483 return isInt<16>(Amount); in validImmediate() [all …]
|
H A D | Mips16InstrInfo.h | 82 void adjustStackPtr(unsigned SP, int64_t Amount, MachineBasicBlock &MBB, 92 static bool validImmediate(unsigned Opcode, unsigned Reg, int64_t Amount); 119 void adjustStackPtrBig(unsigned SP, int64_t Amount, MachineBasicBlock &MBB, 124 void adjustStackPtrBigUnrestricted(unsigned SP, int64_t Amount,
|
H A D | MipsSEInstrInfo.cpp | 559 void MipsSEInstrInfo::adjustStackPtr(unsigned SP, int64_t Amount, in adjustStackPtr() argument 566 if (Amount == 0) in adjustStackPtr() 569 if (isInt<16>(Amount)) { in adjustStackPtr() 571 BuildMI(MBB, I, DL, get(ADDiu), SP).addReg(SP).addImm(Amount); in adjustStackPtr() 576 if (Amount < 0) { in adjustStackPtr() 578 Amount = -Amount; in adjustStackPtr() 580 unsigned Reg = loadImmediate(Amount, MBB, I, DL, nullptr); in adjustStackPtr()
|
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/ |
H A D | LinePrinter.cpp | 75 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()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | IteratorModeling.cpp | 113 SVal Iterator, SVal Amount) const; 117 SVal Amount) const; 119 SVal Amount) const; 121 SVal Amount) const; 392 SVal Amount = IsIterFirst ? SecondArg : FirstArg; in handleOverloadedOperator() local 395 Iterator, Amount); in handleOverloadedOperator() 589 SVal Amount) const { in handleRandomIncrOrDecr() 598 const auto *Value = &Amount; in handleRandomIncrOrDecr() 600 if (auto LocAmount = Amount.getAs<Loc>()) { in handleRandomIncrOrDecr() 670 SVal Amount) const { in handleAdvance() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Xtensa/ |
H A D | XtensaInstrInfo.cpp | 76 void XtensaInstrInfo::adjustStackPtr(unsigned SP, int64_t Amount, in adjustStackPtr() argument 81 if (Amount == 0) in adjustStackPtr() 90 if (isInt<8>(Amount)) { // addi sp, sp, amount in adjustStackPtr() 91 BuildMI(MBB, I, DL, get(Xtensa::ADDI), Reg).addReg(SP).addImm(Amount); in adjustStackPtr() 94 loadImmediate(MBB, I, &Reg1, Amount); in adjustStackPtr()
|
H A D | XtensaFrameLowering.cpp | 235 int64_t Amount = I->getOperand(0).getImm(); in eliminateCallFramePseudoInstr() local 238 Amount = -Amount; in eliminateCallFramePseudoInstr() 240 TII.adjustStackPtr(Xtensa::SP, Amount, MBB, I); in eliminateCallFramePseudoInstr()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/MSP430/ |
H A D | MSP430FrameLowering.cpp | 370 uint64_t Amount = TII.getFrameSize(Old); in eliminateCallFramePseudoInstr() local 371 if (Amount != 0) { in eliminateCallFramePseudoInstr() 375 Amount = alignTo(Amount, getStackAlign()); in eliminateCallFramePseudoInstr() 382 .addImm(Amount); in eliminateCallFramePseudoInstr() 386 Amount -= TII.getFramePoppedByCallee(Old); in eliminateCallFramePseudoInstr() 387 if (Amount) in eliminateCallFramePseudoInstr() 391 .addImm(Amount); in eliminateCallFramePseudoInstr()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/XCore/ |
H A D | XCoreFrameLowering.cpp | 489 uint64_t Amount = Old.getOperand(0).getImm(); in eliminateCallFramePseudoInstr() local 490 if (Amount != 0) { in eliminateCallFramePseudoInstr() 494 Amount = alignTo(Amount, getStackAlign()); in eliminateCallFramePseudoInstr() 496 assert(Amount%4 == 0); in eliminateCallFramePseudoInstr() 497 Amount /= 4; in eliminateCallFramePseudoInstr() 499 bool isU6 = isImmU6(Amount); in eliminateCallFramePseudoInstr() 500 if (!isU6 && !isImmU16(Amount)) { in eliminateCallFramePseudoInstr() 504 << Amount << "\n"; in eliminateCallFramePseudoInstr() 512 New = BuildMI(MF, Old.getDebugLoc(), TII.get(Opcode)).addImm(Amount); in eliminateCallFramePseudoInstr() 517 .addImm(Amount); in eliminateCallFramePseudoInstr()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/ |
H A D | AVRFrameLowering.cpp | 359 int Amount = TII.getFrameSize(*MI); in eliminateCallFramePseudoInstr() 361 if (Amount == 0) { in eliminateCallFramePseudoInstr() local 378 .addImm(Amount); in eliminateCallFramePseudoInstr() 396 if (isUInt<6>(Amount) && STI.hasADDSUBIW()) { in eliminateCallFramePseudoInstr() 400 Amount = -Amount; in eliminateCallFramePseudoInstr() 408 .addImm(Amount); in eliminateCallFramePseudoInstr()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/ |
H A D | LoongArchFrameLowering.cpp | 414 int64_t Amount = MI->getOperand(0).getImm(); in eliminateCallFramePseudoInstr() local 416 if (Amount != 0) { in eliminateCallFramePseudoInstr() 418 Amount = alignSPAdjust(Amount); in eliminateCallFramePseudoInstr() 421 Amount = -Amount; in eliminateCallFramePseudoInstr() 423 adjustReg(MBB, MI, DL, SPReg, SPReg, Amount, MachineInstr::NoFlags); in eliminateCallFramePseudoInstr()
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-pdbutil/ |
H A D | PrettyClassLayoutGraphicalDumper.cpp | 98 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()
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | BinaryStreamReader.cpp | 147 Error BinaryStreamReader::skip(uint64_t Amount) { 148 if (Amount > bytesRemaining()) in skip() argument 150 Offset += Amount; in skip()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/M68k/ |
H A D | M68kFrameLowering.cpp | 234 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() 263 MCCFIInstruction::createGnuArgsSize(nullptr, Amount)); in eliminateCallFramePseudoInstr() 266 if (Amount == 0) in eliminateCallFramePseudoInstr() 271 Amount -= InternalAmt; in eliminateCallFramePseudoInstr() 281 int64_t StackAdjustment = IsDestroy ? Amount : -Amount; in eliminateCallFramePseudoInstr()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ARC/ |
H A D | ARCOptAddrMode.cpp | 134 static bool isAddConstantOp(const MachineInstr &MI, int64_t &Amount) { in isAddConstantOp() argument 142 Amount = Sign * MI.getOperand(2).getImm(); in isAddConstantOp() 377 int64_t Amount; in fixPastUses() local 379 if (isAddConstantOp(*MI, Amount)) { in fixPastUses() 380 NewOffset += Amount; in fixPastUses()
|
H A D | ARCFrameLowering.cpp | 47 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()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/ |
H A D | CSKYFrameLowering.cpp | 522 int64_t Amount = MI->getOperand(0).getImm(); in eliminateCallFramePseudoInstr() local 524 if (Amount != 0) { in eliminateCallFramePseudoInstr() 526 Amount = alignSPAdjust(Amount); in eliminateCallFramePseudoInstr() 529 Amount = -Amount; in eliminateCallFramePseudoInstr() 531 adjustReg(MBB, MI, DL, SPReg, SPReg, Amount, MachineInstr::NoFlags); in eliminateCallFramePseudoInstr()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
H A D | RISCVFrameLowering.cpp | 414 const DebugLoc &DL, int64_t Amount, in adjustStackForRVV() argument 416 assert(Amount != 0 && "Did not need to adjust stack pointer for RVV."); in adjustStackForRVV() 421 StackOffset Offset = StackOffset::getScalable(Amount); in adjustStackForRVV() 425 assert(Amount % 8 == 0 && in adjustStackForRVV() 427 const int64_t NumOfVReg = Amount / 8; in adjustStackForRVV() 1301 int64_t Amount = MI->getOperand(0).getImm(); in eliminateCallFramePseudoInstr() local 1303 if (Amount != 0) { in eliminateCallFramePseudoInstr() 1305 Amount = alignSPAdjust(Amount); in eliminateCallFramePseudoInstr() 1308 Amount = -Amount; in eliminateCallFramePseudoInstr() 1311 RI.adjustReg(MBB, MI, DL, SPReg, SPReg, StackOffset::getFixed(Amount), in eliminateCallFramePseudoInstr()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | BlockFrequencyInfoImpl.h | 370 uint64_t Amount = 0; member 373 Weight(DistType Type, BlockNode TargetNode, uint64_t Amount) in Weight() 374 : Type(Type), TargetNode(TargetNode), Amount(Amount) {} in Weight() 394 void addLocal(const BlockNode &Node, uint64_t Amount) { in addLocal() 395 add(Node, Amount, Weight::Local); in addLocal() 398 void addExit(const BlockNode &Node, uint64_t Amount) { in addExit() 399 add(Node, Amount, Weight::Exit); in addExit() 402 void addBackedge(const BlockNode &Node, uint64_t Amount) { in addBackedge() 403 add(Node, Amount, Weight::Backedge); in addBackedge() 418 void add(const BlockNode &Node, uint64_t Amount, Weight::DistType Type);
|