1Clflags(3)                       OCaml library                      Clflags(3)
2
3
4

NAME

6       Clflags - Command line flags
7

Module

9       Module   Clflags
10

Documentation

12       Module Clflags
13        : sig end
14
15
16       Command line flags
17
18
19
20
21
22       module Int_arg_helper : sig end
23
24
25       Optimization parameters represented as ints indexed by round number.
26
27
28       module Float_arg_helper : sig end
29
30
31       Optimization parameters represented as floats indexed by round number.
32
33
34       type inlining_arguments = {
35        inline_call_cost : int option ;
36        inline_alloc_cost : int option ;
37        inline_prim_cost : int option ;
38        inline_branch_cost : int option ;
39        inline_indirect_cost : int option ;
40        inline_lifting_benefit : int option ;
41        inline_branch_factor : float option ;
42        inline_max_depth : int option ;
43        inline_max_unroll : int option ;
44        inline_threshold : float option ;
45        inline_toplevel_threshold : int option ;
46        }
47
48
49
50
51
52       val classic_arguments : inlining_arguments
53
54
55
56
57       val o1_arguments : inlining_arguments
58
59
60
61
62       val o2_arguments : inlining_arguments
63
64
65
66
67       val o3_arguments : inlining_arguments
68
69
70
71
72       val  use_inlining_arguments_set  :  ?round:int -> inlining_arguments ->
73       unit
74
75       Set all the inlining arguments for a round.  The default is set  if  no
76       round is provided.
77
78
79
80       val objfiles : string list ref
81
82
83
84
85       val ccobjs : string list ref
86
87
88
89
90       val dllibs : string list ref
91
92
93
94
95       val compile_only : bool ref
96
97
98
99
100       val output_name : string option ref
101
102
103
104
105       val include_dirs : string list ref
106
107
108
109
110       val no_std_include : bool ref
111
112
113
114
115       val print_types : bool ref
116
117
118
119
120       val make_archive : bool ref
121
122
123
124
125       val debug : bool ref
126
127
128
129
130       val debug_full : bool ref
131
132
133
134
135       val unsafe : bool ref
136
137
138
139
140       val use_linscan : bool ref
141
142
143
144
145       val link_everything : bool ref
146
147
148
149
150       val custom_runtime : bool ref
151
152
153
154
155       val no_check_prims : bool ref
156
157
158
159
160       val bytecode_compatible_32 : bool ref
161
162
163
164
165       val output_c_object : bool ref
166
167
168
169
170       val output_complete_object : bool ref
171
172
173
174
175       val output_complete_executable : bool ref
176
177
178
179
180       val all_ccopts : string list ref
181
182
183
184
185       val classic : bool ref
186
187
188
189
190       val nopervasives : bool ref
191
192
193
194
195       val match_context_rows : int ref
196
197
198
199
200       val open_modules : string list ref
201
202
203
204
205       val preprocessor : string option ref
206
207
208
209
210       val all_ppx : string list ref
211
212
213
214
215       val absname : bool ref
216
217
218
219
220       val annotations : bool ref
221
222
223
224
225       val binary_annotations : bool ref
226
227
228
229
230       val use_threads : bool ref
231
232
233
234
235       val noassert : bool ref
236
237
238
239
240       val verbose : bool ref
241
242
243
244
245       val noprompt : bool ref
246
247
248
249
250       val nopromptcont : bool ref
251
252
253
254
255       val init_file : string option ref
256
257
258
259
260       val noinit : bool ref
261
262
263
264
265       val noversion : bool ref
266
267
268
269
270       val use_prims : string ref
271
272
273
274
275       val use_runtime : string ref
276
277
278
279
280       val plugin : bool ref
281
282
283
284
285       val principal : bool ref
286
287
288
289
290       val real_paths : bool ref
291
292
293
294
295       val recursive_types : bool ref
296
297
298
299
300       val strict_sequence : bool ref
301
302
303
304
305       val strict_formats : bool ref
306
307
308
309
310       val applicative_functors : bool ref
311
312
313
314
315       val make_runtime : bool ref
316
317
318
319
320       val c_compiler : string option ref
321
322
323
324
325       val no_auto_link : bool ref
326
327
328
329
330       val dllpaths : string list ref
331
332
333
334
335       val make_package : bool ref
336
337
338
339
340       val for_package : string option ref
341
342
343
344
345       val error_size : int ref
346
347
348
349
350       val float_const_prop : bool ref
351
352
353
354
355       val transparent_modules : bool ref
356
357
358
359
360       val unique_ids : bool ref
361
362
363
364
365       val locations : bool ref
366
367
368
369
370       val dump_source : bool ref
371
372
373
374
375       val dump_parsetree : bool ref
376
377
378
379
380       val dump_typedtree : bool ref
381
382
383
384
385       val dump_rawlambda : bool ref
386
387
388
389
390       val dump_lambda : bool ref
391
392
393
394
395       val dump_rawclambda : bool ref
396
397
398
399
400       val dump_clambda : bool ref
401
402
403
404
405       val dump_rawflambda : bool ref
406
407
408
409
410       val dump_flambda : bool ref
411
412
413
414
415       val dump_flambda_let : int option ref
416
417
418
419
420       val dump_instr : bool ref
421
422
423
424
425       val keep_camlprimc_file : bool ref
426
427
428
429
430       val keep_asm_file : bool ref
431
432
433
434
435       val optimize_for_speed : bool ref
436
437
438
439
440       val dump_cmm : bool ref
441
442
443
444
445       val dump_selection : bool ref
446
447
448
449
450       val dump_cse : bool ref
451
452
453
454
455       val dump_live : bool ref
456
457
458
459
460       val dump_avail : bool ref
461
462
463
464
465       val debug_runavail : bool ref
466
467
468
469
470       val dump_spill : bool ref
471
472
473
474
475       val dump_split : bool ref
476
477
478
479
480       val dump_interf : bool ref
481
482
483
484
485       val dump_prefer : bool ref
486
487
488
489
490       val dump_regalloc : bool ref
491
492
493
494
495       val dump_reload : bool ref
496
497
498
499
500       val dump_scheduling : bool ref
501
502
503
504
505       val dump_linear : bool ref
506
507
508
509
510       val dump_interval : bool ref
511
512
513
514
515       val keep_startup_file : bool ref
516
517
518
519
520       val dump_combine : bool ref
521
522
523
524
525       val native_code : bool ref
526
527
528
529
530       val default_inline_threshold : float
531
532
533
534
535       val inline_threshold : Float_arg_helper.parsed ref
536
537
538
539
540       val inlining_report : bool ref
541
542
543
544
545       val simplify_rounds : int option ref
546
547
548
549
550       val default_simplify_rounds : int ref
551
552
553
554
555       val rounds : unit -> int
556
557
558
559
560       val default_inline_max_unroll : int
561
562
563
564
565       val inline_max_unroll : Int_arg_helper.parsed ref
566
567
568
569
570       val default_inline_toplevel_threshold : int
571
572
573
574
575       val inline_toplevel_threshold : Int_arg_helper.parsed ref
576
577
578
579
580       val default_inline_call_cost : int
581
582
583
584
585       val default_inline_alloc_cost : int
586
587
588
589
590       val default_inline_prim_cost : int
591
592
593
594
595       val default_inline_branch_cost : int
596
597
598
599
600       val default_inline_indirect_cost : int
601
602
603
604
605       val default_inline_lifting_benefit : int
606
607
608
609
610       val inline_call_cost : Int_arg_helper.parsed ref
611
612
613
614
615       val inline_alloc_cost : Int_arg_helper.parsed ref
616
617
618
619
620       val inline_prim_cost : Int_arg_helper.parsed ref
621
622
623
624
625       val inline_branch_cost : Int_arg_helper.parsed ref
626
627
628
629
630       val inline_indirect_cost : Int_arg_helper.parsed ref
631
632
633
634
635       val inline_lifting_benefit : Int_arg_helper.parsed ref
636
637
638
639
640       val default_inline_branch_factor : float
641
642
643
644
645       val inline_branch_factor : Float_arg_helper.parsed ref
646
647
648
649
650       val dont_write_files : bool ref
651
652
653
654
655       val std_include_flag : string -> string
656
657
658
659
660       val std_include_dir : unit -> string list
661
662
663
664
665       val shared : bool ref
666
667
668
669
670       val dlcode : bool ref
671
672
673
674
675       val pic_code : bool ref
676
677
678
679
680       val runtime_variant : string ref
681
682
683
684
685       val with_runtime : bool ref
686
687
688
689
690       val force_slash : bool ref
691
692
693
694
695       val keep_docs : bool ref
696
697
698
699
700       val keep_locs : bool ref
701
702
703
704
705       val unsafe_string : bool ref
706
707
708
709
710       val opaque : bool ref
711
712
713
714
715       val profile_columns : Profile.column list ref
716
717
718
719
720       val flambda_invariant_checks : bool ref
721
722
723
724
725       val unbox_closures : bool ref
726
727
728
729
730       val unbox_closures_factor : int ref
731
732
733
734
735       val default_unbox_closures_factor : int
736
737
738
739
740       val unbox_free_vars_of_closures : bool ref
741
742
743
744
745       val unbox_specialised_args : bool ref
746
747
748
749
750       val clambda_checks : bool ref
751
752
753
754
755       val default_inline_max_depth : int
756
757
758
759
760       val inline_max_depth : Int_arg_helper.parsed ref
761
762
763
764
765       val remove_unused_arguments : bool ref
766
767
768
769
770       val dump_flambda_verbose : bool ref
771
772
773
774
775       val classic_inlining : bool ref
776
777
778
779
780       val afl_instrument : bool ref
781
782
783
784
785       val afl_inst_ratio : int ref
786
787
788
789
790       val function_sections : bool ref
791
792
793
794
795       val all_passes : string list ref
796
797
798
799
800       val dumped_pass : string -> bool
801
802
803
804
805       val set_dumped_pass : string -> bool -> unit
806
807
808
809
810       val dump_into_file : bool ref
811
812
813
814       type 'a env_reader = {
815        parse : string -> 'a option ;
816        print : 'a -> string ;
817        usage : string ;
818        env_var : string ;
819        }
820
821
822
823
824
825       val color : Misc.Color.setting option ref
826
827
828
829
830       val color_reader : Misc.Color.setting env_reader
831
832
833
834
835       val error_style : Misc.Error_style.setting option ref
836
837
838
839
840       val error_style_reader : Misc.Error_style.setting env_reader
841
842
843
844
845       val unboxed_types : bool ref
846
847
848
849
850       val insn_sched : bool ref
851
852
853
854
855       val insn_sched_default : bool
856
857
858
859       module Compiler_pass : sig end
860
861
862
863
864
865       val stop_after : Compiler_pass.t option ref
866
867
868
869
870       val should_stop_after : Compiler_pass.t -> bool
871
872
873
874
875       val arg_spec : (string * Arg.spec * string) list ref
876
877
878
879
880       val add_arguments : string -> (string * Arg.spec * string) list -> unit
881
882
883
884
885       val parse_arguments : Arg.anon_fun -> string -> unit
886
887
888
889
890       val print_arguments : string -> unit
891
892
893
894
895       val reset_arguments : unit -> unit
896
897
898
899
900
901
902OCamldoc                          2020-09-01                        Clflags(3)
Impressum