Home
last modified time | relevance | path

Searched full:emitter (Results 1 – 25 of 260) sorted by relevance

1234567891011

/freebsd/contrib/libyaml/src/
H A Demitter.c8 #define FLUSH(emitter) \ argument
9 ((emitter->buffer.pointer+5 < emitter->buffer.end) \
10 || yaml_emitter_flush(emitter))
16 #define PUT(emitter,value) \ argument
17 (FLUSH(emitter) \
18 && (*(emitter->buffer.pointer++) = (yaml_char_t)(value), \
19 emitter->column++, \
26 #define PUT_BREAK(emitter) \ argument
27 (FLUSH(emitter) \
28 && ((emitter->line_break == YAML_CR_BREAK ? \
[all …]
H A Ddumper.c9 yaml_emitter_open(yaml_emitter_t *emitter);
12 yaml_emitter_close(yaml_emitter_t *emitter);
15 yaml_emitter_dump(yaml_emitter_t *emitter, yaml_document_t *document);
22 yaml_emitter_delete_document_and_anchors(yaml_emitter_t *emitter);
29 yaml_emitter_anchor_node(yaml_emitter_t *emitter, int index);
32 yaml_emitter_generate_anchor(yaml_emitter_t *emitter, int anchor_id);
40 yaml_emitter_dump_node(yaml_emitter_t *emitter, int index);
43 yaml_emitter_dump_alias(yaml_emitter_t *emitter, yaml_char_t *anchor);
46 yaml_emitter_dump_scalar(yaml_emitter_t *emitter, yaml_node_t *node,
50 yaml_emitter_dump_sequence(yaml_emitter_t *emitter, yaml_node_t *node,
[all …]
H A Dwriter.c9 yaml_emitter_set_writer_error(yaml_emitter_t *emitter, const char *problem);
12 yaml_emitter_flush(yaml_emitter_t *emitter);
19 yaml_emitter_set_writer_error(yaml_emitter_t *emitter, const char *problem) in yaml_emitter_set_writer_error() argument
21 emitter->error = YAML_WRITER_ERROR; in yaml_emitter_set_writer_error()
22 emitter->problem = problem; in yaml_emitter_set_writer_error()
32 yaml_emitter_flush(yaml_emitter_t *emitter) in yaml_emitter_flush() argument
36 assert(emitter); /* Non-NULL emitter object is expected. */ in yaml_emitter_flush()
37 assert(emitter->write_handler); /* Write handler must be set. */ in yaml_emitter_flush()
38 assert(emitter->encoding); /* Output encoding must be set. */ in yaml_emitter_flush()
40 emitter->buffer.last = emitter->buffer.pointer; in yaml_emitter_flush()
[all …]
H A Dapi.c351 * Create a new emitter object.
355 yaml_emitter_initialize(yaml_emitter_t *emitter) in yaml_emitter_initialize() argument
357 assert(emitter); /* Non-NULL emitter object expected. */ in yaml_emitter_initialize()
359 memset(emitter, 0, sizeof(yaml_emitter_t)); in yaml_emitter_initialize()
360 if (!BUFFER_INIT(emitter, emitter->buffer, OUTPUT_BUFFER_SIZE)) in yaml_emitter_initialize()
362 if (!BUFFER_INIT(emitter, emitter->raw_buffer, OUTPUT_RAW_BUFFER_SIZE)) in yaml_emitter_initialize()
364 if (!STACK_INIT(emitter, emitter->states, yaml_emitter_state_t*)) in yaml_emitter_initialize()
366 if (!QUEUE_INIT(emitter, emitter->events, INITIAL_QUEUE_SIZE, yaml_event_t*)) in yaml_emitter_initialize()
368 if (!STACK_INIT(emitter, emitter->indents, int*)) in yaml_emitter_initialize()
370 if (!STACK_INIT(emitter, emitter->tag_directives, yaml_tag_directive_t*)) in yaml_emitter_initialize()
[all …]
/freebsd/contrib/jemalloc/include/jemalloc/internal/
H A Demitter.h81 emitter_outputs_json(emitter_t *emitter) { in emitter_printf() argument
82 return emitter->output == emitter_output_json || in emitter_printf()
83 emitter->output == emitter_output_json_compact; in emitter_printf()
86 /* Internal convenience function. Write to the emitter the given string. */ in emitter_printf()
89 emitter_printf(emitter_t *emitter, const char *format, ...) {
93 malloc_vcprintf(emitter->write_cb, emitter->cbopaque, format, ap); in emitter_gen_fmt()
125 emitter_print_value(emitter_t *emitter, emitter_justify_t justify, int width, in emitter_print_value()
140 emitter_printf(emitter, \ in emitter_print_value()
146 emitter_printf(emitter, in emitter_print_value()
117 emitter_print_value(emitter_t * emitter,emitter_justify_t justify,int width,emitter_type_t value_type,const void * value) emitter_print_value() argument
184 emitter_nest_inc(emitter_t * emitter) emitter_nest_inc() argument
190 emitter_nest_dec(emitter_t * emitter) emitter_nest_dec() argument
196 emitter_indent(emitter_t * emitter) emitter_indent() argument
211 emitter_json_key_prefix(emitter_t * emitter) emitter_json_key_prefix() argument
224 emitter_init(emitter_t * emitter,emitter_output_t emitter_output,void (* write_cb)(void *,const char *),void * cbopaque) emitter_init() argument
242 emitter_json_key(emitter_t * emitter,const char * json_key) emitter_json_key() argument
251 emitter_json_value(emitter_t * emitter,emitter_type_t value_type,const void * value) emitter_json_value() argument
263 emitter_json_kv(emitter_t * emitter,const char * json_key,emitter_type_t value_type,const void * value) emitter_json_kv() argument
270 emitter_json_array_begin(emitter_t * emitter) emitter_json_array_begin() argument
280 emitter_json_array_kv_begin(emitter_t * emitter,const char * json_key) emitter_json_array_kv_begin() argument
286 emitter_json_array_end(emitter_t * emitter) emitter_json_array_end() argument
297 emitter_json_object_begin(emitter_t * emitter) emitter_json_object_begin() argument
307 emitter_json_object_kv_begin(emitter_t * emitter,const char * json_key) emitter_json_object_kv_begin() argument
313 emitter_json_object_end(emitter_t * emitter) emitter_json_object_end() argument
328 emitter_table_dict_begin(emitter_t * emitter,const char * table_key) emitter_table_dict_begin() argument
337 emitter_table_dict_end(emitter_t * emitter) emitter_table_dict_end() argument
344 emitter_table_kv_note(emitter_t * emitter,const char * table_key,emitter_type_t value_type,const void * value,const char * table_note_key,emitter_type_t table_note_value_type,const void * table_note_value) emitter_table_kv_note() argument
365 emitter_table_kv(emitter_t * emitter,const char * table_key,emitter_type_t value_type,const void * value) emitter_table_kv() argument
375 emitter_table_printf(emitter_t * emitter,const char * format,...) emitter_table_printf() argument
385 emitter_table_row(emitter_t * emitter,emitter_row_t * row) emitter_table_row() argument
419 emitter_kv_note(emitter_t * emitter,const char * json_key,const char * table_key,emitter_type_t value_type,const void * value,const char * table_note_key,emitter_type_t table_note_value_type,const void * table_note_value) emitter_kv_note() argument
434 emitter_kv(emitter_t * emitter,const char * json_key,const char * table_key,emitter_type_t value_type,const void * value) emitter_kv() argument
441 emitter_dict_begin(emitter_t * emitter,const char * json_key,const char * table_header) emitter_dict_begin() argument
452 emitter_dict_end(emitter_t * emitter) emitter_dict_end() argument
461 emitter_begin(emitter_t * emitter) emitter_begin() argument
478 emitter_end(emitter_t * emitter) emitter_end() argument
[all...]
/freebsd/contrib/lyaml/ext/yaml/
H A Demitter.c2 * emitter.c, LibYAML emitter binding for Lua
32 yaml_emitter_t emitter; member
47 emit_STREAM_START (lua_State *L, lyaml_emitter *emitter) in emit_STREAM_START() argument
61 emitter->error++; in emit_STREAM_START()
62 luaL_addsize (&emitter->errbuff, in emit_STREAM_START()
63 sprintf (luaL_prepbuffer (&emitter->errbuff), in emit_STREAM_START()
70 if (emitter->error != 0) in emit_STREAM_START()
74 return yaml_emitter_emit (&emitter->emitter, &event); in emit_STREAM_START()
80 emit_STREAM_END (lua_State *L, lyaml_emitter *emitter) in emit_STREAM_END() argument
84 return yaml_emitter_emit (&emitter->emitter, &event); in emit_STREAM_END()
[all …]
/freebsd/contrib/jemalloc/src/
H A Dstats.c6 #include "jemalloc/internal/emitter.h"
242 mutex_stats_emit(emitter_t *emitter, emitter_row_t *row, in mutex_stats_emit()
246 emitter_table_row(emitter, row); in mutex_stats_emit()
260 emitter_json_kv(emitter, #counter, EMITTER_TYPE_##type, \
303 stats_arena_bins_print(emitter_t *emitter, bool mutex, unsigned i, in stats_arena_bins_print()
380 emitter_table_printf(emitter, "bins:"); in stats_arena_bins_print()
381 emitter_table_row(emitter, &header_row); in stats_arena_bins_print()
382 emitter_json_array_kv_begin(emitter, "bins"); in stats_arena_bins_print()
429 emitter_table_printf(emitter, in stats_arena_bins_print()
433 if (in_gap && !emitter_outputs_json(emitter)) { in stats_arena_bins_print()
225 mutex_stats_emit(emitter_t * emitter,emitter_row_t * row,emitter_col_t col_uint64_t[mutex_prof_num_uint64_t_counters],emitter_col_t col_uint32_t[mutex_prof_num_uint32_t_counters]) mutex_stats_emit() argument
270 stats_arena_bins_print(emitter_t * emitter,bool mutex,unsigned i,uint64_t uptime) stats_arena_bins_print() argument
470 stats_arena_lextents_print(emitter_t * emitter,unsigned i,uint64_t uptime) stats_arena_lextents_print() argument
548 stats_arena_extents_print(emitter_t * emitter,unsigned i) stats_arena_extents_print() argument
636 stats_arena_mutexes_print(emitter_t * emitter,unsigned arena_ind,uint64_t uptime) stats_arena_mutexes_print() argument
661 stats_arena_print(emitter_t * emitter,unsigned i,bool bins,bool large,bool mutex,bool extents) stats_arena_print() argument
985 stats_general_print(emitter_t * emitter) stats_general_print() argument
1233 stats_print_helper(emitter_t * emitter,bool merged,bool destroyed,bool unmerged,bool bins,bool large,bool mutex,bool extents) stats_print_helper() argument
1438 emitter_t emitter; stats_print() local
[all...]
/freebsd/contrib/libyaml/tests/
H A Dexample-deconstructor.c17 yaml_emitter_t emitter; in main() local
24 memset(&emitter, 0, sizeof(emitter)); in main()
68 /* Initialize the parser and emitter objects. */ in main()
75 if (!yaml_emitter_initialize(&emitter)) { in main()
77 fprintf(stderr, "Could not inialize the emitter object\n"); in main()
85 /* Set the emitter parameters. */ in main()
87 yaml_emitter_set_output_file(&emitter, stdout); in main()
89 yaml_emitter_set_canonical(&emitter, canonical); in main()
90 yaml_emitter_set_unicode(&emitter, unicode); in main()
96 if (!yaml_emitter_emit(&emitter, &output_event)) in main()
[all …]
H A Dexample-reformatter.c17 yaml_emitter_t emitter; in main() local
23 memset(&emitter, 0, sizeof(emitter)); in main()
66 /* Initialize the parser and emitter objects. */ in main()
71 if (!yaml_emitter_initialize(&emitter)) in main()
78 /* Set the emitter parameters. */ in main()
80 yaml_emitter_set_output_file(&emitter, stdout); in main()
82 yaml_emitter_set_canonical(&emitter, canonical); in main()
83 yaml_emitter_set_unicode(&emitter, unicode); in main()
102 if (!yaml_emitter_emit(&emitter, &event)) in main()
107 yaml_emitter_delete(&emitter); in main()
[all …]
H A Dexample-reformatter-alt.c17 yaml_emitter_t emitter; in main() local
23 memset(&emitter, 0, sizeof(emitter)); in main()
66 /* Initialize the parser and emitter objects. */ in main()
71 if (!yaml_emitter_initialize(&emitter)) in main()
78 /* Set the emitter parameters. */ in main()
80 yaml_emitter_set_output_file(&emitter, stdout); in main()
82 yaml_emitter_set_canonical(&emitter, canonical); in main()
83 yaml_emitter_set_unicode(&emitter, unicode); in main()
102 if (!yaml_emitter_dump(&emitter, &document)) in main()
107 yaml_emitter_delete(&emitter); in main()
[all …]
H A Drun-emitter-test-suite.c17 yaml_emitter_t emitter; in main() local
74 if (!yaml_emitter_initialize(&emitter)) { in main()
75 fprintf(stderr, "Could not initalize the emitter object\n"); in main()
78 yaml_emitter_set_output_file(&emitter, stdout); in main()
79 yaml_emitter_set_canonical(&emitter, canonical); in main()
80 yaml_emitter_set_unicode(&emitter, unicode); in main()
153 if (!yaml_emitter_emit(&emitter, &event)) in main()
158 yaml_emitter_delete(&emitter); in main()
164 switch (emitter.error) { in main()
169 fprintf(stderr, "Writer error: %s\n", emitter.problem); in main()
[all …]
H A DReadMe.md1 # Testing the Parser and Emitter
3 There are several programs to test the parser and emitter.
33 ## Emitter section in Testing the Parser and Emitter
35 run-emitter-test-suite takes yaml-test-suite event format and emits YAML.
37 ./tests/run-parser-test-suite ... | ./tests/run-emitter-test-suite
61 ./tests/run-emitter-test-suite --flow keep
H A Dexample-deconstructor-alt.c17 yaml_emitter_t emitter; in main() local
26 memset(&emitter, 0, sizeof(emitter)); in main()
70 /* Initialize the parser and emitter objects. */ in main()
77 if (!yaml_emitter_initialize(&emitter)) { in main()
79 fprintf(stderr, "Could not inialize the emitter object\n"); in main()
87 /* Set the emitter parameters. */ in main()
89 yaml_emitter_set_output_file(&emitter, stdout); in main()
91 yaml_emitter_set_canonical(&emitter, canonical); in main()
92 yaml_emitter_set_unicode(&emitter, unicode); in main()
96 if (!yaml_emitter_open(&emitter)) in main()
[all …]
H A Drun-dumper.c229 yaml_emitter_t emitter; in main() local
251 assert(yaml_emitter_initialize(&emitter)); in main()
253 yaml_emitter_set_canonical(&emitter, 1); in main()
256 yaml_emitter_set_unicode(&emitter, 1); in main()
258 yaml_emitter_set_output_string(&emitter, buffer, BUFFER_SIZE, &written); in main()
259 yaml_emitter_open(&emitter); in main()
272 assert(yaml_emitter_dump(&emitter, &document) || in main()
273 … (yaml_emitter_flush(&emitter) && print_output(argv[number], buffer, written, count))); in main()
283 yaml_emitter_close(&emitter); in main()
284 yaml_emitter_delete(&emitter); in main()
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/
H A DCompiler.h31 template <class Emitter> class LocalScope;
32 template <class Emitter> class DestructorScope;
33 template <class Emitter> class VariableScope;
34 template <class Emitter> class DeclScope;
35 template <class Emitter> class InitLinkScope;
36 template <class Emitter> class InitStackScope;
37 template <class Emitter> class OptionScope;
38 template <class Emitter> class ArrayIndexScope;
39 template <class Emitter> class SourceLocScope;
40 template <class Emitter> class LoopScope;
[all …]
H A DCompiler.cpp28 template <class Emitter> class DeclScope final : public LocalScope<Emitter> {
30 DeclScope(Compiler<Emitter> *Ctx, const ValueDecl *VD) in DeclScope()
31 : LocalScope<Emitter>(Ctx, VD), Scope(Ctx->P, VD), in DeclScope()
56 template <class Emitter> class OptionScope final {
59 OptionScope(Compiler<Emitter> *Ctx, bool NewDiscardResult, in OptionScope()
74 Compiler<Emitter> *Ctx;
80 template <class Emitter>
81 bool InitLink::emit(Compiler<Emitter> *Ctx, const Expr *E) const { in emit()
99 template <class Emitter> class LabelScope {
104 LabelScope(Compiler<Emitter> *Ctx) : Ctx(Ctx) {} in LabelScope()
[all …]
/freebsd/contrib/libyaml/include/
H A Dyaml.h123 /** Many bad things could happen with the parser and emitter. */
167 /** Let the emitter choose the style. */
186 /** Let the emitter choose the style. */
197 /** Let the emitter choose the style. */
508 * ignored by the emitter.
534 * ignored by the emitter.
560 * The @a style argument may be ignored by the emitter.
589 * The @a style argument may be ignored by the emitter.
621 * The @a style argument may be ignored by the emitter.
886 * The @a style argument may be ignored by the emitter.
[all …]
/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DTargetRegistry.cpp27 std::unique_ptr<MCObjectWriter> OW, std::unique_ptr<MCCodeEmitter> Emitter, in createMCObjectStreamer() argument
37 std::move(Emitter)); in createMCObjectStreamer()
42 std::move(Emitter)); in createMCObjectStreamer()
45 std::move(Emitter), false); in createMCObjectStreamer()
50 std::move(Emitter)); in createMCObjectStreamer()
53 std::move(Emitter)); in createMCObjectStreamer()
57 std::move(Emitter)); in createMCObjectStreamer()
61 std::move(Emitter)); in createMCObjectStreamer()
65 std::move(Emitter)); in createMCObjectStreamer()
69 std::move(Emitter)); in createMCObjectStreamer()
[all …]
/freebsd/contrib/lyaml/spec/
H A Dspec_helper.lua47 -- Output a list of event tables to the given emitter.
48 function emitevents(emitter, list)
51 ok, msg = emitter.emit {type=v}
53 ok, msg = emitter.emit(v)
67 -- Create a new emitter and send STREAM_START, listed events and STREAM_END.
69 local emitter = yaml.emitter()
70 emitter.emit {type='STREAM_START'}
71 emitevents(emitter, list)
72 local _, msg = emitter.emit {type='STREAM_END'}
/freebsd/contrib/llvm-project/llvm/lib/TableGen/
H A DTableGenBackendSkeleton.cpp16 #define DEBUG_TYPE "skeleton-emitter"
38 }; // emitter class
52 static TableGen::Emitter::OptClass<SkeletonEmitter>
57 // The emitter entry may be private scope.
59 // Instantiate the emitter class and invoke run(). in EmitSkeleton()
63 static TableGen::Emitter::Opt Y("gen-skeleton-entry", EmitSkeleton,
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/MCTargetDesc/
H A DPPCXCOFFStreamer.cpp37 std::unique_ptr<MCCodeEmitter> Emitter) in PPCXCOFFStreamer() argument
39 std::move(Emitter)) {} in PPCXCOFFStreamer()
60 PPCMCCodeEmitter *Emitter = in emitInstruction() local
64 if (!Emitter->isPrefixedInstruction(Inst)) { in emitInstruction()
75 std::unique_ptr<MCCodeEmitter> Emitter) { in createPPCXCOFFStreamer() argument
77 std::move(Emitter)); in createPPCXCOFFStreamer()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprConstant.cpp562 ConstantEmitter &Emitter; member in __anon9d6f04f10111::ConstStructBuilder
567 static llvm::Constant *BuildStruct(ConstantEmitter &Emitter,
570 static llvm::Constant *BuildStruct(ConstantEmitter &Emitter,
572 static bool UpdateStruct(ConstantEmitter &Emitter,
577 ConstStructBuilder(ConstantEmitter &Emitter, in ConstStructBuilder() argument
579 : CGM(Emitter.CGM), Emitter(Emitter), Builder(Builder), in ConstStructBuilder()
653 static bool EmitDesignatedInitUpdater(ConstantEmitter &Emitter, in EmitDesignatedInitUpdater() argument
658 return ConstStructBuilder::UpdateStruct(Emitter, Const, Offset, Updater); in EmitDesignatedInitUpdater()
660 auto CAT = Emitter.CGM.getContext().getAsConstantArrayType(Type); in EmitDesignatedInitUpdater()
664 CharUnits ElemSize = Emitter.CGM.getContext().getTypeSizeInChars(ElemType); in EmitDesignatedInitUpdater()
[all …]
/freebsd/contrib/llvm-project/llvm/utils/TableGen/
H A DDisassemblerEmitter.cpp24 /// X86 Disassembler Emitter
29 /// The X86 disassembler emitter is part of the X86 Disassembler, which is
32 /// The emitter produces the tables that the disassembler uses to translate
33 /// instructions. The emitter generates the following tables:
63 /// emitter reports a conflict and dies.
81 /// DisassemblerEmitter.cpp contains the implementation for the emitter,
136 static TableGen::Emitter::Opt X("gen-disassembler", EmitDisassembler,
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/MCTargetDesc/
H A DAMDGPUELFStreamer.cpp24 std::unique_ptr<MCCodeEmitter> Emitter) in AMDGPUELFStreamer() argument
26 std::move(Emitter)) {} in AMDGPUELFStreamer()
35 std::unique_ptr<MCCodeEmitter> Emitter) { in createAMDGPUELFStreamer() argument
37 std::move(Emitter)); in createAMDGPUELFStreamer()
/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/MCTargetDesc/
H A DAVRMCELFStreamer.h31 std::unique_ptr<MCCodeEmitter> Emitter) in AVRMCELFStreamer() argument
33 std::move(Emitter)), in AVRMCELFStreamer()
38 std::unique_ptr<MCCodeEmitter> Emitter, in AVRMCELFStreamer() argument
41 std::move(Emitter)), in AVRMCELFStreamer()

1234567891011