Home
last modified time | relevance | path

Searched refs:Hints (Results 1 – 25 of 92) sorted by relevance

1234

/external/llvm-project/llvm/unittests/CodeGen/
DAllocationOrderTest.cpp28 SmallVector<MCPhysReg, 16> Hints = {1, 2, 3}; in TEST() local
30 AllocationOrder O(std::move(Hints), Order, false); in TEST()
35 SmallVector<MCPhysReg, 16> Hints = {1, 2, 3}; in TEST() local
37 AllocationOrder O(std::move(Hints), Order, false); in TEST()
42 SmallVector<MCPhysReg, 16> Hints = {1, 2, 3}; in TEST() local
44 AllocationOrder O(std::move(Hints), Order, true); in TEST()
49 SmallVector<MCPhysReg, 16> Hints = {1, 2, 3}; in TEST() local
51 AllocationOrder O(std::move(Hints), Order, false); in TEST()
58 SmallVector<MCPhysReg, 16> Hints = {1, 2, 3}; in TEST() local
60 AllocationOrder O(std::move(Hints), Order, false); in TEST()
[all …]
/external/llvm-project/llvm/lib/CodeGen/
DAllocationOrder.cpp35 SmallVector<MCPhysReg, 16> Hints; in create() local
37 TRI->getRegAllocationHints(VirtReg, Order, Hints, MF, &VRM, Matrix); in create()
40 if (!Hints.empty()) { in create()
42 for (unsigned I = 0, E = Hints.size(); I != E; ++I) in create()
43 dbgs() << ' ' << printReg(Hints[I], TRI); in create()
48 for (unsigned I = 0, E = Hints.size(); I != E; ++I) in create()
49 assert(is_contained(Order, Hints[I]) && in create()
52 return AllocationOrder(std::move(Hints), Order, HardHints); in create()
DAllocationOrder.h31 const SmallVector<MCPhysReg, 16> Hints; variable
57 return AO.Hints.end()[Pos];
90 AllocationOrder(SmallVector<MCPhysReg, 16> &&Hints, ArrayRef<MCPhysReg> Order, in AllocationOrder() argument
92 : Hints(std::move(Hints)), Order(Order), in AllocationOrder()
96 return Iterator(*this, -(static_cast<int>(Hints.size()))); in begin()
118 return Reg.isPhysical() && is_contained(Hints, Reg.id()); in isHint()
/external/llvm/lib/CodeGen/
DAllocationOrder.h30 SmallVector<MCPhysReg, 16> Hints; variable
52 return Hints.end()[Pos++];
69 return Hints.end()[Pos++]; in nextWithDups()
76 void rewind() { Pos = -int(Hints.size()); } in rewind()
83 return std::find(Hints.begin(), Hints.end(), PhysReg) != Hints.end(); in isHint()
DAllocationOrder.cpp38 TRI->getRegAllocationHints(VirtReg, Order, Hints, MF, &VRM, Matrix); in AllocationOrder()
42 if (!Hints.empty()) { in AllocationOrder()
44 for (unsigned I = 0, E = Hints.size(); I != E; ++I) in AllocationOrder()
45 dbgs() << ' ' << PrintReg(Hints[I], TRI); in AllocationOrder()
50 for (unsigned I = 0, E = Hints.size(); I != E; ++I) in AllocationOrder()
51 assert(std::find(Order.begin(), Order.end(), Hints[I]) != Order.end() && in AllocationOrder()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DAllocationOrder.cpp37 if (TRI->getRegAllocationHints(VirtReg, Order, Hints, MF, &VRM, Matrix)) in AllocationOrder()
42 if (!Hints.empty()) { in AllocationOrder()
44 for (unsigned I = 0, E = Hints.size(); I != E; ++I) in AllocationOrder()
45 dbgs() << ' ' << printReg(Hints[I], TRI); in AllocationOrder()
50 for (unsigned I = 0, E = Hints.size(); I != E; ++I) in AllocationOrder()
51 assert(is_contained(Order, Hints[I]) && in AllocationOrder()
DAllocationOrder.h30 SmallVector<MCPhysReg, 16> Hints; variable
56 return Hints.end()[Pos++];
75 return Hints.end()[Pos++]; in nextWithDups()
84 void rewind() { Pos = -int(Hints.size()); } in rewind()
90 bool isHint(unsigned PhysReg) const { return is_contained(Hints, PhysReg); } in isHint()
/external/clang/lib/Sema/
DSemaFixItUtils.cpp109 Hints.push_back(FixItHint::CreateRemoval( in tryToFixConversion()
113 Hints.push_back(FixItHint::CreateInsertion(Begin, "*(")); in tryToFixConversion()
114 Hints.push_back(FixItHint::CreateInsertion(End, ")")); in tryToFixConversion()
116 Hints.push_back(FixItHint::CreateInsertion(Begin, "*")); in tryToFixConversion()
143 Hints.push_back(FixItHint::CreateRemoval( in tryToFixConversion()
147 Hints.push_back(FixItHint::CreateInsertion(Begin, "&(")); in tryToFixConversion()
148 Hints.push_back(FixItHint::CreateInsertion(End, ")")); in tryToFixConversion()
150 Hints.push_back(FixItHint::CreateInsertion(Begin, "&")); in tryToFixConversion()
/external/llvm-project/clang/lib/Sema/
DSemaFixItUtils.cpp108 Hints.push_back(FixItHint::CreateRemoval( in tryToFixConversion()
112 Hints.push_back(FixItHint::CreateInsertion(Begin, "*(")); in tryToFixConversion()
113 Hints.push_back(FixItHint::CreateInsertion(End, ")")); in tryToFixConversion()
115 Hints.push_back(FixItHint::CreateInsertion(Begin, "*")); in tryToFixConversion()
142 Hints.push_back(FixItHint::CreateRemoval( in tryToFixConversion()
146 Hints.push_back(FixItHint::CreateInsertion(Begin, "&(")); in tryToFixConversion()
147 Hints.push_back(FixItHint::CreateInsertion(End, ")")); in tryToFixConversion()
149 Hints.push_back(FixItHint::CreateInsertion(Begin, "&")); in tryToFixConversion()
/external/llvm-project/clang/include/clang/Frontend/
DTextDiagnostic.h88 ArrayRef<FixItHint> Hints) override { in emitCodeContext() argument
89 emitSnippetAndCaret(Loc, Level, Ranges, Hints); in emitCodeContext()
105 ArrayRef<FixItHint> Hints);
109 void emitParseableFixits(ArrayRef<FixItHint> Hints, const SourceManager &SM);
DDiagnosticRenderer.h89 ArrayRef<FixItHint> Hints) = 0;
111 ArrayRef<CharSourceRange> Ranges, ArrayRef<FixItHint> Hints);
117 ArrayRef<FixItHint> Hints);
/external/llvm-project/llvm/lib/Target/SystemZ/
DSystemZRegisterInfo.cpp60 SmallVectorImpl<MCPhysReg> &Hints, in addHints() argument
64 CopyHints.insert(Hints.begin(), Hints.end()); in addHints()
65 Hints.clear(); in addHints()
69 Hints.push_back(Reg); in addHints()
73 Hints.push_back(Reg); in addHints()
78 SmallVectorImpl<MCPhysReg> &Hints, const MachineFunction &MF, in getRegAllocationHints() argument
85 VirtReg, Order, Hints, MF, VRM, Matrix); in getRegAllocationHints()
121 if (!MRI->isReserved(PhysReg) && !is_contained(Hints, PhysReg)) in getRegAllocationHints()
131 Hints.push_back(OrderReg); in getRegAllocationHints()
159 addHints(Order, Hints, RC, MRI); in getRegAllocationHints()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/SystemZ/
DSystemZRegisterInfo.cpp60 SmallVectorImpl<MCPhysReg> &Hints, in addHints() argument
64 CopyHints.insert(Hints.begin(), Hints.end()); in addHints()
65 Hints.clear(); in addHints()
69 Hints.push_back(Reg); in addHints()
73 Hints.push_back(Reg); in addHints()
79 SmallVectorImpl<MCPhysReg> &Hints, in getRegAllocationHints() argument
88 VirtReg, Order, Hints, MF, VRM, Matrix); in getRegAllocationHints()
123 if (!MRI->isReserved(PhysReg) && !is_contained(Hints, PhysReg)) in getRegAllocationHints()
133 Hints.push_back(OrderReg); in getRegAllocationHints()
161 addHints(Order, Hints, RC, MRI); in getRegAllocationHints()
[all …]
/external/clang/include/clang/Frontend/
DTextDiagnostic.h93 ArrayRef<FixItHint> Hints, in emitCodeContext() argument
95 emitSnippetAndCaret(Loc, Level, Ranges, Hints, SM); in emitCodeContext()
112 ArrayRef<FixItHint> Hints,
117 void emitParseableFixits(ArrayRef<FixItHint> Hints, const SourceManager &SM);
DDiagnosticRenderer.h90 ArrayRef<FixItHint> Hints,
118 ArrayRef<CharSourceRange> Ranges, ArrayRef<FixItHint> Hints,
127 ArrayRef<FixItHint> Hints,
/external/llvm-project/clang-tools-extra/clang-tidy/readability/
DConstReturnTypeCheck.cpp61 llvm::SmallVector<clang::FixItHint, 4> Hints; member
79 Result.Hints.push_back(FixItHint::CreateRemoval(Result.ConstRange)); in checkDef()
87 Result.Hints.push_back(FixItHint::CreateRemoval( in checkDef()
118 for (auto &Hint : CR.Hints) in check()
/external/llvm-project/clang-tools-extra/clang-tidy/abseil/
DRedundantStrcatCallsCheck.cpp46 std::vector<FixItHint> Hints; member
53 CheckResult->Hints.push_back( in RemoveCallLeaveArgs()
57 CheckResult->Hints.push_back( in RemoveCallLeaveArgs()
135 << CheckResult.Hints; in check()
/external/llvm-project/libcxx/benchmarks/
Dmap.bench.cpp55 Hints; member
58 enum class Shuffle { None, Keys, Hints }; enumerator
78 auto& hints = R.Hints.emplace_back(); in makeTestingSets()
82 if (shuffle == Shuffle::Hints) in makeTestingSets()
287 auto H = Data.Hints[I].begin(); in run()
318 auto Third = *(Data.Hints[I].begin() + 2); in run()
406 auto H = Data.Hints[I].begin(); in run()
437 auto Third = *(Data.Hints[I].begin() + 2); in run()
526 auto H = Data.Hints[I].begin(); in run()
557 auto Third = *(Data.Hints[I].begin() + 2); in run()
[all …]
/external/llvm-project/clang/include/clang/Sema/
DSemaFixItUtils.h41 std::vector<FixItHint> Hints; member
80 Hints.clear(); in clear()
/external/clang/include/clang/Sema/
DSemaFixItUtils.h42 std::vector<FixItHint> Hints; member
81 Hints.clear(); in clear()
/external/clang/lib/Frontend/
DTextDiagnostic.cpp996 ArrayRef<FixItHint> Hints, in buildFixItInsertionLine() argument
1000 if (Hints.empty() || !DiagOpts->ShowFixits) in buildFixItInsertionLine()
1004 for (ArrayRef<FixItHint>::iterator I = Hints.begin(), E = Hints.end(); in buildFixItInsertionLine()
1069 ArrayRef<FixItHint> Hints, in emitSnippetAndCaret() argument
1082 if (Loc == LastLoc && Ranges.empty() && Hints.empty() && in emitSnippetAndCaret()
1151 Hints, SM, in emitSnippetAndCaret()
1195 emitParseableFixits(Hints, SM); in emitSnippetAndCaret()
1234 void TextDiagnostic::emitParseableFixits(ArrayRef<FixItHint> Hints, in emitParseableFixits() argument
1241 for (ArrayRef<FixItHint>::iterator I = Hints.begin(), E = Hints.end(); in emitParseableFixits()
1249 for (ArrayRef<FixItHint>::iterator I = Hints.begin(), E = Hints.end(); in emitParseableFixits()
/external/llvm-project/clang/lib/Frontend/
DTextDiagnostic.cpp1072 ArrayRef<FixItHint> Hints, in buildFixItInsertionLine() argument
1076 if (Hints.empty() || !DiagOpts->ShowFixits) in buildFixItInsertionLine()
1080 for (ArrayRef<FixItHint>::iterator I = Hints.begin(), E = Hints.end(); in buildFixItInsertionLine()
1142 SmallVectorImpl<CharSourceRange> &Ranges, ArrayRef<FixItHint> Hints) { in emitSnippetAndCaret() argument
1154 if (Loc == LastLoc && Ranges.empty() && Hints.empty() && in emitSnippetAndCaret()
1238 FID, LineNo, sourceColMap, Hints, SM, DiagOpts.get()); in emitSnippetAndCaret()
1284 emitParseableFixits(Hints, SM); in emitSnippetAndCaret()
1323 void TextDiagnostic::emitParseableFixits(ArrayRef<FixItHint> Hints, in emitParseableFixits() argument
1330 for (ArrayRef<FixItHint>::iterator I = Hints.begin(), E = Hints.end(); in emitParseableFixits()
1338 for (ArrayRef<FixItHint>::iterator I = Hints.begin(), E = Hints.end(); in emitParseableFixits()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Vectorize/
DLoopVectorizationLegality.cpp227 Hint *Hints[] = {&Width, &Interleave, &Force, &IsVectorized, &Predicate}; in setHint() local
228 for (auto H : Hints) { in setHint()
240 Function *F, Loop *L, const LoopVectorizeHints &Hints) { in doesNotMeet() argument
241 const char *PassName = Hints.vectorizeAnalysisPassName(); in doesNotMeet()
243 if (UnsafeAlgebraInst && !Hints.allowReordering()) { in doesNotMeet()
259 if ((ThresholdReached && !Hints.allowReordering()) || in doesNotMeet()
780 Hints->setPotentiallyUnsafe(); in canVectorizeInstrs()
844 return OptimizationRemarkAnalysis(Hints->vectorizeAnalysisPassName(), in canVectorizeMemory()
1177 if (Hints->getForce() == LoopVectorizeHints::FK_Enabled) in canVectorize()
/external/llvm-project/llvm/lib/Transforms/Vectorize/
DLoopVectorizationLegality.cpp236 Hint *Hints[] = {&Width, &Interleave, &Force, in setHint() local
238 for (auto H : Hints) { in setHint()
250 Function *F, Loop *L, const LoopVectorizeHints &Hints) { in doesNotMeet() argument
251 const char *PassName = Hints.vectorizeAnalysisPassName(); in doesNotMeet()
253 if (UnsafeAlgebraInst && !Hints.allowReordering()) { in doesNotMeet()
269 if ((ThresholdReached && !Hints.allowReordering()) || in doesNotMeet()
816 Hints->setPotentiallyUnsafe(); in canVectorizeInstrs()
880 return OptimizationRemarkAnalysis(Hints->vectorizeAnalysisPassName(), in canVectorizeMemory()
1225 if (Hints->getForce() == LoopVectorizeHints::FK_Enabled) in canVectorize()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Vectorize/
DLoopVectorizationLegality.h174 bool doesNotMeet(Function *F, Loop *L, const LoopVectorizeHints &Hints);
207 GetLAA(GetLAA), ORE(ORE), Requirements(R), Hints(H), DB(DB), AC(AC) {} in LoopVectorizationLegality()
458 LoopVectorizeHints *Hints; variable

1234