Home
last modified time | relevance | path

Searched refs:Hint (Results 1 – 25 of 84) sorted by relevance

1234

/freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DFixItRewriter.cpp158 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 DDiagnosticRenderer.cpp61 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 DAllocationOrder.cpp42 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 DVirtRegMap.cpp111 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 DCalcSpillWeights.cpp230 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 DRegAllocFast.cpp359 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 DDiagnostic.h103 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 Dllvm-cxxmap.cpp58 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 DLoopVectorizationLegality.h71 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 DLoongArchMCAsmInfo.h31 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 DLoongArchMCAsmInfo.cpp23 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 DTrieRawHashMap.h129 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 DSemaBase.cpp48 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 DPPCPredicates.h87 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 DARMBaseRegisterInfo.cpp370 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 DMachineRegisterInfo.h804 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 DTextDiagnostics.cpp74 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 DTrieRawHashMap.cpp260 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 DCodeGenData.cpp205 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 DRISCVAsmPrinter.cpp294 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 Dllvm-symbolizer.cpp529 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 DSourceMgr.h317 void addFixIt(const SMFixIt &Hint) { FixIts.push_back(Hint); } in addFixIt() argument
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86RegisterInfo.cpp1227 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 DSemaBase.h181 void AddFixItHint(const FixItHint &Hint) const;
/freebsd/contrib/llvm-project/llvm/tools/llvm-profdata/
H A Dllvm-profdata.cpp500 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 …]

1234