Home
last modified time | relevance | path

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

12345678910>>...39

/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.cpp98 static bool IsStructurallyEquivalent(StructuralEquivalenceContext &Context,
100 static bool IsStructurallyEquivalent(StructuralEquivalenceContext &Context,
102 static bool IsStructurallyEquivalent(StructuralEquivalenceContext &Context,
104 static bool IsStructurallyEquivalent(StructuralEquivalenceContext &Context,
107 static bool IsStructurallyEquivalent(StructuralEquivalenceContext &Context,
110 static bool IsStructurallyEquivalent(StructuralEquivalenceContext &Context,
116 static bool IsStructurallyEquivalent(StructuralEquivalenceContext &Context, in IsStructurallyEquivalent() argument
131 return IsStructurallyEquivalent(Context, Name1.getCXXNameType(), in IsStructurallyEquivalent()
136 Context, Name1.getCXXDeductionGuideTemplate()->getDeclName(), in IsStructurallyEquivalent()
139 return IsStructurallyEquivalent(Context, in IsStructurallyEquivalent()
[all …]
H A DRecordLayoutBuilder.cpp106 const ASTContext &Context; member in __anonbcc347f50111::EmptySubobjectMap
148 return Context.toCharUnitsFromBits(FieldOffset); in getFieldOffset()
170 EmptySubobjectMap(const ASTContext &Context, const CXXRecordDecl *Class) in EmptySubobjectMap() argument
171 : Context(Context), CharWidth(Context.getCharWidth()), Class(Class) { in EmptySubobjectMap()
193 const ASTRecordLayout &Layout = Context.getASTRecordLayout(BaseDecl); in ComputeEmptySubobjectSizes()
209 Context.getBaseElementType(FD->getType())->getAs<RecordType>(); in ComputeEmptySubobjectSizes()
217 const ASTRecordLayout &Layout = Context.getASTRecordLayout(MemberDecl); in ComputeEmptySubobjectSizes()
281 const ASTRecordLayout &Layout = Context.getASTRecordLayout(Info->Class); in CanPlaceBaseSubobjectAtOffset()
331 const ASTRecordLayout &Layout = Context.getASTRecordLayout(Info->Class); in UpdateEmptyBaseSubobjects()
388 const ASTRecordLayout &Layout = Context.getASTRecordLayout(RD); in CanPlaceFieldSubobjectAtOffset()
[all …]
H A DASTDumper.cpp190 const ASTContext &Context) const { in dump()
191 ASTDumper Dumper(OS, Context, Context.getDiagnostics().getShowColors()); in dump()
198 const ASTContext &Context) const { in dump()
199 QualType(this, 0).dump(OS, Context); in dump()
211 const ASTContext &Context) const { in dump()
212 ASTDumper(OS, Context, Context.getDiagnostics().getShowColors()).Visit(*this); in dump()
295 const ASTContext &Context) const { in dump()
296 ASTDumper P(OS, Context, Context.getDiagnostics().getShowColors()); in dump()
318 const ASTContext &Context) const { in dump()
322 ASTDumper Dumper(OS, Context, Context.getDiagnostics().getShowColors()); in dump()
[all …]
H A DNestedNameSpecifier.cpp41 NestedNameSpecifier::FindOrInsert(const ASTContext &Context, in FindOrInsert() argument
48 = Context.NestedNameSpecifiers.FindNodeOrInsertPos(ID, InsertPos); in FindOrInsert()
51 new (Context, alignof(NestedNameSpecifier)) NestedNameSpecifier(Mockup); in FindOrInsert()
52 Context.NestedNameSpecifiers.InsertNode(NNS, InsertPos); in FindOrInsert()
58 NestedNameSpecifier *NestedNameSpecifier::Create(const ASTContext &Context, in Create() argument
68 return FindOrInsert(Context, Mockup); in Create()
72 NestedNameSpecifier::Create(const ASTContext &Context, in Create() argument
84 return FindOrInsert(Context, Mockup); in Create()
88 NestedNameSpecifier::Create(const ASTContext &Context, in Create() argument
100 return FindOrInsert(Context, Mockup); in Create()
[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.cpp30 static __rtsan::Context &GetContextForThisThreadImpl() { in GetContextForThisThreadImpl()
36 __rtsan::Context *current_thread_context = in GetContextForThisThreadImpl()
37 static_cast<__rtsan::Context *>(pthread_getspecific(context_key)); in GetContextForThisThreadImpl()
39 current_thread_context = static_cast<__rtsan::Context *>( in GetContextForThisThreadImpl()
40 __sanitizer::InternalAlloc(sizeof(__rtsan::Context))); in GetContextForThisThreadImpl()
41 new (current_thread_context) __rtsan::Context(); in GetContextForThisThreadImpl()
64 __rtsan::Context::Context() = default;
66 void __rtsan::Context::RealtimePush() { realtime_depth++; } in RealtimePush()
68 void __rtsan::Context::RealtimePop() { realtime_depth--; } in RealtimePop()
70 void __rtsan::Context::BypassPush() { bypass_depth++; } in BypassPush()
[all …]
/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.cpp21 return MDString::get(Context, Str); in createString()
33 createConstant(ConstantFP::get(Type::getFloatTy(Context), Accuracy)); in createFPMath()
34 return MDNode::get(Context, Op); in createFPMath()
62 Type *Int32Ty = Type::getInt32Ty(Context); in createBranchWeights()
66 return MDNode::get(Context, Vals); in createBranchWeights()
70 return MDNode::get(Context, std::nullopt); in createUnpredictable()
76 Type *Int64Ty = Type::getInt64Ty(Context); in createFunctionEntryCount()
89 return MDNode::get(Context, Ops); in createFunctionEntryCount()
94 Context, {createString("function_section_prefix"), createString(Prefix)}); in createFunctionSectionPrefix()
100 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.cpp68 ASTContext *Context; member in __anonc09f721f0111::RewriteModernObjC
268 Diags.Report(Context->getFullLoc(Old->getBeginLoc()), RewriteFailedDiag) in ReplaceStmtWithRange()
284 Diags.Report(Context->getFullLoc(Old->getBeginLoc()), RewriteFailedDiag) in ReplaceStmtWithRange()
295 Diags.Report(Context->getFullLoc(Loc), RewriteFailedDiag); in InsertText()
305 Diags.Report(Context->getFullLoc(Start), RewriteFailedDiag); in ReplaceText()
509 T = Context->getPointerType(BPT->getPointeeType()); in convertBlockPointerToFunctionPointer()
525 T = isConst ? Context->getObjCIdType().withConst() in convertToUnqualifiedObjCType()
526 : Context->getObjCIdType(); in convertToUnqualifiedObjCType()
529 T = Context->getObjCClassType(); in convertToUnqualifiedObjCType()
536 T = Context->getPointerType(T); in convertToUnqualifiedObjCType()
[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()
107 {Context.print(&I)}); in visit()
111 {Context.print(&I)}); in visit()
117 {Context.print(&I)}); in visit()
134 assert(Context.getFunction()); in verify()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaExprObjC.cpp40 ASTContext &Context = getASTContext(); in ParseObjCStringLiteral() local
72 const ConstantArrayType *CAT = Context.getAsConstantArrayType(S->getType()); in ParseObjCStringLiteral()
74 QualType StrTy = Context.getConstantArrayType( in ParseObjCStringLiteral()
77 S = StringLiteral::Create(Context, StrBuf, StringLiteralKind::Ordinary, in ParseObjCStringLiteral()
87 ASTContext &Context = getASTContext(); in BuildObjCStringLiteral() local
96 QualType Ty = Context.getObjCConstantStringInterface(); in BuildObjCStringLiteral()
98 Ty = Context.getObjCObjectPointerType(Ty); in BuildObjCStringLiteral()
104 NSIdent = &Context.Idents.get("NSConstantString"); in BuildObjCStringLiteral()
106 NSIdent = &Context.Idents.get(StringClass); in BuildObjCStringLiteral()
111 Context.setObjCConstantStringInterface(StrIF); in BuildObjCStringLiteral()
[all …]
H A DSemaDeclAttr.cpp175 Record->lookup(S.Context.DeclarationNames.getCXXOperatorName(Op)); in threadSafetyCheckIsSmartPointer()
429 D->addAttr(::new (S.Context) PtGuardedVarAttr(S.Context, AL)); in handlePtGuardedVarAttr()
451 D->addAttr(::new (S.Context) GuardedByAttr(S.Context, AL, Arg)); in handleGuardedByAttr()
462 D->addAttr(::new (S.Context) PtGuardedByAttr(S.Context, AL, Arg)); in handlePtGuardedByAttr()
491 D->addAttr(::new (S.Context) in handleAcquiredAfterAttr()
492 AcquiredAfterAttr(S.Context, AL, StartArg, Args.size())); in handleAcquiredAfterAttr()
501 D->addAttr(::new (S.Context) in handleAcquiredBeforeAttr()
502 AcquiredBeforeAttr(S.Context, AL, StartArg, Args.size())); in handleAcquiredBeforeAttr()
521 D->addAttr(::new (S.Context) in handleAssertSharedLockAttr()
522 AssertSharedLockAttr(S.Context, AL, StartArg, Size)); in handleAssertSharedLockAttr()
[all …]
H A DSemaAPINotes.cpp74 Function->setType(S.Context.getFunctionType( in applyNullability()
78 S.Context.getFunctionNoProtoType(*Modified, FnType->getExtInfo())); in applyNullability()
152 S.Context, Metadata.Version, *Existing, /*IsReplacedByActive*/ true); in handleAPINotedAttribute()
169 S.Context, Metadata.Version, Attr, in handleAPINotedAttribute()
178 S.Context, Metadata.Version, AttrKindFor<A>::value, in handleAPINotedAttribute()
204 [&] { return new (S.Context) A(S.Context, getPlaceholderAttrInfo()); }, in handleAPINotedRetainCountAttribute()
256 return new (S.Context) in ProcessAPINotes()
257 UnavailableAttr(S.Context, getPlaceholderAttrInfo(), in ProcessAPINotes()
258 ASTAllocateString(S.Context, Info.UnavailableMsg)); in ProcessAPINotes()
266 return new (S.Context) AvailabilityAttr( in ProcessAPINotes()
[all …]
H A DSema.cpp128 return &Context.Idents.get(OS.str()); in InventAbbreviatedTemplateParameterTypeName()
131 PrintingPolicy Sema::getPrintingPolicy(const ASTContext &Context, in getPrintingPolicy() argument
133 PrintingPolicy Policy = Context.getPrintingPolicy(); in getPrintingPolicy()
136 Policy.Bool = Context.getLangOpts().Bool; in getPrintingPolicy()
138 if (const MacroInfo *BoolMacro = PP.getMacroInfo(Context.getBoolName())) { in getPrintingPolicy()
153 PushDeclContext(S, Context.getTranslationUnitDecl()); in ActOnTranslationUnitScope()
218 Context(ctxt), Consumer(consumer), Diags(PP.getDiagnostics()), in Sema()
267 ArgumentPackSubstitutionIndex(-1), SatisfactionCache(Context) { in Sema()
276 ObjC().NSAPIObj.reset(new NSAPI(Context)); in Sema()
282 Diags.SetArgToStringFn(&FormatASTNodeDiagnosticArgument, &Context); in Sema()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/
H A DUSRFinder.cpp38 const ASTContext &Context) in NamedDeclOccurrenceFindingVisitor() argument
39 : RecursiveSymbolVisitor(Context.getSourceManager(), in NamedDeclOccurrenceFindingVisitor()
40 Context.getLangOpts()), in NamedDeclOccurrenceFindingVisitor()
41 Point(Point), Context(Context) {} in NamedDeclOccurrenceFindingVisitor()
65 (Context.getSourceManager().isBeforeInTranslationUnit(Start, in isPointWithin()
67 Context.getSourceManager().isBeforeInTranslationUnit(Point, End)); in isPointWithin()
72 const ASTContext &Context; member in clang::tooling::__anon3137cd810111::NamedDeclOccurrenceFindingVisitor
77 const NamedDecl *getNamedDeclAt(const ASTContext &Context, in getNamedDeclAt() argument
79 const SourceManager &SM = Context.getSourceManager(); in getNamedDeclAt()
80 NamedDeclOccurrenceFindingVisitor Visitor(Point, Context); in getNamedDeclAt()
[all …]
H A DRenamingAction.cpp46 findSymbolOccurrences(const NamedDecl *ND, RefactoringRuleContext &Context) { in findSymbolOccurrences() argument
48 getUSRsForDeclaration(ND, Context.getASTContext()); in findSymbolOccurrences()
51 Context.getASTContext().getTranslationUnitDecl()); in findSymbolOccurrences()
66 RenameOccurrences::initiate(RefactoringRuleContext &Context, in initiate() argument
69 getNamedDeclAt(Context.getASTContext(), SelectionRange.getBegin()); in initiate()
71 return Context.createDiagnosticError( in initiate()
80 RenameOccurrences::createSourceReplacements(RefactoringRuleContext &Context) { in createSourceReplacements() argument
81 Expected<SymbolOccurrences> Occurrences = findSymbolOccurrences(ND, Context); in createSourceReplacements()
87 *Occurrences, Context.getASTContext().getSourceManager(), Name); in createSourceReplacements()
91 QualifiedRenameRule::initiate(RefactoringRuleContext &Context, in initiate() argument
[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/llvm/lib/Target/X86/
H A DX86CallFrameOptimization.cpp103 MachineBasicBlock::iterator I, CallContext &Context);
105 void adjustCallSequence(MachineFunction &MF, const CallContext &Context);
260 CallContext Context; in runOnMachineFunction() local
261 collectCallInfo(MF, MBB, MI, Context); in runOnMachineFunction()
262 CallSeqVector.push_back(Context); in runOnMachineFunction()
356 CallContext &Context) { in collectCallInfo() argument
365 Context.FrameSetup = FrameSetup; in collectCallInfo()
373 Context.NoStackParams = true; in collectCallInfo()
397 Context.SPCopy = &*J++; in collectCallInfo()
398 StackPtr = Context.SPCopy->getOperand(0).getReg(); in collectCallInfo()
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenTBAA.cpp41 : Context(Ctx), CGTypes(CGTypes), Module(M), CodeGenOpts(CGO), in CodeGenTBAA()
119 uint64_t Size = Context.getTypeSizeInChars(Ty).getQuantity(); in getTypeInfoHelper()
137 return getTypeInfo(Context.ShortTy); in getTypeInfoHelper()
139 return getTypeInfo(Context.IntTy); in getTypeInfoHelper()
141 return getTypeInfo(Context.LongTy); in getTypeInfoHelper()
143 return getTypeInfo(Context.LongLongTy); in getTypeInfoHelper()
145 return getTypeInfo(Context.Int128Ty); in getTypeInfoHelper()
148 return getTypeInfo(Context.ShortFractTy); in getTypeInfoHelper()
150 return getTypeInfo(Context.FractTy); in getTypeInfoHelper()
152 return getTypeInfo(Context.LongFractTy); in getTypeInfoHelper()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTReaderStmt.cpp2906 ASTContext &Context = getContext(); in ReadStmtFromStream() local
2932 S = new (Context) NullStmt(Empty); in ReadStmtFromStream()
2938 S = CompoundStmt::CreateEmpty(Context, NumStmts, HasFPFeatures); in ReadStmtFromStream()
2944 Context, in ReadStmtFromStream()
2949 S = new (Context) DefaultStmt(Empty); in ReadStmtFromStream()
2953 S = new (Context) LabelStmt(Empty); in ReadStmtFromStream()
2958 Context, in ReadStmtFromStream()
2967 S = IfStmt::CreateEmpty(Context, HasElse, HasVar, HasInit); in ReadStmtFromStream()
2973 Context, in ReadStmtFromStream()
2980 Context, in ReadStmtFromStream()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Tooling/Refactoring/
H A DASTSelectionRequirements.cpp17 ASTSelectionRequirement::evaluate(RefactoringRuleContext &Context) const { in evaluate()
20 SourceRangeSelectionRequirement::evaluate(Context); in evaluate()
25 findSelectedASTNodes(Context.getASTContext(), *Range); in evaluate()
27 return Context.createDiagnosticError( in evaluate()
33 RefactoringRuleContext &Context) const { in evaluate()
36 ASTSelectionRequirement::evaluate(Context); in evaluate()
42 CodeRangeASTSelection::create(Context.getSelectionRange(), in evaluate()
45 return Context.createDiagnosticError( in evaluate()
46 Context.getSelectionRange().getBegin(), in evaluate()
48 Context.setASTSelection(std::move(StoredSelection)); in evaluate()
/freebsd/contrib/llvm-project/clang/include/clang/ExtractAPI/
H A DExtractAPIVisitor.h44 ExtractAPIVisitorBase(ASTContext &Context, APISet &API) in ExtractAPIVisitorBase() argument
45 : Context(Context), API(API) {} in ExtractAPIVisitorBase()
151 ASTContext &Context; variable
162 return Context.getSourceManager().isInSystemHeader(D->getLocation()); in isInSystemHeader()
218 const auto *Context = cast_if_present<Decl>(D.getDeclContext()); in createHierarchyInformationForDecl() local
220 if (!Context || isa<TranslationUnitDecl>(Context)) in createHierarchyInformationForDecl()
223 return createSymbolReferenceForDecl(*Context); in createHierarchyInformationForDecl()
289 Context.getSourceManager().getPresumedLoc(Decl->getLocation()); in VisitVarDecl()
294 Comment = RawComment->getFormattedLines(Context.getSourceManager(), in VisitVarDecl()
295 Context.getDiagnostics()); in VisitVarDecl()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DValueTypes.cpp21 LLVMContext &Context = LLVMTy->getContext(); in changeExtendedTypeToInteger() local
22 return getIntegerVT(Context, getSizeInBits()); in changeExtendedTypeToInteger()
27 LLVMContext &Context = LLVMTy->getContext(); in changeExtendedVectorElementTypeToInteger() local
28 EVT IntTy = getIntegerVT(Context, getScalarSizeInBits()); in changeExtendedVectorElementTypeToInteger()
29 return getVectorVT(Context, IntTy, getVectorElementCount()); in changeExtendedVectorElementTypeToInteger()
34 LLVMContext &Context = LLVMTy->getContext(); in changeExtendedVectorElementType() local
35 return getVectorVT(Context, EltVT, getVectorElementCount()); in changeExtendedVectorElementType()
38 EVT EVT::getExtendedIntegerVT(LLVMContext &Context, unsigned BitWidth) { in getExtendedIntegerVT() argument
40 VT.LLVMTy = IntegerType::get(Context, BitWidth); in getExtendedIntegerVT()
45 EVT EVT::getExtendedVectorVT(LLVMContext &Context, EVT VT, unsigned NumElements, in getExtendedVectorVT() argument
[all …]

12345678910>>...39