Home
last modified time | relevance | path

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

12345678910>>...30

/freebsd-14.2/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-14.2/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-14.2/contrib/llvm-project/clang/lib/Serialization/
H A DASTWriterStmt.cpp37 serialization::StmtCode Code; member in clang::ASTStmtWriter
135 Code = serialization::STMT_NULL; in VisitNullStmt()
173 Code = serialization::STMT_CASE; in VisitCaseStmt()
188 Code = serialization::STMT_LABEL; in VisitLabelStmt()
228 Code = serialization::STMT_IF; in VisitIfStmt()
271 Code = serialization::STMT_WHILE; in VisitWhileStmt()
281 Code = serialization::STMT_DO; in VisitDoStmt()
294 Code = serialization::STMT_FOR; in VisitForStmt()
302 Code = serialization::STMT_GOTO; in VisitGotoStmt()
346 Code = serialization::STMT_DECL; in VisitDeclStmt()
[all …]
H A DASTWriterDecl.cpp40 serialization::DeclCode Code; member in clang::ASTDeclWriter
50 if (!Code) in Emit()
521 Code = serialization::DECL_ENUM; in VisitEnumDecl()
561 Code = serialization::DECL_RECORD; in VisitRecordDecl()
1023 Code = serialization::DECL_FIELD; in VisitFieldDecl()
1163 Code = serialization::DECL_VAR; in VisitVarDecl()
1249 Code = serialization::DECL_EMPTY; in VisitEmptyDecl()
1289 Code = serialization::DECL_BLOCK; in VisitBlockDecl()
1324 Code = serialization::DECL_LABEL; in VisitLabelDecl()
1377 Code = serialization::DECL_USING; in VisitUsingDecl()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/Refactoring/Extract/
H A DExtract.cpp71 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()
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()
123 ReturnType = cast<Expr>(Code[0])->getType(); in createSourceReplacements()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/AST/Interp/
H A DByteCodeEmitter.cpp147 const size_t Target = Code.size(); in emitLabel()
193 if (Code.size() + Size > std::numeric_limits<unsigned>::max()) { in emit()
199 size_t ValPos = align(Code.size()); in emit()
202 Code.resize(ValPos + Size); in emit()
205 new (Code.data() + ValPos) T(Val); in emit()
208 new (Code.data() + ValPos) uint32_t(ID); in emit()
223 size_t ValPos = align(Code.size()); in emit()
226 Code.resize(ValPos + Size); in emit()
228 Val.serialize(Code.data() + ValPos); in emit()
237 emit(P, Code, Op, Success); in emitOp()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/utils/TableGen/GlobalISel/
H A DCXXPredicates.h49 std::string Code);
51 CXXPredicateCode(std::string Code, unsigned ID);
54 static const CXXPredicateCode &getMatchCode(std::string Code) { in getMatchCode() argument
55 return get(AllCXXMatchCode, std::move(Code)); in getMatchCode()
58 static const CXXPredicateCode &getApplyCode(std::string Code) { in getApplyCode() argument
59 return get(AllCXXApplyCode, std::move(Code)); in getApplyCode()
70 const std::string Code; variable
75 return !StringRef(Code).starts_with("return"); in needsUnreachable()
H A DCXXPredicates.cpp28 std::string Code) { in get() argument
31 const auto CodeHash = hash_value(Code); in get()
37 new CXXPredicateCode(std::move(Code), ID)); in get()
44 CXXPredicateCode::CXXPredicateCode(std::string Code, unsigned ID) in CXXPredicateCode() argument
45 : Code(Code), ID(ID), BaseEnumName("GICombiner" + std::to_string(ID)) {} in CXXPredicateCode()
H A DCodeExpander.h33 StringRef Code; variable
40 CodeExpander(StringRef Code, const CodeExpansions &Expansions,
43 : Code(Code), Expansions(Expansions), Loc(Loc), in Code() function
H A DCodeExpander.cpp21 StringRef Current = Code; in emit()
58 PrintNote("Code: [{" + Code + "}]"); in emit()
65 PrintNote("Code: [{" + Code + "}]"); in emit()
76 PrintNote("Code: [{" + Code + "}]"); in emit()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DISDOpcodes.h1539 inline bool isSignedIntSetCC(CondCode Code) { in isSignedIntSetCC() argument
1540 return Code == SETGT || Code == SETGE || Code == SETLT || Code == SETLE; in isSignedIntSetCC()
1545 inline bool isUnsignedIntSetCC(CondCode Code) { in isUnsignedIntSetCC() argument
1546 return Code == SETUGT || Code == SETUGE || Code == SETULT || Code == SETULE; in isUnsignedIntSetCC()
1551 inline bool isIntEqualitySetCC(CondCode Code) { in isIntEqualitySetCC() argument
1552 return Code == SETEQ || Code == SETNE; in isIntEqualitySetCC()
1557 inline bool isFPEqualitySetCC(CondCode Code) { in isFPEqualitySetCC() argument
1558 return Code == SETOEQ || Code == SETONE || Code == SETUEQ || Code == SETUNE; in isFPEqualitySetCC()
/freebsd-14.2/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-14.2/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-14.2/contrib/llvm-project/clang/include/clang/Testing/
H A DTestAST.h36 TestInputs(StringRef Code) : Code(Code) {} in TestInputs()
39 std::string Code; member
76 TestAST(StringRef Code) : TestAST(TestInputs(Code)) {} in TestAST() argument
/freebsd-14.2/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()
83 StringRef Code, in getOffsetAfterHeaderGuardsAndComments() argument
92 FileName, Code, Style, in getOffsetAfterHeaderGuardsAndComments()
162 FileName, Code, Style, in getMaxHeaderInsertionOffset()
271 HeaderIncludes::HeaderIncludes(StringRef FileName, StringRef Code, in HeaderIncludes() argument
273 : FileName(FileName), Code(Code), FirstIncludeOffset(-1), in HeaderIncludes()
287 Code.drop_front(MinInsertOffset).split(Lines, "\n"); in HeaderIncludes()
293 NextLineOffset = std::min(Code.size(), Offset + Line.size() + 1); in HeaderIncludes()
381 assert(InsertOffset <= Code.size()); in insert()
[all …]
H A DHeaderAnalysis.cpp83 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-14.2/contrib/llvm-project/clang/include/clang/Tooling/Refactoring/Extract/
H A DExtract.h29 initiate(RefactoringRuleContext &Context, CodeRangeASTSelection Code,
35 ExtractFunction(CodeRangeASTSelection Code, in ExtractFunction() argument
37 : Code(std::move(Code)), in ExtractFunction()
43 CodeRangeASTSelection Code; variable
/freebsd-14.2/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-14.2/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-14.2/contrib/llvm-project/clang/tools/clang-format/
H A DClangFormat.cpp229 static bool fillRanges(MemoryBuffer *Code, in fillRanges() argument
238 FileID ID = createInMemoryFile("<irrelevant>", *Code, Sources, Files, in fillRanges()
279 if (Offsets[i] >= Code->getBufferSize()) { in fillRanges()
287 if (Offsets[i] + Lengths[i] > Code->getBufferSize()) { in fillRanges()
350 const char *StartBuf = Code->getBufferStart(); in emitReplacementWarnings()
418 if (Code->getBufferSize() == 0) in format()
421 StringRef BufStr = Code->getBuffer(); in format()
435 if (fillRanges(Code.get(), Ranges)) in format()
550 std::unique_ptr<llvm::MemoryBuffer> Code; in dumpConfig() local
561 Code = std::move(CodeOrErr.get()); in dumpConfig()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Testing/Annotations/
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()
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-14.2/contrib/llvm-project/llvm/lib/TableGen/
H A DStringMatcher.cpp62 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-14.2/contrib/llvm-project/llvm/lib/MC/
H A DMCSPIRVStreamer.cpp23 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-14.2/contrib/llvm-project/llvm/lib/DebugInfo/LogicalView/Core/
H A DLVLocation.cpp31 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-14.2/contrib/llvm-project/llvm/lib/Target/DirectX/DXILWriter/
H A DDXILBitcodeWriter.cpp1016 unsigned Code = 0; in writeTypeTable() local
1026 Code = bitc::TYPE_CODE_VOID; in writeTypeTable()
1029 Code = bitc::TYPE_CODE_HALF; in writeTypeTable()
1032 Code = bitc::TYPE_CODE_FLOAT; in writeTypeTable()
1991 unsigned Code = -1U; in writeConstants() local
1994 Code = bitc::CST_CODE_NULL; in writeConstants()
1996 Code = bitc::CST_CODE_UNDEF; in writeConstants()
2016 Code = bitc::CST_CODE_FLOAT; in writeConstants()
2064 Code = bitc::CST_CODE_DATA; in writeConstants()
2242 unsigned Code = 0; in writeInstruction() local
[all …]

12345678910>>...30