Home
last modified time | relevance | path

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

123

/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DDiagnosticRenderer.cpp62 for (const auto &Hint : FixItHints) in mergeFixits() local
63 if (Hint.CodeToInsert.empty()) { in mergeFixits()
64 if (Hint.InsertFromRange.isValid()) in mergeFixits()
65 commit.insertFromRange(Hint.RemoveRange.getBegin(), in mergeFixits()
66 Hint.InsertFromRange, /*afterToken=*/false, in mergeFixits()
67 Hint.BeforePreviousInsertions); in mergeFixits()
69 commit.remove(Hint.RemoveRange); in mergeFixits()
71 if (Hint.RemoveRange.isTokenRange() || in mergeFixits()
72 Hint.RemoveRange.getBegin() != Hint.RemoveRange.getEnd()) in mergeFixits()
73 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.cpp110 Register Hint = MRI->getSimpleHint(VirtReg); in hasPreferredPhys() local
111 if (!Hint.isValid()) in hasPreferredPhys()
113 if (Hint.isVirtual()) in hasPreferredPhys()
114 Hint = getPhys(Hint); in hasPreferredPhys()
115 return Register(getPhys(VirtReg)) == Hint; in hasPreferredPhys()
119 std::pair<unsigned, Register> Hint = MRI->getRegAllocationHint(VirtReg); in hasKnownPreference() local
120 if (Hint.second.isPhysical()) in hasKnownPreference()
122 if (Hint.second.isVirtual()) in hasKnownPreference()
123 return hasPhys(Hint.second); in hasKnownPreference()
H A DCalcSpillWeights.cpp225 DenseMap<unsigned, float> Hint; in weightCalcHelper() local
292 stack_float_t HWeight = Hint[HintReg] += Weight; in weightCalcHelper()
304 for (const auto &Hint : CopyHints) { in weightCalcHelper() local
305 if (!HintedRegs.insert(Hint.Reg).second || in weightCalcHelper()
306 (TargetHint.first != 0 && Hint.Reg == TargetHint.second)) in weightCalcHelper()
309 MRI.addRegAllocationHint(LI.reg(), Hint.Reg); in weightCalcHelper()
H A DRegAllocFast.cpp360 void allocVirtReg(MachineInstr &MI, LiveReg &LR, Register Hint,
1149 Register Hint; in useVirtReg() local
1151 Hint = MI.getOperand(0).getReg(); in useVirtReg()
1152 if (Hint.isVirtual()) { in useVirtReg()
1153 assert(!shouldAllocateRegister(Hint)); in useVirtReg()
1154 Hint = Register(); in useVirtReg()
1156 assert(Hint.isPhysical() && in useVirtReg()
1160 allocVirtReg(MI, *LRI, Hint, false); in useVirtReg()
H A DRegAllocGreedy.cpp418 if (Register Hint = MRI->getSimpleHint(VirtReg.reg())) in tryAssign() local
419 if (Order.isHint(Hint)) { in tryAssign()
420 MCRegister PhysHint = Hint.asMCReg(); in tryAssign()
1231 bool RAGreedy::trySplitAroundHintReg(MCPhysReg Hint, in trySplitAroundHintReg() argument
1265 if (OtherPhysReg == Hint) in trySplitAroundHintReg()
1278 calculateRegionSplitCostAroundReg(Hint, Order, Cost, NumCands, BestCand); in trySplitAroundHintReg()
2448 Register Hint = MRI->getSimpleHint(VirtReg.reg()); in selectOrSplitImpl() local
2454 if (Hint && Hint != PhysReg) in selectOrSplitImpl()
/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/tools/llvm-cxxmap/
H A Dllvm-cxxmap.cpp57 std::string Hint = "") { in warn() argument
63 if (!Hint.empty()) in warn()
64 WithColor::note() << Hint << "\n"; in warn()
68 std::string Hint = "") { in exitWithError() argument
74 if (!Hint.empty()) in exitWithError()
75 WithColor::note() << Hint << "\n"; in exitWithError()
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/MCTargetDesc/
H A DLoongArchMCExpr.h90 explicit LoongArchMCExpr(const MCExpr *Expr, VariantKind Kind, bool Hint) in LoongArchMCExpr() argument
91 : Expr(Expr), Kind(Kind), RelaxHint(Hint) {} in LoongArchMCExpr()
95 MCContext &Ctx, bool Hint = false);
H A DLoongArchMCExpr.cpp30 bool Hint) { in create() argument
31 return new (Ctx) LoongArchMCExpr(Expr, Kind, Hint); in create()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaBase.cpp47 const FixItHint &Hint) const { in AddFixItHint()
49 ImmediateDiag->AddFixItHint(Hint); in AddFixItHint()
51 S.DeviceDeferredDiags[Fn][*PartialDiagId].second.AddFixItHint(Hint); in AddFixItHint()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMBaseRegisterInfo.cpp341 std::pair<unsigned, Register> Hint = MRI.getRegAllocationHint(VirtReg); in getRegAllocationHints() local
344 switch (Hint.first) { in getRegAllocationHints()
363 Register Paired = Hint.second; in getRegAllocationHints()
394 std::pair<unsigned, Register> Hint = MRI->getRegAllocationHint(Reg); in updateRegAllocHint() local
395 if ((Hint.first == ARMRI::RegPairOdd || Hint.first == ARMRI::RegPairEven) && in updateRegAllocHint()
396 Hint.second.isVirtual()) { in updateRegAllocHint()
401 Register OtherReg = Hint.second; in updateRegAllocHint()
402 Hint = MRI->getRegAllocationHint(OtherReg); in updateRegAllocHint()
404 if (Hint.second == Reg) { in updateRegAllocHint()
405 MRI->setRegAllocationHint(OtherReg, Hint.first, NewReg); in updateRegAllocHint()
[all …]
/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/clang/lib/StaticAnalyzer/Core/
H A DTextDiagnostics.cpp79 for (const FixItHint &Hint : Fixits) { in FlushDiagnosticsImpl() local
80 Replacement Repl(SM, Hint.RemoveRange, Hint.CodeToInsert); in FlushDiagnosticsImpl()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVAsmPrinter.cpp274 MCInst Hint; in emitNTLHint() local
276 Hint.setOpcode(RISCV::C_ADD_HINT); in emitNTLHint()
278 Hint.setOpcode(RISCV::ADD); in emitNTLHint()
280 Hint.addOperand(MCOperand::createReg(RISCV::X0)); in emitNTLHint()
281 Hint.addOperand(MCOperand::createReg(RISCV::X0)); in emitNTLHint()
282 Hint.addOperand(MCOperand::createReg(RISCV::X2 + NontemporalMode)); in emitNTLHint()
284 EmitToStreamer(*OutStreamer, Hint); in emitNTLHint()
/freebsd/contrib/llvm-project/llvm/tools/llvm-symbolizer/
H A Dllvm-symbolizer.cpp521 StringRef Hint(A->getValue()); in llvm_symbolizer_main() local
522 if (sys::path::extension(Hint) == ".dSYM") { in llvm_symbolizer_main()
523 Opts.DsymHints.emplace_back(Hint); in llvm_symbolizer_main()
525 errs() << "Warning: invalid dSYM hint: \"" << Hint in llvm_symbolizer_main()
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DSourceMgr.h315 void addFixIt(const SMFixIt &Hint) { FixIts.push_back(Hint); } in addFixIt() argument
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86RegisterInfo.cpp1103 for (auto Hint : CopyHints) { in getRegAllocationHints() local
1104 if (RC.contains(Hint) && !MRI->isReserved(Hint)) in getRegAllocationHints()
1105 AddHint(Hint); in getRegAllocationHints()
1116 for (auto Hint : Hints) { in getRegAllocationHints()
1117 dbgs() << "tmm" << Hint << ","; in getRegAllocationHints()
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParseStmt.cpp2485 LoopHint Hint; in ParsePragmaLoopHint() local
2486 if (!HandlePragmaLoopHint(Hint)) in ParsePragmaLoopHint()
2489 ArgsUnion ArgHints[] = {Hint.PragmaNameLoc, Hint.OptionLoc, Hint.StateLoc, in ParsePragmaLoopHint()
2490 ArgsUnion(Hint.ValueExpr)}; in ParsePragmaLoopHint()
2491 TempAttrs.addNew(Hint.PragmaNameLoc->Ident, Hint.Range, nullptr, in ParsePragmaLoopHint()
2492 Hint.PragmaNameLoc->Loc, ArgHints, 4, in ParsePragmaLoopHint()
/freebsd/contrib/llvm-project/llvm/tools/llvm-profdata/
H A Dllvm-profdata.cpp460 static void warn(Twine Message, StringRef Whence = "", StringRef Hint = "") { in warn() argument
465 if (!Hint.empty()) in warn()
466 WithColor::note() << Hint << "\n"; in warn()
478 StringRef Hint = "") { in exitWithError() argument
483 if (!Hint.empty()) in exitWithError()
484 WithColor::note() << Hint << "\n"; in exitWithError()
492 StringRef Hint = ""; in exitWithError() local
495 Hint = "Perhaps you forgot to use the --sample or --memory option?"; in exitWithError()
497 exitWithError(IPE.message(), Whence, Hint); in exitWithError()
534 StringRef Hint = ""; in handleMergeWriterError() local
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaBase.h180 void AddFixItHint(const FixItHint &Hint) const;
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DMachineRegisterInfo.h842 std::pair<unsigned, Register> Hint = getRegAllocationHint(VReg); in getSimpleHint() local
843 return Hint.first ? Register() : Hint.second; in getSimpleHint()
/freebsd/contrib/llvm-project/llvm/tools/llvm-objdump/
H A DCOFFDump.cpp512 outs() << " Hint/Ord Name\n"; in printImportTables()
527 uint16_t Hint; in printImportTables() local
529 if (Obj->getHintName(HintNameRVA, Hint, Name)) in printImportTables()
531 outs() << format(" % 6d ", Hint) << Name << "\n"; in printImportTables()
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/Disassembler/
H A DMipsDisassembler.cpp1521 unsigned Hint = fieldFromInstruction(Insn, 16, 5); in DecodeCacheOp() local
1528 Inst.addOperand(MCOperand::createImm(Hint)); in DecodeCacheOp()
1538 unsigned Hint = fieldFromInstruction(Insn, 21, 5); in DecodeCacheOpMM() local
1544 Inst.addOperand(MCOperand::createImm(Hint)); in DecodeCacheOpMM()
1554 unsigned Hint = fieldFromInstruction(Insn, 21, 5); in DecodePrefeOpMM() local
1560 Inst.addOperand(MCOperand::createImm(Hint)); in DecodePrefeOpMM()
1569 unsigned Hint = fieldFromInstruction(Insn, 16, 5); in DecodeCacheeOp_CacheOpR6() local
1576 Inst.addOperand(MCOperand::createImm(Hint)); in DecodeCacheeOp_CacheOpR6()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64Schedule.td70 def WriteHint : SchedWrite; // Hint instruction.

123