Home
last modified time | relevance | path

Searched refs:Context (Results 1 – 25 of 1918) sorted by relevance

12345678910>>...77

/llvm-project-15.0.7/clang/unittests/Analysis/FlowSensitive/
H A DDataflowAnalysisContextTest.cpp195 Context.addFlowConditionConstraint(FC2, Context.getBoolLiteralValue(true)); in TEST_F()
200 Context.addFlowConditionConstraint(FC3, Context.getBoolLiteralValue(false)); in TEST_F()
232 Context.getOrCreateNegation(Context.getOrCreateNegation(X)), X)); in TEST_F()
236 Context.equivalentBoolValues(Context.getOrCreateDisjunction(X, X), X)); in TEST_F()
239 Context.equivalentBoolValues(Context.getOrCreateDisjunction(X, Y), X)); in TEST_F()
249 Context.equivalentBoolValues(Context.getOrCreateConjunction(X, X), X)); in TEST_F()
252 Context.equivalentBoolValues(Context.getOrCreateConjunction(X, Y), X)); in TEST_F()
262 Context.equivalentBoolValues(Context.getOrCreateDisjunction(X, Y), in TEST_F()
266 Context.equivalentBoolValues(Context.getOrCreateConjunction(X, Y), in TEST_F()
334 Context.addFlowConditionConstraint(FC, Context.getOrCreateNegation(X)); in TEST_F()
[all …]
/llvm-project-15.0.7/llvm/lib/Support/
H A DZ3Solver.cpp153 Z3_inc_ref(Context.Context, AST); in Z3Expr()
158 Z3_inc_ref(Context.Context, AST); in Z3Expr()
165 Z3_dec_ref(Context.Context, AST); in operator =()
175 Z3_dec_ref(Context.Context, AST); in ~Z3Expr()
184 assert(Z3_is_eq_sort(Context.Context, Z3_get_sort(Context.Context, AST), in equal_to()
312 Z3Sort(Context, Z3_mk_bv_sort(Context.Context, BitWidth))); in getBitvectorSort()
419 Z3Expr(Context, Z3_mk_bvor(Context.Context, toZ3Expr(*LHS).AST, in mkBVOr()
489 Z3Expr(Context, Z3_mk_eq(Context.Context, toZ3Expr(*LHS).AST, in mkEqual()
763 Z3Expr(Context, Z3_mk_const(Context.Context, in mkSymbol()
848 Context.Context, Z3_to_app(Context.Context, toZ3Expr(*Exp).AST)); in getInterpretation()
[all …]
/llvm-project-15.0.7/libcxx/test/libcxx/utilities/format/format.arguments/format.args/
H A Dget.pass.cpp44 template <class Context, class From>
77 test<Context, bool>(true); in test()
78 test<Context, bool>(false); in test()
109 test<Context, int, char>('a'); in test()
110 test<Context, int, char>('z'); in test()
111 test<Context, int, char>('0'); in test()
112 test<Context, int, char>('9'); in test()
130 test<Context, int, signed char>(0); in test()
135 test<Context, int, short>(0); in test()
142 test<Context, int, int>(0); in test()
[all …]
/llvm-project-15.0.7/libcxx/test/libcxx/utilities/format/format.arguments/format.arg/
H A Dvisit_format_arg.pass.cpp56 template <class Context, class From>
90 test<Context, bool>(true); in test()
91 test<Context, bool>(false); in test()
95 test<Context, CharT, CharT>('a'); in test()
96 test<Context, CharT, CharT>('z'); in test()
97 test<Context, CharT, CharT>('0'); in test()
98 test<Context, CharT, CharT>('9'); in test()
104 test<Context, CharT, char>('a'); in test()
105 test<Context, CharT, char>('z'); in test()
148 test<Context, int, short>(0); in test()
[all …]
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DValueTypes.cpp20 LLVMContext &Context = LLVMTy->getContext(); in changeExtendedTypeToInteger() local
21 return getIntegerVT(Context, getSizeInBits()); in changeExtendedTypeToInteger()
26 LLVMContext &Context = LLVMTy->getContext(); in changeExtendedVectorElementTypeToInteger() local
33 LLVMContext &Context = LLVMTy->getContext(); in changeExtendedVectorElementType() local
39 VT.LLVMTy = IntegerType::get(Context, BitWidth); in getExtendedIntegerVT()
182 Type *EVT::getTypeForEVT(LLVMContext &Context) const { in getTypeForEVT()
188 case MVT::isVoid: return Type::getVoidTy(Context); in getTypeForEVT()
189 case MVT::i1: return Type::getInt1Ty(Context); in getTypeForEVT()
192 case MVT::i8: return Type::getInt8Ty(Context); in getTypeForEVT()
193 case MVT::i16: return Type::getInt16Ty(Context); in getTypeForEVT()
[all …]
/llvm-project-15.0.7/lldb/unittests/Process/minidump/
H A DRegisterContextMinidumpTest.cpp46 Context.cs = 0x2829; in TEST()
47 Context.fs = 0x2a2b; in TEST()
48 Context.gs = 0x2c2d; in TEST()
49 Context.ss = 0x2e2f; in TEST()
50 Context.ds = 0x3031; in TEST()
51 Context.es = 0x3233; in TEST()
107 Context.cs = 0x8c8d; in TEST()
108 Context.fs = 0x8e8f; in TEST()
109 Context.gs = 0x9091; in TEST()
110 Context.ss = 0x9293; in TEST()
[all …]
/llvm-project-15.0.7/clang/unittests/StaticAnalyzer/
H A DSValTest.cpp99 EXPECT_EQ(Context.getTypeSize(ExpectedTy), Context.getTypeSize(ActualTy)); in expectSameSignAndBitWidth()
168 EXPECT_EQ(Context.IntTy, X.getType(Context));
172 expectSameSignAndBitWidth(Context.getUIntPtrType(), Y.getType(Context),
177 EXPECT_EQ(Context.BoolTy, Z.getType(Context));
190 expectSameSignAndBitWidth(Context.UnsignedLongTy, A.getType(Context),
195 expectSameSignAndBitWidth(Context.UnsignedIntTy, B.getType(Context), Context);
199 expectSameSignAndBitWidth(Context.IntTy, C.getType(Context), Context);
208 QualType Int = Context.IntTy;
239 QualType Int = Context.IntTy;
378 EXPECT_EQ(Context.VoidPtrTy, A.getType(Context));
[all …]
/llvm-project-15.0.7/clang/lib/AST/
H A DASTStructuralEquivalence.cpp1265 if (Context.Complain) { in IsStructurallyEquivalent()
1266 Context.Diag2( in IsStructurallyEquivalent()
1280 if (Context.Complain) { in IsStructurallyEquivalent()
1281 Context.Diag2( in IsStructurallyEquivalent()
1424 if (Context.Complain) { in IsStructurallyEquivalent()
1425 Context.Diag2(D2->getLocation(), Context.getApplicableDiagnostic( in IsStructurallyEquivalent()
1646 if (Context.Complain) { in IsStructurallyEquivalent()
1647 Context.Diag2(D2->getLocation(), Context.getApplicableDiagnostic( in IsStructurallyEquivalent()
1738 if (Context.Complain) { in IsStructurallyEquivalent()
1739 Context.Diag2(D2->getLocation(), Context.getApplicableDiagnostic( in IsStructurallyEquivalent()
[all …]
/llvm-project-15.0.7/clang/unittests/Tooling/
H A DSourceCodeTest.cpp37 OnIntLit(Expr, Context); in VisitIntegerLiteral()
46 OnCall(Expr, Context); in VisitCallExpr()
70 arg, Context->getSourceManager(), Context->getLangOpts());
143 EXPECT_EQ("", getText(*P0, *Context)); in TEST()
144 EXPECT_EQ("", getText(*P1, *Context)); in TEST()
151 EXPECT_EQ("", getText(*CE, *Context)); in TEST()
154 EXPECT_EQ("x", getText(*P0, *Context)); in TEST()
155 EXPECT_EQ("y", getText(*P1, *Context)); in TEST()
674 EXPECT_EQ(Expr->getCallReturnType(*Context), Context->DependentTy); in TEST()
679 EXPECT_EQ(Expr->getCallReturnType(*Context), Context->DependentTy); in TEST()
[all …]
H A DRewriterTest.cpp18 RewriterTestContext Context; in TEST() local
19 FileID ID = Context.createOnDiskFile("t.cpp", "line1\nline2\nline3\nline4"); in TEST()
20 Context.Rewrite.ReplaceText(Context.getLocation(ID, 2, 1), 5, "replaced"); in TEST()
21 EXPECT_FALSE(Context.Rewrite.overwriteChangedFiles()); in TEST()
23 Context.getFileContentFromDisk("t.cpp")); in TEST()
27 RewriterTestContext Context; in TEST() local
29 Context.Rewrite.ReplaceText(Context.getLocation(FailingID, 1, 2), 1, "other"); in TEST()
30 FileID WorkingID = Context.createOnDiskFile( in TEST()
32 Context.Rewrite.ReplaceText(Context.getLocation(WorkingID, 2, 1), 5, in TEST()
34 EXPECT_TRUE(Context.Rewrite.overwriteChangedFiles()); in TEST()
[all …]
H A DRefactoringTest.cpp450 {Replacement(Context.Sources, Context.getLocation(ID, 2, 1), 6, ""), in TEST_F()
451 Replacement(Context.Sources, Context.getLocation(ID, 2, 1), 0, in TEST_F()
461 {Replacement(Context.Sources, Context.getLocation(ID, 1, 1), 1, "x"), in TEST_F()
462 Replacement(Context.Sources, Context.getLocation(ID, 1, 2), 1, "y")}); in TEST_F()
471 Context.Sources, Context.getLocation(ID, 2, 1), 5, "replaced")}); in TEST_F()
474 Context.Sources, Context.getLocation(ID, 2, 1), 5, "replaced")); in TEST_F()
491 Context.Sources, Context.getLocation(ID, 2, 1), 5, "other")}); in TEST_F()
532 {tooling::Replacement(Context.Sources, Context.getLocation(ID1, 1, 1), 6, in TEST_F()
539 tooling::Replacement(Context.Sources, Context.getLocation(ID2, 2, 9), 1, in TEST_F()
642 Context.Sources, Context.getLocation(ID, 2, 1), 5, "replaced")}); in TEST_F()
[all …]
/llvm-project-15.0.7/llvm/unittests/IR/
H A DMetadataTest.cpp30 LLVMContext Context; in TEST() local
38 LLVMContext Context; in TEST() local
46 LLVMContext Context; in TEST() local
55 LLVMContext Context; in TEST() local
71 LLVMContext Context; member in __anond9aefcc70111::MetadataTest
310 Module M("test", Context); in TEST_F()
331 Module M("test", Context); in TEST_F()
1210 EXPECT_EQ(DISubrange::get(Context, 5, 0), DISubrange::get(Context, 5)); in TEST_F()
1490 Module M("M", Context); in TEST_F()
3330 LLVMContext Context; in TEST() local
[all …]
H A DDebugTypeODRUniquingTest.cpp18 LLVMContext Context; in TEST() local
20 Context.enableDebugTypeODRUniquing(); in TEST()
22 Context.disableDebugTypeODRUniquing(); in TEST()
27 LLVMContext Context; in TEST() local
37 Context.enableDebugTypeODRUniquing(); in TEST()
63 Context.disableDebugTypeODRUniquing(); in TEST()
67 Context.enableDebugTypeODRUniquing(); in TEST()
72 LLVMContext Context; in TEST() local
73 Context.enableDebugTypeODRUniquing(); in TEST()
120 LLVMContext Context; in TEST() local
[all …]
H A DConstantsTest.cpp25 LLVMContext Context; in TEST() local
105 LLVMContext Context; in TEST() local
119 LLVMContext Context; in TEST() local
204 LLVMContext Context; in TEST() local
308 LLVMContext Context; in TEST() local
328 LLVMContext Context; in TEST() local
353 LLVMContext Context; in TEST() local
424 for (Type *T : {Type::getInt8Ty(Context), Type::getInt16Ty(Context), in TEST()
436 for (Type *T : {Type::getHalfTy(Context), Type::getBFloatTy(Context), in TEST()
452 for (Type *T : {Type::getInt8Ty(Context), Type::getInt16Ty(Context), in TEST()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DNarrowingConversionsCheck.cpp30 : ClangTidyCheck(Name, Context), in NarrowingConversionsCheck()
193 APValue Constant = getConstantExprValue(Context, E); in getIntegerConstantExprValue()
202 APValue Constant = getConstantExprValue(Context, E); in getFloatingConstantExprValue()
232 Context.getFloatTypeSemantics(T.desugar())); in createFromType()
250 uint64_t TypeSize = Context.getTypeSize(&T); in createFromType()
277 unsigned DestWidth = Context.getIntWidth(DestType); in isFloatExactlyRepresentable()
310 uint64_t ToTypeSize = Context.getTypeSize(&ToType); in isWarningInhibitedByEquivalentSize()
554 if (handleConditionalOperator(Context, Lhs, Rhs)) in handleImplicitCast()
585 if (handleConditionalOperator(Context, Lhs, Rhs)) in handleBinaryOperator()
592 return handleBinaryOperator(*Result.Context, *Op); in check()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clangd/support/
H A DContext.cpp15 Context Context::empty() { return Context(/*DataPtr=*/nullptr); } in empty()
17 Context::Context(std::shared_ptr<const Data> DataPtr) in Context() function in clang::clangd::Context
20 Context Context::clone() const { return Context(DataPtr); } in clone()
22 static Context &currentContext() { in currentContext()
23 static thread_local auto C = Context::empty(); in currentContext()
27 const Context &Context::current() { return currentContext(); } in current()
29 Context Context::swapCurrent(Context Replacement) { in swapCurrent()
H A DContext.h69 class Context {
72 static Context empty();
77 static Context swapCurrent(Context Replacement);
85 Context() = default;
89 Context(Context const &) = delete;
90 Context &operator=(const Context &) = delete;
92 Context(Context &&) = default;
93 Context &operator=(Context &&) = default;
128 Context
189 WithContext(Context C) : Restore(Context::swapCurrent(std::move(C))) {} in WithContext()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/
H A DFixItHintUtils.cpp22 AmpLocation, Context.getSourceManager(), Context.getLangOpts()); in changeVarDeclToReference()
49 auto PreviousTokenLParen = [&Start, &Context]() { in skipLParensBackwards()
52 Context.getLangOpts()); in skipLParensBackwards()
108 skipLParensBackwards(Var.getLocation(), Context); in changePointerItself()
117 const ASTContext &Context) { in changePointer() argument
136 Var.getLocation(), Context.getSourceManager(), Context.getLangOpts(), in changePointer()
142 skipLParensBackwards(BeforeStar, Context); in changePointer()
157 Var.getLocation(), Context.getSourceManager(), Context.getLangOpts(), in changePointer()
168 const ASTContext &Context) { in changeReferencee() argument
174 Var.getLocation(), Context.getSourceManager(), Context.getLangOpts(), in changeReferencee()
[all …]
/llvm-project-15.0.7/polly/lib/Analysis/
H A DScopDetection.cpp400 if (!Context.Verifying) { in invalid()
401 RejectLog &Log = Context.Log; in invalid()
640 if (isAffine(LHS, L, Context) && isAffine(RHS, L, Context)) in isValidBranch()
798 Context)) in isValidIntrinsicInst()
1061 if (Context.HasUnknownAccess && !Context.NonAffineAccesses.empty()) in hasAffineMemoryAccesses()
1094 if (!isInvariant(*BV, Context.CurRegion, Context)) in isValidAccess()
1113 Context.ElementSize[BP] = SE.getSMinExpr(Size, Context.ElementSize[BP]); in isValidAccess()
1499 if (!allBlocksValid(Context) || Context.Log.hasErrors()) { in expandRegion()
1702 if (!Context.hasStores || !Context.hasLoads) in isProfitableRegion()
1771 if (!allBlocksValid(Context)) in isValidRegion()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/
H A DUnnecessaryCopyInitialization.cpp39 Var, Context, DeclSpec::TQ::TQ_const)) in recordFixes()
57 auto &SM = Context.getSourceManager(); in recordRemoval()
174 ASTContext &Context) { in isVariableUnused() argument
183 Type, Context); in getSubstitutedType()
220 StringRef Name, ClangTidyContext *Context) in UnnecessaryCopyInitialization() argument
221 : ClangTidyCheck(Name, Context), in UnnecessaryCopyInitialization()
294 *Result.Context)) in check()
302 *Result.Context); in check()
324 recordRemoval(Stmt, Context, Diagnostic); in handleCopyFromMethodReturn()
333 recordFixes(Var, Context, Diagnostic); in handleCopyFromMethodReturn()
[all …]
/llvm-project-15.0.7/llvm/unittests/Target/DirectX/
H A DPointerTypeAnalysisTests.cpp32 LLVMContext Context; in TEST() local
49 LLVMContext Context; in TEST() local
51 auto M = parseAssemblyString(Assembly, Error, Context); in TEST()
71 LLVMContext Context; in TEST() local
73 auto M = parseAssemblyString(Assembly, Error, Context); in TEST()
93 LLVMContext Context; in TEST() local
95 auto M = parseAssemblyString(Assembly, Error, Context); in TEST()
115 LLVMContext Context; in TEST() local
117 auto M = parseAssemblyString(Assembly, Error, Context); in TEST()
140 LLVMContext Context; in TEST() local
[all …]
/llvm-project-15.0.7/clang/lib/Tooling/Transformer/
H A DSourceCodeBuilders.cpp77 StringRef Text = getText(E, Context); in buildParens()
97 StringRef Text = getText(E, Context); in buildDereference()
120 StringRef Text = getText(E, Context); in buildAddressOf()
146 StringRef Text = getText(E, Context); in buildAccessForValue()
172 StringRef Text = getText(E, Context); in buildAccessForPointer()
182 return buildAccessForValue(E, Context); in buildDot()
187 return buildAccessForPointer(E, Context); in buildArrow()
206 return isKnownPointerLikeType(Ty, Context); in treatLikePointer()
229 return buildAccessForPointer(*E, Context); in buildAccess()
234 return buildAccessForPointer(*Obj, Context); in buildAccess()
[all …]
/llvm-project-15.0.7/llvm/unittests/Analysis/
H A DIRSimilarityIdentifierTest.cpp59 LLVMContext Context; in TEST() local
90 LLVMContext Context; in TEST() local
118 LLVMContext Context; in TEST() local
143 LLVMContext Context; in TEST() local
170 LLVMContext Context; in TEST() local
195 LLVMContext Context; in TEST() local
221 LLVMContext Context; in TEST() local
247 LLVMContext Context; in TEST() local
273 LLVMContext Context; in TEST() local
299 LLVMContext Context; in TEST() local
[all …]
/llvm-project-15.0.7/llvm/lib/IR/
H A DProfileSummary.cpp28 Type *Int64Ty = Type::getInt64Ty(Context); in getKeyValMD()
29 Metadata *Ops[2] = {MDString::get(Context, Key), in getKeyValMD()
31 return MDTuple::get(Context, Ops); in getKeyValMD()
36 Type *DoubleTy = Type::getDoubleTy(Context); in getKeyFPValMD()
39 return MDTuple::get(Context, Ops); in getKeyFPValMD()
46 Metadata *Ops[2] = {MDString::get(Context, Key), MDString::get(Context, Val)}; in getKeyValMD()
47 return MDTuple::get(Context, Ops); in getKeyValMD()
57 Type *Int32Ty = Type::getInt32Ty(Context); in getDetailedSummaryMD()
58 Type *Int64Ty = Type::getInt64Ty(Context); in getDetailedSummaryMD()
68 return MDTuple::get(Context, Ops); in getDetailedSummaryMD()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DImplicitBoolConversionCheck.cpp31 SourceManager &SM = Context.getSourceManager(); in isNULLMacroExpansion()
32 const LangOptions &LO = Context.getLangOpts(); in isNULLMacroExpansion()
50 return Context.hasSameType(Type, Context.FloatTy) ? "0.0f" : "0.0"; in getZeroLiteralToCompareWithForType()
147 Cast->getEndLoc(), 0, Context.getSourceManager(), Context.getLangOpts()); in fixGenericExprCastToBool()
192 Context.getLangOpts()); in fixGenericExprCastFromBool()
201 if (!Context.getLangOpts().CPlusPlus11 && in getEquivalentForBoolLiteral()
208 if (Context.hasSameType(DestType, Context.FloatTy)) { in getEquivalentForBoolLiteral()
225 TraversalKindScope RAII(Context, TK_AsIs); in isCastAllowedInCondition()
251 StringRef Name, ClangTidyContext *Context) in ImplicitBoolConversionCheck() argument
252 : ClangTidyCheck(Name, Context), in ImplicitBoolConversionCheck()
[all …]

12345678910>>...77