Home
last modified time | relevance | path

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

12345678910>>...29

/freebsd/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/contrib/llvm-project/clang/lib/Serialization/
H A DASTWriterStmt.cpp37 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 = serialization::STMT_ATTRIBUTED; in VisitAttributedStmt()
[all …]
H A DASTWriterDecl.cpp40 serialization::DeclCode Code; member in clang::ASTDeclWriter
49 Code((serialization::DeclCode)0), AbbrevToUse(0), in ASTDeclWriter()
53 if (!Code) in Emit()
56 return Record.Emit(Code, AbbrevToUse); in Emit()
421 Code = serialization::DECL_PRAGMA_COMMENT; in VisitPragmaCommentDecl()
433 Code = serialization::DECL_PRAGMA_DETECT_MISMATCH; in VisitPragmaDetectMismatchDecl()
477 Code = serialization::DECL_TYPEDEF; in VisitTypedefDecl()
483 Code = serialization::DECL_TYPEALIAS; in VisitTypeAliasDecl()
556 Code = serialization::DECL_ENUM; in VisitEnumDecl()
596 Code = serialization::DECL_RECORD; in VisitRecordDecl()
[all …]
/freebsd/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()
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/contrib/llvm-project/clang/lib/AST/Interp/
H A DByteCodeEmitter.cpp191 Func->setCode(NextLocalOffset, std::move(Code), std::move(SrcMap), in compileFunc()
205 const size_t Target = Code.size(); in emitLabel()
214 void *Location = Code.data() + Reloc - align(sizeof(int32_t)); in emitLabel()
226 Code.size() + align(sizeof(Opcode)) + align(sizeof(int32_t)); in getOffset()
242 static void emit(Program &P, std::vector<std::byte> &Code, const T &Val, in emit() argument
251 if (Code.size() + Size > std::numeric_limits<unsigned>::max()) { in emit()
257 size_t ValPos = align(Code.size()); in emit()
260 Code.resize(ValPos + Size); in emit()
263 new (Code.data() + ValPos) T(Val); in emit()
266 new (Code.data() + ValPos) uint32_t(ID); in emit()
[all …]
/freebsd/contrib/llvm-project/llvm/utils/TableGen/Common/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 &getCustomActionCode(std::string Code) { in getCustomActionCode() argument
59 return get(AllCXXCustomActionCode, std::move(Code)); in getCustomActionCode()
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() argument
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/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DISDOpcodes.h1607 inline bool isSignedIntSetCC(CondCode Code) { in isSignedIntSetCC() argument
1608 return Code == SETGT || Code == SETGE || Code == SETLT || Code == SETLE; in isSignedIntSetCC()
1613 inline bool isUnsignedIntSetCC(CondCode Code) { in isUnsignedIntSetCC() argument
1614 return Code == SETUGT || Code == SETUGE || Code == SETULT || Code == SETULE; in isUnsignedIntSetCC()
1619 inline bool isIntEqualitySetCC(CondCode Code) { in isIntEqualitySetCC() argument
1620 return Code == SETEQ || Code == SETNE; in isIntEqualitySetCC()
1625 inline bool isFPEqualitySetCC(CondCode Code) { in isFPEqualitySetCC() argument
1626 return Code == SETOEQ || Code == SETONE || Code == SETUEQ || Code == SETUNE; in isFPEqualitySetCC()
/freebsd/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/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/contrib/llvm-project/clang/include/clang/Testing/
H A DTestAST.h36 TestInputs(StringRef Code) : Code(Code) {} in TestInputs()
39 std::string Code; member
80 TestAST(StringRef Code) : TestAST(TestInputs(Code)) {} in TestAST() argument
/freebsd/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()
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() argument
283 : FileName(FileName), Code(Code), FirstIncludeOffset(-1), in HeaderIncludes()
285 getOffsetAfterHeaderGuardsAndComments(FileName, Code, Style)), in HeaderIncludes()
288 FileName, Code.drop_front(MinInsertOffset), Style)), in HeaderIncludes()
[all …]
/freebsd/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/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/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()
144 createReplacementsForHeaders(llvm::StringRef FilePath, llvm::StringRef Code, in createReplacementsForHeaders() argument
[all …]
/freebsd/contrib/llvm-project/clang/tools/clang-format/
H A DClangFormat.cpp238 static bool fillRanges(MemoryBuffer *Code, in fillRanges() argument
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() argument
360 const char *StartBuf = Code->getBufferStart(); in emitReplacementWarnings()
428 std::unique_ptr<llvm::MemoryBuffer> Code = std::move(CodeOrErr.get()); in format() local
429 if (Code->getBufferSize() == 0) in format()
432 StringRef BufStr = Code->getBuffer(); in format()
446 if (fillRanges(Code.get(), Ranges)) in format()
[all …]
/freebsd/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/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()
H A DTGParser.cpp1094 case tgtok::Code: in ParseType()
1201 UnOpInit::UnaryOp Code; in ParseOperation() local
1208 Code = UnOpInit::CAST; in ParseOperation()
1220 Code = UnOpInit::REPR; in ParseOperation()
1225 Code = UnOpInit::TOLOWER; in ParseOperation()
1230 Code = UnOpInit::TOUPPER; in ParseOperation()
1235 Code = UnOpInit::NOT; in ParseOperation()
1240 Code = UnOpInit::LOG2; in ParseOperation()
1245 Code = UnOpInit::HEAD; in ParseOperation()
1249 Code = UnOpInit::TAIL; in ParseOperation()
[all …]
/freebsd/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/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/contrib/llvm-project/llvm/lib/Target/DirectX/DXILWriter/
H A DDXILBitcodeWriter.cpp150 static void writeStringRecord(BitstreamWriter &Stream, unsigned Code,
600 unsigned Code, StringRef Str, in writeStringRecord() argument
612 Stream.EmitRecord(Code, Vals, AbbrevToUse); in writeStringRecord()
1015 unsigned Code = 0; in writeTypeTable() local
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 = bitc::TYPE_CODE_X86_FP80; in writeTypeTable()
1040 Code = bitc::TYPE_CODE_FP128; in writeTypeTable()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Bitstream/Reader/
H A DBitstreamReader.cpp102 unsigned Code = MaybeCode.get(); in skipRecord() local
112 return Code; in skipRecord()
121 unsigned Code; in skipRecord() local
123 Code = CodeOp.getLiteralValue(); in skipRecord()
133 Code = MaybeCode.get(); in skipRecord()
211 return Code; in skipRecord()
221 uint32_t Code = MaybeCode.get(); in readRecord() local
237 return Code; in readRecord()
248 unsigned Code; in readRecord() local
250 Code = CodeOp.getLiteralValue(); in readRecord()
[all …]

12345678910>>...29