/openbsd/gnu/llvm/llvm/lib/Support/ |
H A D | Z3Solver.cpp | 153 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 …]
|
/openbsd/gnu/llvm/llvm/lib/CodeGen/ |
H A D | ValueTypes.cpp | 20 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 …]
|
/openbsd/gnu/llvm/clang/lib/AST/ |
H A D | ASTStructuralEquivalence.cpp | 1312 if (Context.Complain) { in IsStructurallyEquivalent() 1313 Context.Diag2( in IsStructurallyEquivalent() 1327 if (Context.Complain) { in IsStructurallyEquivalent() 1328 Context.Diag2( in IsStructurallyEquivalent() 1471 if (Context.Complain) { in IsStructurallyEquivalent() 1472 Context.Diag2(D2->getLocation(), Context.getApplicableDiagnostic( in IsStructurallyEquivalent() 1693 if (Context.Complain) { in IsStructurallyEquivalent() 1694 Context.Diag2(D2->getLocation(), Context.getApplicableDiagnostic( in IsStructurallyEquivalent() 1785 if (Context.Complain) { in IsStructurallyEquivalent() 1786 Context.Diag2(D2->getLocation(), Context.getApplicableDiagnostic( in IsStructurallyEquivalent() [all …]
|
H A D | RecordLayoutBuilder.cpp | 106 const ASTContext &Context; member in __anona4a6ee020111::EmptySubobjectMap 171 : Context(Context), CharWidth(Context.getCharWidth()), Class(Class) { in EmptySubobjectMap() 582 const ASTContext &Context; member in __anona4a6ee020111::ItaniumRecordLayoutBuilder 693 : Context(Context), EmptySubobjects(EmptySubobjects), Size(0), in ItaniumRecordLayoutBuilder() 1479 Context.UnsignedCharTy, Context.UnsignedShortTy, Context.UnsignedIntTy, in LayoutWideBitField() 1480 Context.UnsignedLongTy, Context.UnsignedLongLongTy in LayoutWideBitField() 1622 if (StorageUnitSize < Context.getTypeSize(Context.UnsignedIntTy)) { in LayoutBitField() 1625 StorageUnitSize = Context.getTypeSize(Context.UnsignedIntTy); in LayoutBitField() 1626 } else if (StorageUnitSize > Context.getTypeSize(Context.UnsignedIntTy) && in LayoutBitField() 2166 Context.toBits(!Context.getTargetInfo().defaultsToAIXPowerAlignment() in FinishLayout() [all …]
|
H A D | NestedNameSpecifier.cpp | 59 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() 100 return FindOrInsert(Context, Mockup); in Create() 112 return FindOrInsert(Context, Mockup); in Create() 122 return FindOrInsert(Context, Mockup); in Create() 127 if (!Context.GlobalNestedNameSpecifier) in GlobalSpecifier() 128 Context.GlobalNestedNameSpecifier = in GlobalSpecifier() 130 return Context.GlobalNestedNameSpecifier; in GlobalSpecifier() [all …]
|
/openbsd/gnu/llvm/clang/lib/ExtractAPI/ |
H A D | ExtractAPIVisitor.cpp | 47 bool isInSystemHeader(const ASTContext &Context, const DeclTy *D) { in isInSystemHeader() argument 104 for (auto P : Context.getParents(*Method)) { in VisitFunctionDecl() 156 isInSystemHeader(Context, Decl)); in VisitFunctionDecl() 321 isInSystemHeader(Context, Decl)); in VisitObjCProtocolDecl() 358 isInSystemHeader(Context, Decl)); in VisitTypedefNameDecl() 385 Interface, isInSystemHeader(Context, Decl)); in VisitObjCCategoryDecl() 418 isInSystemHeader(Context, Constant)); in recordEnumConstants() 445 isInSystemHeader(Context, Field)); in recordStructFields() 479 isInSystemHeader(Context, Method)); in recordObjCMethods() 520 isInSystemHeader(Context, Property)); in recordObjCProperties() [all …]
|
/openbsd/gnu/llvm/clang/include/clang/Tooling/Transformer/ |
H A D | SourceCode.h | 28 ASTContext &Context); 35 ASTContext &Context) { in getExtendedRange() argument 37 Next, Context); in getExtendedRange() 52 StringRef getText(CharSourceRange Range, const ASTContext &Context); 56 StringRef getText(const T &Node, const ASTContext &Context) { in getText() argument 58 Context); in getText() 85 ASTContext &Context) { in getExtendedText() argument 86 return getText(getExtendedRange(Node, Next, Context), Context); in getExtendedText() 113 return getFileRangeForEdit(EditRange, Context.getSourceManager(), 133 return getFileRange(EditRange, Context.getSourceManager(), in getFileRange() [all …]
|
/openbsd/gnu/llvm/clang/lib/Tooling/Transformer/ |
H A D | SourceCodeBuilders.cpp | 77 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() 230 return buildAccessForPointer(*E, Context); in buildAccess() 235 return buildAccessForPointer(*Obj, Context); in buildAccess() [all …]
|
/openbsd/gnu/llvm/llvm/lib/IR/ |
H A D | MDBuilder.cpp | 21 return MDString::get(Context, Str); in createString() 34 return MDNode::get(Context, Op); in createFPMath() 52 return MDNode::get(Context, Vals); in createBranchWeights() 75 return MDNode::get(Context, Ops); in createFunctionEntryCount() 79 return MDNode::get(Context, in createFunctionSectionPrefix() 104 return MDNode::get(Context, Ops); in createCallees() 121 return MDNode::get(Context, Ops); in createCallbackEncoding() 150 return MDNode::get(Context, Ops); in mergeCallbackEncodings() 158 return MDNode::get(Context, Ops); in createRTTIPointerPrologue() 210 return MDNode::get(Context, in createTBAANode() [all …]
|
H A D | ProfileSummary.cpp | 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() 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 …]
|
/openbsd/gnu/llvm/clang/lib/Frontend/Rewrite/ |
H A D | RewriteModernObjC.cpp | 68 ASTContext *Context; member in __anon5f8b160c0111::RewriteModernObjC 2607 static_cast<unsigned>(Context->getTypeSize(Context->IntTy)); in RewriteObjCBoolLiteralExpr() 2684 Context, Context->getPointerType(Context->VoidTy), CK_BitCast, DRE); in RewriteObjCBoxedExpr() 2805 Context, Context->getPointerType(Context->VoidTy), CK_BitCast, DRE); in RewriteObjCArrayLiteralExpr() 2957 Context, Context->getPointerType(Context->VoidTy), CK_BitCast, DRE); in RewriteObjCDictionaryLiteralExpr() 3019 FieldTypes[2] = Context->getPointerType(Context->CharTy); in getConstantStringStructType() 3247 Context, Context->getObjCIdType(), CK_BitCast, in SynthMessageExpr() 3339 Context, Context->getObjCIdType(), CK_BitCast, in SynthMessageExpr() 3359 NoTypeInfoCStyleCastExpr(Context, Context->getObjCIdType(), in SynthMessageExpr() 4970 static_cast<unsigned>(Context->getTypeSize(Context->IntTy)); in SynthesizeByrefCopyDestroyHelper() [all …]
|
H A D | RewriteObjC.cpp | 66 ASTContext *Context; member in __anon5cb7b4070111::RewriteObjC 455 if (OCT == Context->getCanonicalType(Context->getObjCIdType()) || in isObjCType() 2572 FieldTypes[2] = Context->getPointerType(Context->CharTy); in getConstantStringStructType() 2674 Context, Context->getObjCIdType(), CK_BitCast, in SynthMessageExpr() 2765 Context, Context->getObjCIdType(), CK_BitCast, in SynthMessageExpr() 2788 NoTypeInfoCStyleCastExpr(Context, Context->getObjCIdType(), in SynthMessageExpr() 2990 static_cast<unsigned>(Context->getTypeSize(Context->IntTy)); in SynthMessageExpr() 4123 static_cast<unsigned>(Context->getTypeSize(Context->IntTy)); in SynthesizeByrefCopyDestroyHelper() 4125 static_cast<unsigned>(Context->getTypeSize(Context->VoidPtrTy)); in SynthesizeByrefCopyDestroyHelper() 4431 new (Context) DeclRefExpr(*Context, NewVD, false, Context->VoidPtrTy, in SynthBlockInitExpr() [all …]
|
/openbsd/gnu/llvm/clang/lib/Tooling/Refactoring/Rename/ |
H A D | USRFinder.cpp | 38 const ASTContext &Context) in NamedDeclOccurrenceFindingVisitor() argument 39 : RecursiveSymbolVisitor(Context.getSourceManager(), in NamedDeclOccurrenceFindingVisitor() 40 Context.getLangOpts()), in NamedDeclOccurrenceFindingVisitor() 41 Point(Point), Context(Context) {} in NamedDeclOccurrenceFindingVisitor() 72 const ASTContext &Context; member in clang::tooling::__anon399c20ae0111::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() 85 for (auto *CurrDecl : Context.getTranslationUnitDecl()->decls()) { in getNamedDeclAt() 128 const NamedDecl *getNamedDeclFor(const ASTContext &Context, in getNamedDeclFor() argument [all …]
|
H A D | RenamingAction.cpp | 48 getUSRsForDeclaration(ND, Context.getASTContext()); in findSymbolOccurrences() 66 RenameOccurrences::initiate(RefactoringRuleContext &Context, in initiate() argument 71 return Context.createDiagnosticError( in initiate() 87 *Occurrences, Context.getASTContext().getSourceManager(), Name); in createSourceReplacements() 91 QualifiedRenameRule::initiate(RefactoringRuleContext &Context, in initiate() argument 95 getNamedDeclFor(Context.getASTContext(), OldQualifiedName); in initiate() 138 auto USRs = getUSRsForDeclaration(ND, Context.getASTContext()); in createSourceReplacements() 194 void HandleTranslationUnit(ASTContext &Context) override { in HandleTranslationUnit() argument 207 const SourceManager &SourceMgr = Context.getSourceManager(); in HandleOneRename() 210 USRs, PrevName, Context.getTranslationUnitDecl()); in HandleOneRename() [all …]
|
/openbsd/gnu/llvm/llvm/tools/llvm-exegesis/lib/ |
H A D | BenchmarkResult.cpp | 181 return Context.getLastError(); in input() 251 Context.getErrorStream() in input() 254 return Context.getLastError(); in input() 266 Io.setContext(&Context); in mapping() 331 yaml::EmptyContext Context; in readTriplesAndCpusFromYamls() local 346 YamlContext Context(State); in readYaml() local 350 if (!Context.getLastError().empty()) in readYaml() 359 YamlContext Context(State); in readYamls() local 377 YamlContext Context(State); in writeYamlTo() local 380 if (!Context.getLastError().empty()) in writeYamlTo() [all …]
|
/openbsd/gnu/llvm/clang/lib/Sema/ |
H A D | SemaRISCVVectorLookup.cpp | 77 QT = Context.VoidTy; in RVVType2Qual() 80 QT = Context.getSizeType(); in RVVType2Qual() 86 QT = Context.UnsignedLongTy; in RVVType2Qual() 89 QT = Context.LongTy; in RVVType2Qual() 92 QT = Context.BoolTy; in RVVType2Qual() 103 QT = Context.DoubleTy; in RVVType2Qual() 106 QT = Context.FloatTy; in RVVType2Qual() 109 QT = Context.Float16Ty; in RVVType2Qual() 135 ASTContext &Context; member in __anon1f081d960211::RISCVIntrinsicManagerImpl 159 RISCVIntrinsicManagerImpl(clang::Sema &S) : S(S), Context(S.Context) { in RISCVIntrinsicManagerImpl() [all …]
|
H A D | SemaDeclAttr.cpp | 389 D->addAttr(::new (S.Context) AttrType(S.Context, CI)); in handleSimpleAttribute() 2172 D->addAttr(::new (S.Context) NakedAttr(S.Context, AL)); in handleNakedAttr() 2864 return ::new (S.Context) T(S.Context, CI, value); in mergeVisibilityAttr() 3287 return ::new (Context) SectionAttr(Context, CI, Name); in mergeSectionAttr() 3371 return ::new (Context) CodeSegAttr(Context, CI, Name); in mergeCodeSegAttr() 4809 return ::new (Context) AlwaysInlineAttr(Context, CI); in mergeAlwaysInlineAttr() 4863 return ::new (Context) MinSizeAttr(Context, CI); in mergeMinSizeAttr() 4896 return ::new (Context) OptimizeNoneAttr(Context, CI); in mergeOptimizeNoneAttr() 5527 S.Context, S.Context.getConstType(S.Context.IntTy), /*consume*/ false); in makeLaunchBoundsArgExpr() 7896 return ::new (Context) DLLImportAttr(Context, CI); in mergeDLLImportAttr() [all …]
|
H A D | Sema.cpp | 356 Context.getAtomicType(Context.UnsignedIntTy)); in Initialize() 358 Context.getAtomicType(Context.FloatTy)); in Initialize() 377 auto AtomicSizeT = Context.getAtomicType(Context.getSizeType()); in Initialize() 381 Context.getAtomicType(Context.getPointerDiffType()); in Initialize() 388 if (Context.getTypeSize(Context.getSizeType()) == 32) { in Initialize() 393 auto AtomicHalfT = Context.getAtomicType(Context.HalfTy); in Initialize() 403 auto AtomicDoubleT = Context.getAtomicType(Context.DoubleTy); in Initialize() 407 auto AtomicLongT = Context.getAtomicType(Context.LongTy); in Initialize() 408 auto AtomicULongT = Context.getAtomicType(Context.UnsignedLongTy); in Initialize() 413 if (Context.getTypeSize(Context.getSizeType()) == 64) { in Initialize() [all …]
|
H A D | SemaExprObjC.cpp | 228 ASTContext &Context = S.Context; in LookupObjCInterfaceDeclForLiteral() local 504 new (Context) ObjCBoxedExpr(ValueExpr, Context.DependentTy, nullptr, SR); in BuildObjCBoxedExpr() 519 if (Context.hasSameUnqualifiedType(PointeeType, Context.CharTy)) { in BuildObjCBoxedExpr() 1152 StrTy = Context.getStringLiteralArrayType(Context.CharTy, Str.size()); in BuildObjCEncodeExpression() 1461 ASTContext &Context = S.Context; in getBaseMessageSendResultType() local 2004 return new (Context) in HandleExprPropertyRefExpr() 2008 return new (Context) in HandleExprPropertyRefExpr() 2091 return new (Context) in HandleExprPropertyRefExpr() 2886 Context, Context.DependentTy, VK_PRValue, LBracLoc, Receiver, Sel, in BuildInstanceMessage() 3535 ASTContext &Context; member in __anonf6e13fbf0411::ARCCastChecker [all …]
|
/openbsd/gnu/llvm/clang/include/clang/ASTMatchers/ |
H A D | ASTMatchFinder.h | 85 clang::ASTContext * const Context; member 195 match(clang::DynTypedNode::create(Node), Context); in match() 201 void matchAST(ASTContext &Context); 258 ASTContext &Context); 303 ASTContext &Context) { in match() argument 307 Finder.match(Node, Context); in match() 319 match(MatcherT Matcher, ASTContext &Context) { in match() argument 323 Finder.matchAST(Context); in match() 329 ASTContext &Context) { in matchDynamic() argument 333 Finder.match(Node, Context); in matchDynamic() [all …]
|
/openbsd/gnu/llvm/clang/lib/Tooling/Refactoring/ |
H A D | ASTSelectionRequirements.cpp | 17 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()
|
/openbsd/gnu/llvm/llvm/examples/Fibonacci/ |
H A D | fibonacci.cpp | 51 static Function *CreateFibFunction(Module *M, LLVMContext &Context) { in CreateFibFunction() argument 54 FunctionType *FibFTy = FunctionType::get(Type::getInt32Ty(Context), in CreateFibFunction() 60 BasicBlock *BB = BasicBlock::Create(Context, "EntryBlock", FibF); in CreateFibFunction() 63 Value *One = ConstantInt::get(Type::getInt32Ty(Context), 1); in CreateFibFunction() 64 Value *Two = ConstantInt::get(Type::getInt32Ty(Context), 2); in CreateFibFunction() 71 BasicBlock *RetBB = BasicBlock::Create(Context, "return", FibF); in CreateFibFunction() 80 ReturnInst::Create(Context, One, RetBB); in CreateFibFunction() 97 ReturnInst::Create(Context, Sum, RecurseBB); in CreateFibFunction() 107 LLVMContext Context; in main() local 110 std::unique_ptr<Module> Owner(new Module("test", Context)); in main() [all …]
|
/openbsd/gnu/llvm/llvm/lib/Target/X86/ |
H A D | X86CallFrameOptimization.cpp | 260 CallContext Context; in runOnMachineFunction() local 262 CallSeqVector.push_back(Context); in runOnMachineFunction() 365 Context.FrameSetup = FrameSetup; in collectCallInfo() 373 Context.NoStackParams = true; in collectCallInfo() 397 Context.SPCopy = &*J++; in collectCallInfo() 451 Context.ArgStoreVector[StackDisp] = &*I; in collectCallInfo() 469 Context.Call = &*I; in collectCallInfo() 475 auto MMI = Context.ArgStoreVector.begin(), MME = Context.ArgStoreVector.end(); in collectCallInfo() 490 Context.UsePush = true; in collectCallInfo() 592 if (Context.SPCopy && MRI->use_empty(Context.SPCopy->getOperand(0).getReg())) in adjustCallSequence() [all …]
|
/openbsd/gnu/llvm/clang/lib/CodeGen/ |
H A D | CodeGenTBAA.cpp | 35 : Context(Ctx), Module(M), CodeGenOpts(CGO), in CodeGenTBAA() 134 return getTypeInfo(Context.ShortTy); in getTypeInfoHelper() 136 return getTypeInfo(Context.IntTy); in getTypeInfoHelper() 138 return getTypeInfo(Context.LongTy); in getTypeInfoHelper() 140 return getTypeInfo(Context.LongLongTy); in getTypeInfoHelper() 142 return getTypeInfo(Context.Int128Ty); in getTypeInfoHelper() 147 return getTypeInfo(Context.FractTy); in getTypeInfoHelper() 149 return getTypeInfo(Context.LongFractTy); in getTypeInfoHelper() 154 return getTypeInfo(Context.SatFractTy); in getTypeInfoHelper() 161 return getTypeInfo(Context.AccumTy); in getTypeInfoHelper() [all …]
|
/openbsd/gnu/llvm/clang/lib/Serialization/ |
H A D | ASTReaderStmt.cpp | 2829 Context, in ReadStmtFromStream() 2843 Context, in ReadStmtFromStream() 2849 Context, in ReadStmtFromStream() 2857 Context, in ReadStmtFromStream() 2864 Context, in ReadStmtFromStream() 2926 Context, in ReadStmtFromStream() 2932 Context, in ReadStmtFromStream() 2958 Context, in ReadStmtFromStream() 2974 Context, in ReadStmtFromStream() 3053 Context, in ReadStmtFromStream() [all …]
|