ROSE  0.9.9.109
sageGeneric.h
Go to the documentation of this file.
1 #ifndef _SAGEGENERIC_H
2 
3 #define _SAGEGENERIC_H
4 
11 
12 // note: the comments are right aligned to support code-blocks doxygen 1.3.X :)
13 
14 #include <stdexcept>
15 
16 #if !defined(NDEBUG)
17 #include <typeinfo>
18 #include <iostream>
19 #endif /* NDEBUG */
20 
21 
22 #define WITH_BINARY_ANALYSIS 0
23 
24 // #include "Cxx_Grammar.h"
25 
26 // DQ (10/5/2014): We can't include this here.
27 // #include "rose.h"
28 
29 
30 namespace sg
31 {
32  //
33  // non sage specific utilities
34 
37  template <class T>
38  static inline
39  void unused(const T&) {}
40 
42  template <class T>
43  T& deref(T* ptr)
44  {
45  assert(ptr);
46  return *ptr;
47  }
48 
50  template <class T1, class T2>
51  struct ConstLike
52  {
53  typedef T2 type;
54  };
55 
56  template <class T1, class T2>
57  struct ConstLike<const T1, T2>
58  {
59  typedef const T2 type;
60  };
61 
62  //
63  // error reporting
64 
65  static inline
66  void unexpected_node(const SgNode& n)
67  {
68  sg::unused(n);
69 
70 #if !defined(NDEBUG)
71  std::cerr << typeid(n).name() << std::endl;
72 #endif
73 
74  ROSE_ASSERT(false);
75  throw std::logic_error("Encountered unexpected sage node. Please send a bug report to the maintainer.");
76  }
77 
78  //
79  // Convenience class
80 
81  template <class _ReturnType>
83  {
84  typedef _ReturnType ReturnType;
86 
88  : res()
89  {}
90 
91  explicit
92  DispatchHandler(const ReturnType& defaultval)
93  : res(defaultval)
94  {}
95 
96  operator ReturnType() const { return res; }
97 
98  protected:
99  ReturnType res;
100  };
101 
102 
103  //
104  // Sage query functions
105 
107  template <class SageNode>
108  static inline
109  SageNode& assume_sage_type(SgNode& n)
110  {
111  return static_cast<SageNode&>(n);
112  }
113 
116  template <class SageNode>
117  static inline
118  const SageNode& assume_sage_type(const SgNode& n)
119  {
120  return static_cast<const SageNode&>(n);
121  }
122 
123 #define GEN_VISIT(X) \
124  void visit(X * n) { rv.handle(*n); }
125 
126  template <class RoseVisitor>
128  {
129  explicit
130  VisitDispatcher(const RoseVisitor& rosevisitor)
131  : rv(rosevisitor)
132  {}
133 
134  GEN_VISIT(SgNode)
135 
136  GEN_VISIT(SgName)
137  GEN_VISIT(SgSymbolTable)
138  GEN_VISIT(SgPragma)
139  GEN_VISIT(SgModifierNodes)
140  GEN_VISIT(SgConstVolatileModifier)
141  GEN_VISIT(SgStorageModifier)
142  GEN_VISIT(SgAccessModifier)
143  GEN_VISIT(SgFunctionModifier)
144  GEN_VISIT(SgUPC_AccessModifier)
145  GEN_VISIT(SgLinkageModifier)
146  GEN_VISIT(SgSpecialFunctionModifier)
147  GEN_VISIT(SgTypeModifier)
148  GEN_VISIT(SgElaboratedTypeModifier)
149  GEN_VISIT(SgBaseClassModifier)
150  GEN_VISIT(SgDeclarationModifier)
151  GEN_VISIT(SgOpenclAccessModeModifier)
152  GEN_VISIT(SgModifier)
153  GEN_VISIT(Sg_File_Info)
154  GEN_VISIT(SgSourceFile)
155 
156  GEN_VISIT(SgUnknownFile)
157  GEN_VISIT(SgFile)
158  GEN_VISIT(SgFileList)
159  GEN_VISIT(SgDirectory)
160  GEN_VISIT(SgDirectoryList)
161  GEN_VISIT(SgProject)
162  GEN_VISIT(SgOptions)
163  GEN_VISIT(SgUnparse_Info)
164  GEN_VISIT(SgFuncDecl_attr)
165  GEN_VISIT(SgClassDecl_attr)
166  GEN_VISIT(SgTypedefSeq)
167  GEN_VISIT(SgFunctionParameterTypeList)
168  GEN_VISIT(SgTemplateParameter)
169  GEN_VISIT(SgTemplateArgument)
170  GEN_VISIT(SgTemplateParameterList)
171  GEN_VISIT(SgTemplateArgumentList)
176  GEN_VISIT(SgTemplateParameterVal)
177  GEN_VISIT(SgTemplateFunctionRefExp)
179  GEN_VISIT(SgTypeTraitBuiltinOperator)
180  GEN_VISIT(SgBitAttribute)
181  GEN_VISIT(SgAttribute)
182  GEN_VISIT(SgBaseClass)
183  GEN_VISIT(SgUndirectedGraphEdge)
184  GEN_VISIT(SgDirectedGraphEdge)
185  GEN_VISIT(SgGraphNode)
186  GEN_VISIT(SgGraphEdge)
189  GEN_VISIT(SgBidirectionalGraph)
190  GEN_VISIT(SgIncidenceDirectedGraph)
191  GEN_VISIT(SgIncidenceUndirectedGraph)
192  GEN_VISIT(SgGraph)
193  GEN_VISIT(SgGraphNodeList)
194  GEN_VISIT(SgGraphEdgeList)
195  GEN_VISIT(SgQualifiedName)
196  GEN_VISIT(SgNameGroup)
197  GEN_VISIT(SgCommonBlockObject)
198  GEN_VISIT(SgDimensionObject)
199  GEN_VISIT(SgDataStatementGroup)
200  GEN_VISIT(SgDataStatementObject)
201  GEN_VISIT(SgDataStatementValue)
202  GEN_VISIT(SgFormatItem)
203  GEN_VISIT(SgFormatItemList)
204  GEN_VISIT(SgTypeTable)
205  GEN_VISIT(SgSupport)
206  GEN_VISIT(SgForStatement)
207  GEN_VISIT(SgMatlabForStatement)
208  GEN_VISIT(SgForInitStatement)
209  GEN_VISIT(SgCatchStatementSeq)
210  GEN_VISIT(SgFunctionParameterList)
211  GEN_VISIT(SgCtorInitializerList)
212  GEN_VISIT(SgBasicBlock)
213  GEN_VISIT(SgGlobal)
214  GEN_VISIT(SgIfStmt)
215  GEN_VISIT(SgFunctionDefinition)
216  GEN_VISIT(SgWhileStmt)
217  GEN_VISIT(SgDoWhileStmt)
218  GEN_VISIT(SgSwitchStatement)
219  GEN_VISIT(SgCatchOptionStmt)
220  GEN_VISIT(SgVariableDeclaration)
221  GEN_VISIT(SgVariableDefinition)
222  GEN_VISIT(SgEnumDeclaration)
223  GEN_VISIT(SgAsmStmt)
224  GEN_VISIT(SgTypedefDeclaration)
225  GEN_VISIT(SgFunctionTypeTable)
226  GEN_VISIT(SgExprStatement)
227  GEN_VISIT(SgLabelStatement)
228  GEN_VISIT(SgCaseOptionStmt)
229  GEN_VISIT(SgTryStmt)
230  GEN_VISIT(SgDefaultOptionStmt)
231  GEN_VISIT(SgBreakStmt)
232  GEN_VISIT(SgContinueStmt)
233  GEN_VISIT(SgReturnStmt)
234  GEN_VISIT(SgGotoStatement)
235  GEN_VISIT(SgSpawnStmt)
236  GEN_VISIT(SgNullStatement)
237  GEN_VISIT(SgVariantStatement)
238  GEN_VISIT(SgPragmaDeclaration)
239  GEN_VISIT(SgTemplateDeclaration)
240  GEN_VISIT(SgTemplateInstantiationDecl)
241  GEN_VISIT(SgTemplateInstantiationDefn)
242  GEN_VISIT(SgTemplateClassDeclaration)
243  GEN_VISIT(SgTemplateClassDefinition)
246  GEN_VISIT(SgProgramHeaderStatement)
247  GEN_VISIT(SgProcedureHeaderStatement)
248  GEN_VISIT(SgEntryStatement)
249  GEN_VISIT(SgFortranNonblockedDo)
250  GEN_VISIT(SgInterfaceStatement)
251  GEN_VISIT(SgParameterStatement)
252  GEN_VISIT(SgCommonBlock)
253  GEN_VISIT(SgModuleStatement)
254  GEN_VISIT(SgUseStatement)
255  GEN_VISIT(SgStopOrPauseStatement)
256  GEN_VISIT(SgPrintStatement)
257  GEN_VISIT(SgReadStatement)
258  GEN_VISIT(SgWriteStatement)
259  GEN_VISIT(SgOpenStatement)
260  GEN_VISIT(SgCloseStatement)
261  GEN_VISIT(SgInquireStatement)
262  GEN_VISIT(SgFlushStatement)
263  GEN_VISIT(SgBackspaceStatement)
264  GEN_VISIT(SgRewindStatement)
265  GEN_VISIT(SgEndfileStatement)
266  GEN_VISIT(SgWaitStatement)
267  GEN_VISIT(SgCAFWithTeamStatement)
268  GEN_VISIT(SgFormatStatement)
269  GEN_VISIT(SgFortranDo)
270  GEN_VISIT(SgForAllStatement)
271  GEN_VISIT(SgIOStatement)
272  GEN_VISIT(SgUpcNotifyStatement)
273  GEN_VISIT(SgUpcWaitStatement)
274  GEN_VISIT(SgUpcBarrierStatement)
275  GEN_VISIT(SgUpcFenceStatement)
276  GEN_VISIT(SgUpcForAllStatement)
277  GEN_VISIT(SgOmpParallelStatement)
278  GEN_VISIT(SgOmpSingleStatement)
279  GEN_VISIT(SgOmpSimdStatement)
280  GEN_VISIT(SgOmpTaskStatement)
281  GEN_VISIT(SgOmpForStatement)
282  GEN_VISIT(SgOmpForSimdStatement)
283  GEN_VISIT(SgOmpDoStatement)
284  GEN_VISIT(SgOmpSectionsStatement)
285  GEN_VISIT(SgOmpClauseBodyStatement)
286  GEN_VISIT(SgOmpAtomicStatement)
287  GEN_VISIT(SgOmpMasterStatement)
288  GEN_VISIT(SgOmpSectionStatement)
289  GEN_VISIT(SgOmpOrderedStatement)
290  GEN_VISIT(SgOmpWorkshareStatement)
291  GEN_VISIT(SgOmpCriticalStatement)
292  GEN_VISIT(SgOmpBodyStatement)
293  GEN_VISIT(SgBlockDataStatement)
294  GEN_VISIT(SgImplicitStatement)
296  GEN_VISIT(SgWhereStatement)
297  GEN_VISIT(SgNullifyStatement)
298  GEN_VISIT(SgEquivalenceStatement)
299  GEN_VISIT(SgDerivedTypeStatement)
301  GEN_VISIT(SgAllocateStatement)
302  GEN_VISIT(SgDeallocateStatement)
303  GEN_VISIT(SgContainsStatement)
304  GEN_VISIT(SgSequenceStatement)
305  GEN_VISIT(SgElseWhereStatement)
306  GEN_VISIT(SgArithmeticIfStatement)
307  GEN_VISIT(SgAssignStatement)
308  GEN_VISIT(SgComputedGotoStatement)
309  GEN_VISIT(SgAssignedGotoStatement)
310  GEN_VISIT(SgNamelistStatement)
311  GEN_VISIT(SgImportStatement)
312  GEN_VISIT(SgAssociateStatement)
313  GEN_VISIT(SgFortranIncludeLine)
317  GEN_VISIT(SgUsingDeclarationStatement)
318  GEN_VISIT(SgUsingDirectiveStatement)
320  GEN_VISIT(SgClassDeclaration)
321  GEN_VISIT(SgClassDefinition)
322  GEN_VISIT(SgScopeStatement)
323  GEN_VISIT(SgMemberFunctionDeclaration)
324  GEN_VISIT(SgFunctionDeclaration)
325  GEN_VISIT(SgIncludeDirectiveStatement)
326  GEN_VISIT(SgDefineDirectiveStatement)
327  GEN_VISIT(SgUndefDirectiveStatement)
328  GEN_VISIT(SgIfdefDirectiveStatement)
329  GEN_VISIT(SgIfndefDirectiveStatement)
330  GEN_VISIT(SgIfDirectiveStatement)
331  GEN_VISIT(SgDeadIfDirectiveStatement)
332  GEN_VISIT(SgElseDirectiveStatement)
333  GEN_VISIT(SgElseifDirectiveStatement)
334  GEN_VISIT(SgEndifDirectiveStatement)
335  GEN_VISIT(SgLineDirectiveStatement)
336  GEN_VISIT(SgWarningDirectiveStatement)
337  GEN_VISIT(SgErrorDirectiveStatement)
338  GEN_VISIT(SgEmptyDirectiveStatement)
340  GEN_VISIT(SgIdentDirectiveStatement)
343  GEN_VISIT(SgClinkageStartStatement)
344  GEN_VISIT(SgClinkageEndStatement)
346  GEN_VISIT(SgOmpFlushStatement)
347  GEN_VISIT(SgOmpDeclareSimdStatement)
348  GEN_VISIT(SgOmpBarrierStatement)
349  GEN_VISIT(SgOmpTaskwaitStatement)
350  GEN_VISIT(SgOmpThreadprivateStatement)
351  GEN_VISIT(SgDeclarationStatement)
352  GEN_VISIT(SgExprListExp)
353  GEN_VISIT(SgVarRefExp)
354  GEN_VISIT(SgLabelRefExp)
355  GEN_VISIT(SgClassNameRefExp)
356  GEN_VISIT(SgFunctionRefExp)
357  GEN_VISIT(SgMemberFunctionRefExp)
358  GEN_VISIT(SgFunctionCallExp)
359  GEN_VISIT(SgSizeOfOp)
360  GEN_VISIT(SgUpcLocalsizeofExpression)
361  GEN_VISIT(SgUpcBlocksizeofExpression)
362  GEN_VISIT(SgUpcElemsizeofExpression)
363  GEN_VISIT(SgVarArgStartOp)
364  GEN_VISIT(SgVarArgStartOneOperandOp)
365  GEN_VISIT(SgVarArgOp)
366  GEN_VISIT(SgVarArgEndOp)
367  GEN_VISIT(SgVarArgCopyOp)
368  GEN_VISIT(SgTypeIdOp)
369  GEN_VISIT(SgConditionalExp)
370  GEN_VISIT(SgNewExp)
371  GEN_VISIT(SgDeleteExp)
372  GEN_VISIT(SgThisExp)
373  GEN_VISIT(SgRefExp)
374  GEN_VISIT(SgAggregateInitializer)
375  GEN_VISIT(SgConstructorInitializer)
376  GEN_VISIT(SgAssignInitializer)
377  GEN_VISIT(SgExpressionRoot)
378  GEN_VISIT(SgMinusOp)
379  GEN_VISIT(SgUnaryAddOp)
380  GEN_VISIT(SgNotOp)
381  GEN_VISIT(SgPointerDerefExp)
382  GEN_VISIT(SgAddressOfOp)
383  GEN_VISIT(SgMinusMinusOp)
384  GEN_VISIT(SgPlusPlusOp)
385  GEN_VISIT(SgBitComplementOp)
386  GEN_VISIT(SgRealPartOp)
387  GEN_VISIT(SgImagPartOp)
388  GEN_VISIT(SgConjugateOp)
389  GEN_VISIT(SgCastExp)
390  GEN_VISIT(SgThrowOp)
391  GEN_VISIT(SgArrowExp)
392  GEN_VISIT(SgDotExp)
393  GEN_VISIT(SgDotStarOp)
394  GEN_VISIT(SgArrowStarOp)
395  GEN_VISIT(SgEqualityOp)
396  GEN_VISIT(SgLessThanOp)
397  GEN_VISIT(SgGreaterThanOp)
398  GEN_VISIT(SgNotEqualOp)
399  GEN_VISIT(SgLessOrEqualOp)
400  GEN_VISIT(SgGreaterOrEqualOp)
401  GEN_VISIT(SgAddOp)
402  GEN_VISIT(SgSubtractOp)
403  GEN_VISIT(SgMultiplyOp)
404  GEN_VISIT(SgDivideOp)
405  GEN_VISIT(SgIntegerDivideOp)
406  GEN_VISIT(SgModOp)
407  GEN_VISIT(SgAndOp)
408  GEN_VISIT(SgOrOp)
409  GEN_VISIT(SgBitXorOp)
410  GEN_VISIT(SgBitAndOp)
411  GEN_VISIT(SgBitOrOp)
412  GEN_VISIT(SgCommaOpExp)
413  GEN_VISIT(SgLshiftOp)
414  GEN_VISIT(SgRshiftOp)
415  GEN_VISIT(SgPntrArrRefExp)
416  GEN_VISIT(SgScopeOp)
417  GEN_VISIT(SgAssignOp)
418  GEN_VISIT(SgPlusAssignOp)
419  GEN_VISIT(SgMinusAssignOp)
420  GEN_VISIT(SgAndAssignOp)
421  GEN_VISIT(SgIorAssignOp)
422  GEN_VISIT(SgMultAssignOp)
423  GEN_VISIT(SgDivAssignOp)
424  GEN_VISIT(SgModAssignOp)
425  GEN_VISIT(SgXorAssignOp)
426  GEN_VISIT(SgLshiftAssignOp)
427  GEN_VISIT(SgRshiftAssignOp)
428  GEN_VISIT(SgConcatenationOp)
429  GEN_VISIT(SgBoolValExp)
430  GEN_VISIT(SgStringVal)
431  GEN_VISIT(SgShortVal)
432  GEN_VISIT(SgCharVal)
433  GEN_VISIT(SgUnsignedCharVal)
434  GEN_VISIT(SgWcharVal)
435  GEN_VISIT(SgUnsignedShortVal)
436  GEN_VISIT(SgIntVal)
437  GEN_VISIT(SgEnumVal)
438  GEN_VISIT(SgUnsignedIntVal)
439  GEN_VISIT(SgLongIntVal)
440  GEN_VISIT(SgLongLongIntVal)
441  GEN_VISIT(SgUnsignedLongLongIntVal)
442  GEN_VISIT(SgUnsignedLongVal)
443  GEN_VISIT(SgFloatVal)
444  GEN_VISIT(SgDoubleVal)
445  GEN_VISIT(SgLongDoubleVal)
446  GEN_VISIT(SgUpcThreads)
447  GEN_VISIT(SgUpcMythread)
448  GEN_VISIT(SgComplexVal)
449  GEN_VISIT(SgNullExpression)
450  GEN_VISIT(SgVariantExpression)
451  GEN_VISIT(SgStatementExpression)
452  GEN_VISIT(SgAsmOp)
453  GEN_VISIT(SgCudaKernelExecConfig)
454  GEN_VISIT(SgCudaKernelCallExp)
455  GEN_VISIT(SgSubscriptExpression)
456  GEN_VISIT(SgColonShapeExp)
457  GEN_VISIT(SgAsteriskShapeExp)
458  GEN_VISIT(SgIOItemExpression)
459  GEN_VISIT(SgImpliedDo)
460  GEN_VISIT(SgExponentiationOp)
462  GEN_VISIT(SgActualArgumentExpression)
463  GEN_VISIT(SgUserDefinedBinaryOp)
464  GEN_VISIT(SgPointerAssignOp)
465  GEN_VISIT(SgCAFCoExpression)
466  GEN_VISIT(SgDesignatedInitializer)
467  GEN_VISIT(SgInitializer)
468  GEN_VISIT(SgUserDefinedUnaryOp)
469  GEN_VISIT(SgPseudoDestructorRefExp)
470  GEN_VISIT(SgUnaryOp)
471  GEN_VISIT(SgBinaryOp)
472  GEN_VISIT(SgValueExp)
473  GEN_VISIT(SgVariableSymbol)
474  GEN_VISIT(SgFunctionTypeSymbol)
475  GEN_VISIT(SgClassSymbol)
476  GEN_VISIT(SgTemplateSymbol)
477  GEN_VISIT(SgEnumSymbol)
478  GEN_VISIT(SgEnumFieldSymbol)
479  GEN_VISIT(SgTypedefSymbol)
480  GEN_VISIT(SgMemberFunctionSymbol)
481  GEN_VISIT(SgLabelSymbol)
482  GEN_VISIT(SgDefaultSymbol)
483  GEN_VISIT(SgNamespaceSymbol)
484  GEN_VISIT(SgIntrinsicSymbol)
485  GEN_VISIT(SgModuleSymbol)
486  GEN_VISIT(SgInterfaceSymbol)
487  GEN_VISIT(SgCommonSymbol)
488  GEN_VISIT(SgRenameSymbol)
489  GEN_VISIT(SgFunctionSymbol)
490  GEN_VISIT(SgAsmBinaryAddressSymbol)
491  GEN_VISIT(SgAsmBinaryDataSymbol)
492  GEN_VISIT(SgAliasSymbol)
493  GEN_VISIT(SgSymbol)
494 
495 #if WITH_BINARY_ANALYSIS
496  GEN_VISIT(SgBinaryComposite)
497  GEN_VISIT(SgAsmBlock)
498  GEN_VISIT(SgAsmOperandList)
499  GEN_VISIT(SgAsmArmInstruction)
500  GEN_VISIT(SgAsmX86Instruction)
501  GEN_VISIT(SgAsmPowerpcInstruction)
502  GEN_VISIT(SgAsmInstruction)
503  GEN_VISIT(SgAsmStatement)
504  GEN_VISIT(SgAsmBinaryAdd)
505  GEN_VISIT(SgAsmBinarySubtract)
506  GEN_VISIT(SgAsmBinaryMultiply)
507  GEN_VISIT(SgAsmBinaryDivide)
508  GEN_VISIT(SgAsmBinaryMod)
509  GEN_VISIT(SgAsmBinaryAddPreupdate)
511  GEN_VISIT(SgAsmBinaryAddPostupdate)
513  GEN_VISIT(SgAsmBinaryLsl)
514  GEN_VISIT(SgAsmBinaryLsr)
515  GEN_VISIT(SgAsmBinaryAsr)
516  GEN_VISIT(SgAsmBinaryRor)
517  GEN_VISIT(SgAsmBinaryExpression)
518  GEN_VISIT(SgAsmUnaryPlus)
519  GEN_VISIT(SgAsmUnaryMinus)
520  GEN_VISIT(SgAsmUnaryRrx)
522  GEN_VISIT(SgAsmUnaryExpression)
524  GEN_VISIT(SgAsmControlFlagsExpression)
525  GEN_VISIT(SgAsmCommonSubExpression)
528  GEN_VISIT(SgAsmIntegerValueExpression)
529  GEN_VISIT(SgAsmFloatValueExpression)
530  GEN_VISIT(SgAsmValueExpression)
531  GEN_VISIT(SgAsmExprListExp)
532  GEN_VISIT(SgAsmExpression)
533  GEN_VISIT(SgAsmIntegerType)
534  GEN_VISIT(SgAsmFloatType)
535  GEN_VISIT(SgAsmScalarType)
536  GEN_VISIT(SgAsmVectorType)
537  GEN_VISIT(SgAsmType)
538  GEN_VISIT(SgAsmGenericDLL)
539  GEN_VISIT(SgAsmPEImportItemList)
540  GEN_VISIT(SgAsmPEImportDirectoryList)
541  GEN_VISIT(SgAsmGenericFormat)
542  GEN_VISIT(SgAsmGenericFile)
543  GEN_VISIT(SgAsmElfFileHeader)
544  GEN_VISIT(SgAsmPEFileHeader)
545  GEN_VISIT(SgAsmNEFileHeader)
546  GEN_VISIT(SgAsmLEFileHeader)
547  GEN_VISIT(SgAsmDOSFileHeader)
548  GEN_VISIT(SgAsmGenericHeader)
549  GEN_VISIT(SgAsmElfRelocSection)
550  GEN_VISIT(SgAsmElfDynamicSection)
551  GEN_VISIT(SgAsmElfSymbolSection)
552  GEN_VISIT(SgAsmElfStringSection)
553  GEN_VISIT(SgAsmElfEHFrameSection)
554  GEN_VISIT(SgAsmElfNoteSection)
555  GEN_VISIT(SgAsmElfSymverSection)
557  GEN_VISIT(SgAsmElfSymverNeededSection)
558  GEN_VISIT(SgAsmElfStrtab)
559  GEN_VISIT(SgAsmCoffStrtab)
560  GEN_VISIT(SgAsmGenericStrtab)
561  GEN_VISIT(SgAsmElfSection)
562  GEN_VISIT(SgAsmElfSectionTable)
563  GEN_VISIT(SgAsmElfSegmentTable)
564  GEN_VISIT(SgAsmPEImportSection)
565  GEN_VISIT(SgAsmPEExportSection)
566  GEN_VISIT(SgAsmPEStringSection)
567  GEN_VISIT(SgAsmPESection)
568  GEN_VISIT(SgAsmPESectionTable)
569  GEN_VISIT(SgAsmCoffSymbolTable)
570  GEN_VISIT(SgAsmDOSExtendedHeader)
571  GEN_VISIT(SgAsmNESection)
572  GEN_VISIT(SgAsmNESectionTable)
573  GEN_VISIT(SgAsmNENameTable)
574  GEN_VISIT(SgAsmNEModuleTable)
575  GEN_VISIT(SgAsmNEStringTable)
576  GEN_VISIT(SgAsmNEEntryTable)
577  GEN_VISIT(SgAsmNERelocTable)
578  GEN_VISIT(SgAsmLESection)
579  GEN_VISIT(SgAsmLESectionTable)
580  GEN_VISIT(SgAsmLENameTable)
581  GEN_VISIT(SgAsmLEPageTable)
582  GEN_VISIT(SgAsmLEEntryTable)
583  GEN_VISIT(SgAsmLERelocTable)
584  GEN_VISIT(SgAsmGenericSection)
585  GEN_VISIT(SgAsmCoffSymbol)
586  GEN_VISIT(SgAsmElfSymbol)
587  GEN_VISIT(SgAsmGenericSymbol)
588  GEN_VISIT(SgAsmElfSectionTableEntry)
589  GEN_VISIT(SgAsmElfSegmentTableEntry)
591  GEN_VISIT(SgAsmElfRelocEntry)
592  GEN_VISIT(SgAsmElfRelocEntryList)
593  GEN_VISIT(SgAsmElfDynamicEntry)
594  GEN_VISIT(SgAsmElfDynamicEntryList)
595  GEN_VISIT(SgAsmElfEHFrameEntryCI)
596  GEN_VISIT(SgAsmElfEHFrameEntryCIList)
597  GEN_VISIT(SgAsmElfEHFrameEntryFD)
598  GEN_VISIT(SgAsmElfEHFrameEntryFDList)
599  GEN_VISIT(SgAsmElfNoteEntry)
600  GEN_VISIT(SgAsmElfNoteEntryList)
601  GEN_VISIT(SgAsmElfSymverEntry)
602  GEN_VISIT(SgAsmElfSymverEntryList)
603  GEN_VISIT(SgAsmElfSymverDefinedEntry)
605  GEN_VISIT(SgAsmElfSymverDefinedAux)
607  GEN_VISIT(SgAsmElfSymverNeededEntry)
609  GEN_VISIT(SgAsmElfSymverNeededAux)
610  GEN_VISIT(SgAsmElfSymverNeededAuxList)
611  GEN_VISIT(SgAsmPERVASizePair)
612  GEN_VISIT(SgAsmPEExportDirectory)
613  GEN_VISIT(SgAsmPEExportEntry)
614  GEN_VISIT(SgAsmPEImportDirectory)
615  GEN_VISIT(SgAsmPEImportItem)
616  GEN_VISIT(SgAsmPESectionTableEntry)
617  GEN_VISIT(SgAsmNEEntryPoint)
618  GEN_VISIT(SgAsmNERelocEntry)
619  GEN_VISIT(SgAsmNESectionTableEntry)
620  GEN_VISIT(SgAsmLEPageTableEntry)
621  GEN_VISIT(SgAsmLEEntryPoint)
622  GEN_VISIT(SgAsmLESectionTableEntry)
623  GEN_VISIT(SgAsmGenericSectionList)
624  GEN_VISIT(SgAsmGenericHeaderList)
625  GEN_VISIT(SgAsmGenericSymbolList)
626  GEN_VISIT(SgAsmElfSymbolList)
627  GEN_VISIT(SgAsmCoffSymbolList)
628  GEN_VISIT(SgAsmGenericDLLList)
629  GEN_VISIT(SgAsmPERVASizePairList)
630  GEN_VISIT(SgAsmPEExportEntryList)
631  GEN_VISIT(SgAsmBasicString)
632  GEN_VISIT(SgAsmStoredString)
633  GEN_VISIT(SgAsmGenericString)
634  GEN_VISIT(SgAsmStringStorage)
635  GEN_VISIT(SgAsmDwarfMacro)
636  GEN_VISIT(SgAsmDwarfLine)
637  GEN_VISIT(SgAsmDwarfMacroList)
638  GEN_VISIT(SgAsmDwarfLineList)
639  GEN_VISIT(SgAsmDwarfArrayType)
640  GEN_VISIT(SgAsmDwarfClassType)
641  GEN_VISIT(SgAsmDwarfEntryPoint)
642  GEN_VISIT(SgAsmDwarfEnumerationType)
643  GEN_VISIT(SgAsmDwarfFormalParameter)
645  GEN_VISIT(SgAsmDwarfLabel)
646  GEN_VISIT(SgAsmDwarfLexicalBlock)
647  GEN_VISIT(SgAsmDwarfMember)
648  GEN_VISIT(SgAsmDwarfPointerType)
649  GEN_VISIT(SgAsmDwarfReferenceType)
650  GEN_VISIT(SgAsmDwarfCompilationUnit)
651  GEN_VISIT(SgAsmDwarfStringType)
652  GEN_VISIT(SgAsmDwarfStructureType)
653  GEN_VISIT(SgAsmDwarfSubroutineType)
654  GEN_VISIT(SgAsmDwarfTypedef)
655  GEN_VISIT(SgAsmDwarfUnionType)
657  GEN_VISIT(SgAsmDwarfVariant)
658  GEN_VISIT(SgAsmDwarfCommonBlock)
659  GEN_VISIT(SgAsmDwarfCommonInclusion)
660  GEN_VISIT(SgAsmDwarfInheritance)
661  GEN_VISIT(SgAsmDwarfInlinedSubroutine)
662  GEN_VISIT(SgAsmDwarfModule)
663  GEN_VISIT(SgAsmDwarfPtrToMemberType)
664  GEN_VISIT(SgAsmDwarfSetType)
665  GEN_VISIT(SgAsmDwarfSubrangeType)
666  GEN_VISIT(SgAsmDwarfWithStmt)
667  GEN_VISIT(SgAsmDwarfAccessDeclaration)
668  GEN_VISIT(SgAsmDwarfBaseType)
669  GEN_VISIT(SgAsmDwarfCatchBlock)
670  GEN_VISIT(SgAsmDwarfConstType)
671  GEN_VISIT(SgAsmDwarfConstant)
672  GEN_VISIT(SgAsmDwarfEnumerator)
673  GEN_VISIT(SgAsmDwarfFileType)
674  GEN_VISIT(SgAsmDwarfFriend)
675  GEN_VISIT(SgAsmDwarfNamelist)
676  GEN_VISIT(SgAsmDwarfNamelistItem)
677  GEN_VISIT(SgAsmDwarfPackedType)
678  GEN_VISIT(SgAsmDwarfSubprogram)
681  GEN_VISIT(SgAsmDwarfThrownType)
682  GEN_VISIT(SgAsmDwarfTryBlock)
683  GEN_VISIT(SgAsmDwarfVariantPart)
684  GEN_VISIT(SgAsmDwarfVariable)
685  GEN_VISIT(SgAsmDwarfVolatileType)
686  GEN_VISIT(SgAsmDwarfDwarfProcedure)
687  GEN_VISIT(SgAsmDwarfRestrictType)
688  GEN_VISIT(SgAsmDwarfInterfaceType)
689  GEN_VISIT(SgAsmDwarfNamespace)
690  GEN_VISIT(SgAsmDwarfImportedModule)
691  GEN_VISIT(SgAsmDwarfUnspecifiedType)
692  GEN_VISIT(SgAsmDwarfPartialUnit)
693  GEN_VISIT(SgAsmDwarfImportedUnit)
694  GEN_VISIT(SgAsmDwarfMutableType)
695  GEN_VISIT(SgAsmDwarfCondition)
696  GEN_VISIT(SgAsmDwarfSharedType)
697  GEN_VISIT(SgAsmDwarfFormatLabel)
698  GEN_VISIT(SgAsmDwarfFunctionTemplate)
699  GEN_VISIT(SgAsmDwarfClassTemplate)
700  GEN_VISIT(SgAsmDwarfUpcSharedType)
701  GEN_VISIT(SgAsmDwarfUpcStrictType)
702  GEN_VISIT(SgAsmDwarfUpcRelaxedType)
703  GEN_VISIT(SgAsmDwarfUnknownConstruct)
704  GEN_VISIT(SgAsmDwarfConstruct)
705  GEN_VISIT(SgAsmDwarfConstructList)
707  GEN_VISIT(SgAsmDwarfInformation)
708  GEN_VISIT(SgAsmExecutableFileFormat)
709  GEN_VISIT(SgAsmInterpretation)
710  GEN_VISIT(SgAsmInterpretationList)
711  GEN_VISIT(SgAsmGenericFileList)
712  GEN_VISIT(SgAsmNode)
713 #endif /* WITH_BINARY_ANALYSIS */
714 
715  GEN_VISIT(SgInitializedName)
716  GEN_VISIT(SgOmpOrderedClause)
717  GEN_VISIT(SgOmpNowaitClause)
718  GEN_VISIT(SgOmpUntiedClause)
719  GEN_VISIT(SgOmpMergeableClause)
720  GEN_VISIT(SgOmpDefaultClause)
721  GEN_VISIT(SgOmpCollapseClause)
722  GEN_VISIT(SgOmpIfClause)
723  GEN_VISIT(SgOmpFinalClause)
724  GEN_VISIT(SgOmpPriorityClause)
725  GEN_VISIT(SgOmpNumThreadsClause)
726  GEN_VISIT(SgOmpExpressionClause)
727  GEN_VISIT(SgOmpCopyprivateClause)
728  GEN_VISIT(SgOmpPrivateClause)
729  GEN_VISIT(SgOmpFirstprivateClause)
730  GEN_VISIT(SgOmpSharedClause)
731  GEN_VISIT(SgOmpCopyinClause)
732  GEN_VISIT(SgOmpLastprivateClause)
733  GEN_VISIT(SgOmpReductionClause)
734  GEN_VISIT(SgOmpVariablesClause)
735  GEN_VISIT(SgOmpScheduleClause)
736  GEN_VISIT(SgOmpDependClause)
737  GEN_VISIT(SgOmpClause)
738  GEN_VISIT(SgRenamePair)
739  GEN_VISIT(SgInterfaceBody)
740  GEN_VISIT(SgLocatedNodeSupport)
741  GEN_VISIT(SgToken)
742 
743  //
744  // Types
745  GEN_VISIT(SgTypeUnknown)
746  GEN_VISIT(SgTypeChar)
747  GEN_VISIT(SgTypeSignedChar)
748  GEN_VISIT(SgTypeUnsignedChar)
749  GEN_VISIT(SgTypeShort)
750  GEN_VISIT(SgTypeSignedShort)
751  GEN_VISIT(SgTypeUnsignedShort)
752  GEN_VISIT(SgTypeInt)
753  GEN_VISIT(SgTypeSignedInt)
754  GEN_VISIT(SgTypeUnsignedInt)
755  GEN_VISIT(SgTypeLong)
756  GEN_VISIT(SgTypeSignedLong)
757  GEN_VISIT(SgTypeUnsignedLong)
758  GEN_VISIT(SgTypeVoid)
759  GEN_VISIT(SgTypeGlobalVoid)
760  GEN_VISIT(SgTypeWchar)
761  GEN_VISIT(SgTypeFloat)
762  GEN_VISIT(SgTypeDouble)
763  GEN_VISIT(SgTypeLongLong)
764  GEN_VISIT(SgTypeSignedLongLong)
765  GEN_VISIT(SgTypeUnsignedLongLong)
766  GEN_VISIT(SgTypeLongDouble)
767  GEN_VISIT(SgTypeString)
768  GEN_VISIT(SgTypeBool)
769  GEN_VISIT(SgTypeComplex)
770  GEN_VISIT(SgTypeImaginary)
771  GEN_VISIT(SgTypeDefault)
772  GEN_VISIT(SgPointerMemberType)
773  GEN_VISIT(SgReferenceType)
774  GEN_VISIT(SgTypeCAFTeam)
775  GEN_VISIT(SgClassType)
776  GEN_VISIT(SgTemplateType)
777  GEN_VISIT(SgEnumType)
778  GEN_VISIT(SgTypedefType)
779  GEN_VISIT(SgModifierType)
781  GEN_VISIT(SgArrayType)
782  GEN_VISIT(SgTypeEllipse)
783  GEN_VISIT(SgTypeCrayPointer)
784  GEN_VISIT(SgPartialFunctionType)
785  GEN_VISIT(SgMemberFunctionType)
786  GEN_VISIT(SgFunctionType)
787  GEN_VISIT(SgPointerType)
788  GEN_VISIT(SgNamedType)
789  GEN_VISIT(SgQualifiedNameType)
790  // DQ (4/5/2017): Added this case that shows up using GNU 6.1 and Boost 1.51 (or Boost 1.52).
791  GEN_VISIT(SgDeclType)
792 
793  RoseVisitor rv;
794  };
795 
796 #undef GEN_VISIT
797 
798  template <class RoseVisitor>
799  inline
800  RoseVisitor
801  _dispatch(const RoseVisitor& rv, SgNode* n)
802  {
803  ROSE_ASSERT(n);
804 
806 
807  n->accept(vis);
808  return vis.rv;
809  }
810 
872  template <class RoseVisitor>
873  inline
874  RoseVisitor
875  dispatch(const RoseVisitor& rv, SgNode* n)
876  {
877  return _dispatch(rv, n);
878  }
879 
881  template <class RoseVisitor>
882  inline
883  RoseVisitor
884  dispatch(const RoseVisitor& rv, const SgNode* n)
885  {
886  return _dispatch(rv, const_cast<SgNode*>(n));
887  }
888 
889  template <class SageNode>
891  {
892  void handle(SageNode&) {}
893  };
894 
902  template <class AncestorNode, class QualSgNode>
903  struct AncestorTypeFinder : DefaultHandler<const SgProject>
904  {
906  typedef std::pair<AncestorNode*, QualSgNode*> Pair;
907 
908  Pair res;
909 
911  : Base(), res(NULL, NULL)
912  {}
913 
914  // handling of const SgProject is outsourced to DefaultHandler
915  // thus, AncestorNode = const SgProject does not cause conflicts
916  using Base::handle;
917 
918  void handle(QualSgNode& n) { res.second = n.get_parent(); }
919  void handle(AncestorNode& n) { res.first = &n; }
920 
921  operator Pair() const { return res; }
922  };
923 
926  template <class AncestorNode, class QualSgNode>
927  AncestorNode* _ancestor(QualSgNode& n)
928  {
929  typedef AncestorTypeFinder<AncestorNode, QualSgNode> AncestorFinder;
930 
931  typename AncestorFinder::Pair res(NULL, n.get_parent());
932 
933  while (res.second != NULL)
934  {
935  res = sg::dispatch(AncestorFinder(), res.second);
936  }
937 
938  return res.first;
939  }
940 
952  template <class AncestorNode>
953  AncestorNode* ancestor(SgNode* n)
954  {
955  if (n == NULL) return NULL;
956 
957  return _ancestor<AncestorNode>(*n);
958  }
959 
961  template <class AncestorNode>
962  const AncestorNode* ancestor(const SgNode* n)
963  {
964  if (n == NULL) return NULL;
965 
966  return _ancestor<const AncestorNode>(*n);
967  }
968 
970  template <class AncestorNode>
971  AncestorNode& ancestor(SgNode& n)
972  {
973  AncestorNode* res = _ancestor<AncestorNode>(n);
974 
975  ROSE_ASSERT(res);
976  return *res;
977  }
978 
980  template <class AncestorNode>
981  const AncestorNode& ancestor(const SgNode& n)
982  {
983  const AncestorNode* res = _ancestor<const AncestorNode>(n);
984 
985  ROSE_ASSERT(res);
986  return *res;
987  }
988 
989  template <class SageNode>
991  {
993 
994  SageNode* res;
995 
997  : res(NULL)
998  {}
999 
1000  void handle(SgBaseNode& n) { unexpected_node(n); }
1001  void handle(SageNode& n) { res = &n; }
1002 
1003  operator SageNode* () { return res; }
1004  };
1005 
1013  template <class SageNode>
1014  SageNode* assert_sage_type(SgNode* n)
1015  {
1016  return sg::dispatch(TypeRecoveryHandler<SageNode>(), n);
1017  }
1018 
1020  template <class SageNode>
1021  const SageNode* assert_sage_type(const SgNode* n)
1022  {
1023  return sg::dispatch(TypeRecoveryHandler<const SageNode>(), n);
1024  }
1025 
1028  static inline
1029  void swap_parent(SgNode* lhs, SgNode* rhs)
1030  {
1031  SgNode* tmp = lhs->get_parent();
1032 
1033  lhs->set_parent(rhs->get_parent());
1034  rhs->set_parent(tmp);
1035  }
1036 
1040  static inline
1041  void swap_parent(void*, void*) {}
1042 
1050  template <class SageNode, class SageChild>
1051  void swap_child(SageNode& lhs, SageNode& rhs, SageChild* (SageNode::*getter) () const, void (SageNode::*setter) (SageChild*))
1052  {
1053  SageChild* lhs_child = (lhs.*getter)();
1054  SageChild* rhs_child = (rhs.*getter)();
1055  ROSE_ASSERT(lhs_child && rhs_child);
1056 
1057  (lhs.*setter)(rhs_child);
1058  (rhs.*setter)(lhs_child);
1059 
1060  swap_parent(lhs_child, rhs_child);
1061  }
1062 }
1063 #endif /* _SAGEGENERIC_H */
This class represents modifiers for SgDeclaration (declaration statements).
List of pointers to file sections.
This class represents the notion of an initializer for a variable declaration or expression in a func...
This class represents the concept of a scope in C++ (e.g. global scope, fuction scope, etc.).
The GNU symbol version definitions.
This class represents the concept of a C++ template instantiation directive.
This class represents the concept of an instantiation of member function template or a member functio...
This class represents the concept of a class declaration statement. It includes the concept of an ins...
This class represents the concept of a declaration list.
This class represents a boolean value (expression value).
One entry of the ELF symbol version needed table.
This class represents a OLD concept of the structure require for qualified names when they were in th...
String associated with a binary file.
Expression that adds two operands.
This class represents the concept of an instantiated class template.
This class represents the notion of an value (expression value).
List of dynamic linking section entries.
This class represents the concept of a C or C++ goto statement.
Contiguous region of a file.
This class represents the concept of a C or C++ statement which contains a expression.
Expression that performs a post-increment operation.
Expression representing a (no-op) unary plus operation.
This class represents the notion of a binary operator. It is derived from a SgExpression because oper...
Expression that performs a right rotate.
Auxiliary info for needed symbol version.
Instruction basic block.
Base class for all binary analysis IR nodes.
This class represents a source file for a project (which may contian many source files and or directo...
List of entries for the ELF symbol version definition table.
This class represents the variable declaration or variable initialization withn a for loop...
One entry of an ELF relocation table.
This class represents the concept of a C++ sequence of catch statements.
This class represents the notion of a unary operator. It is derived from a SgExpression because opera...
Represents the file header of an ELF binary container.
This class represents the GNU extension "statement expression" (thus is non-standard C and C++)...
This class represents the C++ throw expression (handled as a unary operator).
Expression that performs a post-decrement operation.
This class represents the rhs of a variable declaration which includes an optional assignment (e...
Portable Executable Import Section.
This class represents the concept of a C++ using directive.
List of generic file headers.
List of binary interpretations.
Base class for machine instructions.
This class represents the concept of a do-while statement.
This class represents a Fortran pointer assignment. It is not some weird compound assignment operator...
Section table entry.
This class represents the concept of a class name within the compiler.
This class represents the location of the code associated with the IR node in the original source cod...
This class represents the concept of an enum declaration.
Base class for scalar types.
List of expression nodes.
This class represents the "this" operator (can be applied to any member data).
Expression that performs an arithmetic, sign-bit preserving right shift.
void set_parent(SgNode *parent)
All nodes in the AST contain a reference to a parent node.
This class represents a string type used for SgStringVal IR node.
Expression that performs a logical, sign-bit non-preserving right shift.
This class represents the concept of a C style extern "C" declaration. But such information (linkage)...
This class represents the notion of a declared variable.
Strings stored in an ELF or PE container.
This class represents the concept of a member function declaration statement.
Expression that returns the remainder when dividing the first operand by the second.
This class represents the concept of a C and C++ case option (used within a switch statement)...
This class represents the concept of a function declaration statement.
Node to hold a list of symbol node pointers.
Base class for ELF file sections.
This class represents the concept of a C Assembler statement (untested).
This class represents the concept of a scope in C++ (e.g. global scope, fuction scope, etc.).
Base class for PE sections.
This class represents the concept of a C and C++ expression list.
This class represents the "sizeof()" operator (applied to any type).
Expression that divides the first operand by the second.
Hods a list of symbol version aux entries.
Basic information about an executable container.
This class represents the concept of a C++ namespace alias declaration statement. ...
This class is not used in ROSE, but is intended to represent a list of SgModifierTypes (similar to th...
This class represents the base class of a numbr of IR nodes that don't otherwise fit into the existin...
Definition: Cxx_Grammar.h:9279
Entry in an ELF symbol version table.
This class represents a directory within a projects file structure of files and directories.
This class represents the notion of an value (expression value).
ELF error handling frame entry frame description entry.
This class represents the concept of a C trinary conditional expression (e.g. "test ...
Represents an ELF relocation section.
One import directory per library.
GNU symbol version requirements table.
List of ELF relocation entries.
This class represents the notion of a break statement (typically used in a switch statment)...
List of AST file node pointers.
This class represents the concept of a name within the compiler.
ELF section containing dynamic linking information.
Represents the file header for DOS executables.
List of ELF EH frame CI entries.
Represents an ELF EH frame section.
One entry of an ELF notes table.
ELF string table section.
This class represents the concept of a class definition in C++.
This class represents strings within the IR nodes.
Reference to memory locations.
projects the constness of T1 on T2
Definition: sageGeneric.h:51
This class represents the concept of a contructor initializer list (used in constructor (member funct...
Base class for container file headers.
Expression represting negation.
List of pointers to other AST nodes.
Expression representing a machine register.
Base class for integer values.
This class represents the concept of a namespace name within the compiler.
This class represents the notion of a typedef declaration.
ELF file section containing symbols.
This class represents the notion of an value (expression value).
This class represents the base class for all IR nodes within Sage III.
Definition: Cxx_Grammar.h:8322
List of operands for an instruction.
This class represents the concept of a catch within a try-catch construct used in C++ exception handl...
Base class for dynamically linked library information.
This class represents the notion of an value (expression value).
This class represents the concept of a variable name within the compiler (a shared container for the ...
This class represents the concept of an instantiation of function template.
Expression that performs a pre-decrement operation.
Expression that performs a pre-increment operation.
This class represents the "&" operator (applied to any lvalue).
A single imported object.
Represents one PowerPC machine instruction.
One entry from an ELF symbol version definition table.
Represents a single ELF symbol.
This class represents the base class of a number of IR nodes define modifiers within the C++ grammar...
Definition: Cxx_Grammar.h:9752
This class represents the concept of a block (not a basic block from control flow analysis)...
This class represents the concept of a C++ namespace declaration.
Base class for strings related to binary specimens.
This class represents the concept of a namespace definition.
This class represents the concept of a for loop.
DOS exteded header.
Base class for unary expressions.
Base class for many binary analysis nodes.
Represents one Intel x86 machine instruction.
This class represents the concept of a C++ using declaration.
This class represents a C99 complex type.
This class represents a type for all functions.
This class represents the concept of a namespace definition.
This class represents the numeric negation of a value. Not to be confused with SgSubtractOp.
This class represents the concept of a C Assembler statement (untested).
Represents one entry of a segment table.
This class represents the concept of a C or C++ default case within a switch statement.
Base class for expressions.
This class represents a default type used for some IR nodes (see below).
This class represents the concept of an "if" construct.
This class represents the concept of a template declaration.
Expression that performs a logical left shift operation.
List of pointers to other nodes.
Expression that multiplies two operands.
This class represents template argument within the use of a template to build an instantiation.
This class represents the variable refernece in expressions.
Represents one ARM machine instruction.
Node to hold list of ELF note entries.
This class represents the concept of a do-while statement.
This class represents a OLD concept of the structure require for qualified names when they were in th...
List of entries from a symbol version table.
List of SgAsmPERVASizePair AST nodes.
Base class for binary types.
This class represents the definition (initialization) of a variable.
This class represents the concept of a class definition in C++.
This class represents the concept of a C++ call to the delete operator.
Export file section.
virtual void accept(ROSE_VisitorPattern &visitor)
support for the classic visitor pattern done in GoF
helper class for _ancestor
Definition: sageGeneric.h:903
Registers accessed indirectly.
This class represents the concept of a C++ call to the new operator.
This class represents the concept of a C or C++ continue statement.
This class represents an object used to initialize the unparsing.
Base class for values.
Floating-point value.
This class represents the member function being called and must be assembled in the SgFunctionCall wi...
Windows PE file header.
This class represents modifiers specific to storage.
This class represents the symbol tables used in both SgScopeStatement and the SgFunctionTypeSymbolTab...
Expression that subtracts the second operand from the first.
SgNode * get_parent() const
Access function for parent node.
This class represents the function being called and must be assembled in the SgFunctionCall with the ...
This class represents the concept of try statement within the try-catch support for exception handlin...
This class represents the concept of a C Assembler statement.
This class represents the concept of a name and a type. It may be renamed in the future to SgTypeSymb...
This class represents a list of associated typedefs for the SgType IR nodes which reference this list...
One entry from the dynamic linking table.
This class represents a source project, with a list of SgFile objects and global information about th...
This class represents the function type table (stores all function types so that they can be shared i...
Integer types.
This class represents a C99 complex type.
This class represents the concept of a C or C++ variable declaration.
This class represents the notion of an initializer for a variable declaration or expression in a func...
The ELF symbol version table.
Represents one entry in an ELF section table.
Represents an ELF segment table.
Strings stored in an ELF or PE container.
Represents an ELF section table.
ELF string table.
A list of imported items.
Represents an interpretation of a binary container.
This class represents the concept of a C or C++ label statement.
List of symbol version needed entries.
Floating point types.
This class is part of the older CC++ concept. It is not a part of C or C++ (this IR node is not used ...
This class represents the concept of a C++ function call (which is an expression).
Base class for binary files.
Base class for binary expressions.
Base class for vector types.
This class was part of CC++ support from a long time ago.
List of symbol version aux entries.
This class represents the concept of a declaration statement.
This class represents the concept of a switch.
This class represents the concept of a C++ expression built from a class name.
A list of PE Import Directories.
ELF error handling frame entry, common information entry.