Home
last modified time | relevance | path

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

123456789

/external/mesa3d/src/mesa/main/
Dhint.c55 if (ctx->Hint.Fog == mode) in _mesa_Hint()
58 ctx->Hint.Fog = mode; in _mesa_Hint()
63 if (ctx->Hint.LineSmooth == mode) in _mesa_Hint()
66 ctx->Hint.LineSmooth = mode; in _mesa_Hint()
71 if (ctx->Hint.PerspectiveCorrection == mode) in _mesa_Hint()
74 ctx->Hint.PerspectiveCorrection = mode; in _mesa_Hint()
79 if (ctx->Hint.PointSmooth == mode) in _mesa_Hint()
82 ctx->Hint.PointSmooth = mode; in _mesa_Hint()
87 if (ctx->Hint.PolygonSmooth == mode) in _mesa_Hint()
90 ctx->Hint.PolygonSmooth = mode; in _mesa_Hint()
[all …]
/external/clang/unittests/Tooling/
DFixItTest.cpp85 FixItHint Hint = createRemoval(*CE); in TEST() local
86 EXPECT_EQ("foo(x, y)", getText(Hint.RemoveRange.getAsRange(), *Context)); in TEST()
87 EXPECT_TRUE(Hint.InsertFromRange.isInvalid()); in TEST()
88 EXPECT_TRUE(Hint.CodeToInsert.empty()); in TEST()
120 FixItHint Hint = createRemoval(*CE); in TEST() local
121 EXPECT_EQ("FOO", getText(Hint.RemoveRange.getAsRange(), *Context)); in TEST()
122 EXPECT_TRUE(Hint.InsertFromRange.isInvalid()); in TEST()
123 EXPECT_TRUE(Hint.CodeToInsert.empty()); in TEST()
147 FixItHint Hint = createRemoval(*CE); in TEST() local
149 LocationToString(Hint.RemoveRange.getBegin(), Context)); in TEST()
[all …]
/external/llvm-project/clang/unittests/Tooling/
DFixItTest.cpp84 FixItHint Hint = createRemoval(*CE); in TEST() local
85 EXPECT_EQ("foo(x, y)", getText(Hint.RemoveRange.getAsRange(), *Context)); in TEST()
86 EXPECT_TRUE(Hint.InsertFromRange.isInvalid()); in TEST()
87 EXPECT_TRUE(Hint.CodeToInsert.empty()); in TEST()
119 FixItHint Hint = createRemoval(*CE); in TEST() local
120 EXPECT_EQ("FOO", getText(Hint.RemoveRange.getAsRange(), *Context)); in TEST()
121 EXPECT_TRUE(Hint.InsertFromRange.isInvalid()); in TEST()
122 EXPECT_TRUE(Hint.CodeToInsert.empty()); in TEST()
146 FixItHint Hint = createRemoval(*CE); in TEST() local
148 LocationToString(Hint.RemoveRange.getBegin(), Context)); in TEST()
[all …]
/external/llvm-project/clang/lib/Frontend/Rewrite/
DFixItRewriter.cpp157 const FixItHint &Hint = Info.getFixItHint(Idx); in HandleDiagnostic() local
159 if (Hint.CodeToInsert.empty()) { in HandleDiagnostic()
160 if (Hint.InsertFromRange.isValid()) in HandleDiagnostic()
161 commit.insertFromRange(Hint.RemoveRange.getBegin(), in HandleDiagnostic()
162 Hint.InsertFromRange, /*afterToken=*/false, in HandleDiagnostic()
163 Hint.BeforePreviousInsertions); in HandleDiagnostic()
165 commit.remove(Hint.RemoveRange); in HandleDiagnostic()
167 if (Hint.RemoveRange.isTokenRange() || in HandleDiagnostic()
168 Hint.RemoveRange.getBegin() != Hint.RemoveRange.getEnd()) in HandleDiagnostic()
169 commit.replace(Hint.RemoveRange, Hint.CodeToInsert); in HandleDiagnostic()
[all …]
/external/clang/lib/Frontend/Rewrite/
DFixItRewriter.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 …]
/external/llvm-project/libcxx/benchmarks/
Dmap.bench.cpp40 enum class Hint { Begin, Third, Correct, End }; enum
41 struct AllHints : EnumValuesAsTuple<AllHints, Hint, 4> {
276 template <class Mode, class Hint>
280 template < ::Hint hint>
281 typename std::enable_if<hint == ::Hint::Correct>::type
311 template < ::Hint hint>
312 typename std::enable_if<hint != ::Hint::Correct>::type
320 auto Itor = hint == ::Hint::Begin in run()
322 : hint == ::Hint::Third ? Third : Map.end(); in run()
346 static constexpr auto h = Hint(); in run()
[all …]
/external/llvm-project/clang/lib/Frontend/
DDiagnosticRenderer.cpp63 for (const auto &Hint : FixItHints) in mergeFixits() local
64 if (Hint.CodeToInsert.empty()) { in mergeFixits()
65 if (Hint.InsertFromRange.isValid()) in mergeFixits()
66 commit.insertFromRange(Hint.RemoveRange.getBegin(), in mergeFixits()
67 Hint.InsertFromRange, /*afterToken=*/false, in mergeFixits()
68 Hint.BeforePreviousInsertions); in mergeFixits()
70 commit.remove(Hint.RemoveRange); in mergeFixits()
72 if (Hint.RemoveRange.isTokenRange() || in mergeFixits()
73 Hint.RemoveRange.getBegin() != Hint.RemoveRange.getEnd()) in mergeFixits()
74 commit.replace(Hint.RemoveRange, Hint.CodeToInsert); in mergeFixits()
[all …]
/external/llvm-project/clang-tools-extra/clang-tidy/objc/
DNSInvocationArgumentLifetimeCheck.cpp88 if (llvm::Optional<FixItHint> Hint = in fixItHintForVarDecl() local
90 return Hint; in fixItHintForVarDecl()
92 if (llvm::Optional<FixItHint> Hint = fixItHintReplacementForOwnershipString( in fixItHintForVarDecl() local
94 return Hint; in fixItHintForVarDecl()
141 if (auto Hint = fixItHintForVarDecl(VD, *Result.SourceManager, in check() local
143 Diag << *Hint; in check()
/external/clang/include/clang/Basic/
DDiagnostic.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 …]
/external/llvm-project/llvm/include/llvm/Transforms/Vectorize/
DLoopVectorizationLegality.h57 struct Hint { struct
62 Hint(const char *Name, unsigned Value, HintKind Kind) in Hint() function
69 Hint Width;
72 Hint Interleave;
75 Hint Force;
78 Hint IsVectorized;
81 Hint Predicate;
84 Hint Scalable;
/external/llvm-project/llvm/tools/llvm-cxxmap/
Dllvm-cxxmap.cpp46 std::string Hint = "") { in warn() argument
52 if (!Hint.empty()) in warn()
53 WithColor::note() << Hint << "\n"; in warn()
57 std::string Hint = "") { in exitWithError() argument
63 if (!Hint.empty()) in exitWithError()
64 WithColor::note() << Hint << "\n"; in exitWithError()
/external/clang/lib/Frontend/
DDiagnosticRenderer.cpp56 const FixItHint &Hint = *I; in mergeFixits() local
57 if (Hint.CodeToInsert.empty()) { in mergeFixits()
58 if (Hint.InsertFromRange.isValid()) in mergeFixits()
59 commit.insertFromRange(Hint.RemoveRange.getBegin(), in mergeFixits()
60 Hint.InsertFromRange, /*afterToken=*/false, in mergeFixits()
61 Hint.BeforePreviousInsertions); in mergeFixits()
63 commit.remove(Hint.RemoveRange); in mergeFixits()
65 if (Hint.RemoveRange.isTokenRange() || in mergeFixits()
66 Hint.RemoveRange.getBegin() != Hint.RemoveRange.getEnd()) in mergeFixits()
67 commit.replace(Hint.RemoveRange, Hint.CodeToInsert); in mergeFixits()
[all …]
/external/llvm-project/clang/include/clang/Basic/
DDiagnostic.h99 FixItHint Hint; variable
100 Hint.RemoveRange =
102 Hint.CodeToInsert = std::string(Code);
103 Hint.BeforePreviousInsertions = BeforePreviousInsertions;
104 return Hint;
112 FixItHint Hint; variable
113 Hint.RemoveRange =
115 Hint.InsertFromRange = FromRange;
116 Hint.BeforePreviousInsertions = BeforePreviousInsertions;
117 return Hint;
[all …]
/external/llvm-project/clang-tools-extra/clang-tidy/abseil/
DDurationUnnecessaryConversionCheck.cpp83 FixItHint Hint; in check() local
91 Hint = FixItHint::CreateReplacement( in check()
100 Hint = FixItHint::CreateReplacement( in check()
107 Hint = FixItHint::CreateReplacement( in check()
113 << Hint; in check()
DDurationAdditionCheck.cpp48 FixItHint Hint; in check() local
50 Hint = FixItHint::CreateReplacement( in check()
59 Hint = FixItHint::CreateReplacement( in check()
68 diag(Binop->getBeginLoc(), "perform addition in the duration domain") << Hint; in check()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Vectorize/
DLoopVectorizationLegality.h50 struct Hint { struct
55 Hint(const char *Name, unsigned Value, HintKind Kind) in Hint() function
62 Hint Width;
65 Hint Interleave;
68 Hint Force;
71 Hint IsVectorized;
74 Hint Predicate;
/external/llvm-project/clang-tools-extra/clang-tidy/readability/
DContainerSizeEmptyCheck.cpp109 FixItHint Hint; in check() local
126 Hint = in check()
183 Hint = FixItHint::CreateReplacement(BinaryOp->getSourceRange(), in check()
191 Hint = FixItHint::CreateReplacement(UnaryOp->getSourceRange(), in check()
194 Hint = FixItHint::CreateReplacement(MemberCall->getSourceRange(), in check()
202 << Hint; in check()
207 << Hint; in check()
/external/llvm/lib/CodeGen/
DVirtRegMap.cpp83 unsigned Hint = MRI->getSimpleHint(VirtReg); in hasPreferredPhys() local
84 if (!Hint) in hasPreferredPhys()
86 if (TargetRegisterInfo::isVirtualRegister(Hint)) in hasPreferredPhys()
87 Hint = getPhys(Hint); in hasPreferredPhys()
88 return getPhys(VirtReg) == Hint; in hasPreferredPhys()
92 std::pair<unsigned, unsigned> Hint = MRI->getRegAllocationHint(VirtReg); in hasKnownPreference() local
93 if (TargetRegisterInfo::isPhysicalRegister(Hint.second)) in hasKnownPreference()
95 if (TargetRegisterInfo::isVirtualRegister(Hint.second)) in hasKnownPreference()
96 return hasPhys(Hint.second); in hasKnownPreference()
DRegAllocFast.cpp192 unsigned Hint);
194 unsigned VirtReg, unsigned Hint);
196 unsigned VirtReg, unsigned Hint);
526 unsigned Hint) { in allocVirtReg() argument
535 if (Hint && (!TargetRegisterInfo::isPhysicalRegister(Hint) || in allocVirtReg()
536 !RC->contains(Hint) || !MRI->isAllocatable(Hint))) in allocVirtReg()
537 Hint = 0; in allocVirtReg()
540 if (Hint) { in allocVirtReg()
542 unsigned Cost = calcSpillCost(Hint); in allocVirtReg()
545 definePhysReg(MI, Hint, regFree); in allocVirtReg()
[all …]
/external/llvm-project/llvm/tools/llvm-profgen/
DErrorHandling.h23 StringRef Hint = StringRef()) {
28 if (!Hint.empty())
29 WithColor::note() << Hint.str() << "\n";
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DInaccurateEraseCheck.cpp54 FixItHint Hint; in check() local
63 Hint = FixItHint::CreateInsertion(EndLoc, ", " + ReplacementText); in check()
68 << Hint; in check()
/external/llvm-project/clang-tools-extra/unittests/clang-tidy/
DNamespaceAliaserTest.cpp35 auto Hint = Aliaser->createAlias(*Result.Context, *Call, "::foo::bar", in check() local
37 if (Hint.hasValue()) in check()
38 diag(Call->getBeginLoc(), "Fix for testing") << Hint.getValue(); in check()
DUsingInserterTest.cpp37 auto Hint = in check() local
40 if (Hint.hasValue()) in check()
41 diag(Call->getBeginLoc(), "Fix for testing") << Hint.getValue(); in check()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DVirtRegMap.cpp102 Register Hint = MRI->getSimpleHint(VirtReg); in hasPreferredPhys() local
103 if (!Hint.isValid()) in hasPreferredPhys()
105 if (Hint.isVirtual()) in hasPreferredPhys()
106 Hint = getPhys(Hint); in hasPreferredPhys()
107 return getPhys(VirtReg) == Hint; in hasPreferredPhys()
111 std::pair<unsigned, unsigned> Hint = MRI->getRegAllocationHint(VirtReg); in hasKnownPreference() local
112 if (Register::isPhysicalRegister(Hint.second)) in hasKnownPreference()
114 if (Register::isVirtualRegister(Hint.second)) in hasKnownPreference()
115 return hasPhys(Hint.second); in hasKnownPreference()
/external/llvm-project/llvm/lib/CodeGen/
DVirtRegMap.cpp102 Register Hint = MRI->getSimpleHint(VirtReg); in hasPreferredPhys() local
103 if (!Hint.isValid()) in hasPreferredPhys()
105 if (Hint.isVirtual()) in hasPreferredPhys()
106 Hint = getPhys(Hint); in hasPreferredPhys()
107 return Register(getPhys(VirtReg)) == Hint; in hasPreferredPhys()
111 std::pair<unsigned, unsigned> Hint = MRI->getRegAllocationHint(VirtReg); in hasKnownPreference() local
112 if (Register::isPhysicalRegister(Hint.second)) in hasKnownPreference()
114 if (Register::isVirtualRegister(Hint.second)) in hasKnownPreference()
115 return hasPhys(Hint.second); in hasKnownPreference()

123456789