Home
last modified time | relevance | path

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

12345678910>>...43

/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DZ3Solver.cpp44 void Z3ErrorHandler(Z3_context Context, Z3_error_code Error) { in Z3ErrorHandler() argument
46 llvm::Twine(Z3_get_error_msg(Context, Error))); in Z3ErrorHandler()
53 Z3_context Context; member in __anona2cc94240111::Z3Context
56 Context = Z3_mk_context_rc(Config.Config); in Z3Context()
59 Z3_set_error_handler(Context, Z3ErrorHandler); in Z3Context()
68 Z3_del_context(Context); in ~Z3Context()
69 Context = nullptr; in ~Z3Context()
77 Z3Context &Context; member in __anona2cc94240111::Z3Sort
83 Z3Sort(Z3Context &C, Z3_sort ZS) : Context(C), Sort(ZS) { in Z3Sort()
84 Z3_inc_ref(Context.Context, reinterpret_cast<Z3_ast>(Sort)); in Z3Sort()
[all …]
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DASTStructuralEquivalence.cpp100 static bool IsStructurallyEquivalent(StructuralEquivalenceContext &Context,
102 static bool IsStructurallyEquivalent(StructuralEquivalenceContext &Context,
104 static bool IsStructurallyEquivalent(StructuralEquivalenceContext &Context,
106 static bool IsStructurallyEquivalent(StructuralEquivalenceContext &Context,
109 static bool IsStructurallyEquivalent(StructuralEquivalenceContext &Context,
112 static bool IsStructurallyEquivalent(StructuralEquivalenceContext &Context,
118 static bool IsStructurallyEquivalent(StructuralEquivalenceContext &Context, in IsStructurallyEquivalent() argument
133 return IsStructurallyEquivalent(Context, Name1.getCXXNameType(), in IsStructurallyEquivalent()
138 Context, Name1.getCXXDeductionGuideTemplate()->getDeclName(), in IsStructurallyEquivalent()
141 return IsStructurallyEquivalent(Context, in IsStructurallyEquivalent()
[all …]
H A DRecordLayoutBuilder.cpp105 const ASTContext &Context; member in __anonbcc347f50111::EmptySubobjectMap
147 return Context.toCharUnitsFromBits(FieldOffset); in getFieldOffset()
169 EmptySubobjectMap(const ASTContext &Context, const CXXRecordDecl *Class) in EmptySubobjectMap() argument
170 : Context(Context), CharWidth(Context.getCharWidth()), Class(Class) { in EmptySubobjectMap()
192 const ASTRecordLayout &Layout = Context.getASTRecordLayout(BaseDecl); in ComputeEmptySubobjectSizes()
208 Context.getBaseElementType(FD->getType())->getAs<RecordType>(); in ComputeEmptySubobjectSizes()
216 const ASTRecordLayout &Layout = Context.getASTRecordLayout(MemberDecl); in ComputeEmptySubobjectSizes()
280 const ASTRecordLayout &Layout = Context.getASTRecordLayout(Info->Class); in CanPlaceBaseSubobjectAtOffset()
328 const ASTRecordLayout &Layout = Context.getASTRecordLayout(Info->Class); in UpdateEmptyBaseSubobjects()
383 const ASTRecordLayout &Layout = Context.getASTRecordLayout(RD); in CanPlaceFieldSubobjectAtOffset()
[all …]
H A DNestedNameSpecifier.cpp39 NestedNameSpecifier::FindOrInsert(const ASTContext &Context, in FindOrInsert() argument
46 = Context.NestedNameSpecifiers.FindNodeOrInsertPos(ID, InsertPos); in FindOrInsert()
49 new (Context, alignof(NestedNameSpecifier)) NestedNameSpecifier(Mockup); in FindOrInsert()
50 Context.NestedNameSpecifiers.InsertNode(NNS, InsertPos); in FindOrInsert()
56 NestedNameSpecifier *NestedNameSpecifier::Create(const ASTContext &Context, in Create() argument
66 return FindOrInsert(Context, Mockup); in Create()
70 NestedNameSpecifier::Create(const ASTContext &Context, in Create() argument
82 return FindOrInsert(Context, Mockup); in Create()
86 NestedNameSpecifier::Create(const ASTContext &Context, in Create() argument
98 return FindOrInsert(Context, Mockup); in Create()
[all …]
H A DASTDumper.cpp189 const ASTContext &Context) const { in dump()
190 ASTDumper Dumper(OS, Context, Context.getDiagnostics().getShowColors()); in dump()
197 const ASTContext &Context) const { in dump()
198 QualType(this, 0).dump(OS, Context); in dump()
210 const ASTContext &Context) const { in dump()
211 ASTDumper(OS, Context, Context.getDiagnostics().getShowColors()).Visit(*this); in dump()
294 const ASTContext &Context) const { in dump()
295 ASTDumper P(OS, Context, Context.getDiagnostics().getShowColors()); in dump()
317 const ASTContext &Context) const { in dump()
321 ASTDumper Dumper(OS, Context, Context.getDiagnostics().getShowColors()); in dump()
[all …]
/freebsd/usr.sbin/ppp/
H A Dchap_ms.c157 SHA_CTX Context; in ChallengeHash() local
167 SHA1_Init(&Context); in ChallengeHash()
169 SHA1_Update(&Context, PeerChallenge, 16); in ChallengeHash()
170 SHA1_Update(&Context, AuthenticatorChallenge, 16); in ChallengeHash()
171 SHA1_Update(&Context, Name, strlen(Name)); in ChallengeHash()
173 SHA1_Final(Digest, &Context); in ChallengeHash()
219 SHA_CTX Context; in GenerateAuthenticatorResponse() local
251 SHA1_Init(&Context); in GenerateAuthenticatorResponse()
252 SHA1_Update(&Context, PasswordHashHash, 16); in GenerateAuthenticatorResponse()
253 SHA1_Update(&Context, NTResponse, 24); in GenerateAuthenticatorResponse()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/rtsan/
H A Drtsan_context.cpp29 static __rtsan::Context &GetContextForThisThreadImpl() { in GetContextForThisThreadImpl()
35 Context *current_thread_context = in GetContextForThisThreadImpl()
36 static_cast<Context *>(pthread_getspecific(context_key)); in GetContextForThisThreadImpl()
39 static_cast<Context *>(InternalAlloc(sizeof(Context))); in GetContextForThisThreadImpl()
40 new (current_thread_context) Context(); in GetContextForThisThreadImpl()
47 __rtsan::Context::Context() = default;
49 void __rtsan::Context::RealtimePush() { realtime_depth_++; } in RealtimePush()
51 void __rtsan::Context::RealtimePop() { realtime_depth_--; } in RealtimePop()
53 void __rtsan::Context::BypassPush() { bypass_depth_++; } in BypassPush()
55 void __rtsan::Context::BypassPop() { bypass_depth_--; } in BypassPop()
[all …]
H A Drtsan_context.h15 class Context {
17 Context();
28 Context(const Context &) = delete;
29 Context(Context &&) = delete;
30 Context &operator=(const Context &) = delete;
31 Context &operator=(Context &&) = delete;
40 [[nodiscard]] explicit ScopedBypass(Context &context) : context_(context) { in ScopedBypass()
52 Context &context_;
55 Context &GetContextForThisThread();
/freebsd/contrib/llvm-project/clang/lib/Tooling/Transformer/
H A DSourceCodeBuilders.cpp65 bool tooling::isKnownPointerLikeType(QualType Ty, ASTContext &Context) { in isKnownPointerLikeType() argument
72 return match(PointerLikeTy, Ty, Context).size() > 0; in isKnownPointerLikeType()
76 const ASTContext &Context) { in buildParens() argument
77 StringRef Text = getText(E, Context); in buildParens()
86 tooling::buildDereference(const Expr &E, const ASTContext &Context) { in buildDereference() argument
91 getText(*Op->getSubExpr()->IgnoreParenImpCasts(), Context); in buildDereference()
97 StringRef Text = getText(E, Context); in buildDereference()
107 const ASTContext &Context) { in buildAddressOf() argument
114 getText(*Op->getSubExpr()->IgnoreParenImpCasts(), Context); in buildAddressOf()
120 StringRef Text = getText(E, Context); in buildAddressOf()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DMDBuilder.cpp22 return MDString::get(Context, Str); in createString()
34 createConstant(ConstantFP::get(Type::getFloatTy(Context), Accuracy)); in createFPMath()
35 return MDNode::get(Context, Op); in createFPMath()
63 Type *Int32Ty = Type::getInt32Ty(Context); in createBranchWeights()
67 return MDNode::get(Context, Vals); in createBranchWeights()
70 MDNode *MDBuilder::createUnpredictable() { return MDNode::get(Context, {}); } in createUnpredictable()
75 Type *Int64Ty = Type::getInt64Ty(Context); in createFunctionEntryCount()
88 return MDNode::get(Context, Ops); in createFunctionEntryCount()
92 return MDNode::get(Context, in createGlobalObjectSectionPrefix()
99 Type *Ty = IntegerType::get(Context, Lo.getBitWidth()); in createRange()
[all …]
H A DProfileSummary.cpp26 static Metadata *getKeyValMD(LLVMContext &Context, const char *Key, in getKeyValMD() argument
28 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()
34 static Metadata *getKeyFPValMD(LLVMContext &Context, const char *Key, in getKeyFPValMD() argument
36 Type *DoubleTy = Type::getDoubleTy(Context); in getKeyFPValMD()
37 Metadata *Ops[2] = {MDString::get(Context, Key), in getKeyFPValMD()
39 return MDTuple::get(Context, Ops); in getKeyFPValMD()
44 static Metadata *getKeyValMD(LLVMContext &Context, const char *Key, in getKeyValMD() argument
46 Metadata *Ops[2] = {MDString::get(Context, Key), MDString::get(Context, Val)}; in getKeyValMD()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DRewriteModernObjC.cpp69 ASTContext *Context; member in __anonc09f721f0111::RewriteModernObjC
267 Diags.Report(Context->getFullLoc(Old->getBeginLoc()), RewriteFailedDiag) in ReplaceStmtWithRange()
283 Diags.Report(Context->getFullLoc(Old->getBeginLoc()), RewriteFailedDiag) in ReplaceStmtWithRange()
294 Diags.Report(Context->getFullLoc(Loc), RewriteFailedDiag); in InsertText()
304 Diags.Report(Context->getFullLoc(Start), RewriteFailedDiag); in ReplaceText()
508 T = Context->getPointerType(BPT->getPointeeType()); in convertBlockPointerToFunctionPointer()
524 T = isConst ? Context->getObjCIdType().withConst() in convertToUnqualifiedObjCType()
525 : Context->getObjCIdType(); in convertToUnqualifiedObjCType()
528 T = Context->getObjCClassType(); in convertToUnqualifiedObjCType()
535 T = Context->getPointerType(T); in convertToUnqualifiedObjCType()
[all …]
H A DRewriteObjC.cpp67 ASTContext *Context; member in __anonb8493dda0111::RewriteObjC
217 Diags.Report(Context->getFullLoc(Old->getBeginLoc()), RewriteFailedDiag) in ReplaceStmtWithRange()
233 Diags.Report(Context->getFullLoc(Old->getBeginLoc()), RewriteFailedDiag) in ReplaceStmtWithRange()
244 Diags.Report(Context->getFullLoc(Loc), RewriteFailedDiag); in InsertText()
254 Diags.Report(Context->getFullLoc(Start), RewriteFailedDiag); in ReplaceText()
418 T = Context->getPointerType(BPT->getPointeeType()); in convertBlockPointerToFunctionPointer()
432 T = Context->getObjCIdType(); in convertToUnqualifiedObjCType()
434 T = Context->getObjCClassType(); in convertToUnqualifiedObjCType()
441 T = Context->getPointerType(T); in convertToUnqualifiedObjCType()
451 QualType OCT = Context->getCanonicalType(T).getUnqualifiedType(); in isObjCType()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/
H A DUSRFinder.cpp36 const ASTContext &Context) in NamedDeclOccurrenceFindingVisitor() argument
37 : RecursiveSymbolVisitor(Context.getSourceManager(), in NamedDeclOccurrenceFindingVisitor()
38 Context.getLangOpts()), in NamedDeclOccurrenceFindingVisitor()
39 Point(Point), Context(Context) {} in NamedDeclOccurrenceFindingVisitor()
63 (Context.getSourceManager().isBeforeInTranslationUnit(Start, in isPointWithin()
65 Context.getSourceManager().isBeforeInTranslationUnit(Point, End)); in isPointWithin()
70 const ASTContext &Context; member in clang::tooling::__anon3137cd810111::NamedDeclOccurrenceFindingVisitor
75 const NamedDecl *getNamedDeclAt(const ASTContext &Context, in getNamedDeclAt() argument
77 const SourceManager &SM = Context.getSourceManager(); in getNamedDeclAt()
78 NamedDeclOccurrenceFindingVisitor Visitor(Point, Context); in getNamedDeclAt()
[all …]
H A DRenamingAction.cpp37 findSymbolOccurrences(const NamedDecl *ND, RefactoringRuleContext &Context) { in findSymbolOccurrences() argument
39 getUSRsForDeclaration(ND, Context.getASTContext()); in findSymbolOccurrences()
42 Context.getASTContext().getTranslationUnitDecl()); in findSymbolOccurrences()
57 RenameOccurrences::initiate(RefactoringRuleContext &Context, in initiate() argument
60 getNamedDeclAt(Context.getASTContext(), SelectionRange.getBegin()); in initiate()
62 return Context.createDiagnosticError( in initiate()
71 RenameOccurrences::createSourceReplacements(RefactoringRuleContext &Context) { in createSourceReplacements() argument
72 Expected<SymbolOccurrences> Occurrences = findSymbolOccurrences(ND, Context); in createSourceReplacements()
78 *Occurrences, Context.getASTContext().getSourceManager(), Name); in createSourceReplacements()
82 QualifiedRenameRule::initiate(RefactoringRuleContext &Context, in initiate() argument
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaExprObjC.cpp39 ASTContext &Context = getASTContext(); in ParseObjCStringLiteral() local
71 const ConstantArrayType *CAT = Context.getAsConstantArrayType(S->getType()); in ParseObjCStringLiteral()
73 QualType StrTy = Context.getConstantArrayType( in ParseObjCStringLiteral()
76 S = StringLiteral::Create(Context, StrBuf, StringLiteralKind::Ordinary, in ParseObjCStringLiteral()
85 ASTContext &Context = getASTContext(); in BuildObjCStringLiteral() local
94 QualType Ty = Context.getObjCConstantStringInterface(); in BuildObjCStringLiteral()
96 Ty = Context.getObjCObjectPointerType(Ty); in BuildObjCStringLiteral()
102 NSIdent = &Context.Idents.get("NSConstantString"); in BuildObjCStringLiteral()
104 NSIdent = &Context.Idents.get(StringClass); in BuildObjCStringLiteral()
109 Context.setObjCConstantStringInterface(StrIF); in BuildObjCStringLiteral()
[all …]
H A DSemaAPINotes.cpp64 auto *typeAttr = SwiftTypeAttr::CreateImplicit(S.Context, typeString); in applyAPINotesType()
66 S.Context, metadata.Version, typeAttr, metadata.IsReplacement); in applyAPINotesType()
97 SwiftNullabilityAttr::CreateImplicit(S.Context, attrNullabilityKind); in applyNullability()
99 S.Context, metadata.Version, nullabilityAttr, metadata.IsReplacement); in applyNullability()
150 S.Context, Metadata.Version, *Existing, /*IsReplacedByActive*/ true); in handleAPINotedAttribute()
167 S.Context, Metadata.Version, Attr, in handleAPINotedAttribute()
176 S.Context, Metadata.Version, AttrKindFor<A>::value, in handleAPINotedAttribute()
202 [&] { return new (S.Context) A(S.Context, getPlaceholderAttrInfo()); }, in handleAPINotedRetainCountAttribute()
254 return new (S.Context) in ProcessAPINotes()
255 UnavailableAttr(S.Context, getPlaceholderAttrInfo(), in ProcessAPINotes()
[all …]
H A DSemaDeclAttr.cpp176 Record->lookup(S.Context.DeclarationNames.getCXXOperatorName(Op)); in threadSafetyCheckIsSmartPointer()
456 D->addAttr(::new (S.Context) PtGuardedVarAttr(S.Context, AL)); in handlePtGuardedVarAttr()
478 D->addAttr(::new (S.Context) GuardedByAttr(S.Context, AL, Arg)); in handleGuardedByAttr()
489 D->addAttr(::new (S.Context) PtGuardedByAttr(S.Context, AL, Arg)); in handlePtGuardedByAttr()
518 D->addAttr(::new (S.Context) in handleAcquiredAfterAttr()
519 AcquiredAfterAttr(S.Context, AL, StartArg, Args.size())); in handleAcquiredAfterAttr()
528 D->addAttr(::new (S.Context) in handleAcquiredBeforeAttr()
529 AcquiredBeforeAttr(S.Context, AL, StartArg, Args.size())); in handleAcquiredBeforeAttr()
599 D->addAttr(::new (S.Context) in handleAllocSizeAttr()
600 AllocSizeAttr(S.Context, AL, SizeArgNo, NumberArgNo)); in handleAllocSizeAttr()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DGenericConvergenceVerifierImpl.h71 {Context.print(&I)}); in visit()
74 {Context.print(&I)}); in visit()
78 {Context.print(&I)}); in visit()
84 {Context.print(&I)}); in visit()
88 {Context.print(&I)}); in visit()
92 {Context.print(&I)}); in visit()
108 {Context.print(&I)}); in visit()
114 {Context.print(&I)}); in visit()
131 assert(Context.getFunction()); in verify()
132 const auto &F = *Context.getFunction(); in verify()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchFinder.h76 MatchResult(const BoundNodes &Nodes, clang::ASTContext *Context);
85 clang::ASTContext * const Context; member
194 template <typename T> void match(const T &Node, ASTContext &Context) { in match() argument
195 match(clang::DynTypedNode::create(Node), Context); in match()
197 void match(const clang::DynTypedNode &Node, ASTContext &Context);
201 void matchAST(ASTContext &Context);
254 match(MatcherT Matcher, const NodeT &Node, ASTContext &Context);
258 ASTContext &Context);
264 SmallVector<BoundNodes, 1> match(MatcherT Matcher, ASTContext &Context);
303 ASTContext &Context) { in match() argument
[all …]
/freebsd/contrib/llvm-project/clang/lib/Tooling/Refactoring/
H A DASTSelectionRequirements.cpp16 ASTSelectionRequirement::evaluate(RefactoringRuleContext &Context) const { in evaluate()
19 SourceRangeSelectionRequirement::evaluate(Context); in evaluate()
24 findSelectedASTNodes(Context.getASTContext(), *Range); in evaluate()
26 return Context.createDiagnosticError( in evaluate()
32 RefactoringRuleContext &Context) const { in evaluate()
35 ASTSelectionRequirement::evaluate(Context); in evaluate()
41 CodeRangeASTSelection::create(Context.getSelectionRange(), in evaluate()
44 return Context.createDiagnosticError( in evaluate()
45 Context.getSelectionRange().getBegin(), in evaluate()
47 Context.setASTSelection(std::move(StoredSelection)); in evaluate()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86CallFrameOptimization.cpp103 MachineBasicBlock::iterator I, CallContext &Context);
105 void adjustCallSequence(MachineFunction &MF, const CallContext &Context);
259 CallContext Context; in runOnMachineFunction() local
260 collectCallInfo(MF, MBB, MI, Context); in runOnMachineFunction()
261 CallSeqVector.push_back(Context); in runOnMachineFunction()
355 CallContext &Context) { in collectCallInfo() argument
363 Context.FrameSetup = FrameSetup; in collectCallInfo()
371 Context.NoStackParams = true; in collectCallInfo()
395 Context.SPCopy = &*J++; in collectCallInfo()
396 StackPtr = Context.SPCopy->getOperand(0).getReg(); in collectCallInfo()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DValueTypes.cpp22 LLVMContext &Context = LLVMTy->getContext(); in changeExtendedTypeToInteger() local
23 return getIntegerVT(Context, getSizeInBits()); in changeExtendedTypeToInteger()
28 LLVMContext &Context = LLVMTy->getContext(); in changeExtendedVectorElementTypeToInteger() local
29 EVT IntTy = getIntegerVT(Context, getScalarSizeInBits()); in changeExtendedVectorElementTypeToInteger()
30 return getVectorVT(Context, IntTy, getVectorElementCount()); in changeExtendedVectorElementTypeToInteger()
35 LLVMContext &Context = LLVMTy->getContext(); in changeExtendedVectorElementType() local
36 return getVectorVT(Context, EltVT, getVectorElementCount()); in changeExtendedVectorElementType()
39 EVT EVT::getExtendedIntegerVT(LLVMContext &Context, unsigned BitWidth) { in getExtendedIntegerVT() argument
41 VT.LLVMTy = IntegerType::get(Context, BitWidth); in getExtendedIntegerVT()
46 EVT EVT::getExtendedVectorVT(LLVMContext &Context, EVT VT, unsigned NumElements, in getExtendedVectorVT() argument
[all …]
/freebsd/contrib/llvm-project/llvm/lib/SandboxIR/
H A DContext.cpp17 std::unique_ptr<Value> Context::detachLLVMValue(llvm::Value *V) { in detachLLVMValue()
28 std::unique_ptr<Value> Context::detach(Value *V) { in detach()
35 Value *Context::registerValue(std::unique_ptr<Value> &&VPtr) { in registerValue()
56 Value *Context::getOrCreateValueInternal(llvm::Value *LLVMV, llvm::User *U) { in getOrCreateValueInternal()
434 Argument *Context::getOrCreateArgument(llvm::Argument *LLVMArg) { in getOrCreateArgument()
444 Constant *Context::getOrCreateConstant(llvm::Constant *LLVMC) { in getOrCreateConstant()
448 BasicBlock *Context::createBasicBlock(llvm::BasicBlock *LLVMBB) { in createBasicBlock()
457 VAArgInst *Context::createVAArgInst(llvm::VAArgInst *SI) { in createVAArgInst()
462 FreezeInst *Context::createFreezeInst(llvm::FreezeInst *SI) { in createFreezeInst()
467 FenceInst *Context::createFenceInst(llvm::FenceInst *SI) { in createFenceInst()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/ExtractAPI/
H A DExtractAPIVisitor.h46 ExtractAPIVisitorBase(ASTContext &Context, APISet &API) in ExtractAPIVisitorBase() argument
47 : Context(Context), API(API) {} in ExtractAPIVisitorBase()
155 ASTContext &Context; variable
166 return Context.getSourceManager().isInSystemHeader(D->getLocation()); in isInSystemHeader()
226 const auto *Context = cast_if_present<Decl>(D.getDeclContext()); in createHierarchyInformationForDecl() local
228 if (!Context || isa<TranslationUnitDecl>(Context)) in createHierarchyInformationForDecl()
231 return createSymbolReferenceForDecl(*Context); in createHierarchyInformationForDecl()
304 Context.getSourceManager().getPresumedLoc(Decl->getLocation()); in VisitVarDecl()
309 Comment = RawComment->getFormattedLines(Context.getSourceManager(), in VisitVarDecl()
310 Context.getDiagnostics()); in VisitVarDecl()
[all …]

12345678910>>...43