Searched defs:Ctx (Results 126 - 150 of 286) sorted by last modified time

1234567891011>>

/external/llvm/lib/Transforms/IPO/
H A DInliner.cpp306 LLVMContext &Ctx = Caller->getContext(); local
308 emitOptimizationRemarkAnalysis(Ctx, DEBUG_TYPE, *Caller, DLoc, Msg);
/external/llvm/lib/Transforms/Instrumentation/
H A DDataFlowSanitizer.cpp214 LLVMContext *Ctx; member in class:__anon26251::DataFlowSanitizer
378 ArgTypes.push_back(Type::getInt8PtrTy(*Ctx));
398 Ctx = &M.getContext();
399 ShadowTy = IntegerType::get(*Ctx, ShadowWidth);
401 IntptrTy = DL->getIntPtrType(*Ctx);
413 Type::getVoidTy(*Ctx), Type::getInt8PtrTy(*Ctx), /*isVarArg=*/false);
414 Type *DFSanSetLabelArgs[3] = { ShadowTy, Type::getInt8PtrTy(*Ctx), IntptrTy };
415 DFSanSetLabelFnTy = FunctionType::get(Type::getVoidTy(*Ctx),
418 Type::getVoidTy(*Ctx), ArrayRe
[all...]
H A DGCOVProfiling.cpp141 LLVMContext *Ctx; member in class:__anon26254::GCOVProfiler
444 Ctx = &M.getContext();
538 if (SP != getDISubprogram(Loc.getScope(*Ctx))) continue;
592 ArrayType::get(Type::getInt64Ty(*Ctx), Edges);
669 FunctionType *FTy = FunctionType::get(Type::getVoidTy(*Ctx), false);
678 BasicBlock *BB = BasicBlock::Create(*Ctx, "entry", F);
681 FTy = FunctionType::get(Type::getVoidTy(*Ctx), false);
716 Type *Int64PtrTy = Type::getInt64PtrTy(*Ctx);
753 Type::getInt8PtrTy(*Ctx), // const char *orig_filename
754 Type::getInt8PtrTy(*Ctx), // cons
[all...]
/external/llvm/lib/Transforms/Scalar/
H A DGVN.cpp1114 LLVMContext &Ctx = SrcVal->getType()->getContext(); local
1127 SrcVal = Builder.CreateBitCast(SrcVal, IntegerType::get(Ctx, StoreSize*8));
1140 SrcVal = Builder.CreateTrunc(SrcVal, IntegerType::get(Ctx, LoadSize*8));
1213 LLVMContext &Ctx = LoadTy->getContext(); local
1225 Val = Builder.CreateZExt(Val, IntegerType::get(Ctx, LoadSize*8));
H A DLoopUnrollPass.cpp435 LLVMContext &Ctx = F->getContext(); local
439 Ctx, DEBUG_TYPE, *F, LoopLoc,
444 Ctx, DEBUG_TYPE, *F, LoopLoc,
450 Ctx, DEBUG_TYPE, *F, LoopLoc,
H A DSampleProfile.cpp124 PDT(nullptr), LI(nullptr), Ctx(nullptr) {}
214 LLVMContext *Ctx; member in class:__anon26332::SampleFunctionProfile
547 DILocation DIL(DLoc.getAsMDNode(*Ctx));
1051 Ctx = &F.getParent()->getContext();
/external/llvm/lib/Transforms/Utils/
H A DAddDiscriminators.cpp169 LLVMContext &Ctx = M->getContext(); local
179 DILocation LastDIL(LastLoc.getAsMDNode(Ctx));
186 DILocation FirstDIL(FirstLoc.getAsMDNode(Ctx));
200 unsigned Discriminator = FirstDIL.computeNewDiscriminator(Ctx);
203 DILocation NewDIL = FirstDIL.copyWithNewScope(Ctx, NewScope);
H A DInlineFunction.cpp446 LLVMContext &Ctx) {
447 if (MDNode *IA = DL.getInlinedAt(Ctx)) {
449 = updateInlinedAtInfo(DebugLoc::getFromDILocation(IA), InlinedAtDL, Ctx);
450 return DebugLoc::get(DL.getLine(), DL.getCol(), DL.getScope(Ctx),
451 NewInlinedAtDL.getAsMDNode(Ctx));
454 return DebugLoc::get(DL.getLine(), DL.getCol(), DL.getScope(Ctx),
455 InlinedAtDL.getAsMDNode(Ctx));
479 LLVMContext &Ctx = BI->getContext(); local
480 MDNode *InlinedAt = BI->getDebugLoc().getInlinedAt(Ctx);
482 InlinedAt, Ctx));
444 updateInlinedAtInfo(const DebugLoc &DL, const DebugLoc &InlinedAtDL, LLVMContext &Ctx) argument
[all...]
H A DLoopUnroll.cpp237 LLVMContext &Ctx = F->getContext(); local
242 emitOptimizationRemark(Ctx, DEBUG_TYPE, *F, LoopLoc,
247 emitOptimizationRemark(Ctx, DEBUG_TYPE, *F, LoopLoc,
/external/lldb/source/Expression/
H A DASTResultSynthesizer.cpp229 ASTContext &Ctx(*m_ast_context);
340 result_ptr_id = &Ctx.Idents.get("$__lldb_expr_result"); // functions actually should be treated like function pointers
342 result_ptr_id = &Ctx.Idents.get("$__lldb_expr_result_ptr");
349 ptr_qual_type = Ctx.getObjCObjectPointerType(expr_qual_type);
351 ptr_qual_type = Ctx.getPointerType(expr_qual_type);
353 result_decl = VarDecl::Create(Ctx,
371 IdentifierInfo &result_id = Ctx.Idents.get("$__lldb_expr_result");
373 result_decl = VarDecl::Create(Ctx,
422 ASTResultSynthesizer::HandleTranslationUnit(ASTContext &Ctx) argument
425 m_passthrough->HandleTranslationUnit(Ctx);
[all...]
H A DASTStructExtractor.cpp168 ASTStructExtractor::HandleTranslationUnit(ASTContext &Ctx) argument
171 m_passthrough->HandleTranslationUnit(Ctx);
/external/compiler-rt/test/tsan/
H A Dcond_race.cc11 struct Ctx { struct
18 Ctx *c = (Ctx*)p;
27 Ctx *c = new Ctx();
/external/clang/lib/Sema/
H A DSemaExpr.cpp7218 ASTContext &Ctx = Self.getASTContext();
7224 llvm::isUIntN(Ctx.getCharWidth(), CharExpr->getValue())) {
7226 << DiagRange << Ctx.CharTy;
9065 DeclContext *Ctx = dcl->getDeclContext(); local
9066 if (Ctx && Ctx->isRecord()) {
9074 while (cast<RecordDecl>(Ctx)->isAnonymousStructOrUnion())
9075 Ctx = Ctx->getParent();
9079 Context.getTypeDeclType(cast<RecordDecl>(Ctx))
[all...]
H A DSemaExprCXX.cpp223 if (DeclContext *Ctx = computeDeclContext(SS, EnteringContext)) {
225 if (CXXRecordDecl *Record = dyn_cast<CXXRecordDecl>(Ctx))
311 const DeclContext *Ctx = S->getEntity(); local
312 if (const CXXRecordDecl *Class = dyn_cast_or_null<CXXRecordDecl>(Ctx))
1844 /// \param Ctx The scope in which we should search; either a class scope or the
1855 DeclContext *Ctx,
1859 LookupQualifiedName(R, Ctx);
1853 FindAllocationOverload(SourceLocation StartLoc, SourceRange Range, DeclarationName Name, MultiExprArg Args, DeclContext *Ctx, bool AllowMissing, FunctionDecl *&Operator, bool Diagnose) argument
H A DSemaLambda.cpp346 ASTContext &Ctx) {
349 MangleNumbering = Ctx.createMangleNumberingContext();
640 ASTContext &Ctx = getASTContext(); local
645 CSI.ReturnType = Ctx.VoidTy;
345 getMangleNumberingContext( ASTContext &Ctx) argument
H A DSemaLookup.cpp113 DeclContext *Ctx = S->getEntity(); local
114 if (Ctx && Ctx->isFileContext()) {
115 visit(Ctx, Ctx);
116 } else if (!Ctx || Ctx->isFunctionOrMethod()) {
782 if (DeclContext *Ctx = S->getEntity())
783 return Ctx->isFileContext();
925 DeclContext *Ctx local
1110 DeclContext *Ctx = S->getEntity(); local
1931 CollectEnclosingNamespace(Sema::AssociatedNamespaceSet &Namespaces, DeclContext *Ctx) argument
1975 DeclContext *Ctx = ClassTemplate->getDeclContext(); local
2047 DeclContext *Ctx = Spec->getSpecializedTemplate()->getDeclContext(); local
2167 DeclContext *Ctx = Enum->getDeclContext(); local
2892 visitedContext(DeclContext *Ctx) argument
2896 alreadyVisitedContext(DeclContext *Ctx) argument
2974 LookupVisibleDecls(DeclContext *Ctx, LookupResult &Result, bool QualifiedNameLookup, bool InBaseClass, VisibleDeclConsumer &Consumer, VisibleDeclsRecord &Visited) argument
3218 LookupVisibleDecls(DeclContext *Ctx, LookupNameKind Kind, VisibleDeclConsumer &Consumer, bool IncludeGlobalScope) argument
3475 FoundDecl(NamedDecl *ND, NamedDecl *Hiding, DeclContext *Ctx, bool InBaseClass) argument
3671 DeclContext *Ctx = NSI.DeclCtx; local
3821 addNameSpecifier( DeclContext *Ctx) argument
[all...]
H A DSemaOverload.cpp305 /// \param Ctx The AST context.
312 StandardConversionSequence::getNarrowingKind(ASTContext &Ctx, argument
316 assert(Ctx.getLangOpts().CPlusPlus && "narrowing check outside C++");
330 if (FromType->isRealFloatingType() && ToType->isIntegralType(Ctx)) {
332 } else if (FromType->isIntegralType(Ctx) && ToType->isRealFloatingType()) {
336 Initializer->isIntegerConstantExpr(IntConstantValue, Ctx)) {
338 llvm::APFloat Result(Ctx.getFloatTypeSemantics(ToType));
365 Ctx.getFloatingTypeOrder(FromType, ToType) == 1) {
368 if (Initializer->isCXX11ConstantExpr(Ctx, &ConstantValue)) {
375 Ctx
[all...]
H A DSemaStmt.cpp677 static bool ShouldDiagnoseSwitchCaseNotInEnum(const ASTContext &Ctx, argument
690 QualType EnumType = Ctx.getTypeDeclType(ED);
691 if (Ctx.hasSameUnqualifiedType(EnumType, VarType))
H A DSemaTemplate.cpp2086 for (DeclContext *Ctx = CurContext; Ctx; Ctx = Ctx->getLookupParent()) {
2088 if (Ctx->isFileContext()) break;
2091 CXXRecordDecl *Record = dyn_cast<CXXRecordDecl>(Ctx);
5570 DeclContext *Ctx = S->getEntity(); local
5571 if (Ctx && Ctx->isExternCContext())
5575 while (Ctx
7875 DeclContext *Ctx = computeDeclContext(SS); local
7963 Diag(IILoc, DiagID) << FullRange << Name << Ctx; local
[all...]
H A DSemaTemplateDeduction.cpp4120 MarkUsedTemplateParameters(ASTContext &Ctx, QualType T,
4684 MarkUsedTemplateParameters(ASTContext &Ctx,
4693 MarkUsedTemplateParameters(ASTContext &Ctx, argument
4732 MarkUsedTemplateParameters(ASTContext &Ctx, argument
4740 MarkUsedTemplateParameters(Ctx, NNS->getPrefix(), OnlyDeduced, Depth,
4742 MarkUsedTemplateParameters(Ctx, QualType(NNS->getAsType(), 0),
4749 MarkUsedTemplateParameters(ASTContext &Ctx, argument
4764 MarkUsedTemplateParameters(Ctx, QTN->getQualifier(), OnlyDeduced,
4767 MarkUsedTemplateParameters(Ctx, DTN->getQualifier(), OnlyDeduced,
4774 MarkUsedTemplateParameters(ASTContext &Ctx, QualTyp argument
5006 MarkUsedTemplateParameters(ASTContext &Ctx, const TemplateArgument &TemplateArg, bool OnlyDeduced, unsigned Depth, llvm::SmallBitVector &Used) argument
5077 MarkDeducedTemplateParameters(ASTContext &Ctx, const FunctionTemplateDecl *FunctionTemplate, llvm::SmallBitVector &Deduced) argument
[all...]
H A DSemaTemplateInstantiate.cpp62 DeclContext *Ctx = dyn_cast<DeclContext>(D); local
63 if (!Ctx) {
64 Ctx = D->getDeclContext();
99 if (Ctx->isTranslationUnit()) {
109 while (!Ctx->isFileContext()) {
112 = dyn_cast<ClassTemplateSpecializationDecl>(Ctx)) {
127 else if (FunctionDecl *Function = dyn_cast<FunctionDecl>(Ctx)) {
162 Ctx = Function->getLexicalDeclContext();
166 } else if (CXXRecordDecl *Rec = dyn_cast<CXXRecordDecl>(Ctx)) {
178 Ctx
[all...]
H A DSemaTemplateInstantiateDecl.cpp4275 static bool isInstantiationOf(ASTContext &Ctx, NamedDecl *D, Decl *Other) { argument
4280 return isInstantiationOf(UUD, UD, Ctx);
4287 return isInstantiationOf(UUD, UD, Ctx);
4321 return Ctx.getInstantiatedFromUnnamedFieldDecl(Field) ==
4327 return isInstantiationOf(cast<UsingDecl>(D), Using, Ctx);
4330 return isInstantiationOf(cast<UsingShadowDecl>(D), Shadow, Ctx);
4337 static NamedDecl *findInstantiationOf(ASTContext &Ctx, argument
4342 if (isInstantiationOf(Ctx, D, *first))
/external/clang/lib/Serialization/
H A DGeneratePCH.cpp42 void PCHGenerator::HandleTranslationUnit(ASTContext &Ctx) { argument
/external/clang/lib/StaticAnalyzer/Checkers/
H A DArrayBoundCheckerV2.cpp222 static bool IsCompleteType(ASTContext &Ctx, QualType Ty) { argument
H A DBasicObjCFoundationChecks.cpp235 ASTContext &Ctx = C.getASTContext(); local
237 getKeywordSelector(Ctx, "caseInsensitiveCompare", nullptr),
238 getKeywordSelector(Ctx, "compare", nullptr),
239 getKeywordSelector(Ctx, "compare", "options", nullptr),
240 getKeywordSelector(Ctx, "compare", "options", "range", nullptr),
241 getKeywordSelector(Ctx, "compare", "options", "range", "locale",
243 getKeywordSelector(Ctx, "componentsSeparatedByCharactersInSet",
245 getKeywordSelector(Ctx, "initWithFormat",
247 getKeywordSelector(Ctx, "localizedCaseInsensitiveCompare", nullptr),
248 getKeywordSelector(Ctx, "localizedCompar
265 ASTContext &Ctx = C.getASTContext(); local
294 ASTContext &Ctx = C.getASTContext(); local
378 GetCFNumberSize(ASTContext &Ctx, uint64_t i) argument
554 ASTContext &Ctx = C.getASTContext(); local
643 ASTContext &Ctx = C.getASTContext(); local
752 ASTContext &Ctx = C.getASTContext(); local
1229 ASTContext &Ctx = C.getASTContext(); local
[all...]

Completed in 9586 milliseconds

1234567891011>>