Home
last modified time | relevance | path

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

12345678910>>...19

/trueos/contrib/llvm/lib/IR/
HDValueTypes.cpp23 LLVMContext &Context = LLVMTy->getContext(); in changeExtendedVectorElementTypeToInteger() local
24 EVT IntTy = getIntegerVT(Context, getVectorElementType().getSizeInBits()); in changeExtendedVectorElementTypeToInteger()
25 return getVectorVT(Context, IntTy, getVectorNumElements()); in changeExtendedVectorElementTypeToInteger()
28 EVT EVT::getExtendedIntegerVT(LLVMContext &Context, unsigned BitWidth) { in getExtendedIntegerVT() argument
30 VT.LLVMTy = IntegerType::get(Context, BitWidth); in getExtendedIntegerVT()
35 EVT EVT::getExtendedVectorVT(LLVMContext &Context, EVT VT, in getExtendedVectorVT() argument
38 ResultVT.LLVMTy = VectorType::get(VT.getTypeForEVT(Context), NumElements); in getExtendedVectorVT()
180 Type *EVT::getTypeForEVT(LLVMContext &Context) const { in getTypeForEVT()
185 case MVT::isVoid: return Type::getVoidTy(Context); in getTypeForEVT()
186 case MVT::i1: return Type::getInt1Ty(Context); in getTypeForEVT()
[all …]
/trueos/usr.sbin/ppp/
HDchap_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 …]
/trueos/contrib/llvm/include/llvm/IR/
HDTypeBuilder.h106 static PointerType *get(LLVMContext &Context) { in get() argument
107 return PointerType::getUnqual(TypeBuilder<T,cross>::get(Context)); in get()
117 static ArrayType *get(LLVMContext &Context) { in get() argument
118 return ArrayType::get(TypeBuilder<T, cross>::get(Context), N); in get()
124 static ArrayType *get(LLVMContext &Context) { in get() argument
125 return ArrayType::get(TypeBuilder<T, cross>::get(Context), 0); in get()
154 static IntegerType *get(LLVMContext &Context) { \
155 return IntegerType::get(Context, sizeof(T) * CHAR_BIT); \
249 static FunctionType *get(LLVMContext &Context) { in get() argument
250 return FunctionType::get(TypeBuilder<R, cross>::get(Context), false); in get()
[all …]
HDMDBuilder.h28 LLVMContext &Context; variable
31 MDBuilder(LLVMContext &context) : Context(context) {} in MDBuilder()
35 return MDString::get(Context, Str); in createString()
49 Value *Op = ConstantFP::get(Type::getFloatTy(Context), Accuracy); in createFPMath()
50 return MDNode::get(Context, Op); in createFPMath()
70 Type *Int32Ty = Type::getInt32Ty(Context); in createBranchWeights()
74 return MDNode::get(Context, Vals); in createBranchWeights()
89 Type *Ty = IntegerType::get(Context, Lo.getBitWidth()); in createRange()
91 return MDNode::get(Context, Range); in createRange()
104 MDNode *Dummy = MDNode::getTemporary(Context, ArrayRef<Value*>()); in createAnonymousTBAARoot()
[all …]
/trueos/contrib/llvm/tools/clang/lib/Rewrite/Frontend/
HDRewriteModernObjC.cpp65 ASTContext *Context; member in __anone310f2a20111::RewriteModernObjC
265 Diags.Report(Context->getFullLoc(Old->getLocStart()), RewriteFailedDiag) in ReplaceStmt()
276 Diags.Report(Context->getFullLoc(Old->getLocStart()), RewriteFailedDiag) in ReplaceStmtWithRange()
293 Diags.Report(Context->getFullLoc(Old->getLocStart()), RewriteFailedDiag) in ReplaceStmtWithRange()
304 Diags.Report(Context->getFullLoc(Loc), RewriteFailedDiag); in InsertText()
314 Diags.Report(Context->getFullLoc(Start), RewriteFailedDiag); in ReplaceText()
522 T = Context->getPointerType(BPT->getPointeeType()); in convertBlockPointerToFunctionPointer()
539 T = isConst ? Context->getObjCIdType().withConst() in convertToUnqualifiedObjCType()
540 : Context->getObjCIdType(); in convertToUnqualifiedObjCType()
543 T = Context->getObjCClassType(); in convertToUnqualifiedObjCType()
[all …]
HDRewriteObjC.cpp65 ASTContext *Context; member in __anond511581d0111::RewriteObjC
214 Diags.Report(Context->getFullLoc(Old->getLocStart()), RewriteFailedDiag) in ReplaceStmt()
225 Diags.Report(Context->getFullLoc(Old->getLocStart()), RewriteFailedDiag) in ReplaceStmtWithRange()
242 Diags.Report(Context->getFullLoc(Old->getLocStart()), RewriteFailedDiag) in ReplaceStmtWithRange()
253 Diags.Report(Context->getFullLoc(Loc), RewriteFailedDiag); in InsertText()
263 Diags.Report(Context->getFullLoc(Start), RewriteFailedDiag); in ReplaceText()
427 T = Context->getPointerType(BPT->getPointeeType()); in convertBlockPointerToFunctionPointer()
441 T = Context->getObjCIdType(); in convertToUnqualifiedObjCType()
443 T = Context->getObjCClassType(); in convertToUnqualifiedObjCType()
450 T = Context->getPointerType(T); in convertToUnqualifiedObjCType()
[all …]
/trueos/contrib/llvm/tools/clang/lib/Sema/
HDSemaAttr.cpp125 RD->addAttr(::new (Context) AlignMac68kAttr(SourceLocation(), Context)); in AddAlignmentAttributesForRecord()
127 RD->addAttr(::new (Context) MaxFieldAlignmentAttr(SourceLocation(), in AddAlignmentAttributesForRecord()
128 Context, in AddAlignmentAttributesForRecord()
136 RD->addAttr(::new (Context) MsStructAttr(SourceLocation(), Context)); in AddMsStructLayoutForRecord()
144 PragmaPackStack *Context = static_cast<PragmaPackStack*>(PackContext); in ActOnPragmaOptionsAlign() local
153 Context->push(0); in ActOnPragmaOptionsAlign()
154 Context->setAlignment(0); in ActOnPragmaOptionsAlign()
160 Context->push(0); in ActOnPragmaOptionsAlign()
161 Context->setAlignment(1); in ActOnPragmaOptionsAlign()
170 Context->push(0); in ActOnPragmaOptionsAlign()
[all …]
HDSemaDeclAttr.cpp266 !IdxExpr->isIntegerConstantExpr(IdxInt, S.Context)) { in checkFunctionOrMethodArgumentIndex()
353 S.Context.DeclarationNames.getCXXOperatorName(OO_Star)); in threadSafetyCheckIsSmartPointer()
358 S.Context.DeclarationNames.getCXXOperatorName(OO_Arrow)); in threadSafetyCheckIsSmartPointer()
559 D->addAttr(::new (S.Context) in handleGuardedVarAttr()
560 GuardedVarAttr(Attr.getRange(), S.Context, in handleGuardedVarAttr()
572 D->addAttr(::new (S.Context) in handlePtGuardedVarAttr()
573 PtGuardedVarAttr(Attr.getRange(), S.Context, in handlePtGuardedVarAttr()
604 D->addAttr(::new (S.Context) GuardedByAttr(Attr.getRange(), S.Context, Arg)); in handleGuardedByAttr()
616 D->addAttr(::new (S.Context) PtGuardedByAttr(Attr.getRange(), in handlePtGuardedByAttr()
617 S.Context, Arg)); in handlePtGuardedByAttr()
[all …]
HDSemaExprObjC.cpp70 S = StringLiteral::Create(Context, StrBuf, in ParseObjCStringLiteral()
72 Context.getPointerType(Context.CharTy), in ParseObjCStringLiteral()
88 QualType Ty = Context.getObjCConstantStringInterface(); in BuildObjCStringLiteral()
90 Ty = Context.getObjCObjectPointerType(Ty); in BuildObjCStringLiteral()
96 NSIdent = &Context.Idents.get("NSConstantString"); in BuildObjCStringLiteral()
98 NSIdent = &Context.Idents.get(StringClass); in BuildObjCStringLiteral()
103 Context.setObjCConstantStringInterface(StrIF); in BuildObjCStringLiteral()
104 Ty = Context.getObjCConstantStringInterface(); in BuildObjCStringLiteral()
105 Ty = Context.getObjCObjectPointerType(Ty); in BuildObjCStringLiteral()
111 Ty = Context.getObjCIdType(); in BuildObjCStringLiteral()
[all …]
HDSemaExprCXX.cpp64 Type = Context.getDependentNameType(ETK_None, NNS->getPrefix(), in getInheritingConstructorName()
77 Context.getTrivialTypeSourceInfo(Type, NameLoc)); in getInheritingConstructorName()
206 QualType T = Context.getTypeDeclType(Type); in getDestructorName()
209 Context.hasSameUnqualifiedType(T, SearchType)) { in getDestructorName()
231 MemberOfType = Context.getTypeDeclType(Record); in getDestructorName()
292 SS.getWithLocInContext(Context), in getDestructorName()
298 QualType T = Context.getTypeDeclType(NonMatchingTypeDecl); in getDestructorName()
327 if (SearchType->isDependentType() || Context.hasSameUnqualifiedType(SearchType, T)) { in getDestructorType()
348 = Context.getUnqualifiedArrayType(Operand->getType().getNonReferenceType(), in BuildCXXTypeId()
354 return Owned(new (Context) CXXTypeidExpr(TypeInfoType.withConst(), in BuildCXXTypeId()
[all …]
HDSemaLambda.cpp145 SemaRef.Context, in getGenericLambdaTemplateParameterList()
166 CXXRecordDecl *Class = CXXRecordDecl::CreateLambda(Context, DC, Info, in createLambdaClosureType()
234 return &Context.getManglingNumberContext(DC); in getCurrentMangleNumberContext()
252 return &ExprEvalContexts.back().getMangleNumberingContext(Context); in getCurrentMangleNumberContext()
282 Result = SubstAutoType(Result, Context.DependentTy); in startLambdaDefinition()
283 MethodType = Context.getFunctionType(Result, FPT->getArgTypes(), in startLambdaDefinition()
294 = Context.DeclarationNames.getCXXOperatorName(OO_Call); in startLambdaDefinition()
301 = CXXMethodDecl::Create(Context, Class, EndLoc, in startLambdaDefinition()
317 FunctionTemplateDecl::Create(Context, Class, in startLambdaDefinition()
511 if (S.Context.hasSameType(retValue->getType(), returnType)) in adjustBlockReturnsToEnum()
[all …]
HDSemaOverload.cpp56 DeclRefExpr *DRE = new (S.Context) DeclRefExpr(Fn, false, Fn->getType(), in CreateFunctionRefExpr()
261 isPointerConversionToVoidPointer(ASTContext& Context) const { in isPointerConversionToVoidPointer()
269 FromType = Context.getArrayDecayedType(FromType); in isPointerConversionToVoidPointer()
570 DeductionFailureInfo MakeDeductionFailureInfo(ASTContext &Context, in MakeDeductionFailureInfo() argument
592 DFIArguments *Saved = new (Context) DFIArguments; in MakeDeductionFailureInfo()
602 DFIParamWithArguments *Saved = new (Context) DFIParamWithArguments; in MakeDeductionFailureInfo()
998 QualType OldQType = Context.getCanonicalType(Old->getType()); in IsOverload()
999 QualType NewQType = Context.getCanonicalType(New->getType()); in IsOverload()
1140 = S.Context.getCanonicalType(From->getType().getUnqualifiedType()); in TryUserDefinedConversion()
1142 = S.Context.getCanonicalType(ToType).getUnqualifiedType(); in TryUserDefinedConversion()
[all …]
HDTargetAttributesSema.cpp54 d->addAttr(::new (S.Context) in HandleARMInterruptAttr()
55 ARMInterruptAttr(Attr.getLoc(), S.Context, Kind, Index)); in HandleARMInterruptAttr()
86 if (!NumParamsExpr->isIntegerConstantExpr(NumParams, S.Context)) { in HandleMSP430InterruptAttr()
101 d->addAttr(::new (S.Context) MSP430InterruptAttr(Attr.getLoc(), S.Context, Num)); in HandleMSP430InterruptAttr()
102 d->addAttr(::new (S.Context) UsedAttr(Attr.getLoc(), S.Context)); in HandleMSP430InterruptAttr()
148 D->addAttr(::new (S.Context) X86ForceAlignArgPointerAttr(Attr.getRange(), in HandleX86ForceAlignArgPointerAttr()
149 S.Context)); in HandleX86ForceAlignArgPointerAttr()
171 return ::new (Context) DLLImportAttr(Range, Context, in mergeDLLImportAttr()
218 return ::new (Context) DLLExportAttr(Range, Context, in mergeDLLExportAttr()
258 const llvm::Triple &Triple(S.Context.getTargetInfo().getTriple()); in ProcessDeclAttribute()
[all …]
HDSemaExpr.cpp401 if (Context.isSentinelNullExpr(sentinelExpr)) return; in DiagnoseSentinelCalls()
448 E = ImpCastExprToType(E, Context.getPointerType(Ty), in DefaultFunctionArrayConversion()
463 E = ImpCastExprToType(E, Context.getArrayDecayedType(Ty), in DefaultFunctionArrayConversion()
478 isNullPointerConstant(S.Context, Expr::NPC_ValueDependentIsNotNull) && in CheckForNullPointerDereference()
513 &S.Context.Idents.get("object_setClass"), in DiagnoseDirectIsaAccess()
528 &S.Context.Idents.get("object_getClass"), in DiagnoseDirectIsaAccess()
563 (E->getType() == Context.OverloadTy || in DefaultLvalueConversion()
587 &Context.Idents.get("object_getClass"), in DefaultLvalueConversion()
621 ExprResult Res = Owned(ImplicitCastExpr::Create(Context, T, CK_LValueToRValue, in DefaultLvalueConversion()
629 Res = Owned(ImplicitCastExpr::Create(Context, T, CK_AtomicToNonAtomic, in DefaultLvalueConversion()
[all …]
HDSemaStmtAsm.cpp45 const Expr *E2 = E->IgnoreParenNoopCasts(S.Context); in CheckAsmLValue()
107 if (!Context.getTargetInfo().validateOutputConstraint(Info)) in ActOnGCCAsmStmt()
139 if (!Context.getTargetInfo().validateInputConstraint(OutputConstraintInfos.data(), in ActOnGCCAsmStmt()
182 unsigned Size = Context.getTypeSize(Ty); in ActOnGCCAsmStmt()
183 if (!Context.getTargetInfo().validateInputSize(Literal->getString(), in ActOnGCCAsmStmt()
199 if (!Context.getTargetInfo().isValidClobber(Clobber)) in ActOnGCCAsmStmt()
205 new (Context) GCCAsmStmt(Context, AsmLoc, IsSimple, IsVolatile, NumOutputs, in ActOnGCCAsmStmt()
212 if (unsigned DiagID = NS->AnalyzeAsmString(Pieces, Context, DiagOffs)) { in ActOnGCCAsmStmt()
258 unsigned Size = Context.getTypeSize(Ty); in ActOnGCCAsmStmt()
259 if (!Context.getTargetInfo() in ActOnGCCAsmStmt()
[all …]
/trueos/contrib/llvm/tools/clang/lib/AST/
HDNestedNameSpecifier.cpp28 NestedNameSpecifier::FindOrInsert(const ASTContext &Context, in FindOrInsert() argument
35 = Context.NestedNameSpecifiers.FindNodeOrInsertPos(ID, InsertPos); in FindOrInsert()
37 NNS = new (Context, llvm::alignOf<NestedNameSpecifier>()) in FindOrInsert()
39 Context.NestedNameSpecifiers.InsertNode(NNS, InsertPos); in FindOrInsert()
46 NestedNameSpecifier::Create(const ASTContext &Context, in Create() argument
55 return FindOrInsert(Context, Mockup); in Create()
59 NestedNameSpecifier::Create(const ASTContext &Context, in Create() argument
70 return FindOrInsert(Context, Mockup); in Create()
74 NestedNameSpecifier::Create(const ASTContext &Context, in Create() argument
85 return FindOrInsert(Context, Mockup); in Create()
[all …]
HDRawCommentList.cpp119 const char *RawComment::extractBriefText(const ASTContext &Context) const { in extractBriefText()
121 getRawText(Context.getSourceManager()); in extractBriefText()
128 comments::Lexer L(Allocator, Context.getDiagnostics(), in extractBriefText()
129 Context.getCommentCommandTraits(), in extractBriefText()
132 comments::BriefParser P(L, Context.getCommentCommandTraits()); in extractBriefText()
136 char *BriefTextPtr = new (Context) char[BriefTextLength + 1]; in extractBriefText()
144 comments::FullComment *RawComment::parse(const ASTContext &Context, in parse() argument
148 getRawText(Context.getSourceManager()); in parse()
150 comments::Lexer L(Context.getAllocator(), Context.getDiagnostics(), in parse()
151 Context.getCommentCommandTraits(), in parse()
[all …]
HDRecordLayoutBuilder.cpp61 const ASTContext &Context; member in __anon053a44380111::EmptySubobjectMap
102 return Context.toCharUnitsFromBits(FieldOffset); in getFieldOffset()
124 EmptySubobjectMap(const ASTContext &Context, const CXXRecordDecl *Class) in EmptySubobjectMap() argument
125 : Context(Context), CharWidth(Context.getCharWidth()), Class(Class) { in EmptySubobjectMap()
149 const ASTRecordLayout &Layout = Context.getASTRecordLayout(BaseDecl); in ComputeEmptySubobjectSizes()
167 Context.getBaseElementType(I->getType())->getAs<RecordType>(); in ComputeEmptySubobjectSizes()
175 const ASTRecordLayout &Layout = Context.getASTRecordLayout(MemberDecl); in ComputeEmptySubobjectSizes()
239 const ASTRecordLayout &Layout = Context.getASTRecordLayout(Info->Class); in CanPlaceBaseSubobjectAtOffset()
290 const ASTRecordLayout &Layout = Context.getASTRecordLayout(Info->Class); in UpdateEmptyBaseSubobjects()
348 const ASTRecordLayout &Layout = Context.getASTRecordLayout(RD); in CanPlaceFieldSubobjectAtOffset()
[all …]
HDInheritViz.cpp37 ASTContext& Context; member in clang::InheritanceHierarchyWriter
43 InheritanceHierarchyWriter(ASTContext& Context, raw_ostream& Out) in InheritanceHierarchyWriter() argument
44 : Context(Context), Out(Out) { } in InheritanceHierarchyWriter()
64 QualType CanonType = Context.getCanonicalType(Type); in WriteNode()
98 QualType CanonBaseType = Context.getCanonicalType(Base->getType()); in WriteNode()
128 QualType CanonType = Context.getCanonicalType(Type); in WriteNodeReference()
138 void CXXRecordDecl::viewInheritance(ASTContext& Context) const { in viewInheritance()
139 QualType Self = Context.getTypeDeclType(this); in viewInheritance()
154 InheritanceHierarchyWriter Writer(Context, O); in viewInheritance()
/trueos/contrib/llvm/lib/CodeGen/
HDIntrinsicLowering.cpp96 LLVMContext &Context = M.getContext(); in AddPrototypes() local
115 Type::getInt8PtrTy(Context), in AddPrototypes()
116 Type::getInt8PtrTy(Context), in AddPrototypes()
117 Type::getInt8PtrTy(Context), in AddPrototypes()
118 TD.getIntPtrType(Context), (Type *)0); in AddPrototypes()
122 Type::getInt8PtrTy(Context), in AddPrototypes()
123 Type::getInt8PtrTy(Context), in AddPrototypes()
124 Type::getInt8PtrTy(Context), in AddPrototypes()
125 TD.getIntPtrType(Context), (Type *)0); in AddPrototypes()
129 Type::getInt8PtrTy(Context), in AddPrototypes()
[all …]
/trueos/contrib/llvm/tools/clang/lib/Serialization/
HDASTReaderStmt.cpp1677 ASTContext &Context; member in clang::OMPClauseReader
1683 : Reader(R), Context(C), Record(Record), Idx(Idx) { } in OMPClauseReader()
1695 C = new (Context) OMPDefaultClause(); in readClause()
1698 C = OMPPrivateClause::CreateEmpty(Context, Record[Idx++]); in readClause()
1701 C = OMPFirstprivateClause::CreateEmpty(Context, Record[Idx++]); in readClause()
1704 C = OMPSharedClause::CreateEmpty(Context, Record[Idx++]); in readClause()
1860 S = new (Context) NullStmt(Empty); in ReadStmtFromStream()
1864 S = new (Context) CompoundStmt(Empty); in ReadStmtFromStream()
1868 S = new (Context) CaseStmt(Empty); in ReadStmtFromStream()
1872 S = new (Context) DefaultStmt(Empty); in ReadStmtFromStream()
[all …]
/trueos/contrib/llvm/tools/clang/include/clang/ASTMatchers/
HDASTMatchFinder.h73 MatchResult(const BoundNodes &Nodes, clang::ASTContext *Context);
82 clang::ASTContext * const Context; member
159 template <typename T> void match(const T &Node, ASTContext &Context) { in match() argument
160 match(clang::ast_type_traits::DynTypedNode::create(Node), Context); in match()
163 ASTContext &Context);
167 void matchAST(ASTContext &Context);
198 match(MatcherT Matcher, const NodeT &Node, ASTContext &Context);
203 ASTContext &Context);
241 ASTContext &Context) { in match() argument
245 Finder.match(Node, Context); in match()
[all …]
/trueos/contrib/llvm/lib/IRReader/
HDIRReader.cpp35 LLVMContext &Context) { in getLazyIRModule() argument
39 Module *M = getLazyBitcodeModule(Buffer, Context, &ErrMsg); in getLazyIRModule()
50 return ParseAssembly(Buffer, 0, Err, Context); in getLazyIRModule()
54 LLVMContext &Context) { in getLazyIRFileModule() argument
62 return getLazyIRModule(File.take(), Err, Context); in getLazyIRFileModule()
66 LLVMContext &Context) { in ParseIR() argument
72 Module *M = ParseBitcodeFile(Buffer, Context, &ErrMsg); in ParseIR()
81 return ParseAssembly(Buffer, 0, Err, Context); in ParseIR()
85 LLVMContext &Context) { in ParseIRFile() argument
93 return ParseIR(File.take(), Err, Context); in ParseIRFile()
/trueos/contrib/llvm/tools/clang/include/clang/AST/
HDNestedNameSpecifier.h104 static NestedNameSpecifier *FindOrInsert(const ASTContext &Context,
113 static NestedNameSpecifier *Create(const ASTContext &Context,
118 static NestedNameSpecifier *Create(const ASTContext &Context,
123 static NestedNameSpecifier *Create(const ASTContext &Context,
128 static NestedNameSpecifier *Create(const ASTContext &Context,
138 static NestedNameSpecifier *Create(const ASTContext &Context,
143 static NestedNameSpecifier *GlobalSpecifier(const ASTContext &Context);
373 void Extend(ASTContext &Context, SourceLocation TemplateKWLoc, TypeLoc TL,
387 void Extend(ASTContext &Context, IdentifierInfo *Identifier,
401 void Extend(ASTContext &Context, NamespaceDecl *Namespace,
[all …]
/trueos/contrib/llvm/tools/lldb/include/lldb/Core/
HDEmulateInstruction.h176 struct Context struct
239 Context () : in Context() function
365 const Context &context, argument
372 const Context &context,
384 const Context &context,
439 WriteRegister (const Context &context,
444 WriteRegisterUnsigned (const Context &context,
457 WriteRegister (const Context &context,
469 WriteRegisterUnsigned (const Context &context,
476 ReadMemory (const Context &context,
[all …]

12345678910>>...19