/openbsd/gnu/llvm/clang/lib/Index/ |
H A D | CommentToXML.cpp | 203 Result << " "; in printHTMLStartTagComment() 212 Result << ">"; in printHTMLStartTagComment() 214 Result << "/>"; in printHTMLStartTagComment() 280 Result << " "; in visitInlineCommandComment() 324 Result << "<p>"; in visitParagraphComment() 329 Result << "</p>"; in visitParagraphComment() 521 Result << C; in appendToResultWithHTMLEscaping() 662 Result << ">"; in visitHTMLStartTagComment() 906 Result << ">"; in visitFullComment() 1098 Result << C; in appendToResultWithXMLEscaping() [all …]
|
/openbsd/gnu/llvm/llvm/lib/Target/Hexagon/MCTargetDesc/ |
H A D | HexagonMCDuplexInfo.cpp | 697 MCInst Result; in deriveSubInst() local 730 addOps(Result, Inst, 0); in deriveSubInst() 731 addOps(Result, Inst, 1); in deriveSubInst() 732 addOps(Result, Inst, 2); in deriveSubInst() 736 addOps(Result, Inst, 0); in deriveSubInst() 737 addOps(Result, Inst, 1); in deriveSubInst() 738 addOps(Result, Inst, 2); in deriveSubInst() 742 addOps(Result, Inst, 2); in deriveSubInst() 758 addOps(Result, Inst, 1); in deriveSubInst() 759 addOps(Result, Inst, 2); in deriveSubInst() [all …]
|
/openbsd/gnu/llvm/clang/lib/Lex/ |
H A D | MacroArgs.cpp | 47 MacroArgs *Result; in create() local 51 Result = new ( in create() 73 return Result; in create() 133 return Result; in getUnexpArgument() 170 if (!Result.empty()) return Result; in getPreExpArgument() 199 return Result; in getPreExpArgument() 220 Result += "\""; in StringifyArgument() 226 Result += ' '; in StringifyArgument() 282 Result += '"'; in StringifyArgument() 289 Result[Result.size()-1] = '\''; in StringifyArgument() [all …]
|
H A D | Lexer.cpp | 265 return Result; in Stringify() 387 std::string Result; in getSpelling() local 389 Result.resize(getSpellingSlow(Tok, TokStart, LangOpts, &*Result.begin())); in getSpelling() 390 return Result; in getSpelling() 2624 Result.getLocation(), Result.getLocation()); in SaveLineComment() 2951 if (Result) in ReadToEndOfLine() 2964 if (Result) in ReadToEndOfLine() 3357 if (Result) { in tryReadNumericUCN() 3451 if (Result) { in tryReadNamedUCN() 3769 Result, ConsumeChar(ConsumeChar(CurPtr, SizeTmp, Result), in LexTokenInternal() [all …]
|
H A D | PPExpressions.cpp | 105 Result.setBegin(beginLoc); in EvaluateDefined() 132 Result.Val = !!Macro; in EvaluateDefined() 276 Result.Val = 0; in EvaluateValue() 426 Result.Val = Val.extend(Result.Val.getBitWidth()); in EvaluateValue() 430 Result.Val = Val; in EvaluateValue() 473 Result.setBegin(Start); in EvaluateValue() 481 Result.setBegin(Loc); in EvaluateValue() 485 Result.Val = -Result.Val; in EvaluateValue() 488 bool Overflow = !Result.isUnsigned() && Result.Val.isMinSignedValue(); in EvaluateValue() 506 Result.Val = ~Result.Val; in EvaluateValue() [all …]
|
/openbsd/gnu/llvm/llvm/include/llvm/IR/ |
H A D | FixedPointBuilder.h | 60 Result = B.CreateSelect(IsNegative, Rounded, Result); in Convert() 93 Result = B.CreateSelect(TooHigh, Max, Result, "satmax"); in Convert() 102 Result = B.CreateSelect(TooLow, Min, Result, "satmin"); in Convert() 109 return Result; in Convert() 184 Result = B.CreateFMul(Result, in CreateFixedToFloating() 187 Result = B.CreateFPTrunc(Result, DstTy); in CreateFixedToFloating() 196 Result = B.CreateFPExt(Result, OpTy); in CreateFloatingToFixed() 199 Result = B.CreateFMul(Result, in CreateFloatingToFixed() 208 Result = UseSigned ? B.CreateFPToSI(Result, ResultTy) in CreateFloatingToFixed() 216 Result = in CreateFloatingToFixed() [all …]
|
H A D | PassManagerInternal.h | 201 explicit AnalysisResultModel(ResultT Result) : Result(std::move(Result)) {} 204 AnalysisResultModel(const AnalysisResultModel &Arg) : Result(Arg.Result) {} 206 : Result(std::move(Arg.Result)) {} 210 swap(LHS.Result, RHS.Result); 230 ResultT Result; 240 explicit AnalysisResultModel(ResultT Result) : Result(std::move(Result)) {} 243 AnalysisResultModel(const AnalysisResultModel &Arg) : Result(Arg.Result) {} 245 : Result(std::move(Arg.Result)) {} 249 swap(LHS.Result, RHS.Result); 260 return Result.invalidate(IR, PA, Inv); [all …]
|
/openbsd/gnu/llvm/clang/lib/Frontend/Rewrite/ |
H A D | RewriteModernObjC.cpp | 3677 Result += "\t"; Result += EC->getName(); Result += " = "; in RewriteObjCFieldDeclType() 6339 Result += "\""; Result += MethodTypeString; Result += "\""; in Write_method_list_t_initializer() 6368 Result += "\t"; Result += "sizeof(_prop_t)"; Result += ",\n"; in Write_prop_list_t_initializer() 6429 Result += "\""; Result += ClassName; Result += "\",\n\t"; in Write__class_ro_t_initializer() 6637 Result += ClassName; Result += "_$_"; Result += CatName; in Write_category_t() 6640 Result += "\t\""; Result += ClassName; Result += "\",\n"; in Write_category_t() 6646 Result += ClassName; Result += "_$_"; Result += CatName; in Write_category_t() 6655 Result += ClassName; Result += "_$_"; Result += CatName; in Write_category_t() 6664 Result += ClassName; Result += "_$_"; Result += CatName; in Write_category_t() 6672 Result += ClassName; Result += "_$_"; Result += CatName; in Write_category_t() [all …]
|
H A D | RewriteObjC.cpp | 5062 Result += "0"; in RewriteIvarOffsetComputation() 5068 Result += ", "; in RewriteIvarOffsetComputation() 5070 Result += ")"; in RewriteIvarOffsetComputation() 5153 Result += "\n"; in RewriteObjCProtocolMetaData() 5204 Result += ", "; in RewriteObjCProtocolMetaData() 5250 Result += "\n"; in RewriteObjCProtocolListMetaData() 5254 Result += " \n"; in RewriteObjCProtocolListMetaData() 5431 Result += "\""; in RewriteObjCClassMetaData() 5492 Result += ")"; in RewriteObjCClassMetaData() 5563 Result += "_"; in RewriteMetaDataIntoBuffer() [all …]
|
/openbsd/gnu/llvm/llvm/lib/ObjectYAML/ |
H A D | CodeViewYAMLDebugSections.cpp | 416 auto Result = in toCodeViewSubsection() local 479 auto Result = in toCodeViewSubsection() local 802 if (!Result) in visitLines() 813 if (!Result) in visitFileChecksums() 824 if (!Result) in visitInlineeLines() 835 if (!Result) in visitCrossModuleExports() 846 if (!Result) in visitCrossModuleImports() 856 if (!Result) in visitStringTable() 865 if (!Result) in visitSymbols() 875 if (!Result) in visitFrameData() [all …]
|
/openbsd/gnu/llvm/clang/include/clang/Lex/ |
H A D | Lexer.h | 204 bool Lex(Token &Result); 207 bool LexDependencyDirectiveToken(Token &Result); 230 void IndirectLex(Token &Result) override { Lex(Result); } in IndirectLex() argument 236 bool LexFromRawLexer(Token &Result) { in LexFromRawLexer() argument 238 Lex(Result); in LexFromRawLexer() 377 static bool getRawToken(SourceLocation Loc, Token &Result, 619 void FormTokenWithChars(Token &Result, const char *TokEnd, in FormTokenWithChars() argument 622 Result.setLength(TokLen); in FormTokenWithChars() 624 Result.setKind(Kind); in FormTokenWithChars() 731 void PropagateLineStartLeadingSpaceInfo(Token &Result); [all …]
|
/openbsd/gnu/llvm/llvm/tools/llvm-cfi-verify/lib/ |
H A D | GraphBuilder.cpp | 97 GraphResult Result; in buildFlowGraph() local 98 Result.BaseAddress = Address.Address; in buildFlowGraph() 105 return Result; in buildFlowGraph() 109 return Result; in buildFlowGraph() 185 Result.IntermediateNodes[CurrentAddress] = NextAddress; in buildFlowsToUndefined() 203 Result.OrphanedNodes.push_back(Address); in buildFlowGraphImpl() 209 Result.OrphanedNodes.push_back(Address); in buildFlowGraphImpl() 212 if (Result.IntermediateNodes.count(Address)) in buildFlowGraphImpl() 220 Result.OrphanedNodes.push_back(Address); in buildFlowGraphImpl() 312 Result.ConditionalBranchNodes.push_back(BranchNode); in buildFlowGraphImpl() [all …]
|
/openbsd/gnu/llvm/llvm/lib/Support/ |
H A D | APFixedPoint.cpp | 190 APSInt Result; in add() local 214 APSInt Result; in sub() local 255 APSInt Result; in mul() local 277 Overflowed = Result < Min || Result > Max; in mul() 314 APSInt Result; in div() local 321 Result = Result - 1; in div() 338 Overflowed = Result < Min || Result > Max; in div() 373 Overflowed = Result < Min || Result > Max; in shl() 455 Result = Result.extend(DstWidth); in convertToInt() 463 *Overflow = Result.isNegative() || Result.ugt(DstMax); in convertToInt() [all …]
|
H A D | ConvertUTFWrapper.cpp | 248 Result.resize(Source.size() + 1); in ConvertUTF8toWideInternal() 252 Result.clear(); in ConvertUTF8toWideInternal() 255 Result.resize(reinterpret_cast<wchar_t *>(ResultPtr) - &Result[0]); in ConvertUTF8toWideInternal() 260 return ConvertUTF8toWideInternal(Source, Result); in ConvertUTF8toWide() 265 Result.clear(); in ConvertUTF8toWide() 278 Result.resize(Source.size()); in convertWideToUTF8() 279 memcpy(&Result[0], Source.data(), Source.size()); in convertWideToUTF8() 285 Result); in convertWideToUTF8() 292 UTF8 *ResultEnd = reinterpret_cast<UTF8 *>(&Result[0] + Result.size()); in convertWideToUTF8() 295 Result.resize(reinterpret_cast<char *>(ResultPtr) - &Result[0]); in convertWideToUTF8() [all …]
|
/openbsd/gnu/llvm/llvm/lib/CodeGen/ |
H A D | InterleavedLoadCombinePass.cpp | 557 Result.A -= C; in operator -() 558 return Result; in operator -() 564 Result.A += C; in operator +() 565 return Result; in operator +() 763 Result.BB = Old.BB; in computeFromBCI() 764 Result.PV = Old.PV; in computeFromBCI() 768 Result.SVI = nullptr; in computeFromBCI() 804 Result.BB = RHS.BB; in computeFromSVI() 805 Result.PV = RHS.PV; in computeFromSVI() 832 Result.SVI = SVI; in computeFromSVI() [all …]
|
/openbsd/gnu/llvm/clang/lib/Tooling/Transformer/ |
H A D | RewriteRule.cpp | 62 auto Note = E.Note->eval(Result); in translateEdits() 68 auto Metadata = E.Metadata(Result); in translateEdits() 80 return translateEdits(Result, Edits); in editList() 86 return translateEdits(Result, {Edit}); in edit() 149 Result->append(S); in eval() 228 *Builder = std::move(Result); in matches() 305 Finder.match(Node, *Result.Context); in rewriteDescendantsImpl() 350 Result.Nodes.getMap(); in rewriteDescendants() 449 auto &NodesMap = Result.Nodes.getMap(); in getRuleMatchLoc() 454 *Result.Context); in getRuleMatchLoc() [all …]
|
H A D | RangeSelector.cpp | 130 *Result.SourceManager, Result.Context->getLangOpts()); in after() 149 *Result.Context) in node() 160 *Result.Context); in statement() 166 Expected<CharSourceRange> BeginRange = Begin(Result); in enclose() 169 Expected<CharSourceRange> EndRange = End(Result); in enclose() 202 Expected<DynTypedNode> N = getNode(Result.Nodes, ID); in name() 260 Expected<DynTypedNode> N = getNode(Result.Nodes, ID); in operator ()() 264 return Func(Result, *Arg); in operator ()() 292 findOpenParen(CE, *Result.SourceManager, Result.Context->getLangOpts()) in getCallArgumentsRange() 321 tok::TokenKind::semi, *Result.Context); in getElseRange() [all …]
|
H A D | Transformer.cpp | 27 const ast_matchers::MatchFinder::MatchResult &Result) { in onMatch() argument 28 if (Result.Context->getDiagnostics().hasErrorOccurred()) in onMatch() 31 onMatchImpl(Result); in onMatch() 37 const MatchFinder::MatchResult &Result) { in convertToAtomicChanges() argument 42 auto ID = Result.SourceManager->getFileID(T.Range.getBegin()); in convertToAtomicChanges() 44 .emplace(ID, AtomicChange(*Result.SourceManager, in convertToAtomicChanges() 51 AC.replace(*Result.SourceManager, T.Range, T.Replacement)) { in convertToAtomicChanges() 76 void Transformer::run(const MatchFinder::MatchResult &Result) { in run() argument 77 if (Result.Context->getDiagnostics().hasErrorOccurred()) in run() 80 Impl->onMatch(Result); in run()
|
/openbsd/gnu/llvm/clang/lib/ASTMatchers/Dynamic/ |
H A D | Parser.cpp | 111 TokenInfo Result; in getNextToken() local 118 return Result; in getNextToken() 123 Result.Text = ""; in getNextToken() 124 return Result; in getNextToken() 210 return Result; in getNextToken() 400 if (Result) { in parseIdentifierPrefixImpl() 621 *Value = Result; in parseMatcherBuilder() 732 *Value = Result; in parseMatcherExpressionImpl() 759 return Result; in getNamedValueCompletions() 919 if (!Result) { in parseMatcherExpression() [all …]
|
/openbsd/gnu/llvm/llvm/lib/TextAPI/ |
H A D | Symbol.cpp | 21 std::string Result; in dump() local 23 Result += "(undef) "; in dump() 25 Result += "(weak-def) "; in dump() 27 Result += "(weak-ref) "; in dump() 29 Result += "(tlv) "; in dump() 32 Result += Name.str(); in dump() 35 Result += "(ObjC Class) " + Name.str(); in dump() 38 Result += "(ObjC Class EH) " + Name.str(); in dump() 41 Result += "(ObjC IVar) " + Name.str(); in dump() 44 OS << Result; in dump()
|
/openbsd/gnu/llvm/llvm/include/llvm/Support/ |
H A D | MemAlloc.h | 26 void *Result = std::malloc(Sz); in safe_malloc() local 27 if (Result == nullptr) { in safe_malloc() 35 return Result; in safe_malloc() 40 void *Result = std::calloc(Count, Sz); in safe_calloc() local 41 if (Result == nullptr) { in safe_calloc() 49 return Result; in safe_calloc() 53 void *Result = std::realloc(Ptr, Sz); in safe_realloc() local 54 if (Result == nullptr) { in safe_realloc() 62 return Result; in safe_realloc()
|
H A D | VersionTuple.h | 111 VersionTuple Result = *this; in normalize() local 112 if (Result.Build == 0) { in normalize() 113 Result.HasBuild = false; in normalize() 114 if (Result.Subminor == 0) { in normalize() 116 if (Result.Minor == 0) in normalize() 117 Result.HasMinor = false; in normalize() 120 return Result; in normalize() 204 Result = detail::combineHashValue(Result, *Minor); 206 Result = detail::combineHashValue(Result, *Subminor); 208 Result = detail::combineHashValue(Result, *Build); [all …]
|
/openbsd/gnu/llvm/llvm/include/llvm/ADT/ |
H A D | StringSwitch.h | 50 std::optional<T> Result; variable 54 : Str(S), Result() { } in StringSwitch() 64 : Str(other.Str), Result(std::move(other.Result)) { } in StringSwitch() 70 if (!Result && Str == S) { in Case() 71 Result = std::move(Value); in Case() 78 Result = std::move(Value); in EndsWith() 85 Result = std::move(Value); in StartsWith() 144 Result = std::move(Value); in CaseLower() 151 Result = Value; in EndsWithLower() 183 if (Result) in Default() [all …]
|
/openbsd/gnu/llvm/clang/include/clang/Analysis/FlowSensitive/ |
H A D | MatchSwitch.h | 64 template <typename T, typename State, typename Result = void> 65 using MatchSwitchAction = std::function<Result( 68 template <typename BaseT, typename State, typename Result = void> 70 std::function<Result(const BaseT &, ASTContext &, State &)>; 74 template <typename State, typename Result = void> 75 using MatchSwitch = ASTMatchSwitch<Stmt, State, Result>; 119 ASTMatchSwitch<BaseT, State, Result> Build() && { in Build() 124 return Result(); in Build() 138 return Result(); in Build() 171 std::vector<MatchSwitchAction<BaseT, State, Result>> Actions; [all …]
|
/openbsd/gnu/llvm/clang/lib/Analysis/FlowSensitive/ |
H A D | DebugSupport.cpp | 75 case Solver::Result::Status::Satisfiable: in debugString() 77 case Solver::Result::Status::Unsatisfiable: in debugString() 79 case Solver::Result::Status::TimedOut: in debugString() 157 std::string Result; in debugString() local 159 Result += S; in debugString() 160 Result += '\n'; in debugString() 162 return Result; in debugString() 168 const Solver::Result &Result) { in debugString() argument 187 auto Solution = Result.getSolution(); in debugString() 252 debugString(ArrayRef<BoolValue *> Constraints, const Solver::Result &Result, in debugString() argument [all …]
|