-
Notifications
You must be signed in to change notification settings - Fork 392
/
Debug.hpp
1263 lines (1104 loc) · 61.2 KB
/
Debug.hpp
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
/*******************************************************************************
* Copyright (c) 2000, 2021 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
* distribution and is available at http://eclipse.org/legal/epl-2.0
* or the Apache License, Version 2.0 which accompanies this distribution
* and is available at https://www.apache.org/licenses/LICENSE-2.0.
*
* This Source Code may also be made available under the following Secondary
* Licenses when the conditions for such availability set forth in the
* Eclipse Public License, v. 2.0 are satisfied: GNU General Public License,
* version 2 with the GNU Classpath Exception [1] and GNU General Public
* License, version 2 with the OpenJDK Assembly Exception [2].
*
* [1] https://www.gnu.org/software/classpath/license.html
* [2] http://openjdk.java.net/legal/assembly-exception.html
*
* SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception
*******************************************************************************/
// __ ___ __ __ ___ __ ___ ___ __
// | \ |__ |__) |__) |__ / ` /\ | |__ | \
// |__/ |___ | | \ |___ \__, /~~\ | |___ |__/
//
// This file is now deprecated and its contents are slowly
// being moved back to codegen and other directories. Please do not
// add more interfaces here.
//
#ifndef DEBUG_INCL
#define DEBUG_INCL
#include <stdarg.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include "codegen/Machine.hpp"
#include "codegen/RegisterConstants.hpp"
#include "compile/Method.hpp"
#include "compile/VirtualGuard.hpp"
#include "cs2/hashtab.h"
#include "env/RawAllocator.hpp"
#include "env/TRMemory.hpp"
#include "env/jittypes.h"
#include "il/DataTypes.hpp"
#include "il/ILOpCodes.hpp"
#include "il/ILOps.hpp"
#include "infra/Assert.hpp"
#include "infra/BitVector.hpp"
#include "infra/TRlist.hpp"
#include "optimizer/Optimizations.hpp"
#include "runtime/Runtime.hpp"
#include "infra/CfgNode.hpp"
#include "codegen/RegisterRematerializationInfo.hpp"
class TR_Debug;
class TR_BlockStructure;
class TR_CHTable;
namespace TR { class CompilationFilters; }
class TR_FilterBST;
class TR_FrontEnd;
class TR_GCStackMap;
class TR_InductionVariable;
class TR_PrettyPrinterString;
class TR_PseudoRandomNumbersListElement;
class TR_RegionAnalysis;
class TR_RegionStructure;
class TR_RematerializationInfo;
class TR_ResolvedMethod;
class TR_Structure;
class TR_StructureSubGraphNode;
namespace TR { class VPConstraint; }
namespace TR { class GCStackAtlas; }
namespace TR { class AutomaticSymbol; }
namespace TR { class Block; }
namespace TR { class CFG; }
namespace TR { class CFGEdge; }
namespace TR { class CFGNode; }
namespace TR { class CodeGenerator; }
namespace TR { class Compilation; }
namespace TR { class DebugCounterGroup; }
namespace TR { class GCRegisterMap; }
namespace TR { class InstOpCode; }
namespace TR { class Instruction; }
namespace TR { class LabelSymbol; }
namespace TR { class Machine; }
namespace TR { class MemoryReference; }
namespace TR { class Node; }
namespace TR { class OptionSet; }
namespace TR { class Options; }
namespace TR { class RealRegister; }
namespace TR { class Register; }
namespace TR { class RegisterDependencyGroup; }
namespace TR { class RegisterDependency; }
namespace TR { class RegisterDependencyConditions; }
namespace TR { class RegisterMappedSymbol; }
namespace TR { class ResolvedMethodSymbol; }
namespace TR { class SimpleRegex; }
namespace TR { class Snippet; }
namespace TR { class Symbol; }
namespace TR { class SymbolReference; }
namespace TR { class SymbolReferenceTable; }
namespace TR { class TreeTop; }
namespace TR { struct OptionTable; }
template <class T> class List;
template <class T> class ListIterator;
struct J9JITExceptionTable;
struct J9AnnotationInfo;
struct J9AnnotationInfoEntry;
struct J9PortLibrary;
namespace TR { class X86LabelInstruction; }
namespace TR { class X86PaddingInstruction; }
namespace TR { class X86AlignmentInstruction; }
namespace TR { class X86BoundaryAvoidanceInstruction; }
namespace TR { class X86PatchableCodeAlignmentInstruction; }
namespace TR { class X86FenceInstruction; }
namespace TR { class X86VirtualGuardNOPInstruction; }
namespace TR { class X86ImmInstruction; }
namespace TR { class X86ImmSnippetInstruction; }
namespace TR { class X86ImmSymInstruction; }
namespace TR { class X86RegInstruction; }
namespace TR { class X86RegRegInstruction; }
namespace TR { class X86RegImmInstruction; }
namespace TR { class X86RegRegImmInstruction; }
namespace TR { class X86RegRegRegInstruction; }
namespace TR { class X86MemInstruction; }
namespace TR { class X86MemImmInstruction; }
namespace TR { class X86MemRegInstruction; }
namespace TR { class X86MemRegImmInstruction; }
namespace TR { class X86RegMemInstruction; }
namespace TR { class X86RegMemImmInstruction; }
namespace TR { class X86RegRegMemInstruction; }
namespace TR { class X86FPRegInstruction; }
namespace TR { class X86FPRegRegInstruction; }
namespace TR { class X86FPMemRegInstruction; }
namespace TR { class X86FPRegMemInstruction; }
namespace TR { class X86RestartSnippet; }
namespace TR { class X86PicDataSnippet; }
namespace TR { class X86DivideCheckSnippet; }
namespace TR { class X86FPConvertToIntSnippet; }
namespace TR { class X86FPConvertToLongSnippet; }
namespace TR { class X86GuardedDevirtualSnippet; }
namespace TR { class X86HelperCallSnippet; }
namespace TR { class UnresolvedDataSnippet; }
namespace TR { class AMD64Imm64Instruction; }
namespace TR { class AMD64Imm64SymInstruction; }
namespace TR { class AMD64RegImm64Instruction; }
struct TR_VFPState;
namespace TR { class X86VFPSaveInstruction; }
namespace TR { class X86VFPRestoreInstruction; }
namespace TR { class X86VFPDedicateInstruction; }
namespace TR { class X86VFPReleaseInstruction; }
namespace TR { class X86VFPCallCleanupInstruction; }
#ifdef J9_PROJECT_SPECIFIC
namespace TR { class X86CallSnippet; }
namespace TR { class X86CheckFailureSnippet; }
namespace TR { class X86CheckFailureSnippetWithResolve; }
namespace TR { class X86BoundCheckWithSpineCheckSnippet; }
namespace TR { class X86SpineCheckSnippet; }
namespace TR { class X86ForceRecompilationSnippet; }
namespace TR { class X86RecompilationSnippet; }
#endif
namespace TR { class PPCAlignmentNopInstruction; }
namespace TR { class PPCDepInstruction; }
namespace TR { class PPCLabelInstruction; }
namespace TR { class PPCDepLabelInstruction; }
namespace TR { class PPCConditionalBranchInstruction; }
namespace TR { class PPCDepConditionalBranchInstruction; }
namespace TR { class PPCAdminInstruction; }
namespace TR { class PPCImmInstruction; }
namespace TR { class PPCSrc1Instruction; }
namespace TR { class PPCDepImmSymInstruction; }
namespace TR { class PPCTrg1Instruction; }
namespace TR { class PPCTrg1Src1Instruction; }
namespace TR { class PPCTrg1ImmInstruction; }
namespace TR { class PPCTrg1Src1ImmInstruction; }
namespace TR { class PPCTrg1Src1Imm2Instruction; }
namespace TR { class PPCSrc2Instruction; }
namespace TR { class PPCSrc3Instruction; }
namespace TR { class PPCTrg1Src2Instruction; }
namespace TR { class PPCTrg1Src2ImmInstruction; }
namespace TR { class PPCTrg1Src3Instruction; }
namespace TR { class PPCMemSrc1Instruction; }
namespace TR { class PPCMemInstruction; }
namespace TR { class PPCTrg1MemInstruction; }
namespace TR { class PPCControlFlowInstruction; }
namespace TR { class PPCVirtualGuardNOPInstruction; }
namespace TR { class PPCUnresolvedCallSnippet; }
namespace TR { class PPCVirtualSnippet; }
namespace TR { class PPCVirtualUnresolvedSnippet; }
namespace TR { class PPCInterfaceCallSnippet; }
namespace TR { class PPCHelperCallSnippet; }
namespace TR { class PPCMonitorEnterSnippet; }
namespace TR { class PPCMonitorExitSnippet; }
namespace TR { class PPCReadMonitorSnippet; }
namespace TR { class PPCAllocPrefetchSnippet; }
namespace TR { class PPCLockReservationEnterSnippet; }
namespace TR { class PPCLockReservationExitSnippet; }
namespace TR { class PPCArrayCopyCallSnippet; }
#ifdef J9_PROJECT_SPECIFIC
namespace TR { class PPCInterfaceCastSnippet; }
namespace TR { class PPCStackCheckFailureSnippet; }
namespace TR { class PPCForceRecompilationSnippet; }
namespace TR { class PPCRecompilationSnippet; }
namespace TR { class PPCCallSnippet; }
#endif
class TR_ARMOpCode;
namespace TR { class ARMLabelInstruction; }
namespace TR { class ARMConditionalBranchInstruction; }
namespace TR { class ARMVirtualGuardNOPInstruction; }
namespace TR { class ARMAdminInstruction; }
namespace TR { class ARMImmInstruction; }
namespace TR { class ARMImmSymInstruction; }
namespace TR { class ARMTrg1Src2Instruction; }
namespace TR { class ARMTrg2Src1Instruction; }
namespace TR { class ARMMulInstruction; }
namespace TR { class ARMMemSrc1Instruction; }
namespace TR { class ARMTrg1Instruction; }
namespace TR { class ARMMemInstruction; }
namespace TR { class ARMTrg1MemInstruction; }
namespace TR { class ARMTrg1MemSrc1Instruction; }
namespace TR { class ARMControlFlowInstruction; }
namespace TR { class ARMMultipleMoveInstruction; }
class TR_ARMMemoryReference;
class TR_ARMOperand2;
class TR_ARMRealRegister;
namespace TR { class ARMCallSnippet; }
namespace TR { class ARMUnresolvedCallSnippet; }
namespace TR { class ARMVirtualSnippet; }
namespace TR { class ARMVirtualUnresolvedSnippet; }
namespace TR { class ARMInterfaceCallSnippet; }
namespace TR { class ARMHelperCallSnippet; }
namespace TR { class ARMMonitorEnterSnippet; }
namespace TR { class ARMMonitorExitSnippet; }
namespace TR { class ARMStackCheckFailureSnippet; }
namespace TR { class ARMRecompilationSnippet; }
namespace TR { class S390LabelInstruction; }
namespace TR { class S390BranchInstruction; }
namespace TR { class S390BranchOnCountInstruction; }
namespace TR { class S390VirtualGuardNOPInstruction; }
namespace TR { class S390BranchOnIndexInstruction; }
namespace TR { class S390AnnotationInstruction; }
namespace TR { class S390PseudoInstruction; }
namespace TR { class S390ImmInstruction; }
namespace TR { class S390ImmSnippetInstruction; }
namespace TR { class S390ImmSymInstruction; }
namespace TR { class S390Imm2Instruction; }
namespace TR { class S390RegInstruction; }
namespace TR { class S390RRInstruction; }
namespace TR { class S390TranslateInstruction; }
namespace TR { class S390RRFInstruction; }
namespace TR { class S390RRRInstruction; }
namespace TR { class S390RXFInstruction; }
namespace TR { class S390RIInstruction; }
namespace TR { class S390RILInstruction; }
namespace TR { class S390RSInstruction; }
namespace TR { class S390RSLInstruction; }
namespace TR { class S390RSLbInstruction; }
namespace TR { class S390RXEInstruction; }
namespace TR { class S390RXInstruction; }
namespace TR { class S390MemInstruction; }
namespace TR { class S390SS1Instruction; }
namespace TR { class S390MIIInstruction; }
namespace TR { class S390SMIInstruction; }
namespace TR { class S390SS2Instruction; }
namespace TR { class S390SS4Instruction; }
namespace TR { class S390SSEInstruction; }
namespace TR { class S390SSFInstruction; }
namespace TR { class S390VRIInstruction; }
namespace TR { class S390VRIaInstruction; }
namespace TR { class S390VRIbInstruction; }
namespace TR { class S390VRIcInstruction; }
namespace TR { class S390VRIdInstruction; }
namespace TR { class S390VRIeInstruction; }
namespace TR { class S390VRRInstruction; }
namespace TR { class S390VRRaInstruction; }
namespace TR { class S390VRRbInstruction; }
namespace TR { class S390VRRcInstruction; }
namespace TR { class S390VRRdInstruction; }
namespace TR { class S390VRReInstruction; }
namespace TR { class S390VRRfInstruction; }
namespace TR { class S390VRSaInstruction; }
namespace TR { class S390VRSbInstruction; }
namespace TR { class S390VRScInstruction; }
namespace TR { class S390VRVInstruction; }
namespace TR { class S390VRXInstruction; }
namespace TR { class S390VStorageInstruction; }
namespace TR { class S390OpCodeOnlyInstruction; }
namespace TR { class S390IInstruction; }
namespace TR { class S390SInstruction; }
namespace TR { class S390SIInstruction; }
namespace TR { class S390SILInstruction; }
namespace TR { class S390NOPInstruction; }
namespace TR { class S390AlignmentNopInstruction; }
namespace TR { class S390RestoreGPR7Snippet; }
namespace TR { class S390CallSnippet; }
namespace TR { class S390ConstantDataSnippet; }
namespace TR { class S390WritableDataSnippet; }
namespace TR { class S390HelperCallSnippet; }
namespace TR { class S390JNICallDataSnippet; }
namespace TR { class S390StackCheckFailureSnippet; }
namespace TR { class S390HeapAllocSnippet; }
namespace TR { class S390RRSInstruction; }
namespace TR { class S390RIEInstruction; }
namespace TR { class S390RISInstruction; }
namespace TR { class S390IEInstruction; }
#ifdef J9_PROJECT_SPECIFIC
namespace TR { class S390ForceRecompilationSnippet; }
namespace TR { class S390ForceRecompilationDataSnippet; }
namespace TR { class S390J9CallSnippet; }
namespace TR { class S390UnresolvedCallSnippet; }
namespace TR { class S390VirtualSnippet; }
namespace TR { class S390VirtualUnresolvedSnippet; }
namespace TR { class S390InterfaceCallSnippet; }
namespace TR { class J9S390InterfaceCallDataSnippet; }
#endif
namespace TR { class ARM64ImmInstruction; }
namespace TR { class ARM64RelocatableImmInstruction; }
namespace TR { class ARM64ImmSymInstruction; }
namespace TR { class ARM64LabelInstruction; }
namespace TR { class ARM64ConditionalBranchInstruction; }
namespace TR { class ARM64CompareBranchInstruction; }
namespace TR { class ARM64TestBitBranchInstruction; }
namespace TR { class ARM64RegBranchInstruction; }
namespace TR { class ARM64AdminInstruction; }
namespace TR { class ARM64Trg1Instruction; }
namespace TR { class ARM64Trg1CondInstruction; }
namespace TR { class ARM64Trg1ImmInstruction; }
namespace TR { class ARM64Trg1ImmSymInstruction; }
namespace TR { class ARM64Trg1Src1Instruction; }
namespace TR { class ARM64Trg1ZeroSrc1Instruction; }
namespace TR { class ARM64Trg1Src1ImmInstruction; }
namespace TR { class ARM64Trg1Src2Instruction; }
namespace TR { class ARM64CondTrg1Src2Instruction; }
namespace TR { class ARM64Trg1Src2ShiftedInstruction; }
namespace TR { class ARM64Trg1Src2ExtendedInstruction; }
namespace TR { class ARM64Trg1Src2ZeroInstruction; }
namespace TR { class ARM64Trg1Src3Instruction; }
namespace TR { class ARM64Trg1MemInstruction; }
namespace TR { class ARM64MemInstruction; }
namespace TR { class ARM64MemImmInstruction; }
namespace TR { class ARM64MemSrc1Instruction; }
namespace TR { class ARM64MemSrc2Instruction; }
namespace TR { class ARM64Trg1MemSrc1Instruction; }
namespace TR { class ARM64Src1Instruction; }
namespace TR { class ARM64ZeroSrc1ImmInstruction; }
namespace TR { class ARM64Src2Instruction; }
namespace TR { class ARM64ZeroSrc2Instruction; }
namespace TR { class ARM64HelperCallSnippet; }
namespace TR { class LabelInstruction; }
namespace TR { class AdminInstruction; }
#ifdef J9_PROJECT_SPECIFIC
namespace TR { class ARM64VirtualGuardNOPInstruction; }
namespace TR { class ARM64InterfaceCallSnippet; }
namespace TR { class ARM64StackCheckFailureSnippet; }
namespace TR { class ARM64ForceRecompilationSnippet; }
namespace TR { class ARM64RecompilationSnippet; }
namespace TR { class ARM64CallSnippet; }
namespace TR { class ARM64UnresolvedCallSnippet; }
namespace TR { class ARM64VirtualUnresolvedSnippet; }
#endif
namespace TR { class DataInstruction; }
namespace TR { class RtypeInstruction; }
namespace TR { class ItypeInstruction; }
namespace TR { class StypeInstruction; }
namespace TR { class BtypeInstruction; }
namespace TR { class UtypeInstruction; }
namespace TR { class JtypeInstruction; }
namespace TR { class LoadInstruction; }
namespace TR { class StoreInstruction; }
namespace TR { class RVHelperCallSnippet; }
TR_Debug *createDebugObject(TR::Compilation *);
class TR_Debug
{
public:
void * operator new (size_t s, TR_HeapMemory m);
void * operator new(size_t s, TR::PersistentAllocator &allocator);
TR_Debug(TR::Compilation * c);
TR::FILE *getFile() {return _file;}
virtual void setFile(TR::FILE *f) {_file = f;}
virtual void resetDebugData();
virtual void newNode(TR::Node *);
virtual void newLabelSymbol(TR::LabelSymbol *);
virtual void newRegister(TR::Register *);
virtual void newVariableSizeSymbol(TR::AutomaticSymbol *sym);
virtual void newInstruction(TR::Instruction *);
virtual void addInstructionComment(TR::Instruction *, char*, ...);
virtual TR::CompilationFilters * getInlineFilters() { return _inlineFilters; }
virtual TR_FrontEnd *fe() { return _fe; }
virtual TR::Compilation *comp() { return _comp; }
virtual char *formattedString(char *buf, uint32_t bufLen, const char *format, va_list args, TR_AllocationKind=heapAlloc);
virtual TR::Node *getCurrentParent() { return _currentParent; }
virtual void setCurrentParentAndChildIndex(TR::Node *n, int32_t i) { _currentParent = n; _currentChildIndex=i; }
virtual void setCurrentParent(TR::Node *n) { _currentParent = n;}
virtual int32_t getCurrentChildIndex() { return _currentChildIndex; }
virtual void setCurrentChildIndex(int32_t i) { _currentChildIndex = i;}
// Print current stack back trace to standard error
static void printStackBacktrace();
// Print current stack back trace to trace log
// Argument: comp is the current compilation object, which cannot be NULL
static void printStackBacktraceToTraceLog(TR::Compilation* comp);
void breakOn();
void debugOnCreate();
// Options processing
//
virtual TR::FILE * findLogFile(TR::Options *aotCmdLineOptions, TR::Options *jitCmdLineOptions, TR::OptionSet *optSet, char *logFileName);
virtual int32_t findLogFile(const char *logFileName, TR::Options *aotCmdLineOptions, TR::Options *jitCmdLineOptions, TR::Options **optionsArray, int32_t arraySize);
virtual void dumpOptionHelp(TR::OptionTable *jitOptions, TR::OptionTable *feOptions, TR::SimpleRegex *nameFilter);
static void dumpOptions(char *optionsType, char *options, char *envOptions, TR::Options *cmdLineOptions, TR::OptionTable *jitOptions, TR::OptionTable *feOptions, void *, TR_FrontEnd *);
virtual char * limitfileOption(char *, void *, TR::OptionTable *, TR::Options *, bool loadLimit, TR_PseudoRandomNumbersListElement **pseudoRandomListHeadPtr = 0);
virtual char * inlinefileOption(char *, void *, TR::OptionTable *, TR::Options *);
virtual char * limitOption(char *, void *, TR::OptionTable *, TR::Options *, bool loadLimit);
virtual int32_t * loadCustomStrategy(char *optFileName);
virtual bool methodCanBeCompiled(TR_Memory *mem, TR_ResolvedMethod *, TR_FilterBST * &);
virtual bool methodCanBeRelocated(TR_Memory *mem, TR_ResolvedMethod *, TR_FilterBST * &);
virtual bool methodSigCanBeCompiled(const char *, TR_FilterBST * & , TR::Method::Type methodType);
virtual bool methodSigCanBeRelocated(const char *, TR_FilterBST * & );
virtual bool methodSigCanBeCompiledOrRelocated(const char *, TR_FilterBST * &, bool isRelocation, TR::Method::Type methodType);
virtual bool methodCanBeFound(TR_Memory *, TR_ResolvedMethod *, TR::CompilationFilters *, TR_FilterBST * &);
virtual bool methodSigCanBeFound(const char *, TR::CompilationFilters *, TR_FilterBST * &, TR::Method::Type methodType);
virtual TR::CompilationFilters * getCompilationFilters() { return _compilationFilters; }
virtual TR::CompilationFilters * getRelocationFilters() { return _relocationFilters; }
virtual void clearFilters(TR::CompilationFilters *);
void clearFilters(bool loadLimit);
virtual bool scanInlineFilters(FILE *, int32_t &, TR::CompilationFilters *);
virtual TR_FilterBST * addFilter(char * &, int32_t, int32_t, int32_t, TR::CompilationFilters *);
virtual TR_FilterBST * addFilter(char * &, int32_t, int32_t, int32_t, bool loadLimit);
virtual TR_FilterBST * addExcludedMethodFilter(bool loadLimit);
virtual bool addSamplingPoint(char *, TR_FilterBST * &, bool loadLimit);
virtual int32_t scanFilterName(char *, TR_FilterBST *);
virtual void printFilters(TR::CompilationFilters *);
virtual void printFilters();
virtual void print(TR_FilterBST * filter);
virtual void printSamplingPoints();
virtual void printHeader();
virtual void printMethodHotness();
virtual void printInstrDumpHeader(const char * title);
virtual void printByteCodeAnnotations();
virtual void printAnnotationInfoEntry(J9AnnotationInfo *,J9AnnotationInfoEntry *,int32_t);
virtual void printOptimizationHeader(const char *, const char *, int32_t, bool mustBeDone);
virtual const char * getName(TR::ILOpCode);
virtual const char * getName(TR::ILOpCodes);
virtual const char * getName(TR::DataType);
virtual const char * getName(TR_RawBCDSignCode);
virtual const char * getName(TR::LabelSymbol *);
virtual const char * getName(TR::SymbolReference *);
virtual const char * getName(TR::Register *, TR_RegisterSizes = TR_WordReg);
virtual const char * getRealRegisterName(uint32_t regNum);
virtual const char * getGlobalRegisterName(TR_GlobalRegisterNumber regNum, TR_RegisterSizes size = TR_WordReg);
virtual const char * getName(TR::Snippet *);
virtual const char * getName(TR::Node *);
virtual const char * getName(TR::Symbol *);
virtual const char * getName(TR::Instruction *);
virtual const char * getName(TR_Structure *);
virtual const char * getName(TR::CFGNode *);
virtual const char * getName(TR_ResolvedMethod *m) { return getName((void *) m, "(TR_ResolvedMethod*)", 0, false); }
virtual const char * getName(TR_OpaqueClassBlock *c) { return getName((void *) c, "(TR_OpaqueClassBlock*)", 0, false); }
virtual const char * getName(void *, const char *, uint32_t, bool);
virtual const char * getName(const char *s) { return s; }
virtual const char * getName(const char *s, int32_t len) { return s; }
virtual const char * getVSSName(TR::AutomaticSymbol *sym);
virtual const char * getWriteBarrierKindName(int32_t);
virtual const char * getSpillKindName(uint8_t);
virtual const char * getLinkageConventionName(uint8_t);
virtual const char * getVirtualGuardKindName(TR_VirtualGuardKind kind);
virtual const char * getVirtualGuardTestTypeName(TR_VirtualGuardTestType testType);
virtual const char * getRuntimeHelperName(int32_t);
virtual void roundAddressEnumerationCounters(uint32_t boundary=16);
virtual void print(TR::FILE *, uint8_t*, uint8_t*);
virtual void printIRTrees(TR::FILE *, const char *, TR::ResolvedMethodSymbol *);
virtual void printBlockOrders(TR::FILE *, const char *, TR::ResolvedMethodSymbol *);
virtual void print(TR::FILE *, TR::CFG *);
virtual void print(TR::FILE *, TR_Structure * structure, uint32_t indentation);
virtual void print(TR::FILE *, TR_RegionAnalysis * structure, uint32_t indentation);
virtual int32_t print(TR::FILE *, TR::TreeTop *);
virtual int32_t print(TR::FILE *, TR::Node *, uint32_t indentation=0, bool printSubtree=true);
virtual void print(TR::FILE *, TR::SymbolReference *);
virtual void print(TR::SymbolReference *, TR_PrettyPrinterString&, bool hideHelperMethodInfo=false, bool verbose=false);
virtual void print(TR::FILE *, TR::LabelSymbol *);
virtual void print(TR::LabelSymbol *, TR_PrettyPrinterString&);
virtual void print(TR::FILE *, TR_BitVector *);
virtual void print(TR::FILE *, TR_SingleBitContainer *);
virtual void print(TR::FILE *pOutFile, TR::BitVector * bv);
virtual void print(TR::FILE *pOutFile, TR::SparseBitVector * sparse);
virtual void print(TR::FILE *, TR::SymbolReferenceTable *);
virtual void printAliasInfo(TR::FILE *, TR::SymbolReferenceTable *);
virtual void printAliasInfo(TR::FILE *, TR::SymbolReference *);
virtual int32_t printWithFixedPrefix(TR::FILE *, TR::Node *, uint32_t indentation, bool printChildren, bool printRefCounts, const char *prefix);
virtual void printVCG(TR::FILE *, TR::CFG *, const char *);
virtual void printVCG(TR::FILE *, TR::Node *, uint32_t indentation);
virtual void print(J9JITExceptionTable * data, TR_ResolvedMethod * feMethod, bool fourByteOffsets);
virtual void clearNodeChecklist();
virtual void saveNodeChecklist(TR_BitVector &saveArea);
virtual void restoreNodeChecklist(TR_BitVector &saveArea);
virtual int32_t dumpLiveRegisters();
virtual int32_t dumpLiveRegisters(TR::FILE *pOutFile, TR_RegisterKinds rk);
virtual void dumpLiveRealRegisters(TR::FILE *pOutFile, TR_RegisterKinds rk);
virtual void setupToDumpTreesAndInstructions(const char *);
virtual void dumpSingleTreeWithInstrs(TR::TreeTop *, TR::Instruction *, bool, bool, bool, bool);
virtual void dumpMethodInstrs(TR::FILE *, const char *, bool, bool header = false);
virtual void dumpMixedModeDisassembly();
virtual void dumpInstructionComments(TR::FILE *, TR::Instruction *, bool needsStartComment = true );
virtual void print(TR::FILE *, TR::Instruction *);
virtual void print(TR::FILE *, TR::Instruction *, const char *);
virtual void print(TR::FILE *, List<TR::Snippet> &);
virtual void print(TR::FILE *, TR::list<TR::Snippet*> &);
virtual void print(TR::FILE *, TR::Snippet *);
virtual void print(TR::FILE *, TR::RegisterMappedSymbol *, bool);
virtual void print(TR::FILE *, TR::GCStackAtlas *);
virtual void print(TR::FILE *, TR_GCStackMap *, TR::GCStackAtlas *atlas = NULL);
virtual void printRegisterMask(TR::FILE *pOutFile, TR_RegisterMask mask, TR_RegisterKinds rk);
virtual void print(TR::FILE *, TR::Register *, TR_RegisterSizes size = TR_WordReg);
virtual void printFullRegInfo(TR::FILE *, TR::Register *);
virtual const char * getRegisterKindName(TR_RegisterKinds);
virtual const char * toString(TR_RematerializationInfo *);
virtual void print(TR::FILE *, TR::VPConstraint *);
#ifdef J9_PROJECT_SPECIFIC
virtual void dump(TR::FILE *, TR_CHTable *);
#endif
virtual void trace(const char *, ...);
virtual void vtrace(const char *, va_list args);
virtual void traceLnFromLogTracer(const char *);
virtual bool performTransformationImpl(bool, const char *, ...);
virtual void printInstruction(TR::Instruction*);
virtual const char * getDiagnosticFormat(const char *, char *, int32_t);
virtual void dumpGlobalRegisterTable();
virtual void dumpSimulatedNode(TR::Node *node, char tagChar);
virtual uint32_t getLabelNumber() { return _nextLabelNumber; }
// Verification Passes
//
virtual void verifyTrees (TR::ResolvedMethodSymbol *s);
virtual void verifyBlocks(TR::ResolvedMethodSymbol *s);
virtual void verifyCFG (TR::ResolvedMethodSymbol *s);
virtual TR::Node *verifyFinalNodeReferenceCounts(TR::ResolvedMethodSymbol *s);
virtual void startTracingRegisterAssignment() { startTracingRegisterAssignment("backward"); }
virtual void startTracingRegisterAssignment(const char *direction, TR_RegisterKinds kindsToAssign = TR_RegisterKinds(TR_GPR_Mask|TR_FPR_Mask));
virtual void stopTracingRegisterAssignment();
virtual void pauseTracingRegisterAssignment();
virtual void resumeTracingRegisterAssignment();
virtual void traceRegisterAssignment(const char *format, va_list args);
virtual void traceRegisterAssignment(TR::Instruction *instr, bool insertedByRA = true, bool postRA = false);
virtual void traceRegisterAssigned(TR_RegisterAssignmentFlags flags, TR::Register *virtReg, TR::Register *realReg);
virtual void traceRegisterFreed(TR::Register *virtReg, TR::Register *realReg);
virtual void traceRegisterInterference(TR::Register *virtReg, TR::Register *interferingVirtual, int32_t distance);
virtual void traceRegisterWeight(TR::Register *realReg, uint32_t weight);
virtual void printGPRegisterStatus(TR::FILE *pOutFile, OMR::MachineConnector *machine);
virtual void printFPRegisterStatus(TR::FILE *pOutFile, OMR::MachineConnector *machine);
virtual const char * getPerCodeCacheHelperName(TR_CCPreLoadedCode helper);
#if defined(TR_TARGET_X86)
virtual const char * getOpCodeName(TR::InstOpCode *);
virtual const char * getMnemonicName(TR::InstOpCode *);
virtual void printReferencedRegisterInfo(TR::FILE *, TR::Instruction *);
virtual void dumpInstructionWithVFPState(TR::Instruction *instr, const TR_VFPState *prevState);
void print(TR::FILE *, TR::RealRegister *, TR_RegisterSizes size = TR_WordReg);
const char * getNamex(TR::Snippet *);
void printRegMemInstruction(TR::FILE *, const char *, TR::RealRegister *reg, TR::RealRegister *base = 0, int32_t = 0);
void printRegRegInstruction(TR::FILE *, const char *, TR::RealRegister *reg1, TR::RealRegister *reg2 = 0);
void printRegImmInstruction(TR::FILE *, const char *, TR::RealRegister *reg, int32_t imm);
void printMemRegInstruction(TR::FILE *, const char *, TR::RealRegister *base, int32_t offset, TR::RealRegister * = 0);
void printMemImmInstruction(TR::FILE *, const char *, TR::RealRegister *base, int32_t offset, int32_t imm);
#endif
#if defined(TR_TARGET_POWER)
virtual const char * getOpCodeName(TR::InstOpCode *);
const char * getName(TR::RealRegister *, TR_RegisterSizes size = TR_WordReg);
void print(TR::FILE *, TR::PPCHelperCallSnippet *);
#endif
#if defined(TR_TARGET_ARM)
virtual void printARMDelayedOffsetInstructions(TR::FILE *pOutFile, TR::ARMMemInstruction *instr);
virtual void printARMHelperBranch(TR::SymbolReference *symRef, uint8_t *cursor, TR::FILE *outFile, const char * opcodeName = "bl");
virtual const char * getOpCodeName(TR_ARMOpCode *);
const char * getName(TR::RealRegister *, TR_RegisterSizes size = TR_WordReg);
const char * getName(uint32_t realRegisterIndex, TR_RegisterSizes = (TR_RegisterSizes)-1);
void print(TR::FILE *, TR::ARMHelperCallSnippet *);
#endif
#if defined(TR_TARGET_S390)
virtual void printRegisterDependencies(TR::FILE *pOutFile, TR::RegisterDependencyGroup *rgd, int numberOfRegisters);
const char * getName(TR::RealRegister *, TR_RegisterSizes size = TR_WordReg);
#endif
#if defined(TR_TARGET_ARM64)
virtual const char * getOpCodeName(TR::InstOpCode *);
const char * getName(TR::RealRegister *, TR_RegisterSizes size = TR_WordReg);
#endif
#if defined(TR_TARGET_RISCV)
virtual const char * getOpCodeName(TR::InstOpCode *);
const char * getName(TR::RealRegister *, TR_RegisterSizes size = TR_WordReg);
#endif
#if defined(AIXPPC)
virtual void setupDebugger(void *);
#elif defined(LINUX) || defined(J9ZOS390) || defined(OMR_OS_WINDOWS)
virtual void setupDebugger(void *, void *, bool);
#endif /* defined(AIXPPC) */
virtual void setSingleAllocMetaData(bool usesSingleAllocMetaData);
const char* internalNamePrefix() { return "_"; }
TR_OpaqueClassBlock * containingClass(TR::SymbolReference *);
const char * signature(TR::ResolvedMethodSymbol *s);
void nodePrintAllFlags(TR::Node *, TR_PrettyPrinterString &);
// used by DebugExt and may be overridden
virtual void printDestination(TR::FILE *, TR::TreeTop *);
virtual void printDestination(TR::TreeTop *, TR_PrettyPrinterString&);
virtual void printNodeInfo(TR::FILE *, TR::Node *);
virtual void printNodeInfo(TR::Node *, TR_PrettyPrinterString& output, bool);
virtual void print(TR::FILE *, TR::CFGNode *, uint32_t indentation);
virtual void printNodesInEdgeListIterator(TR::FILE *, TR::CFGEdgeList &li, bool fromNode);
virtual void print(TR::FILE *, TR::Block * block, uint32_t indentation);
virtual void print(TR::FILE *, TR_RegionStructure * regionStructure, uint32_t indentation);
virtual void printSubGraph(TR::FILE *, TR_RegionStructure * regionStructure, uint32_t indentation);
virtual void print(TR::FILE *, TR_InductionVariable * inductionVariable, uint32_t indentation);
virtual bool inDebugExtension() { return false; }
virtual void* dxMallocAndRead(uintptr_t size, void *remotePtr, bool dontAddToMap = false){return remotePtr;}
virtual void* dxMallocAndReadString(void *remotePtr, bool dontAddToMap = false){return remotePtr;}
virtual void dxFree(void * localPtr){return;}
void printTopLegend(TR::FILE *);
void printBottomLegend(TR::FILE *);
void printSymRefTable(TR::FILE *, bool printFullTable = false);
void printBasicPreNodeInfoAndIndent(TR::FILE *, TR::Node *, uint32_t indentation);
void printBasicPostNodeInfo(TR::FILE *, TR::Node *, uint32_t indentation);
bool isAlignStackMaps()
{
#if defined(TR_HOST_ARM)
return true;
#else
return false;
#endif
}
void printNodeFlags(TR::FILE *, TR::Node *);
#ifdef J9_PROJECT_SPECIFIC
void printBCDNodeInfo(TR::FILE *pOutFile, TR::Node * node);
void printBCDNodeInfo(TR::Node * node, TR_PrettyPrinterString& output);
#endif
int32_t * printStackAtlas(uintptr_t startPC, uint8_t * mapBits, int32_t numberOfSlotsMapped, bool fourByteOffsets, int32_t * sizeOfStackAtlas, int32_t frameSize);
uint16_t printStackAtlasDetails(uintptr_t startPC, uint8_t * mapBits, int numberOfSlotsMapped, bool fourByteOffsets, int32_t * sizeOfStackAtlas, int32_t frameSize, int32_t *offsetInfo);
uint8_t *printMapInfo(uintptr_t startPC, uint8_t * mapBits, int32_t numberOfSlotsMapped, bool fourByteOffsets, int32_t * sizeOfStackAtlas, TR_ByteCodeInfo *byteCodeInfo, uint16_t indexOfFirstInternalPtr, int32_t offsetInfo[], bool nummaps=false);
void printStackMapInfo(uint8_t * & mapBits, int32_t numberOfSlotsMapped, int32_t * sizeOfStackAtlas, int32_t * offsetInfo, bool nummaps=false);
void printJ9JITExceptionTableDetails(J9JITExceptionTable *data, J9JITExceptionTable *dbgextRemotePtr = NULL);
void printSnippetLabel(TR::FILE *, TR::LabelSymbol *label, uint8_t *cursor, const char *comment1, const char *comment2 = 0);
uint8_t * printPrefix(TR::FILE *, TR::Instruction *, uint8_t *cursor, uint8_t size);
void printLabelInstruction(TR::FILE *, const char *, TR::LabelSymbol *label);
int32_t printRestartJump(TR::FILE *, TR::X86RestartSnippet *, uint8_t *);
int32_t printRestartJump(TR::FILE *, TR::X86RestartSnippet *, uint8_t *, int32_t, const char *);
char * printSymbolName(TR::FILE *, TR::Symbol *, TR::SymbolReference *, TR::MemoryReference *mr=NULL) ;
bool isBranchToTrampoline(TR::SymbolReference *, uint8_t *, int32_t &);
virtual void printDebugCounters(TR::DebugCounterGroup *counterGroup, const char *name);
// ------------------------------
void printFirst(int32_t i);
void printCPIndex(int32_t i);
void printConstant(int32_t i);
void printConstant(double d);
void printFirstAndConstant(int32_t i, int32_t j);
void printLoadConst(TR::FILE *, TR::Node *);
void printLoadConst(TR::Node *, TR_PrettyPrinterString&);
TR::CompilationFilters * findOrCreateFilters(TR::CompilationFilters *);
TR::CompilationFilters * findOrCreateFilters(bool loadLimit);
void printFilterTree(TR_FilterBST *root);
TR::ResolvedMethodSymbol * getOwningMethodSymbol(TR::SymbolReference *);
TR_ResolvedMethod * getOwningMethod(TR::SymbolReference *);
const char * getAutoName(TR::SymbolReference *);
const char * getParmName(TR::SymbolReference *);
const char * getStaticName(TR::SymbolReference *);
const char * getStaticName_ForListing(TR::SymbolReference *);
virtual const char * getMethodName(TR::SymbolReference *);
const char * getShadowName(TR::SymbolReference *);
const char * getMetaDataName(TR::SymbolReference *);
TR::FILE *findLogFile(TR::Options *, TR::OptionSet *, char *);
void findLogFile(const char *logFileName, TR::Options *cmdOptions, TR::Options **optionArray, int32_t arraySize, int32_t &index);
void printPreds(TR::FILE *, TR::CFGNode *);
void printBaseInfo(TR::FILE *, TR_Structure * structure, uint32_t indentation);
void print(TR::FILE *, TR_BlockStructure * blockStructure, uint32_t indentation);
void print(TR::FILE *, TR_StructureSubGraphNode * node, uint32_t indentation);
void printBlockInfo(TR::FILE *, TR::Node * node);
void printVCG(TR::FILE *, TR_Structure * structure);
void printVCG(TR::FILE *, TR_RegionStructure * regionStructure);
void printVCG(TR::FILE *, TR_StructureSubGraphNode * node, bool isEntry);
void printVCGEdges(TR::FILE *, TR_StructureSubGraphNode * node);
void printVCG(TR::FILE *, TR::Block * block, int32_t vorder = -1, int32_t horder = -1);
void printByteCodeStack(int32_t parentStackIndex, uint16_t byteCodeIndex, char * indent);
void print(TR::FILE *, TR::GCRegisterMap *);
void verifyTreesPass1(TR::Node *node);
void verifyTreesPass2(TR::Node *node, bool isTreeTop);
void verifyBlocksPass1(TR::Node *node);
void verifyBlocksPass2(TR::Node *node);
void verifyGlobalIndices(TR::Node * node, TR::Node **nodesByGlobalIndex);
TR::Node *verifyFinalNodeReferenceCounts(TR::Node *node);
uint32_t getIntLength( uint32_t num ) const; // Number of digits in an integer
// Number of spaces that must be inserted after index when index's length < maxIndexLength so the information following it will be aligned
uint32_t getNumSpacesAfterIndex( uint32_t index, uint32_t maxIndexLength ) const;
#if defined(TR_TARGET_X86)
void printPrefix(TR::FILE *, TR::Instruction *instr);
int32_t printPrefixAndMnemonicWithoutBarrier(TR::FILE *, TR::Instruction *instr, int32_t barrier);
void printPrefixAndMemoryBarrier(TR::FILE *, TR::Instruction *instr, int32_t barrier, int32_t barrierOffset);
void dumpDependencyGroup(TR::FILE *pOutFile, TR::RegisterDependencyGroup *group, int32_t numConditions, char *prefix, bool omitNullDependencies);
void dumpDependencies(TR::FILE *, TR::Instruction *);
void printRegisterInfoHeader(TR::FILE *, TR::Instruction *);
void printBoundaryAvoidanceInfo(TR::FILE *, TR::X86BoundaryAvoidanceInstruction *);
void printX86OOLSequences(TR::FILE *pOutFile);
void printx(TR::FILE *, TR::Instruction *);
void print(TR::FILE *, TR::X86LabelInstruction *);
void print(TR::FILE *, TR::X86PaddingInstruction *);
void print(TR::FILE *, TR::X86AlignmentInstruction *);
void print(TR::FILE *, TR::X86BoundaryAvoidanceInstruction *);
void print(TR::FILE *, TR::X86PatchableCodeAlignmentInstruction *);
void print(TR::FILE *, TR::X86FenceInstruction *);
#ifdef J9_PROJECT_SPECIFIC
void print(TR::FILE *, TR::X86VirtualGuardNOPInstruction *);
#endif
void print(TR::FILE *, TR::X86ImmInstruction *);
void print(TR::FILE *, TR::X86ImmSnippetInstruction *);
void print(TR::FILE *, TR::X86ImmSymInstruction *);
void print(TR::FILE *, TR::X86RegInstruction *);
void print(TR::FILE *, TR::X86RegRegInstruction *);
void print(TR::FILE *, TR::X86RegImmInstruction *);
void print(TR::FILE *, TR::X86RegRegImmInstruction *);
void print(TR::FILE *, TR::X86RegRegRegInstruction *);
void print(TR::FILE *, TR::X86MemInstruction *);
void print(TR::FILE *, TR::X86MemImmInstruction *);
void print(TR::FILE *, TR::X86MemRegInstruction *);
void print(TR::FILE *, TR::X86MemRegImmInstruction *);
void print(TR::FILE *, TR::X86RegMemInstruction *);
void print(TR::FILE *, TR::X86RegMemImmInstruction *);
void print(TR::FILE *, TR::X86RegRegMemInstruction *);
void print(TR::FILE *, TR::X86FPRegInstruction *);
void print(TR::FILE *, TR::X86FPRegRegInstruction *);
void print(TR::FILE *, TR::X86FPMemRegInstruction *);
void print(TR::FILE *, TR::X86FPRegMemInstruction *);
void print(TR::FILE *, TR::AMD64Imm64Instruction *);
void print(TR::FILE *, TR::AMD64Imm64SymInstruction *);
void print(TR::FILE *, TR::AMD64RegImm64Instruction *);
void print(TR::FILE *, TR::X86VFPSaveInstruction *);
void print(TR::FILE *, TR::X86VFPRestoreInstruction *);
void print(TR::FILE *, TR::X86VFPDedicateInstruction *);
void print(TR::FILE *, TR::X86VFPReleaseInstruction *);
void print(TR::FILE *, TR::X86VFPCallCleanupInstruction *);
void printReferencedRegisterInfo(TR::FILE *, TR::X86RegRegRegInstruction *);
void printReferencedRegisterInfo(TR::FILE *, TR::X86RegInstruction *);
void printReferencedRegisterInfo(TR::FILE *, TR::X86RegRegInstruction *);
void printReferencedRegisterInfo(TR::FILE *, TR::X86MemInstruction *);
void printReferencedRegisterInfo(TR::FILE *, TR::X86MemRegInstruction *);
void printReferencedRegisterInfo(TR::FILE *, TR::X86RegMemInstruction *);
void printReferencedRegisterInfo(TR::FILE *, TR::X86RegRegMemInstruction *);
void printFullRegisterDependencyInfo(TR::FILE *, TR::RegisterDependencyConditions * conditions);
void printDependencyConditions(TR::RegisterDependencyGroup *, uint8_t, char *, TR::FILE *);
void print(TR::FILE *, TR::MemoryReference *, TR_RegisterSizes);
void printReferencedRegisterInfo(TR::FILE *, TR::MemoryReference *);
int32_t printIntConstant(TR::FILE *pOutFile, int64_t value, int8_t radix, TR_RegisterSizes size = TR_WordReg, bool padWithZeros = false);
int32_t printDecimalConstant(TR::FILE *pOutFile, int64_t value, int8_t width, bool padWithZeros);
int32_t printHexConstant(TR::FILE *pOutFile, int64_t value, int8_t width, bool padWithZeros);
void printInstructionComment(TR::FILE *pOutFile, int32_t tabStops, TR::Instruction *instr);
void printFPRegisterComment(TR::FILE *pOutFile, TR::Register *target, TR::Register *source);
void printMemoryReferenceComment(TR::FILE *pOutFile, TR::MemoryReference *mr);
TR_RegisterSizes getTargetSizeFromInstruction(TR::Instruction *instr);
TR_RegisterSizes getSourceSizeFromInstruction(TR::Instruction *instr);
TR_RegisterSizes getImmediateSizeFromInstruction(TR::Instruction *instr);
void printFullRegInfo(TR::FILE *, TR::RealRegister *);
void printX86GCRegisterMap(TR::FILE *, TR::GCRegisterMap *);
const char * getName(TR::RealRegister *, TR_RegisterSizes = TR_WordReg);
const char * getName(uint32_t realRegisterIndex, TR_RegisterSizes = (TR_RegisterSizes)-1);
void printx(TR::FILE *, TR::Snippet *);
#ifdef J9_PROJECT_SPECIFIC
void print(TR::FILE *, TR::X86CallSnippet *);
void print(TR::FILE *, TR::X86PicDataSnippet *);
void print(TR::FILE *, TR::X86CheckFailureSnippet *);
void print(TR::FILE *, TR::X86CheckFailureSnippetWithResolve *);
void print(TR::FILE *, TR::X86BoundCheckWithSpineCheckSnippet *);
void print(TR::FILE *, TR::X86SpineCheckSnippet *);
void print(TR::FILE *, TR::X86ForceRecompilationSnippet *);
void print(TR::FILE *, TR::X86RecompilationSnippet *);
#endif
void print(TR::FILE *, TR::X86DivideCheckSnippet *);
void print(TR::FILE *, TR::X86FPConvertToIntSnippet *);
void print(TR::FILE *, TR::X86FPConvertToLongSnippet *);
void print(TR::FILE *, TR::X86GuardedDevirtualSnippet *);
void print(TR::FILE *, TR::X86HelperCallSnippet *);
void printBody(TR::FILE *, TR::X86HelperCallSnippet *, uint8_t *bufferPos);
void print(TR::FILE *, TR::UnresolvedDataSnippet *);
#ifdef TR_TARGET_64BIT
uint8_t *printArgumentFlush(TR::FILE *, TR::Node *, bool, uint8_t *);
#endif
#endif
#ifdef TR_TARGET_POWER
void printPrefix(TR::FILE *, TR::Instruction *);
void print(TR::FILE *, TR::PPCAlignmentNopInstruction *);
void print(TR::FILE *, TR::PPCDepInstruction *);
void print(TR::FILE *, TR::PPCLabelInstruction *);
void print(TR::FILE *, TR::PPCDepLabelInstruction *);
void print(TR::FILE *, TR::PPCConditionalBranchInstruction *);
void print(TR::FILE *, TR::PPCDepConditionalBranchInstruction *);
void print(TR::FILE *, TR::PPCAdminInstruction *);
void print(TR::FILE *, TR::PPCImmInstruction *);
void print(TR::FILE *, TR::PPCSrc1Instruction *);
void print(TR::FILE *, TR::PPCDepImmSymInstruction *);
void print(TR::FILE *, TR::PPCTrg1Instruction *);
void print(TR::FILE *, TR::PPCTrg1Src1Instruction *);
void print(TR::FILE *, TR::PPCTrg1ImmInstruction *);
void print(TR::FILE *, TR::PPCTrg1Src1ImmInstruction *);
void print(TR::FILE *, TR::PPCTrg1Src1Imm2Instruction *);
void print(TR::FILE *, TR::PPCSrc2Instruction *);
void print(TR::FILE *, TR::PPCSrc3Instruction *);
void print(TR::FILE *, TR::PPCTrg1Src2Instruction *);
void print(TR::FILE *, TR::PPCTrg1Src2ImmInstruction *);
void print(TR::FILE *, TR::PPCTrg1Src3Instruction *);
void print(TR::FILE *, TR::PPCMemSrc1Instruction *);
void print(TR::FILE *, TR::PPCMemInstruction *);
void print(TR::FILE *, TR::PPCTrg1MemInstruction *);
void print(TR::FILE *, TR::PPCControlFlowInstruction *);
#ifdef J9_PROJECT_SPECIFIC
void print(TR::FILE *, TR::PPCVirtualGuardNOPInstruction *);
#endif
TR::Instruction* getOutlinedTargetIfAny(TR::Instruction *instr);
void printPPCOOLSequences(TR::FILE *pOutFile);
const char * getPPCRegisterName(uint32_t regNum, bool useVSR = false);
void print(TR::FILE *, TR::RealRegister *, TR_RegisterSizes size = TR_WordReg);
void print(TR::FILE *, TR::RegisterDependency *);
void print(TR::FILE *, TR::RegisterDependencyConditions *);
void printPPCGCRegisterMap(TR::FILE *, TR::GCRegisterMap *);
void print(TR::FILE *, TR::MemoryReference *, bool d_form = true);
uint8_t * printEmitLoadPPCHelperAddrToCtr(TR::FILE *, uint8_t*, int32_t, TR::RealRegister *);
uint8_t * printEmitLoadIndirectPPCHelperAddrToCtr(TR::FILE *, uint8_t*, TR::RealRegister *, TR::RealRegister *, int32_t);
uint8_t * printPPCArgumentsFlush(TR::FILE *, TR::Node *, uint8_t *, int32_t);
void printInstructionComment(TR::FILE *pOutFile, int32_t tabStops, TR::Instruction *instr);
void printp(TR::FILE *, TR::Snippet *);
void print(TR::FILE *, TR::PPCMonitorEnterSnippet *);
void print(TR::FILE *, TR::PPCMonitorExitSnippet *);
void print(TR::FILE *, TR::PPCReadMonitorSnippet *);
void print(TR::FILE *, TR::PPCAllocPrefetchSnippet *);
void print(TR::FILE *, TR::UnresolvedDataSnippet *);
#ifdef J9_PROJECT_SPECIFIC
void print(TR::FILE *, TR::PPCStackCheckFailureSnippet *);
void print(TR::FILE *, TR::PPCInterfaceCastSnippet *);
void print(TR::FILE *, TR::PPCUnresolvedCallSnippet *);
void print(TR::FILE *, TR::PPCVirtualSnippet *);
void print(TR::FILE *, TR::PPCVirtualUnresolvedSnippet *);
void print(TR::FILE *, TR::PPCInterfaceCallSnippet *);
void print(TR::FILE *, TR::PPCForceRecompilationSnippet *);
void print(TR::FILE *, TR::PPCRecompilationSnippet *);
void print(TR::FILE *, TR::PPCCallSnippet *);
#endif
void printMemoryReferenceComment(TR::FILE *pOutFile, TR::MemoryReference *mr);
void print(TR::FILE *, TR::PPCLockReservationEnterSnippet *);
void print(TR::FILE *, TR::PPCLockReservationExitSnippet *);
uint8_t* print(TR::FILE *pOutFile, TR::PPCArrayCopyCallSnippet *snippet, uint8_t *cursor);
#endif
#ifdef TR_TARGET_ARM
char * fullOpCodeName(TR::Instruction *instr);
void printPrefix(TR::FILE *, TR::Instruction *);
void printBinaryPrefix(char *prefixBuffer, TR::Instruction *);
void dumpDependencyGroup(TR::FILE *pOutFile, TR::RegisterDependencyGroup *group, int32_t numConditions, char *prefix, bool omitNullDependencies);
void dumpDependencies(TR::FILE *, TR::Instruction *);
void print(TR::FILE *, TR::ARMLabelInstruction *);
#ifdef J9_PROJECT_SPECIFIC
void print(TR::FILE *, TR::ARMVirtualGuardNOPInstruction *);
#endif
void print(TR::FILE *, TR::ARMAdminInstruction *);
void print(TR::FILE *, TR::ARMImmInstruction *);
void print(TR::FILE *, TR::ARMImmSymInstruction *);
void print(TR::FILE *, TR::ARMTrg1Src2Instruction *);
void print(TR::FILE *, TR::ARMTrg2Src1Instruction *);
void print(TR::FILE *, TR::ARMMulInstruction *);
void print(TR::FILE *, TR::ARMMemSrc1Instruction *);
void print(TR::FILE *, TR::ARMTrg1Instruction *);
void print(TR::FILE *, TR::ARMMemInstruction *);
void print(TR::FILE *, TR::ARMTrg1MemInstruction *);
void print(TR::FILE *, TR::ARMTrg1MemSrc1Instruction *);
void print(TR::FILE *, TR::ARMControlFlowInstruction *);
void print(TR::FILE *, TR::ARMMultipleMoveInstruction *);
void print(TR::FILE *, TR::MemoryReference *);
void print(TR::FILE *, TR_ARMOperand2 * op, TR_RegisterSizes size = TR_WordReg);
const char * getNamea(TR::Snippet *);
void print(TR::FILE *, TR::RealRegister *, TR_RegisterSizes size = TR_WordReg);
void printARMGCRegisterMap(TR::FILE *, TR::GCRegisterMap *);
void printInstructionComment(TR::FILE *pOutFile, int32_t tabStops, TR::Instruction *instr);
void printa(TR::FILE *, TR::Snippet *);
void print(TR::FILE *, TR::ARMCallSnippet *);
void print(TR::FILE *, TR::ARMUnresolvedCallSnippet *);
void print(TR::FILE *, TR::ARMVirtualSnippet *);
void print(TR::FILE *, TR::ARMVirtualUnresolvedSnippet *);
void print(TR::FILE *, TR::ARMInterfaceCallSnippet *);