| /freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/ |
| H A D | FixItRewriter.cpp | 158 const FixItHint &Hint = Info.getFixItHint(Idx); in HandleDiagnostic() local 160 if (Hint.CodeToInsert.empty()) { in HandleDiagnostic() 161 if (Hint.InsertFromRange.isValid()) in HandleDiagnostic() 162 commit.insertFromRange(Hint.RemoveRange.getBegin(), in HandleDiagnostic() 163 Hint.InsertFromRange, /*afterToken=*/false, in HandleDiagnostic() 164 Hint.BeforePreviousInsertions); in HandleDiagnostic() 166 commit.remove(Hint.RemoveRange); in HandleDiagnostic() 168 if (Hint.RemoveRange.isTokenRange() || in HandleDiagnostic() 169 Hint.RemoveRange.getBegin() != Hint.RemoveRange.getEnd()) in HandleDiagnostic() 170 commit.replace(Hint.RemoveRange, Hint.CodeToInsert); in HandleDiagnostic() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Frontend/ |
| H A D | DiagnosticRenderer.cpp | 61 for (const auto &Hint : FixItHints) in mergeFixits() local 62 if (Hint.CodeToInsert.empty()) { in mergeFixits() 63 if (Hint.InsertFromRange.isValid()) in mergeFixits() 64 commit.insertFromRange(Hint.RemoveRange.getBegin(), in mergeFixits() 65 Hint.InsertFromRange, /*afterToken=*/false, in mergeFixits() 66 Hint.BeforePreviousInsertions); in mergeFixits() 68 commit.remove(Hint.RemoveRange); in mergeFixits() 70 if (Hint.RemoveRange.isTokenRange() || in mergeFixits() 71 Hint.RemoveRange.getBegin() != Hint.RemoveRange.getEnd()) in mergeFixits() 72 commit.replace(Hint.RemoveRange, Hint.CodeToInsert); in mergeFixits() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | AllocationOrder.cpp | 42 for (MCPhysReg Hint : Hints) in create() 43 dbgs() << ' ' << printReg(Hint, TRI); in create() 48 [&](MCPhysReg Hint) { return is_contained(Order, Hint); }) && in create() argument
|
| H A D | VirtRegMap.cpp | 111 Register Hint = MRI->getSimpleHint(VirtReg); in hasPreferredPhys() local 112 if (!Hint.isValid()) in hasPreferredPhys() 114 if (Hint.isVirtual()) in hasPreferredPhys() 115 Hint = getPhys(Hint); in hasPreferredPhys() 116 return Register(getPhys(VirtReg)) == Hint; in hasPreferredPhys() 120 std::pair<unsigned, Register> Hint = MRI->getRegAllocationHint(VirtReg); in hasKnownPreference() local 121 if (Hint.second.isPhysical()) in hasKnownPreference() 123 if (Hint.second.isVirtual()) in hasKnownPreference() 124 return hasPhys(Hint.second); in hasKnownPreference()
|
| H A D | CalcSpillWeights.cpp | 230 SmallDenseMap<Register, float, 8> Hint; in weightCalcHelper() local 293 Hint[HintReg] += Weight; in weightCalcHelper() 297 if (ShouldUpdateLI && Hint.size()) { in weightCalcHelper() 305 for (const auto &[Reg, Weight] : Hint) { in weightCalcHelper()
|
| H A D | RegAllocFast.cpp | 359 void allocVirtReg(MachineInstr &MI, LiveReg &LR, Register Hint, 1164 Register Hint; in useVirtReg() local 1166 Hint = MI.getOperand(0).getReg(); in useVirtReg() 1167 if (Hint.isVirtual()) { in useVirtReg() 1168 assert(!shouldAllocateRegister(Hint)); in useVirtReg() 1169 Hint = Register(); in useVirtReg() 1171 assert(Hint.isPhysical() && in useVirtReg() 1175 allocVirtReg(MI, *LRI, Hint, false); in useVirtReg()
|
| /freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
| H A D | Diagnostic.h | 103 FixItHint Hint; variable 104 Hint.RemoveRange = 106 Hint.CodeToInsert = std::string(Code); 107 Hint.BeforePreviousInsertions = BeforePreviousInsertions; 108 return Hint; 117 FixItHint Hint; variable 118 Hint.RemoveRange = 120 Hint.InsertFromRange = FromRange; 121 Hint.BeforePreviousInsertions = BeforePreviousInsertions; 122 return Hint; [all …]
|
| /freebsd/contrib/llvm-project/llvm/tools/llvm-cxxmap/ |
| H A D | llvm-cxxmap.cpp | 58 std::string Hint = "") { in warn() argument 64 if (!Hint.empty()) in warn() 65 WithColor::note() << Hint << "\n"; in warn() 69 std::string Hint = "") { in exitWithError() argument 75 if (!Hint.empty()) in exitWithError() 76 WithColor::note() << Hint << "\n"; in exitWithError()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Vectorize/ |
| H A D | LoopVectorizationLegality.h | 71 struct Hint { struct 76 Hint(const char *Name, unsigned Value, HintKind Kind) in Hint() argument 83 Hint Width; 86 Hint Interleave; 89 Hint Force; 92 Hint IsVectorized; 95 Hint Predicate; 98 Hint Scalable;
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/MCTargetDesc/ |
| H A D | LoongArchMCAsmInfo.h | 31 explicit LoongArchMCExpr(const MCExpr *Expr, Specifier S, bool Hint) in LoongArchMCExpr() argument 32 : MCSpecifierExpr(Expr, S), RelaxHint(Hint) {} in LoongArchMCExpr() 36 MCContext &Ctx, bool Hint = false);
|
| H A D | LoongArchMCAsmInfo.cpp | 23 MCContext &Ctx, bool Hint) { in create() argument 24 return new (Ctx) LoongArchMCExpr(Expr, S, Hint); in create()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | TrieRawHashMap.h | 129 insert(PointerBase Hint, ArrayRef<uint8_t> Hash, 321 pointer insertLazy(const_pointer Hint, ArrayRef<uint8_t> Hash, in insertLazy() argument 324 Hint, Hash, [&](void *Mem, ArrayRef<uint8_t> Hash) { in insertLazy() 336 pointer insert(const_pointer Hint, value_type &&HashedData) { in insert() argument 337 return insertLazy(Hint, HashedData.Hash, [&](LazyValueConstructor C) { in insert() 342 pointer insert(const_pointer Hint, const value_type &HashedData) { in insert() argument 343 return insertLazy(Hint, HashedData.Hash, in insert()
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaBase.cpp | 48 const FixItHint &Hint) const { in AddFixItHint() 50 ImmediateDiag->AddFixItHint(Hint); in AddFixItHint() 52 S.DeviceDeferredDiags[Fn][*PartialDiagId].second.AddFixItHint(Hint); in AddFixItHint()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/MCTargetDesc/ |
| H A D | PPCPredicates.h | 87 inline Predicate getPredicate(unsigned Condition, unsigned Hint) { in getPredicate() argument 89 (Hint & BR_HINT_MASK)); in getPredicate()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
| H A D | ARMBaseRegisterInfo.cpp | 370 std::pair<unsigned, Register> Hint = MRI.getRegAllocationHint(VirtReg); in getRegAllocationHints() local 373 switch (Hint.first) { in getRegAllocationHints() 392 Register Paired = Hint.second; in getRegAllocationHints() 423 std::pair<unsigned, Register> Hint = MRI->getRegAllocationHint(Reg); in updateRegAllocHint() local 424 if ((Hint.first == ARMRI::RegPairOdd || Hint.first == ARMRI::RegPairEven) && in updateRegAllocHint() 425 Hint.second.isVirtual()) { in updateRegAllocHint() 430 Register OtherReg = Hint.second; in updateRegAllocHint() 431 Hint = MRI->getRegAllocationHint(OtherReg); in updateRegAllocHint() 433 if (Hint.second == Reg) { in updateRegAllocHint() 434 MRI->setRegAllocationHint(OtherReg, Hint.first, NewReg); in updateRegAllocHint() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | MachineRegisterInfo.h | 804 auto &Hint = RegAllocHints[VReg]; in setRegAllocationHint() local 805 Hint.first = Type; in setRegAllocationHint() 806 Hint.second.clear(); in setRegAllocationHint() 807 Hint.second.push_back(PrefReg); in setRegAllocationHint() 838 auto &Hint = RegAllocHints[VReg.id()]; in getRegAllocationHint() local 839 Register BestHint = (Hint.second.size() ? Hint.second[0] : Register()); in getRegAllocationHint() 840 return {Hint.first, BestHint}; in getRegAllocationHint() 847 std::pair<unsigned, Register> Hint = getRegAllocationHint(VReg); in getSimpleHint() local 848 return Hint.first ? Register() : Hint.second; in getSimpleHint()
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | TextDiagnostics.cpp | 74 for (const FixItHint &Hint : Fixits) { in FlushDiagnosticsImpl() local 75 Replacement Repl(SM, Hint.RemoveRange, Hint.CodeToInsert); in FlushDiagnosticsImpl()
|
| /freebsd/contrib/llvm-project/llvm/lib/Support/ |
| H A D | TrieRawHashMap.cpp | 260 PointerBase Hint, ArrayRef<uint8_t> Hash, in insert() argument 269 if (Hint.isHint()) { in insert() 270 S = static_cast<TrieSubtrie *>(Hint.P); in insert() 271 Index = IndexGen.hint(Hint.I, Hint.B); in insert()
|
| /freebsd/contrib/llvm-project/llvm/lib/CGData/ |
| H A D | CodeGenData.cpp | 205 void warn(Twine Message, StringRef Whence, StringRef Hint) { in warn() argument 210 if (!Hint.empty()) in warn() 211 WithColor::note() << Hint << "\n"; in warn()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVAsmPrinter.cpp | 294 MCInst Hint; in emitNTLHint() local 296 Hint.setOpcode(RISCV::C_ADD_HINT); in emitNTLHint() 298 Hint.setOpcode(RISCV::ADD); in emitNTLHint() 300 Hint.addOperand(MCOperand::createReg(RISCV::X0)); in emitNTLHint() 301 Hint.addOperand(MCOperand::createReg(RISCV::X0)); in emitNTLHint() 302 Hint.addOperand(MCOperand::createReg(RISCV::X2 + NontemporalMode)); in emitNTLHint() 304 EmitToStreamer(*OutStreamer, Hint); in emitNTLHint()
|
| /freebsd/contrib/llvm-project/llvm/tools/llvm-symbolizer/ |
| H A D | llvm-symbolizer.cpp | 529 StringRef Hint(A->getValue()); in llvm_symbolizer_main() local 530 if (sys::path::extension(Hint) == ".dSYM") { in llvm_symbolizer_main() 531 Opts.DsymHints.emplace_back(Hint); in llvm_symbolizer_main() 533 errs() << "Warning: invalid dSYM hint: \"" << Hint in llvm_symbolizer_main()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | SourceMgr.h | 317 void addFixIt(const SMFixIt &Hint) { FixIts.push_back(Hint); } in addFixIt() argument
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86RegisterInfo.cpp | 1227 for (auto Hint : CopyHints) { in getRegAllocationHints() local 1228 if (RC.contains(Hint) && !MRI->isReserved(Hint)) in getRegAllocationHints() 1229 AddHint(Hint); in getRegAllocationHints() 1240 for (auto Hint : Hints) { in getRegAllocationHints() 1241 dbgs() << "tmm" << Hint << ","; in getRegAllocationHints()
|
| /freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
| H A D | SemaBase.h | 181 void AddFixItHint(const FixItHint &Hint) const;
|
| /freebsd/contrib/llvm-project/llvm/tools/llvm-profdata/ |
| H A D | llvm-profdata.cpp | 500 static void warn(Twine Message, StringRef Whence = "", StringRef Hint = "") { in warn() argument 505 if (!Hint.empty()) in warn() 506 WithColor::note() << Hint << "\n"; in warn() 518 StringRef Hint = "") { in exitWithError() argument 523 if (!Hint.empty()) in exitWithError() 524 WithColor::note() << Hint << "\n"; in exitWithError() 532 StringRef Hint = ""; in exitWithError() local 535 Hint = "Perhaps you forgot to use the --sample or --memory option?"; in exitWithError() 537 exitWithError(IPE.message(), Whence, Hint); in exitWithError() 574 StringRef Hint = ""; in handleMergeWriterError() local [all …]
|