Home
last modified time | relevance | path

Searched refs:Code (Results 1 – 25 of 665) sorted by relevance

12345678910>>...27

/freebsd-13.1/contrib/llvm-project/clang/include/clang/AST/
H A DStmtDataCollectors.td2 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-13.1/contrib/llvm-project/clang/lib/ASTMatchers/Dynamic/
H A DParser.cpp134 Code = Code.drop_front(); in getNextToken()
139 Code = Code.drop_front(); in getNextToken()
146 Code = Code.drop_front(); in getNextToken()
151 Code = Code.drop_front(); in getNextToken()
156 Code = Code.drop_front(); in getNextToken()
200 Code = Code.drop_front(TokenLength); in getNextToken()
204 Code = Code.drop_front(1); in getNextToken()
238 Code = Code.drop_front(Length); in consumeNumberLiteral()
286 Code = Code.drop_front(Length + 1); in consumeStringLiteral()
292 Code = Code.drop_front(Code.size()); in consumeStringLiteral()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/Serialization/
H A DASTWriterStmt.cpp36 serialization::StmtCode Code; member in clang::ASTStmtWriter
78 Code = serialization::STMT_NULL; in VisitNullStmt()
107 Code = serialization::STMT_CASE; in VisitCaseStmt()
122 Code = serialization::STMT_LABEL; in VisitLabelStmt()
161 Code = serialization::STMT_IF; in VisitIfStmt()
204 Code = serialization::STMT_WHILE; in VisitWhileStmt()
214 Code = serialization::STMT_DO; in VisitDoStmt()
227 Code = serialization::STMT_FOR; in VisitForStmt()
235 Code = serialization::STMT_GOTO; in VisitGotoStmt()
279 Code = serialization::STMT_DECL; in VisitDeclStmt()
[all …]
H A DASTWriterDecl.cpp39 serialization::DeclCode Code; member in clang::ASTDeclWriter
49 if (!Code) in Emit()
400 Code = serialization::DECL_TYPEDEF; in VisitTypedefDecl()
473 Code = serialization::DECL_ENUM; in VisitEnumDecl()
508 Code = serialization::DECL_RECORD; in VisitRecordDecl()
949 Code = serialization::DECL_FIELD; in VisitFieldDecl()
1080 Code = serialization::DECL_VAR; in VisitVarDecl()
1160 Code = serialization::DECL_EMPTY; in VisitEmptyDecl()
1200 Code = serialization::DECL_BLOCK; in VisitBlockDecl()
1231 Code = serialization::DECL_LABEL; in VisitLabelDecl()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/Tooling/Refactoring/Extract/
H A DExtract.cpp70 CodeRangeASTSelection Code, in initiate() argument
75 if (!Code.isInFunctionLikeBodyOfCode()) in initiate()
79 if (Code.size() == 1) { in initiate()
81 if (isSimpleExpression(dyn_cast<Expr>(Code[0]))) in initiate()
93 return ExtractFunction(std::move(Code), DeclName); in initiate()
100 const Decl *ParentDecl = Code.getFunctionLikeNearestParent(); in createSourceReplacements()
104 SourceRange ExtractedRange(Code[0]->getBeginLoc(), in createSourceReplacements()
105 Code[Code.size() - 1]->getEndLoc()); in createSourceReplacements()
119 bool IsExpr = Code.size() == 1 && isa<Expr>(Code[0]); in createSourceReplacements()
122 ReturnType = cast<Expr>(Code[0])->getType(); in createSourceReplacements()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/Frontend/
H A DTestModuleFileExtension.cpp97 llvm::hash_code Code) const { in hashExtension()
99 Code = llvm::hash_combine(Code, BlockName); in hashExtension()
100 Code = llvm::hash_combine(Code, MajorVersion); in hashExtension()
101 Code = llvm::hash_combine(Code, MinorVersion); in hashExtension()
102 Code = llvm::hash_combine(Code, UserInfo); in hashExtension()
105 return Code; in hashExtension()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Testing/Support/
H A DAnnotations.cpp19 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()
33 Code.reserve(Text.size()); in Annotations()
36 Points[Name.getValueOr("")].push_back(Code.size()); in Annotations()
41 OpenRanges.emplace_back(Name.getValueOr(""), Code.size()); in Annotations()
50 R.End = Code.size(); in Annotations()
61 Code.push_back(Text.front()); in Annotations()
71 "expected exactly one point", Code); in point()
85 "expected exactly one range", Code); in range()
/freebsd-13.1/contrib/bearssl/T0/
H A DWordInterpreted.cs44 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-13.1/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DISDOpcodes.h1388 inline bool isSignedIntSetCC(CondCode Code) { in isSignedIntSetCC() argument
1389 return Code == SETGT || Code == SETGE || Code == SETLT || Code == SETLE; in isSignedIntSetCC()
1394 inline bool isUnsignedIntSetCC(CondCode Code) { in isUnsignedIntSetCC() argument
1395 return Code == SETUGT || Code == SETUGE || Code == SETULT || Code == SETULE; in isUnsignedIntSetCC()
1400 inline bool isIntEqualitySetCC(CondCode Code) { in isIntEqualitySetCC() argument
1401 return Code == SETEQ || Code == SETNE; in isIntEqualitySetCC()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/ASTMatchers/Dynamic/
H A DParser.h207 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-13.1/contrib/llvm-project/clang/lib/Tooling/Inclusions/
H A DHeaderIncludes.cpp41 StringRef FileName, StringRef Code, const IncludeStyle &Style, in getOffsetAfterTokenSequence() argument
44 SourceManagerForFile VirtualSM(FileName, Code); in getOffsetAfterTokenSequence()
82 StringRef Code, in getOffsetAfterHeaderGuardsAndComments() argument
91 FileName, Code, Style, in getOffsetAfterHeaderGuardsAndComments()
161 FileName, Code, Style, in getMaxHeaderInsertionOffset()
268 HeaderIncludes::HeaderIncludes(StringRef FileName, StringRef Code, in HeaderIncludes() argument
270 : FileName(FileName), Code(Code), FirstIncludeOffset(-1), in HeaderIncludes()
284 Code.drop_front(MinInsertOffset).split(Lines, "\n"); in HeaderIncludes()
290 NextLineOffset = std::min(Code.size(), Offset + Line.size() + 1); in HeaderIncludes()
371 assert(InsertOffset <= Code.size()); in insert()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Tooling/Refactoring/Extract/
H A DExtract.h28 CodeRangeASTSelection Code,
34 ExtractFunction(CodeRangeASTSelection Code, Optional<std::string> DeclName) in ExtractFunction() argument
35 : Code(std::move(Code)), in ExtractFunction()
41 CodeRangeASTSelection Code; variable
/freebsd-13.1/contrib/llvm-project/clang/tools/clang-format/
H A DClangFormat.cpp200 static bool fillRanges(MemoryBuffer *Code, in fillRanges() argument
209 FileID ID = createInMemoryFile("<irrelevant>", *Code, Sources, Files, in fillRanges()
246 if (Offsets[i] >= Code->getBufferSize()) { in fillRanges()
254 if (Offsets[i] + Lengths[i] > Code->getBufferSize()) { in fillRanges()
318 const char *StartBuf = Code->getBufferStart(); in emitReplacementWarnings()
372 if (Code->getBufferSize() == 0) in format()
375 StringRef BufStr = Code->getBuffer(); in format()
389 if (fillRanges(Code.get(), Ranges)) in format()
483 std::unique_ptr<llvm::MemoryBuffer> Code; in dumpConfig() local
498 Code = std::move(CodeOrErr.get()); in dumpConfig()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/Interp/
H A DByteCodeEmitter.cpp74 Func->setCode(NextLocalOffset, std::move(Code), std::move(SrcMap), in compileFunc()
88 const size_t Target = Code.size(); in emitLabel()
96 void *Location = Code.data() + Reloc - sizeof(int32_t); in emitLabel()
106 const int64_t Position = Code.size() + sizeof(Opcode) + sizeof(int32_t); in getOffset()
131 if (Code.size() + Size > std::numeric_limits<unsigned>::max()) { in emitOp()
135 Code.insert(Code.end(), Data, Data + Size); in emitOp()
142 SrcMap.emplace_back(Code.size(), SI); in emitOp()
/freebsd-13.1/contrib/byacc/test/
H A Dbtyacc_demo.y16 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-13.1/contrib/llvm-project/clang/lib/Tooling/Refactoring/
H A DAtomicChange.cpp89 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()
301 applyAtomicChanges(llvm::StringRef FilePath, llvm::StringRef Code, in applyAtomicChanges() argument
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/utils/TableGen/GlobalISel/
H A DCodeExpander.h33 StringRef Code; variable
40 CodeExpander(StringRef Code, const CodeExpansions &Expansions,
43 : Code(Code), Expansions(Expansions), Loc(Loc), in Code() argument
H A DCodeExpander.cpp22 StringRef Current = Code; in emit()
62 PrintNote("Code: [{" + Code + "}]"); in emit()
69 PrintNote("Code: [{" + Code + "}]"); in emit()
80 PrintNote("Code: [{" + Code + "}]"); in emit()
/freebsd-13.1/contrib/llvm-project/llvm/lib/TableGen/
H A DStringMatcher.cpp61 StringRef Code = Matches[0]->second; in EmitStringMatcherForChar() local
63 std::pair<StringRef, StringRef> Split = Code.split('\n'); in EmitStringMatcherForChar()
66 Code = Split.second; in EmitStringMatcherForChar()
67 while (!Code.empty()) { in EmitStringMatcherForChar()
68 Split = Code.split('\n'); in EmitStringMatcherForChar()
70 Code = Split.second; in EmitStringMatcherForChar()
H A DTGParser.cpp1001 if (Code == UnOpInit::EMPTY || Code == UnOpInit::SIZE) { in ParseOperation()
1021 if (Code == UnOpInit::HEAD || Code == UnOpInit::TAIL) { in ParseOperation()
1312 if (Code != BinOpInit::ADD && Code != BinOpInit::SUB && in ParseOperation()
1313 Code != BinOpInit::AND && Code != BinOpInit::OR && in ParseOperation()
1314 Code != BinOpInit::XOR && Code != BinOpInit::SRA && in ParseOperation()
1315 Code != BinOpInit::SRL && Code != BinOpInit::SHL && in ParseOperation()
1322 switch (Code) { in ParseOperation()
1350 if (Code == BinOpInit::STRCONCAT || Code == BinOpInit::LISTCONCAT || in ParseOperation()
1351 Code == BinOpInit::CONCAT || Code == BinOpInit::ADD || in ParseOperation()
1352 Code == BinOpInit::AND || Code == BinOpInit::OR || in ParseOperation()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Bitstream/Reader/
H A DBitstreamReader.cpp97 unsigned Code = MaybeCode.get(); in skipRecord() local
107 return Code; in skipRecord()
112 unsigned Code; in skipRecord() local
114 Code = CodeOp.getLiteralValue(); in skipRecord()
124 Code = MaybeCode.get(); in skipRecord()
202 return Code; in skipRecord()
212 uint32_t Code = MaybeCode.get(); in readRecord() local
224 return Code; in readRecord()
232 unsigned Code; in readRecord() local
240 Code = MaybeCode.get(); in readRecord()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/Format/
H A DFormat.cpp2287 Pos = Code.find("\r\n", LastPos); in replaceCRLF()
2293 NewCode += Code.substr(LastPos); in replaceCRLF()
2436 auto Pos = Code.find('\n', SearchFrom); in sortCppIncludes()
2438 Code.substr(Prev, (Pos != StringRef::npos ? Pos : Code.size()) - Prev); in sortCppIncludes()
2607 Code.substr(Prev, (Pos != StringRef::npos ? Pos : Code.size()) - Prev); in sortJavaImports()
2644 bool isMpegTS(StringRef Code) { in isMpegTS() argument
2648 return Code.size() > 188 && Code[0] == 0x47 && Code[188] == 0x47; in isMpegTS()
2651 bool isLikelyXml(StringRef Code) { return Code.ltrim().startswith("<"); } in isLikelyXml() argument
2659 if (isLikelyXml(Code)) in sortIncludes()
2662 isMpegTS(Code)) in sortIncludes()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/MCA/
H A DCodeEmitter.h40 SmallString<256> Code; variable
56 : STI(ST), MAB(AB), MCE(CE), VecOS(Code), Sequence(S), in CodeEmitter()
61 return StringRef(&Code[EI.first], EI.second); in getEncoding()
/freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/
H A DDWARFDebugAbbrev.cpp41 m_idx_offset = abbrevDeclaration.Code(); in extract()
42 else if (prev_abbr_code + 1 != abbrevDeclaration.Code()) { in extract()
46 prev_abbr_code = abbrevDeclaration.Code(); in extract()
59 if (pos->Code() == abbrCode) in GetAbbreviationDeclaration()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Bitcode/Writer/
H A DBitcodeWriter.cpp920 unsigned Code = 0; in writeTypeTable() local
1001 Code = bitc::TYPE_CODE_ARRAY; in writeTypeTable()
2471 unsigned Code = -1U; in writeConstants() local
2474 Code = bitc::CST_CODE_NULL; in writeConstants()
2539 Code = bitc::CST_CODE_DATA; in writeConstants()
2734 unsigned Code = 0; in writeInstruction() local
3246 unsigned Code; in writeFunctionLevelValueSymbolTable() local
3272 unsigned Code; in writeUseList() local
3274 Code = bitc::USELIST_CODE_BB; in writeUseList()
3843 unsigned Code = in writePerModuleFunctionSummaryRecord() local
[all …]

12345678910>>...27