| /freebsd-src/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | StmtDataCollectors.td | 2 code Code = [{ 12 code Code = [{ 19 code Code = [{ 24 code Code = [{ 29 code Code = [{ 34 code Code = [{ 43 code Code = [{ 69 code Code = [{ 74 code Code = [{ 81 code Code = [{ [all …]
|
| /freebsd-src/contrib/llvm-project/clang/lib/ASTMatchers/Dynamic/ |
| H A D | Parser.cpp | 72 : Code(MatcherCode), StartOfLine(MatcherCode), Error(Error) { in CodeTokenizer() 78 : Code(MatcherCode), StartOfLine(MatcherCode), Error(Error), in CodeTokenizer() 114 if (CodeCompletionLocation && CodeCompletionLocation <= Code.data()) { in getNextToken() 121 if (Code.empty()) { in getNextToken() 127 switch (Code[0]) { in getNextToken() 129 Code = Code.drop_until([](char c) { return c == '\n'; }); in getNextToken() 133 Result.Text = Code.substr(0, 1); in getNextToken() 134 Code = Code.drop_front(); in getNextToken() 138 Result.Text = Code.substr(0, 1); in getNextToken() 139 Code = Code.drop_front(); in getNextToken() [all …]
|
| /freebsd-src/contrib/llvm-project/clang/lib/Serialization/ |
| H A D | ASTWriterStmt.cpp | 37 serialization::StmtCode Code; member in clang::ASTStmtWriter 96 Code(serialization::STMT_NULL_PTR), AbbrevToUse(0), in ASTStmtWriter() 104 assert(Code != serialization::STMT_NULL_PTR && in Emit() 106 return Record.EmitStmt(Code, AbbrevToUse); in Emit() 135 Code = serialization::STMT_NULL; in VisitNullStmt() 154 Code = serialization::STMT_COMPOUND; in VisitCompoundStmt() 173 Code = serialization::STMT_CASE; in VisitCaseStmt() 179 Code = serialization::STMT_DEFAULT; in VisitDefaultStmt() 188 Code = serialization::STMT_LABEL; in VisitLabelStmt() 197 Code in VisitAttributedStmt() [all...] |
| H A D | ASTWriterDecl.cpp | 40 serialization::DeclCode Code; member in clang::ASTDeclWriter 49 Code((serialization::DeclCode)0), AbbrevToUse(0), in Emit() 53 if (!Code) in Emit() 56 return Record.Emit(Code, AbbrevToUse); 421 Code = serialization::DECL_PRAGMA_COMMENT; in VisitTypedefNameDecl() 433 Code = serialization::DECL_PRAGMA_DETECT_MISMATCH; in VisitTypedefDecl() 477 Code = serialization::DECL_TYPEDEF; in VisitEnumDecl() 483 Code = serialization::DECL_TYPEALIAS; in VisitEnumDecl() 556 Code = serialization::DECL_ENUM; in VisitRecordDecl() 596 Code in VisitFunctionDecl() 2074 getFunctionDeclAbbrev(serialization::DeclCode Code) getFunctionDeclAbbrev() argument [all...] |
| /freebsd-src/contrib/llvm-project/clang/lib/Tooling/Refactoring/Extract/ |
| H A D | Extract.cpp | 71 CodeRangeASTSelection Code, in initiate() argument 76 if (!Code.isInFunctionLikeBodyOfCode()) in initiate() 80 if (Code.size() == 1) { in initiate() 82 if (isSimpleExpression(dyn_cast<Expr>(Code[0]))) in initiate() 87 if (const auto *PRE = dyn_cast<ObjCPropertyRefExpr>(Code[0])) { in initiate() 94 return ExtractFunction(std::move(Code), DeclName); in initiate() 101 const Decl *ParentDecl = Code.getFunctionLikeNearestParent(); in createSourceReplacements() 105 SourceRange ExtractedRange(Code[0]->getBeginLoc(), in createSourceReplacements() 106 Code[Code.size() - 1]->getEndLoc()); in createSourceReplacements() 120 bool IsExpr = Code.size() == 1 && isa<Expr>(Code[0]); in createSourceReplacements() [all …]
|
| /freebsd-src/contrib/llvm-project/clang/lib/AST/Interp/ |
| H A D | ByteCodeEmitter.cpp | 191 Func->setCode(NextLocalOffset, std::move(Code), std::move(SrcMap), in emit() 205 const size_t Target = Code.size(); in emit() 214 void *Location = Code.data() + Reloc - align(sizeof(int32_t)); in emit() 226 Code.size() + align(sizeof(Opcode)) + align(sizeof(int32_t)); in emit() 242 static void emit(Program &P, std::vector<std::byte> &Code, const T &Val, in emitOp() 251 if (Code.size() + Size > std::numeric_limits<unsigned>::max()) { 257 size_t ValPos = align(Code.size()); in jump() 260 Code.resize(ValPos + Size); in fallthrough() 263 new (Code.data() + ValPos) T(Val); in fallthrough() 266 new (Code 184 emit(Program & P,std::vector<std::byte> & Code,const T & Val,bool & Success) emit() argument 213 emit(Program & P,std::vector<std::byte> & Code,const Floating & Val,bool & Success) emit() argument [all...] |
| /freebsd-src/contrib/llvm-project/llvm/utils/TableGen/GlobalISel/ |
| H A D | CXXPredicates.h | |
| H A D | CXXPredicates.cpp | |
| H A D | CodeExpander.h | |
| H A D | CodeExpander.cpp | |
| /freebsd-src/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | ISDOpcodes.h | 1607 inline bool isSignedIntSetCC(CondCode Code) { 1608 return Code == SETGT || Code == SETGE || Code == SETLT || Code == SETLE; 1613 inline bool isUnsignedIntSetCC(CondCode Code) { 1614 return Code == SETUGT || Code == SETUGE || Code == SETULT || Code 1539 isSignedIntSetCC(CondCode Code) isSignedIntSetCC() argument 1545 isUnsignedIntSetCC(CondCode Code) isUnsignedIntSetCC() argument 1551 isIntEqualitySetCC(CondCode Code) isIntEqualitySetCC() argument 1557 isFPEqualitySetCC(CondCode Code) isFPEqualitySetCC() argument [all...] |
| /freebsd-src/contrib/bearssl/T0/ |
| H A D | WordInterpreted.cs | 44 internal Opcode[] Code { property in WordInterpreted 54 this.Code = code; in WordInterpreted() 69 Code[i].ResolveTarget(TC.Lookup(tt)); in Resolve() 77 cpu.Enter(Code, NumLocals); in Run() 84 foreach (Opcode op in Code) { in GetReferences() 97 foreach (Opcode op in Code) { in GetDataBlocks() 109 int n = Code.Length; in GenerateCodeElements() 112 gcode[i] = Code[i].ToCodeElement(); in GenerateCodeElements() 115 Code[i].FixUp(gcode, i); in GenerateCodeElements() 154 int n = Code.Length; in AnalyseFlow() [all …]
|
| /freebsd-src/contrib/llvm-project/clang/include/clang/ASTMatchers/Dynamic/ |
| H A D | Parser.h | 207 static bool parseExpression(StringRef &Code, Sema *S, 210 static bool parseExpression(StringRef &Code, Sema *S, VariantValue *Value, in parseExpression() argument 212 return parseExpression(Code, S, nullptr, Value, Error); in parseExpression() 214 static bool parseExpression(StringRef &Code, VariantValue *Value, in parseExpression() argument 216 return parseExpression(Code, nullptr, Value, Error); in parseExpression() 231 completeExpression(StringRef &Code, unsigned CompletionOffset, Sema *S, 234 completeExpression(StringRef &Code, unsigned CompletionOffset, Sema *S) { in completeExpression() argument 235 return completeExpression(Code, CompletionOffset, S, nullptr); in completeExpression() 238 completeExpression(StringRef &Code, unsigned CompletionOffset) { in completeExpression() argument 239 return completeExpression(Code, CompletionOffset, nullptr); in completeExpression()
|
| /freebsd-src/contrib/llvm-project/clang/include/clang/Testing/ |
| H A D | TestAST.h | 36 TestInputs(StringRef Code) : Code(Code) {} in TestInputs() 39 std::string Code; member 60 /// To suppress this, set ErrorOK or include "error-ok" in a comment in Code. 80 TestAST(StringRef Code) : TestAST(TestInputs(Code)) {} 76 TestAST(StringRef Code) TestAST() argument
|
| /freebsd-src/contrib/llvm-project/clang/lib/Tooling/Inclusions/ |
| H A D | HeaderIncludes.cpp | 41 StringRef FileName, StringRef Code, const IncludeStyle &Style, in getOffsetAfterTokenSequence() argument 44 SourceManagerForFile VirtualSM(FileName, Code); in getOffsetAfterTokenSequence() 83 StringRef Code, in getOffsetAfterHeaderGuardsAndComments() argument 92 FileName, Code, Style, in getOffsetAfterHeaderGuardsAndComments() 159 unsigned getMaxHeaderInsertionOffset(StringRef FileName, StringRef Code, in getMaxHeaderInsertionOffset() argument 162 FileName, Code, Style, in getMaxHeaderInsertionOffset() 281 HeaderIncludes::HeaderIncludes(StringRef FileName, StringRef Code, in HeaderIncludes() 283 : FileName(FileName), Code(Code), FirstIncludeOffset(-1), in HeaderIncludes() 285 getOffsetAfterHeaderGuardsAndComments(FileName, Code, Styl in HeaderIncludes() 271 HeaderIncludes(StringRef FileName,StringRef Code,const IncludeStyle & Style) HeaderIncludes() argument [all...] |
| H A D | HeaderAnalysis.cpp | 83 bool codeContainsImports(llvm::StringRef Code) { in codeContainsImports() argument 85 Code = Code.take_front(100 * 100); in codeContainsImports() 87 for (unsigned I = 0; I < 100 && !Code.empty(); ++I) { in codeContainsImports() 88 std::tie(Line, Code) = Code.split('\n'); in codeContainsImports()
|
| /freebsd-src/contrib/llvm-project/clang/include/clang/Tooling/Refactoring/Extract/ |
| H A D | Extract.h | 29 initiate(RefactoringRuleContext &Context, CodeRangeASTSelection Code, 35 ExtractFunction(CodeRangeASTSelection Code, in ExtractFunction() argument 37 : Code(std::move(Code)), in ExtractFunction() 43 CodeRangeASTSelection Code; variable
|
| /freebsd-src/contrib/byacc/test/ |
| H A D | btyacc_demo.y | 16 typedef int Code; typedef 43 Code *code; 209 extern void finish_fn_def(Decl *fn_decl, Code *block); 224 extern Code * build_expr_code(Expr *expr); 225 extern Code * build_if(Expr *cond_expr, Code *then_stmt, Code *else_stmt); 226 extern Code * code_append(Code *stmt_list, Code *stmt);
|
| /freebsd-src/contrib/llvm-project/clang/lib/Tooling/Refactoring/ |
| H A D | AtomicChange.cpp | 89 bool violatesColumnLimit(llvm::StringRef Code, unsigned ColumnLimit, in violatesColumnLimit() argument 91 auto StartPos = Code.rfind('\n', Start); in violatesColumnLimit() 94 auto EndPos = Code.find("\n", End); in violatesColumnLimit() 96 EndPos = Code.size(); in violatesColumnLimit() 99 Code.substr(StartPos, EndPos - StartPos).split(Lines, '\n'); in violatesColumnLimit() 107 getRangesForFormating(llvm::StringRef Code, unsigned ColumnLimit, in getRangesForFormating() argument 123 R.getOffset() > 0 && R.getOffset() <= Code.size() && in getRangesForFormating() 124 Code[R.getOffset() - 1] == '\n') in getRangesForFormating() 131 violatesColumnLimit(Code, ColumnLimit, Start, End)) in getRangesForFormating() 144 createReplacementsForHeaders(llvm::StringRef FilePath, llvm::StringRef Code, in createReplacementsForHeaders() argument 301 applyAtomicChanges(llvm::StringRef FilePath,llvm::StringRef Code,llvm::ArrayRef<AtomicChange> Changes,const ApplyChangesSpec & Spec) applyAtomicChanges() argument [all...] |
| /freebsd-src/contrib/llvm-project/clang/tools/clang-format/ |
| H A D | ClangFormat.cpp | 238 static bool fillRanges(MemoryBuffer *Code, in fillRanges() 247 FileID ID = createInMemoryFile("<irrelevant>", *Code, Sources, Files, in fillRanges() 288 if (Offsets[i] >= Code->getBufferSize()) { in fillRanges() 296 if (Offsets[i] + Lengths[i] > Code->getBufferSize()) { in fillRanges() 353 const std::unique_ptr<llvm::MemoryBuffer> &Code) { in emitReplacementWarnings() 360 const char *StartBuf = Code->getBufferStart(); in emitReplacementWarnings() 428 std::unique_ptr<llvm::MemoryBuffer> Code = std::move(CodeOrErr.get()); in format() 429 if (Code->getBufferSize() == 0) in format() 432 StringRef BufStr = Code->getBuffer(); in format() 446 if (fillRanges(Code in format() 229 fillRanges(MemoryBuffer * Code,std::vector<tooling::Range> & Ranges) fillRanges() argument 343 emitReplacementWarnings(const Replacements & Replaces,StringRef AssumedFileName,const std::unique_ptr<llvm::MemoryBuffer> & Code) emitReplacementWarnings() argument 417 std::unique_ptr<llvm::MemoryBuffer> Code = std::move(CodeOrErr.get()); format() local 550 std::unique_ptr<llvm::MemoryBuffer> Code; dumpConfig() local [all...] |
| /freebsd-src/contrib/llvm-project/llvm/lib/Testing/Annotations/ |
| H A D | Annotations.cpp | 19 static void require(bool Assertion, const char *Msg, llvm::StringRef Code) { in require() argument 21 llvm::errs() << "Annotated testcase: " << Msg << "\n" << Code << "\n"; in require() 34 Code.reserve(Text.size()); in Annotations() 38 {Code.size(), size_t(-1), Name.value_or(""), Payload.value_or("")}); in Annotations() 46 {Code.size(), size_t(-1), Name.value_or(""), Payload.value_or("")}); in Annotations() 57 {NewRange.Begin, Code.size(), NewRange.Name, NewRange.Payload}); in Annotations() 76 Code.push_back(Text.front()); in Annotations() 91 "expected exactly one point", Code); in pointWithPayload() 136 "expected exactly one range", Code); in rangeWithPayload()
|
| /freebsd-src/contrib/llvm-project/llvm/lib/TableGen/ |
| H A D | StringMatcher.cpp | 62 StringRef Code = Matches[0]->second; in EmitStringMatcherForChar() local 64 std::pair<StringRef, StringRef> Split = Code.split('\n'); in EmitStringMatcherForChar() 67 Code = Split.second; in EmitStringMatcherForChar() 68 while (!Code.empty()) { in EmitStringMatcherForChar() 69 Split = Code.split('\n'); in EmitStringMatcherForChar() 71 Code = Split.second; in EmitStringMatcherForChar()
|
| /freebsd-src/contrib/llvm-project/llvm/lib/MC/ |
| H A D | MCSPIRVStreamer.cpp | 23 SmallString<256> Code; in emitInstToData() local 24 Assembler.getEmitter().encodeInstruction(Inst, Code, Fixups, STI); in emitInstToData() 31 DF->getContents().append(Code.begin(), Code.end()); in emitInstToData()
|
| /freebsd-src/contrib/llvm-project/llvm/lib/DebugInfo/LogicalView/Core/ |
| H A D | LVLocation.cpp | 31 auto PrintRegisterInfo = [&](LVSmall Code) { in getOperandsDWARFInfo() argument 35 if (dwarf::DW_OP_lit0 <= Code && Code <= dwarf::DW_OP_lit31) { in getOperandsDWARFInfo() 36 Stream << format("lit%d", Code - dwarf::DW_OP_lit0); in getOperandsDWARFInfo() 43 if (dwarf::DW_OP_breg0 <= Code && Code <= dwarf::DW_OP_breg31) { in getOperandsDWARFInfo() 44 std::string RegisterName(getReader().getRegisterName(Code, Operands)); in getOperandsDWARFInfo() 45 Stream << format("breg%d+%d%s", Code - dwarf::DW_OP_breg0, Operands[0], in getOperandsDWARFInfo() 53 if (dwarf::DW_OP_reg0 <= Code && Code <= dwarf::DW_OP_reg31) { in getOperandsDWARFInfo() 54 std::string RegisterName(getReader().getRegisterName(Code, Operands)); in getOperandsDWARFInfo() 55 Stream << format("reg%d%s", Code - dwarf::DW_OP_reg0, in getOperandsDWARFInfo() 60 Stream << format("#0x%02x ", Code) << hexString(Operands[0]) << " " in getOperandsDWARFInfo()
|
| /freebsd-src/contrib/llvm-project/llvm/lib/Target/DirectX/DXILWriter/ |
| H A D | DXILBitcodeWriter.cpp | 150 static void writeStringRecord(BitstreamWriter &Stream, unsigned Code, 600 unsigned Code, StringRef Str, in writeStringRecord() 604 // Code: [strchar x N] in writeStringRecord() 612 Stream.EmitRecord(Code, Vals, AbbrevToUse); in writeStringRecord() 1015 unsigned Code = 0; in writeTypeTable() 1025 Code = bitc::TYPE_CODE_VOID; in writeTypeTable() 1028 Code = bitc::TYPE_CODE_HALF; in writeTypeTable() 1031 Code = bitc::TYPE_CODE_FLOAT; in writeTypeTable() 1034 Code = bitc::TYPE_CODE_DOUBLE; in writeTypeTable() 1037 Code in writeTypeTable() 601 writeStringRecord(BitstreamWriter & Stream,unsigned Code,StringRef Str,unsigned AbbrevToUse) writeStringRecord() argument 1016 unsigned Code = 0; writeTypeTable() local 1991 unsigned Code = -1U; writeConstants() local 2242 unsigned Code = 0; writeInstruction() local 2599 unsigned Code; writeFunctionLevelValueSymbolTable() local [all...] |