-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNodes.html
More file actions
1641 lines (1640 loc) · 51 KB
/
Nodes.html
File metadata and controls
1641 lines (1640 loc) · 51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Firm - <span class="algo">Firm</span> Node Types</title>
<link rel="stylesheet" type="text/css" href="style.css"/>
<link rel="stylesheet" type="text/css" href="pygments.css"/>
<link rel="icon" type="image/png" href="logo-simple.png"/>
</head>
<body>
<div class="layout-header">
<a href="index.html"><img src="logo.png" alt="Firm Logo" /></a>
</div>
<div class="layout-content-wrapper">
<div class="layout-content">
<div class="layout-sidebar">
<ul>
<li><a href="index.html">About</a></li>
<li><a href="Features.html">Features</a></li>
<li><a href="Download.html">Download</a></li>
<li><a href="Documentation.html">Documentation</a></li>
<li><a href="Projects.html">Projects</a></li>
<li><a href="Development.html">Development</a></li>
<li><a href="Contact.html">Contact</a></li>
</ul>
<ul class="external">
<li><a href="http://pp.info.uni-karlsruhe.de/projects/firm_publications.php">Publications</a></li>
</ul>
<div class="layout-toc">
<h2>Contents</h2>
<ul>
<li><a href="#_asm">ASM</a></li>
<li><a href="#_add">Add</a></li>
<li><a href="#_address">Address</a></li>
<li><a href="#_align">Align</a></li>
<li><a href="#_alloc">Alloc</a></li>
<li><a href="#_anchor">Anchor</a></li>
<li><a href="#_and">And</a></li>
<li><a href="#_bad">Bad</a></li>
<li><a href="#_bitcast">Bitcast</a></li>
<li><a href="#_block">Block</a></li>
<li><a href="#_builtin">Builtin</a></li>
<li><a href="#_call">Call</a></li>
<li><a href="#_cmp">Cmp</a></li>
<li><a href="#_cond">Cond</a></li>
<li><a href="#_confirm">Confirm</a></li>
<li><a href="#_const">Const</a></li>
<li><a href="#_conv">Conv</a></li>
<li><a href="#_copyb">CopyB</a></li>
<li><a href="#_deleted">Deleted</a></li>
<li><a href="#_div">Div</a></li>
<li><a href="#_dummy">Dummy</a></li>
<li><a href="#_end">End</a></li>
<li><a href="#_eor">Eor</a></li>
<li><a href="#_free">Free</a></li>
<li><a href="#_ijmp">IJmp</a></li>
<li><a href="#_id">Id</a></li>
<li><a href="#_jmp">Jmp</a></li>
<li><a href="#_load">Load</a></li>
<li><a href="#_member">Member</a></li>
<li><a href="#_minus">Minus</a></li>
<li><a href="#_mod">Mod</a></li>
<li><a href="#_mul">Mul</a></li>
<li><a href="#_mulh">Mulh</a></li>
<li><a href="#_mux">Mux</a></li>
<li><a href="#_nomem">NoMem</a></li>
<li><a href="#_not">Not</a></li>
<li><a href="#_offset">Offset</a></li>
<li><a href="#_or">Or</a></li>
<li><a href="#_phi">Phi</a></li>
<li><a href="#_pin">Pin</a></li>
<li><a href="#_proj">Proj</a></li>
<li><a href="#_raise">Raise</a></li>
<li><a href="#_return">Return</a></li>
<li><a href="#_sel">Sel</a></li>
<li><a href="#_shl">Shl</a></li>
<li><a href="#_shr">Shr</a></li>
<li><a href="#_shrs">Shrs</a></li>
<li><a href="#_size">Size</a></li>
<li><a href="#_start">Start</a></li>
<li><a href="#_store">Store</a></li>
<li><a href="#_sub">Sub</a></li>
<li><a href="#_switch">Switch</a></li>
<li><a href="#_sync">Sync</a></li>
<li><a href="#_tuple">Tuple</a></li>
<li><a href="#_unknown">Unknown</a></li>
</ul>
</div>
</div>
<div class="layout-document">
<h1><span class="algo">Firm</span> Node Types</h1>
<div class="sect1">
<h2 id="_asm">ASM</h2>
<div class="sectionbody">
<div class="paragraph"><p>executes assembler fragments of the target machine.</p></div>
<div class="paragraph"><p>The node contains a template for an assembler snippet. The compiler will
replace occurrences of %0, %1, … with input/output operands, %% with a
single % char. Some backends allow additional specifiers (for example %w3,
%b3, %h3 on x86 to get a 16bit, 8hit low, 8bit high part of a register).
After the replacements the text is emitted into the final assembly.</p></div>
<div class="paragraph"><p>The clobber list contains names of registers which have an undefined value
after the assembler instruction is executed; it may also contain <em>memory</em>
or <em>cc</em> if global state/memory changes or the condition code registers
(some backends implicitly set cc on all ASM statements).</p></div>
<div class="paragraph"><p>Example (an i386 instruction):</p></div>
<div class="literalblock">
<div class="content">
<pre><code>ASM(text="btsl %1, %0",
constraints = ["+m", "r"],
clobbers = ["cc"])</code></pre>
</div></div>
<div class="paragraph"><p>%0 references a memory reference which the operation both reads and writes.
For this the node has an address input operand. %1 references an input
which is passed as a register. The condition code register has an unknown
value after the instruction.</p></div>
<div class="paragraph"><p>(This format is inspired by the gcc extended asm syntax)</p></div>
<div class="ulist"><div class="title">Inputs</div><ul>
<li>
<p>
<code>mem</code> memory dependency
</p>
</li>
<li>
<p>
… additional inputs (oparity_variable)
</p>
</li>
</ul></div>
<div class="ulist"><div class="title">Output Tuple</div><ul>
<li>
<p>
<code>M</code> memory result
</p>
</li>
<li>
<p>
<code>X_regular</code> control flow when no jump occurs
</p>
</li>
<li>
<p>
<code>first_out</code> first output
</p>
</li>
</ul></div>
<div class="ulist"><div class="title">Attributes</div><ul>
<li>
<p>
<code>ir_asm_constraint* constraints</code> constraints
</p>
</li>
<li>
<p>
<code>ident** clobbers</code> list of clobbered registers/memory
</p>
</li>
<li>
<p>
<code>ident* text</code> assembler text
</p>
</li>
</ul></div>
<div class="paragraph"><p>Flags:
<a href="api_latest/a00240.html#gga89287ba55d230a5e028f287663fa3bfaad0f31e05f84694a59f6edeb54ff66ac5">fragile</a>, <a href="api_latest/a00240.html#gga89287ba55d230a5e028f287663fa3bfaa75f82ca20fc6b0da76b3fa616c86011c">keep</a>, <a href="api_latest/a00240.html#gga89287ba55d230a5e028f287663fa3bfaa6689e4d457b2ac2b2282a2234809d3b8">uses_memory</a></p></div>
<div class="paragraph"><p><a href="api_latest/a00271.html">API</a></p></div>
</div>
</div>
<div class="sect1">
<h2 id="_add">Add</h2>
<div class="sectionbody">
<div class="paragraph"><p>returns the sum of its operands</p></div>
<div class="ulist"><div class="title">Inputs</div><ul>
<li>
<p>
<code>left</code> first operand
</p>
</li>
<li>
<p>
<code>right</code> second operand
</p>
</li>
</ul></div>
<div class="paragraph"><p>Flags:
<a href="api_latest/a00240.html#gga89287ba55d230a5e028f287663fa3bfaad3029f21caf8bd35db73c3b3f2c325f8">commutative</a></p></div>
<div class="paragraph"><p><a href="api_latest/a00272.html">API</a></p></div>
</div>
</div>
<div class="sect1">
<h2 id="_address">Address</h2>
<div class="sectionbody">
<div class="paragraph"><p>Symbolic constant that represents the address of an entity (variable or
method)</p></div>
<div class="paragraph"><div class="title">Inputs</div><p>None</p></div>
<div class="ulist"><div class="title">Attributes</div><ul>
<li>
<p>
<code>ir_entity* entity</code> entity to operate on
</p>
</li>
</ul></div>
<div class="paragraph"><p>Flags:
<a href="api_latest/a00240.html#gga89287ba55d230a5e028f287663fa3bfaa35764082095f86084a92a676595adb7d">constlike</a>, <a href="api_latest/a00240.html#gga89287ba55d230a5e028f287663fa3bfaae0ac1e2ed4bb1e3d01194fe0fe84c6ec">start_block</a></p></div>
<div class="paragraph"><p><a href="api_latest/a00273.html">API</a></p></div>
</div>
</div>
<div class="sect1">
<h2 id="_align">Align</h2>
<div class="sectionbody">
<div class="paragraph"><p>A symbolic constant that represents the alignment of a type</p></div>
<div class="paragraph"><div class="title">Inputs</div><p>None</p></div>
<div class="ulist"><div class="title">Attributes</div><ul>
<li>
<p>
<code>ir_type* type</code> type to operate on
</p>
</li>
</ul></div>
<div class="paragraph"><p>Flags:
<a href="api_latest/a00240.html#gga89287ba55d230a5e028f287663fa3bfaa35764082095f86084a92a676595adb7d">constlike</a>, <a href="api_latest/a00240.html#gga89287ba55d230a5e028f287663fa3bfaae0ac1e2ed4bb1e3d01194fe0fe84c6ec">start_block</a></p></div>
<div class="paragraph"><p><a href="api_latest/a00274.html">API</a></p></div>
</div>
</div>
<div class="sect1">
<h2 id="_alloc">Alloc</h2>
<div class="sectionbody">
<div class="paragraph"><p>Allocates a block of memory on the stack.</p></div>
<div class="ulist"><div class="title">Inputs</div><ul>
<li>
<p>
<code>mem</code> memory dependency
</p>
</li>
<li>
<p>
<code>size</code> size of the block in bytes
</p>
</li>
</ul></div>
<div class="ulist"><div class="title">Output Tuple</div><ul>
<li>
<p>
<code>M</code> memory result
</p>
</li>
<li>
<p>
<code>res</code> pointer to newly allocated memory
</p>
</li>
</ul></div>
<div class="ulist"><div class="title">Attributes</div><ul>
<li>
<p>
<code>unsigned alignment</code> alignment of the memory block (must be a power of 2)
</p>
</li>
</ul></div>
<div class="paragraph"><p>Flags:
<a href="api_latest/a00240.html#gga89287ba55d230a5e028f287663fa3bfaa6689e4d457b2ac2b2282a2234809d3b8">uses_memory</a>, <a href="api_latest/a00240.html#gga89287ba55d230a5e028f287663fa3bfaa8b8a6d3d58cc2f31764d6e01ef32de77">const_memory</a></p></div>
<div class="paragraph"><p><a href="api_latest/a00275.html">API</a></p></div>
</div>
</div>
<div class="sect1">
<h2 id="_anchor">Anchor</h2>
<div class="sectionbody">
<div class="paragraph"><p>Utility node used to "hold" nodes in a graph that might possibly not be
reachable by other means or which should be reachable immediately without
searching through the graph.
Each firm-graph contains exactly one anchor node whose address is always
known. All other well-known graph-nodes like Start, End, NoMem, …
are found by looking at the respective Anchor operand.</p></div>
<div class="ulist"><div class="title">Inputs</div><ul>
<li>
<p>
<code>end_block</code> block the end node belongs to
</p>
</li>
<li>
<p>
<code>start_block</code> block the start node belongs to
</p>
</li>
<li>
<p>
<code>end</code> end node of this ir_graph
</p>
</li>
<li>
<p>
<code>start</code> start node of this ir_graph
</p>
</li>
<li>
<p>
<code>frame</code> frame of this ir_graph
</p>
</li>
<li>
<p>
<code>initial_mem</code> initial memory of this ir_graph
</p>
</li>
<li>
<p>
<code>args</code> argument proj of the start node
</p>
</li>
<li>
<p>
<code>no_mem</code> the only NoMem node of this ir_graph
</p>
</li>
</ul></div>
<div class="paragraph"><p>Flags:
<a href="api_latest/a00240.html#gga89287ba55d230a5e028f287663fa3bfaa266c48d7316dab3ac1227a096f494f14">dump_noblock</a></p></div>
<div class="paragraph"><p><a href="api_latest/a00276.html">API</a></p></div>
</div>
</div>
<div class="sect1">
<h2 id="_and">And</h2>
<div class="sectionbody">
<div class="paragraph"><p>returns the result of a bitwise and operation of its operands</p></div>
<div class="ulist"><div class="title">Inputs</div><ul>
<li>
<p>
<code>left</code> first operand
</p>
</li>
<li>
<p>
<code>right</code> second operand
</p>
</li>
</ul></div>
<div class="paragraph"><p>Flags:
<a href="api_latest/a00240.html#gga89287ba55d230a5e028f287663fa3bfaad3029f21caf8bd35db73c3b3f2c325f8">commutative</a></p></div>
<div class="paragraph"><p><a href="api_latest/a00277.html">API</a></p></div>
</div>
</div>
<div class="sect1">
<h2 id="_bad">Bad</h2>
<div class="sectionbody">
<div class="paragraph"><p>Bad nodes indicate invalid input, which is values which should never be
computed.</p></div>
<div class="paragraph"><p>The typical use case for the Bad node is removing unreachable code.
Frontends should set the current_block to Bad when it is clear that
following code must be unreachable (i.e. after a goto or return statement).
Optimizations also set block predecessors to Bad when it becomes clear,
that a control flow edge can never be executed.</p></div>
<div class="paragraph"><p>The gigo optimizations ensures that nodes with Bad as their block, get
replaced by Bad themselves. Nodes with at least 1 Bad input get exchanged
with Bad too. Exception to this rule are Block, Phi, Tuple and End node;
This is because removing inputs from a Block is hairy operation (requiring,
Phis to be shortened too for example). So instead of removing block inputs
they are set to Bad, and the actual removal is left to the control flow
optimization phase. Block, Phi, Tuple with only Bad inputs however are
replaced by Bad right away.</p></div>
<div class="paragraph"><p>In the future we may use the Bad node to model poison values that arise
from undefined behaviour like reading uninitialized local variables in C.</p></div>
<div class="paragraph"><div class="title">Inputs</div><p>None</p></div>
<div class="paragraph"><p>Flags:
<a href="api_latest/a00240.html#gga89287ba55d230a5e028f287663fa3bfaae0ac1e2ed4bb1e3d01194fe0fe84c6ec">start_block</a>, <a href="api_latest/a00240.html#gga89287ba55d230a5e028f287663fa3bfaa266c48d7316dab3ac1227a096f494f14">dump_noblock</a></p></div>
<div class="paragraph"><p><a href="api_latest/a00278.html">API</a></p></div>
</div>
</div>
<div class="sect1">
<h2 id="_bitcast">Bitcast</h2>
<div class="sectionbody">
<div class="paragraph"><p>Converts a value between modes with different arithmetics but same
number of bits by reinterpreting the bits in the new mode</p></div>
<div class="ulist"><div class="title">Inputs</div><ul>
<li>
<p>
<code>op</code> operand
</p>
</li>
</ul></div>
<div class="paragraph"><p>Flags:
None</p></div>
<div class="paragraph"><p><a href="api_latest/a00279.html">API</a></p></div>
</div>
</div>
<div class="sect1">
<h2 id="_block">Block</h2>
<div class="sectionbody">
<div class="paragraph"><p>A basic block</p></div>
<div class="ulist"><div class="title">Inputs</div><ul>
<li>
<p>
… additional inputs (oparity_variable)
</p>
</li>
</ul></div>
<div class="ulist"><div class="title">Attributes</div><ul>
<li>
<p>
<code>ir_entity* entity</code> entity representing this block
</p>
</li>
</ul></div>
<div class="paragraph"><p>Flags:
None</p></div>
<div class="paragraph"><p><a href="api_latest/a00280.html">API</a></p></div>
</div>
</div>
<div class="sect1">
<h2 id="_builtin">Builtin</h2>
<div class="sectionbody">
<div class="paragraph"><p>performs a backend-specific builtin.</p></div>
<div class="ulist"><div class="title">Inputs</div><ul>
<li>
<p>
<code>mem</code> memory dependency
</p>
</li>
<li>
<p>
… additional inputs (oparity_variable)
</p>
</li>
</ul></div>
<div class="ulist"><div class="title">Output Tuple</div><ul>
<li>
<p>
<code>M</code> memory result
</p>
</li>
</ul></div>
<div class="ulist"><div class="title">Attributes</div><ul>
<li>
<p>
<code>ir_builtin_kind kind</code> kind of builtin
</p>
</li>
<li>
<p>
<code>ir_type* type</code> method type for the builtin call
</p>
</li>
</ul></div>
<div class="paragraph"><p>Flags:
<a href="api_latest/a00240.html#gga89287ba55d230a5e028f287663fa3bfaa6689e4d457b2ac2b2282a2234809d3b8">uses_memory</a></p></div>
<div class="paragraph"><p><a href="api_latest/a00281.html">API</a></p></div>
</div>
</div>
<div class="sect1">
<h2 id="_call">Call</h2>
<div class="sectionbody">
<div class="paragraph"><p>Calls other code. Control flow is transferred to ptr, additional
operands are passed to the called code. Called code usually performs a
return operation. The operands of this return operation are the result
of the Call node.</p></div>
<div class="ulist"><div class="title">Inputs</div><ul>
<li>
<p>
<code>mem</code> memory dependency
</p>
</li>
<li>
<p>
<code>ptr</code> pointer to called code
</p>
</li>
<li>
<p>
… additional inputs (oparity_variable)
</p>
</li>
</ul></div>
<div class="ulist"><div class="title">Output Tuple</div><ul>
<li>
<p>
<code>M</code> memory result
</p>
</li>
<li>
<p>
<code>T_result</code> tuple containing all results
</p>
</li>
<li>
<p>
<code>X_regular</code> control flow when no exception occurs
</p>
</li>
<li>
<p>
<code>X_except</code> control flow when exception occurred
</p>
</li>
</ul></div>
<div class="ulist"><div class="title">Attributes</div><ul>
<li>
<p>
<code>ir_type* type</code> type of the call (usually type of the called procedure)
</p>
</li>
</ul></div>
<div class="paragraph"><p>Flags:
<a href="api_latest/a00240.html#gga89287ba55d230a5e028f287663fa3bfaad0f31e05f84694a59f6edeb54ff66ac5">fragile</a>, <a href="api_latest/a00240.html#gga89287ba55d230a5e028f287663fa3bfaa6689e4d457b2ac2b2282a2234809d3b8">uses_memory</a></p></div>
<div class="paragraph"><p><a href="api_latest/a00282.html">API</a></p></div>
</div>
</div>
<div class="sect1">
<h2 id="_cmp">Cmp</h2>
<div class="sectionbody">
<div class="paragraph"><p>Compares its two operands and checks whether a specified
relation (like less or equal) is fulfilled.</p></div>
<div class="ulist"><div class="title">Inputs</div><ul>
<li>
<p>
<code>left</code> first operand
</p>
</li>
<li>
<p>
<code>right</code> second operand
</p>
</li>
</ul></div>
<div class="ulist"><div class="title">Attributes</div><ul>
<li>
<p>
<code>ir_relation relation</code> Comparison relation
</p>
</li>
</ul></div>
<div class="paragraph"><p>Flags:
None</p></div>
<div class="paragraph"><p><a href="api_latest/a00283.html">API</a></p></div>
</div>
</div>
<div class="sect1">
<h2 id="_cond">Cond</h2>
<div class="sectionbody">
<div class="paragraph"><p>Conditionally change control flow.</p></div>
<div class="ulist"><div class="title">Inputs</div><ul>
<li>
<p>
<code>selector</code> condition parameter
</p>
</li>
</ul></div>
<div class="ulist"><div class="title">Output Tuple</div><ul>
<li>
<p>
<code>false</code> control flow if operand is "false"
</p>
</li>
<li>
<p>
<code>true</code> control flow if operand is "true"
</p>
</li>
</ul></div>
<div class="ulist"><div class="title">Attributes</div><ul>
<li>
<p>
<code>cond_jmp_predicate jmp_pred</code> can indicate the most likely jump
</p>
</li>
</ul></div>
<div class="paragraph"><p>Flags:
<a href="api_latest/a00240.html#gga89287ba55d230a5e028f287663fa3bfaae865efbb61486b27918acf47f43b86f9">cfopcode</a>, <a href="api_latest/a00240.html#gga89287ba55d230a5e028f287663fa3bfaa64eeba01aafd6d64e26b4c7a00805bed">forking</a></p></div>
<div class="paragraph"><p><a href="api_latest/a00284.html">API</a></p></div>
</div>
</div>
<div class="sect1">
<h2 id="_confirm">Confirm</h2>
<div class="sectionbody">
<div class="paragraph"><p>Specifies constraints for a value. This allows explicit representation
of path-sensitive properties. (Example: This value is always >= 0 on 1
if-branch then all users within that branch are rerouted to a confirm-node
specifying this property).</p></div>
<div class="paragraph"><p>A constraint is specified for the relation between value and bound.
value is always returned.
Note that this node does NOT check or assert the constraint, it merely
specifies it.</p></div>
<div class="ulist"><div class="title">Inputs</div><ul>
<li>
<p>
<code>value</code> value to express a constraint for
</p>
</li>
<li>
<p>
<code>bound</code> value to compare against
</p>
</li>
</ul></div>
<div class="ulist"><div class="title">Attributes</div><ul>
<li>
<p>
<code>ir_relation relation</code> relation of value to bound
</p>
</li>
</ul></div>
<div class="paragraph"><p>Flags:
None</p></div>
<div class="paragraph"><p><a href="api_latest/a00285.html">API</a></p></div>
</div>
</div>
<div class="sect1">
<h2 id="_const">Const</h2>
<div class="sectionbody">
<div class="paragraph"><p>Returns a constant value.</p></div>
<div class="paragraph"><div class="title">Inputs</div><p>None</p></div>
<div class="ulist"><div class="title">Attributes</div><ul>
<li>
<p>
<code>ir_tarval* tarval</code> constant value (a tarval object)
</p>
</li>
</ul></div>
<div class="paragraph"><p>Flags:
<a href="api_latest/a00240.html#gga89287ba55d230a5e028f287663fa3bfaa35764082095f86084a92a676595adb7d">constlike</a>, <a href="api_latest/a00240.html#gga89287ba55d230a5e028f287663fa3bfaae0ac1e2ed4bb1e3d01194fe0fe84c6ec">start_block</a></p></div>
<div class="paragraph"><p><a href="api_latest/a00286.html">API</a></p></div>
</div>
</div>
<div class="sect1">
<h2 id="_conv">Conv</h2>
<div class="sectionbody">
<div class="paragraph"><p>Converts values between modes</p></div>
<div class="ulist"><div class="title">Inputs</div><ul>
<li>
<p>
<code>op</code> operand
</p>
</li>
</ul></div>
<div class="paragraph"><p>Flags:
None</p></div>
<div class="paragraph"><p><a href="api_latest/a00287.html">API</a></p></div>
</div>
</div>
<div class="sect1">
<h2 id="_copyb">CopyB</h2>
<div class="sectionbody">
<div class="paragraph"><p>Copies a block of memory with statically known size/type.</p></div>
<div class="ulist"><div class="title">Inputs</div><ul>
<li>
<p>
<code>mem</code> memory dependency
</p>
</li>
<li>
<p>
<code>dst</code> destination address
</p>
</li>
<li>
<p>
<code>src</code> source address
</p>
</li>
</ul></div>
<div class="ulist"><div class="title">Attributes</div><ul>
<li>
<p>
<code>ir_type* type</code> type of copied data
</p>
</li>
<li>
<p>
<code>ir_volatility volatility</code> volatile CopyB nodes have a visible side-effect and may not be optimized
</p>
</li>
</ul></div>
<div class="paragraph"><p>Flags:
<a href="api_latest/a00240.html#gga89287ba55d230a5e028f287663fa3bfaa6689e4d457b2ac2b2282a2234809d3b8">uses_memory</a></p></div>
<div class="paragraph"><p><a href="api_latest/a00288.html">API</a></p></div>
</div>
</div>
<div class="sect1">
<h2 id="_deleted">Deleted</h2>
<div class="sectionbody">
<div class="paragraph"><p>Internal node which is temporary set to nodes which are already removed
from the graph.</p></div>
<div class="paragraph"><div class="title">Inputs</div><p>None</p></div>
<div class="paragraph"><p>Flags:
None</p></div>
<div class="paragraph"><p><a href="api_latest/a00289.html">API</a></p></div>
</div>
</div>
<div class="sect1">
<h2 id="_div">Div</h2>
<div class="sectionbody">
<div class="paragraph"><p>returns the quotient of its 2 operands</p></div>
<div class="ulist"><div class="title">Inputs</div><ul>
<li>
<p>
<code>mem</code> memory dependency
</p>
</li>
<li>
<p>
<code>left</code> first operand
</p>
</li>
<li>
<p>
<code>right</code> second operand
</p>
</li>
</ul></div>
<div class="ulist"><div class="title">Output Tuple</div><ul>
<li>
<p>
<code>M</code> memory result
</p>
</li>
<li>
<p>
<code>res</code> result of computation
</p>
</li>
<li>
<p>
<code>X_regular</code> control flow when no exception occurs
</p>
</li>
<li>
<p>
<code>X_except</code> control flow when exception occurred
</p>
</li>
</ul></div>
<div class="ulist"><div class="title">Attributes</div><ul>
<li>
<p>
<code>ir_mode* resmode</code> mode of the result value
</p>
</li>
<li>
<p>
<code>int no_remainder</code> Set when division remainder is known to be zero
</p>
</li>
</ul></div>
<div class="paragraph"><p>Flags:
<a href="api_latest/a00240.html#gga89287ba55d230a5e028f287663fa3bfaad0f31e05f84694a59f6edeb54ff66ac5">fragile</a>, <a href="api_latest/a00240.html#gga89287ba55d230a5e028f287663fa3bfaa6689e4d457b2ac2b2282a2234809d3b8">uses_memory</a>, <a href="api_latest/a00240.html#gga89287ba55d230a5e028f287663fa3bfaa8b8a6d3d58cc2f31764d6e01ef32de77">const_memory</a></p></div>
<div class="paragraph"><p><a href="api_latest/a00290.html">API</a></p></div>
</div>
</div>
<div class="sect1">
<h2 id="_dummy">Dummy</h2>
<div class="sectionbody">
<div class="paragraph"><p>A placeholder value. This is used when constructing cyclic graphs where
you have cases where not all predecessors of a phi-node are known. Dummy
nodes are used for the unknown predecessors and replaced later.</p></div>
<div class="paragraph"><div class="title">Inputs</div><p>None</p></div>
<div class="paragraph"><p>Flags:
<a href="api_latest/a00240.html#gga89287ba55d230a5e028f287663fa3bfaae865efbb61486b27918acf47f43b86f9">cfopcode</a>, <a href="api_latest/a00240.html#gga89287ba55d230a5e028f287663fa3bfaae0ac1e2ed4bb1e3d01194fe0fe84c6ec">start_block</a>, <a href="api_latest/a00240.html#gga89287ba55d230a5e028f287663fa3bfaa35764082095f86084a92a676595adb7d">constlike</a>, <a href="api_latest/a00240.html#gga89287ba55d230a5e028f287663fa3bfaa266c48d7316dab3ac1227a096f494f14">dump_noblock</a></p></div>
<div class="paragraph"><p><a href="api_latest/a00291.html">API</a></p></div>
</div>
</div>
<div class="sect1">
<h2 id="_end">End</h2>
<div class="sectionbody">
<div class="paragraph"><p>Last node of a graph. It references nodes in endless loops (so called
keepalive edges)</p></div>
<div class="ulist"><div class="title">Inputs</div><ul>
<li>
<p>
… inputs dynamically mananged (oparity_dynamic)
</p>
</li>
</ul></div>
<div class="paragraph"><p>Flags:
<a href="api_latest/a00240.html#gga89287ba55d230a5e028f287663fa3bfaae865efbb61486b27918acf47f43b86f9">cfopcode</a></p></div>
<div class="paragraph"><p><a href="api_latest/a00292.html">API</a></p></div>
</div>
</div>
<div class="sect1">
<h2 id="_eor">Eor</h2>
<div class="sectionbody">
<div class="paragraph"><p>returns the result of a bitwise exclusive or operation of its operands.</p></div>
<div class="paragraph"><p>This is also known as the Xor operation.</p></div>
<div class="ulist"><div class="title">Inputs</div><ul>
<li>
<p>
<code>left</code> first operand
</p>
</li>
<li>
<p>
<code>right</code> second operand
</p>
</li>
</ul></div>
<div class="paragraph"><p>Flags:
<a href="api_latest/a00240.html#gga89287ba55d230a5e028f287663fa3bfaad3029f21caf8bd35db73c3b3f2c325f8">commutative</a></p></div>
<div class="paragraph"><p><a href="api_latest/a00293.html">API</a></p></div>
</div>
</div>
<div class="sect1">
<h2 id="_free">Free</h2>
<div class="sectionbody">
<div class="paragraph"><p>Frees a block of memory previously allocated by an Alloc node</p></div>
<div class="ulist"><div class="title">Inputs</div><ul>
<li>
<p>
<code>mem</code> memory dependency
</p>
</li>
<li>
<p>
<code>ptr</code> pointer to the object to free
</p>
</li>
</ul></div>
<div class="paragraph"><p>Flags:
<a href="api_latest/a00240.html#gga89287ba55d230a5e028f287663fa3bfaa6689e4d457b2ac2b2282a2234809d3b8">uses_memory</a>, <a href="api_latest/a00240.html#gga89287ba55d230a5e028f287663fa3bfaa8b8a6d3d58cc2f31764d6e01ef32de77">const_memory</a></p></div>
<div class="paragraph"><p><a href="api_latest/a00294.html">API</a></p></div>
</div>
</div>
<div class="sect1">
<h2 id="_ijmp">IJmp</h2>
<div class="sectionbody">
<div class="paragraph"><p>Jumps to the code in its argument. The code has to be in the same
function and the destination must be one of the blocks reachable
by the tuple results</p></div>
<div class="ulist"><div class="title">Inputs</div><ul>
<li>
<p>
<code>target</code> target address of the jump
</p>
</li>
</ul></div>
<div class="paragraph"><p>Flags:
<a href="api_latest/a00240.html#gga89287ba55d230a5e028f287663fa3bfaae865efbb61486b27918acf47f43b86f9">cfopcode</a>, <a href="api_latest/a00240.html#gga89287ba55d230a5e028f287663fa3bfaa64eeba01aafd6d64e26b4c7a00805bed">forking</a>, <a href="api_latest/a00240.html#gga89287ba55d230a5e028f287663fa3bfaa75f82ca20fc6b0da76b3fa616c86011c">keep</a>, <a href="api_latest/a00240.html#gga89287ba55d230a5e028f287663fa3bfaaa67aa343a2051df626a9fe1ff3b996bd">unknown_jump</a></p></div>
<div class="paragraph"><p><a href="api_latest/a00295.html">API</a></p></div>
</div>
</div>
<div class="sect1">
<h2 id="_id">Id</h2>
<div class="sectionbody">
<div class="paragraph"><p>Returns its operand unchanged.</p></div>
<div class="paragraph"><p>This is mainly used when exchanging nodes. Usually you shouldn’t see Id
nodes since the getters/setters for node inputs skip them automatically.</p></div>
<div class="ulist"><div class="title">Inputs</div><ul>
<li>
<p>
<code>pred</code> the value which is returned unchanged
</p>
</li>
</ul></div>
<div class="paragraph"><p>Flags:
None</p></div>
<div class="paragraph"><p><a href="api_latest/a00296.html">API</a></p></div>
</div>
</div>
<div class="sect1">
<h2 id="_jmp">Jmp</h2>
<div class="sectionbody">
<div class="paragraph"><p>Jumps to the block connected through the out-value</p></div>
<div class="paragraph"><div class="title">Inputs</div><p>None</p></div>
<div class="paragraph"><p>Flags:
<a href="api_latest/a00240.html#gga89287ba55d230a5e028f287663fa3bfaae865efbb61486b27918acf47f43b86f9">cfopcode</a></p></div>
<div class="paragraph"><p><a href="api_latest/a00297.html">API</a></p></div>
</div>
</div>
<div class="sect1">
<h2 id="_load">Load</h2>
<div class="sectionbody">
<div class="paragraph"><p>Loads a value from memory (heap or stack).</p></div>
<div class="ulist"><div class="title">Inputs</div><ul>
<li>
<p>
<code>mem</code> memory dependency
</p>
</li>
<li>
<p>
<code>ptr</code> address to load from
</p>
</li>
</ul></div>
<div class="ulist"><div class="title">Output Tuple</div><ul>
<li>
<p>
<code>M</code> memory result
</p>
</li>
<li>
<p>
<code>res</code> result of load operation
</p>
</li>
<li>
<p>
<code>X_regular</code> control flow when no exception occurs
</p>
</li>
<li>
<p>
<code>X_except</code> control flow when exception occurred
</p>
</li>
</ul></div>
<div class="ulist"><div class="title">Attributes</div><ul>
<li>
<p>
<code>ir_mode* mode</code> mode of the value to be loaded
</p>
</li>
<li>
<p>
<code>ir_type* type</code> The type of the object which is stored at ptr (need not match with mode)
</p>
</li>
<li>
<p>
<code>ir_volatility volatility</code> volatile loads are a visible side-effect and may not be optimized
</p>
</li>
<li>
<p>
<code>ir_align unaligned</code> pointers to unaligned loads don’t need to respect the load-mode/type alignments
</p>
</li>
</ul></div>
<div class="paragraph"><p>Flags:
<a href="api_latest/a00240.html#gga89287ba55d230a5e028f287663fa3bfaad0f31e05f84694a59f6edeb54ff66ac5">fragile</a>, <a href="api_latest/a00240.html#gga89287ba55d230a5e028f287663fa3bfaa6689e4d457b2ac2b2282a2234809d3b8">uses_memory</a>, <a href="api_latest/a00240.html#gga89287ba55d230a5e028f287663fa3bfaa8b8a6d3d58cc2f31764d6e01ef32de77">const_memory</a></p></div>
<div class="paragraph"><p><a href="api_latest/a00298.html">API</a></p></div>
</div>
</div>
<div class="sect1">
<h2 id="_member">Member</h2>
<div class="sectionbody">
<div class="paragraph"><p>Computes the address of a compound type member given the base address
of an instance of the compound type.</p></div>
<div class="paragraph"><p>A Member node must only produce a NULL pointer if the ptr input is NULL.</p></div>
<div class="ulist"><div class="title">Inputs</div><ul>
<li>
<p>
<code>ptr</code> pointer to object to select from
</p>
</li>
</ul></div>
<div class="ulist"><div class="title">Attributes</div><ul>
<li>
<p>
<code>ir_entity* entity</code> entity which is selected
</p>
</li>
</ul></div>
<div class="paragraph"><p>Flags:
None</p></div>
<div class="paragraph"><p><a href="api_latest/a00299.html">API</a></p></div>
</div>
</div>
<div class="sect1">
<h2 id="_minus">Minus</h2>
<div class="sectionbody">
<div class="paragraph"><p>returns the additive inverse of its operand</p></div>
<div class="ulist"><div class="title">Inputs</div><ul>
<li>
<p>
<code>op</code> operand
</p>
</li>
</ul></div>
<div class="paragraph"><p>Flags:
None</p></div>
<div class="paragraph"><p><a href="api_latest/a00300.html">API</a></p></div>
</div>
</div>
<div class="sect1">
<h2 id="_mod">Mod</h2>
<div class="sectionbody">
<div class="paragraph"><p>returns the remainder of its operands from an implied division.</p></div>
<div class="paragraph"><p>Examples:</p></div>
<div class="ulist"><ul>
<li>
<p>
mod(5,3) produces 2
</p>
</li>
<li>
<p>
mod(5,-3) produces 2
</p>
</li>
<li>
<p>
mod(-5,3) produces -2
</p>
</li>
<li>
<p>
mod(-5,-3) produces -2
</p>
</li>
</ul></div>
<div class="ulist"><div class="title">Inputs</div><ul>