Home
last modified time | relevance | path

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

123

/NextBSD/contrib/llvm/tools/clang/lib/Frontend/Rewrite/
HDFixItRewriter.cpp151 const FixItHint &Hint = Info.getFixItHint(Idx); in HandleDiagnostic() local
153 if (Hint.CodeToInsert.empty()) { in HandleDiagnostic()
154 if (Hint.InsertFromRange.isValid()) in HandleDiagnostic()
155 commit.insertFromRange(Hint.RemoveRange.getBegin(), in HandleDiagnostic()
156 Hint.InsertFromRange, /*afterToken=*/false, in HandleDiagnostic()
157 Hint.BeforePreviousInsertions); in HandleDiagnostic()
159 commit.remove(Hint.RemoveRange); in HandleDiagnostic()
161 if (Hint.RemoveRange.isTokenRange() || in HandleDiagnostic()
162 Hint.RemoveRange.getBegin() != Hint.RemoveRange.getEnd()) in HandleDiagnostic()
163 commit.replace(Hint.RemoveRange, Hint.CodeToInsert); in HandleDiagnostic()
[all …]
/NextBSD/contrib/llvm/tools/clang/lib/Frontend/
HDDiagnosticRenderer.cpp98 const FixItHint &Hint = *I; in mergeFixits() local
99 if (Hint.CodeToInsert.empty()) { in mergeFixits()
100 if (Hint.InsertFromRange.isValid()) in mergeFixits()
101 commit.insertFromRange(Hint.RemoveRange.getBegin(), in mergeFixits()
102 Hint.InsertFromRange, /*afterToken=*/false, in mergeFixits()
103 Hint.BeforePreviousInsertions); in mergeFixits()
105 commit.remove(Hint.RemoveRange); in mergeFixits()
107 if (Hint.RemoveRange.isTokenRange() || in mergeFixits()
108 Hint.RemoveRange.getBegin() != Hint.RemoveRange.getEnd()) in mergeFixits()
109 commit.replace(Hint.RemoveRange, Hint.CodeToInsert); in mergeFixits()
[all …]
/NextBSD/contrib/llvm/tools/clang/include/clang/Basic/
HDDiagnostic.h81 FixItHint Hint; variable
82 Hint.RemoveRange =
84 Hint.CodeToInsert = Code;
85 Hint.BeforePreviousInsertions = BeforePreviousInsertions;
86 return Hint;
94 FixItHint Hint; variable
95 Hint.RemoveRange =
97 Hint.InsertFromRange = FromRange;
98 Hint.BeforePreviousInsertions = BeforePreviousInsertions;
99 return Hint;
[all …]
HDPartialDiagnostic.h167 void AddFixItHint(const FixItHint &Hint) const { in AddFixItHint() argument
168 if (Hint.isNull()) in AddFixItHint()
174 DiagStorage->FixItHints.push_back(Hint); in AddFixItHint()
392 const FixItHint &Hint) {
393 PD.AddFixItHint(Hint);
/NextBSD/contrib/llvm/lib/CodeGen/
HDVirtRegMap.cpp85 unsigned Hint = MRI->getSimpleHint(VirtReg); in hasPreferredPhys() local
86 if (!Hint) in hasPreferredPhys()
88 if (TargetRegisterInfo::isVirtualRegister(Hint)) in hasPreferredPhys()
89 Hint = getPhys(Hint); in hasPreferredPhys()
90 return getPhys(VirtReg) == Hint; in hasPreferredPhys()
94 std::pair<unsigned, unsigned> Hint = MRI->getRegAllocationHint(VirtReg); in hasKnownPreference() local
95 if (TargetRegisterInfo::isPhysicalRegister(Hint.second)) in hasKnownPreference()
97 if (TargetRegisterInfo::isVirtualRegister(Hint.second)) in hasKnownPreference()
98 return hasPhys(Hint.second); in hasKnownPreference()
HDRegAllocFast.cpp188 unsigned Hint);
190 unsigned VirtReg, unsigned Hint);
192 unsigned VirtReg, unsigned Hint);
517 unsigned Hint) { in allocVirtReg() argument
526 if (Hint && (!TargetRegisterInfo::isPhysicalRegister(Hint) || in allocVirtReg()
527 !RC->contains(Hint) || !MRI->isAllocatable(Hint))) in allocVirtReg()
528 Hint = 0; in allocVirtReg()
531 if (Hint) { in allocVirtReg()
533 unsigned Cost = calcSpillCost(Hint); in allocVirtReg()
536 definePhysReg(MI, Hint, regFree); in allocVirtReg()
[all …]
HDTargetRegisterInfo.cpp271 std::pair<unsigned, unsigned> Hint = MRI.getRegAllocationHint(VirtReg); in getRegAllocationHints() local
276 assert(Hint.first == 0 && "Target must implement TRI::getRegAllocationHints"); in getRegAllocationHints()
279 unsigned Phys = Hint.second; in getRegAllocationHints()
HDCalcSpillWeights.cpp158 volatile float hweight = Hint[hint] += weight; in calculateSpillWeightAndHint()
168 Hint.clear(); in calculateSpillWeightAndHint()
HDRegAllocGreedy.cpp610 if (unsigned Hint = MRI->getSimpleHint(VirtReg.reg)) in tryAssign() local
611 if (Order.isHint(Hint)) { in tryAssign()
612 DEBUG(dbgs() << "missed hint " << PrintReg(Hint, TRI) << '\n'); in tryAssign()
615 if (canEvictInterference(VirtReg, Hint, true, MaxCost)) { in tryAssign()
616 evictInterference(VirtReg, Hint, NewVRegs); in tryAssign()
617 return Hint; in tryAssign()
2480 unsigned Hint = MRI->getSimpleHint(VirtReg.reg); in selectOrSplitImpl() local
2486 if (Hint && Hint != PhysReg) in selectOrSplitImpl()
/NextBSD/contrib/llvm/lib/Target/ARM/
HDARMBaseRegisterInfo.cpp230 std::pair<unsigned, unsigned> Hint = MRI.getRegAllocationHint(VirtReg); in getRegAllocationHints() local
233 switch (Hint.first) { in getRegAllocationHints()
248 unsigned Paired = Hint.second; in getRegAllocationHints()
281 std::pair<unsigned, unsigned> Hint = MRI->getRegAllocationHint(Reg); in updateRegAllocHint() local
282 if ((Hint.first == (unsigned)ARMRI::RegPairOdd || in updateRegAllocHint()
283 Hint.first == (unsigned)ARMRI::RegPairEven) && in updateRegAllocHint()
284 TargetRegisterInfo::isVirtualRegister(Hint.second)) { in updateRegAllocHint()
289 unsigned OtherReg = Hint.second; in updateRegAllocHint()
290 Hint = MRI->getRegAllocationHint(OtherReg); in updateRegAllocHint()
292 if (Hint.second == Reg) { in updateRegAllocHint()
[all …]
/NextBSD/contrib/llvm/tools/clang/lib/Parse/
HDParseStmt.cpp1839 LoopHint Hint; in ParsePragmaLoopHint() local
1840 if (!HandlePragmaLoopHint(Hint)) in ParsePragmaLoopHint()
1843 ArgsUnion ArgHints[] = {Hint.PragmaNameLoc, Hint.OptionLoc, Hint.StateLoc, in ParsePragmaLoopHint()
1844 ArgsUnion(Hint.ValueExpr)}; in ParsePragmaLoopHint()
1845 TempAttrs.addNew(Hint.PragmaNameLoc->Ident, Hint.Range, nullptr, in ParsePragmaLoopHint()
1846 Hint.PragmaNameLoc->Loc, ArgHints, 4, in ParsePragmaLoopHint()
HDParsePragma.cpp766 bool Parser::HandlePragmaLoopHint(LoopHint &Hint) { in HandlePragmaLoopHint() argument
772 Hint.PragmaNameLoc = IdentifierLoc::create( in HandlePragmaLoopHint()
780 Hint.OptionLoc = IdentifierLoc::create( in HandlePragmaLoopHint()
792 Hint.Range = Info->PragmaName.getLocation(); in HandlePragmaLoopHint()
838 Hint.StateLoc = IdentifierLoc::create(Actions.Context, StateLoc, StateInfo); in HandlePragmaLoopHint()
863 Hint.ValueExpr = R.get(); in HandlePragmaLoopHint()
866 Hint.Range = SourceRange(Info->PragmaName.getLocation(), in HandlePragmaLoopHint()
/NextBSD/contrib/llvm/include/llvm/CodeGen/
HDCalcSpillWeights.h56 DenseMap<unsigned, float> Hint; variable
HDMachineRegisterInfo.h641 std::pair<unsigned, unsigned> Hint = getRegAllocationHint(VReg); in getSimpleHint() local
642 return Hint.first ? 0 : Hint.second; in getSimpleHint()
/NextBSD/contrib/llvm/include/llvm/Support/
HDSourceMgr.h271 void addFixIt(const SMFixIt &Hint) { in addFixIt() argument
272 FixIts.push_back(Hint); in addFixIt()
/NextBSD/contrib/llvm/tools/llvm-objdump/
HDCOFFDump.cpp332 uint16_t Hint; in printImportTables() local
334 if (Obj->getHintName(entry->getHintNameRVA(), Hint, Name)) in printImportTables()
336 outs() << format(" % 6d ", Hint) << Name << "\n"; in printImportTables()
/NextBSD/contrib/llvm/include/llvm/Analysis/
HDScalarEvolution.h401 const ConstantRange &setRange(const SCEV *S, RangeSignHint Hint,
404 Hint == HINT_RANGE_UNSIGNED ? UnsignedRanges : SignedRanges;
414 ConstantRange getRange(const SCEV *S, RangeSignHint Hint);
/NextBSD/contrib/llvm/lib/Target/Mips/Disassembler/
HDMipsDisassembler.cpp1099 unsigned Hint = fieldFromInstruction(Insn, 16, 5); in DecodeCacheOp() local
1106 Inst.addOperand(MCOperand::createImm(Hint)); in DecodeCacheOp()
1117 unsigned Hint = fieldFromInstruction(Insn, 21, 5); in DecodeCacheOpMM() local
1123 Inst.addOperand(MCOperand::createImm(Hint)); in DecodeCacheOpMM()
1133 unsigned Hint = fieldFromInstruction(Insn, 16, 5); in DecodeCacheOpR6() local
1140 Inst.addOperand(MCOperand::createImm(Hint)); in DecodeCacheOpR6()
/NextBSD/contrib/llvm/lib/Target/AArch64/
HDAArch64Schedule.td81 def WriteHint : SchedWrite; // Hint instruction.
/NextBSD/contrib/llvm/tools/clang/include/clang/StaticAnalyzer/Core/BugReporter/
HDPathDiagnostic.h345 const DisplayHint Hint; variable
385 DisplayHint getDisplayHint() const { return Hint; } in getDisplayHint()
/NextBSD/sys/boot/efi/include/amd64/
HDpe.h567 UINT16 Hint; member
/NextBSD/contrib/apr/
HDREADME.cmake45 2. Some cmake backends may want your compile tools in PATH. (Hint: "Visual
/NextBSD/sys/boot/efi/include/i386/
HDpe.h567 UINT16 Hint; member
/NextBSD/sys/contrib/dev/acpica/common/
HDdmtbdump.c2632 ACPI_NFIT_FLUSH_ADDRESS *Hint = NULL; in AcpiDmDumpNfit() local
2701 Hint = ACPI_CAST_PTR (ACPI_NFIT_FLUSH_ADDRESS, SubTable); in AcpiDmDumpNfit()
2765 for (i = 0; i < Hint->HintCount; i++) in AcpiDmDumpNfit()
2768 &Hint->HintAddress[i], in AcpiDmDumpNfit()
/NextBSD/contrib/llvm/lib/Transforms/Vectorize/
HDLoopVectorize.cpp1199 struct Hint { struct in __anon302e353c0111::LoopVectorizeHints
1204 Hint(const char * Name, unsigned Value, HintKind Kind) in Hint() argument
1221 Hint Width;
1223 Hint Interleave;
1225 Hint Force;
1257 Hint Hints[] = {Width, Interleave}; in setAlreadyVectorized()
1333 Hint *Hints[] = {&Width, &Interleave, &Force}; in setHint()
1355 bool matchesHintMetadataName(MDNode *Node, ArrayRef<Hint> HintTypes) { in matchesHintMetadataName()
1367 void writeHintsToMetadata(ArrayRef<Hint> HintTypes) { in writeHintsToMetadata()

123