ROSE 0.11.145.192
SgAsmElfDynamicEntry.h
1
2#ifndef ROSE_SgAsmElfDynamicEntry_H
3#define ROSE_SgAsmElfDynamicEntry_H
4#include <RoseFirst.h>
5#include <Cxx_GrammarDeclarations.h>
6#include <SgAsmExecutableFileFormat.h>
7
8
9
10/* #line 1 "/workspace/src/ROSETTA/Grammar/grammarClassDeclarationMacros.macro" */
11
12// WARNING -- GENERATED CODE -- DO NOT MODIFY THIS CODE -- WARNING!
13// This code is automatically generated for each
14// terminal and non-terminal within the defined
15// grammar. There is a simple way to change the
16// code to fix bugs etc. See the ROSE README file
17// for directions.
18
19// tps: (02/22/2010): Adding DLL export requirements
20#include "rosedll.h"
21
22// predeclarations for SgAsmElfDynamicEntry
23
24/* #line 25 "../../../src/frontend/SageIII//SgAsmElfDynamicEntry.h" */
25/* #line 22990 "/workspace/src/ROSETTA/src/binaryInstruction.C" */
26
27#include <Rose/BinaryAnalysis/ByteOrder.h>
28#include <Rose/BinaryAnalysis/RelativeVirtualAddress.h>
29#include <sageContainer.h>
30
31
32/* #line 13 "/workspace/src/ROSETTA/Grammar/grammarClassDeclarationMacros.macro after subst for $PREDECLARATIONS" */
33
34/* #line 14 "/workspace/src/ROSETTA/Grammar/grammarClassDeclarationMacros.macro" */
35
36#if !defined(DOCUMENTATION)
37// Class Definition for SgAsmElfDynamicEntry
38class ROSE_DLL_API SgAsmElfDynamicEntry : public SgAsmExecutableFileFormat
39 {
40 public:
41
42
43/* #line 44 "../../../src/frontend/SageIII//SgAsmElfDynamicEntry.h" */
44
45 virtual SgNode* copy ( SgCopyHelp& help) const override;
46// Start of memberFunctionString
47/* #line 23026 "/workspace/src/ROSETTA/src/binaryInstruction.C" */
48
49
50 //----------------------- Boost serialization for SgAsmElfDynamicEntry -----------------------
51#ifdef ROSE_HAVE_BOOST_SERIALIZATION_LIB
52private:
53 friend class boost::serialization::access;
54
55 template<class S>
56 void serialize(S &s, const unsigned /*version*/) {
57 debugSerializationBegin("SgAsmElfDynamicEntry");
58 s & BOOST_SERIALIZATION_BASE_OBJECT_NVP(SgAsmExecutableFileFormat);
59 s & BOOST_SERIALIZATION_NVP(p_d_tag);
60 s & BOOST_SERIALIZATION_NVP(p_d_val);
61 s & BOOST_SERIALIZATION_NVP(p_name);
62 s & BOOST_SERIALIZATION_NVP(p_extra);
63 debugSerializationEnd("SgAsmElfDynamicEntry");
64 }
65#endif // ROSE_HAVE_BOOST_SERIALIZATION_LIB
67 // Local types
69public:
70 enum EntryType { /* Type Executable SharedObj Purpose */
71 DT_NULL = 0, /* ignored mandatory mandatory Marks end of dynamic array */
72 DT_NEEDED = 1, /* value optional optional Name of needed library */
73 DT_PLTRELSZ = 2, /* value optional optional Size of reloc entries associated with PLT */
74 DT_PLTGOT = 3, /* pointer optional optional PLT and/or GOT */
75 DT_HASH = 4, /* pointer mandatory mandatory Symbol hash table */
76 DT_STRTAB = 5, /* pointer mandatory mandatory String table for symbols, lib names, etc. */
77 DT_SYMTAB = 6, /* pointer mandatory mandatory Symbol table */
78 DT_RELA = 7, /* pointer mandatory optional Relocation table */
79 DT_RELASZ = 8, /* value mandatory optional Size of RELA relocation table */
80 DT_RELAENT = 9, /* value mandatory optional Size of each RELA table entry */
81 DT_STRSZ = 10, /* value mandatory mandatory Size of string table */
82 DT_SYMENT = 11, /* value mandatory mandatory Size of symbol table entry */
83 DT_INIT = 12, /* pointer optional optional Initialization function */
84 DT_FINI = 13, /* pointer optional optional Termination function */
85 DT_SONAME = 14, /* value ignored optional Name of shared object */
86 DT_RPATH = 15, /* value optional ignored NUL-term library search path */
87 DT_SYMBOLIC = 16, /* ignored ignored optional Bool determines dynamic linker symbol resolution */
88 DT_REL = 17, /* pointer mandatory optional Relocation table */
89 DT_RELSZ = 18, /* value mandatory optional Size of REL relocation table */
90 DT_RELENT = 19, /* value mandatory optional Size of each REL table entry */
91 DT_PLTREL = 20, /* value optional optional Reloc type for PLT; value is DT_RELA or DT_REL */
92 DT_DEBUG = 21, /* pointer optional ignored Contents are not specified at ABI level */
93 DT_TEXTREL = 22, /* ignored optional optional presence => relocs to nonwritable segments OK */
94 DT_JMPREL = 23, /* pointer optional optional Addr of relocation entries for PLT */
95 DT_BIND_NOW = 24, /* ignored optional optional Shall dynlinker do relocs before xfering control?*/
96 DT_INIT_ARRAY = 25, /* pointer optional ? Array with addresses of init fct */
97 DT_FINI_ARRAY = 26, /* pointer optional ? Array with address of fini fct */
98 DT_INIT_ARRAYSZ = 27, /* value optional ? Size in bytes of DT_INIT_ARRAY */
99 DT_FINI_ARRAYSZ = 28, /* value optional ? Size in bytes of DT_FINI_ARRAY */
100 DT_RUNPATH = 29, /* ? optional ? Library search path (how diff from DT_RPATH?) */
101 DT_FLAGS = 30, /* value optional ? Bit flags */
102 DT_PREINIT_ARRAY = 32, /* pointer optional ? Array with addrs of preinit fct (aka DT_ENCODING)*/
103 DT_PREINIT_ARRAYSZ = 33,/* value optional ? size in bytes of DT_PREINIT_ARRAY */
104 DT_NUM = 34, /* ? ? ? "number used"? */
105
106 DT_GNU_PRELINKED =0x6ffffdf5,/*value ? ? Prelinking time stamp */
107 DT_GNU_CONFLICTSZ=0x6ffffdf6,/*value ? ? Size of conflict section */
108 DT_GNU_LIBLISTSZ=0x6ffffdf7,/*value ? ? Size of library list */
109 DT_CHECKSUM = 0x6ffffdf8, /* value ? ? ? */
110 DT_PLTPADSZ = 0x6ffffdf9, /* value ? ? ? */
111 DT_MOVEENT = 0x6ffffdfa, /* value ? ? ? */
112 DT_MOVESZ = 0x6ffffdfb, /* value ? ? ? */
113 DT_FEATURE_1= 0x6ffffdfc, /* value ? ? Feature selection (DTF_*) */
114 DT_POSFLAG_1= 0x6ffffdfd, /* value ? ? Flag for DT_* entries affecting next entry */
115 DT_SYMINSZ = 0x6ffffdfe, /* value ? ? Size of syminfo table in bytes */
116 DT_SYMINENT = 0x6ffffdff, /* value ? ? Size of each syminfo table entry */
117
118 DT_GNU_HASH = 0x6ffffef5, /* pointer ? ? GNU-style hash table */
119 DT_TLSDESC_PLT=0x6ffffef6,/* pointer ? ? ? */
120 DT_TLSDESC_GOT=0x6ffffef7,/* pointer ? ? ? */
121 DT_GNU_CONFLICT=0x6ffffef8,/*pointer ? ? Start of conflict section */
122 DT_GNU_LIBLIST=0x6ffffef9,/* pointer ? ? Library list */
123 DT_CONFIG = 0x6ffffefa, /* pointer ? ? Configuration information */
124 DT_DEPAUDIT = 0x6ffffefb, /* pointer ? ? Dependency auditing */
125 DT_AUDIT = 0x6ffffefc, /* pointer ? ? Object auditing */
126 DT_PLTPAD = 0x6ffffefd, /* pointer ? ? PLT padding */
127 DT_MOVETAB = 0x6ffffefe, /* pointer ? ? Move table */
128 DT_SYMINFO = 0x6ffffeff, /* pointer ? ? Syminfo table */
129
130 DT_VERSYM = 0x6ffffff0, /* pointer ? ? ? */
131 DT_RELACOUNT= 0x6ffffff9, /* value ? ? ? */
132 DT_RELCOUNT = 0x6ffffffa, /* value ? ? ? */
133 DT_FLAGS_1 = 0x6ffffffb, /* value ? ? Sun state flags */
134 DT_VERDEF = 0x6ffffffc, /* pointer ? ? Sun version definition table */
135 DT_VERDEFNUM= 0x6ffffffd, /* value ? ? Sun number of version definitions */
136 DT_VERNEED = 0x6ffffffe, /* pointer ? ? Sun needed versions table */
137 DT_VERNEEDNUM=0x6fffffff, /* value ? ? Sun number of needed versions */
138
139 DT_AUXILIARY= 0x7ffffffd, /* pointer ? ? Sun shared obj to load before self */
140 DT_FILTER = 0x7fffffff /* pointer ? ? Shared object ot get values from */
141 };
142
143#ifdef _MSC_VER
144# pragma pack (1)
145#endif
146
148 struct Elf32DynamicEntry_disk {
149 uint32_t d_tag;
150 uint32_t d_val;
151 }
152#if !defined(SWIG) && !defined(_MSC_VER)
153 __attribute__((packed))
154#endif
155 ;
156
157 struct Elf64DynamicEntry_disk {
158 uint64_t d_tag;
159 uint64_t d_val;
160 }
161#if !defined(SWIG) && !defined(_MSC_VER)
162 __attribute__((packed))
163#endif
164 ;
165
166#ifdef _MSC_VER
167# pragma pack ()
168#endif
169
171 // Properties
173public:
174public:
180 SgAsmElfDynamicEntry::EntryType const& get_d_tag() const;
181 void set_d_tag(SgAsmElfDynamicEntry::EntryType const&);
184public:
190 Rose::BinaryAnalysis::RelativeVirtualAddress const& get_d_val() const;
195public:
199 SgAsmGenericString* const& get_name() const;
202public:
206 SgUnsignedCharList const& get_extra() const;
207 SgUnsignedCharList& get_extra();
208 void set_extra(SgUnsignedCharList const&);
211 // Functions
213public:
216
232 virtual void dump(FILE*, const char *prefix, ssize_t idx) const;
233
235 static std::string toString(SgAsmElfDynamicEntry::EntryType);
236
238 // Deprecated 2023-11
240public:
241 static std::string to_string(SgAsmElfDynamicEntry::EntryType) ROSE_DEPRECATED("use toString");
242public:
244 virtual ~SgAsmElfDynamicEntry();
245
246public:
249
250protected:
258
259
260// End of memberFunctionString
261// Start of memberFunctionString
262/* #line 1 "/workspace/src/ROSETTA/Grammar/Common.code" */
263
264// *** COMMON CODE SECTION BEGINS HERE ***
265
266 public:
267
268 // DQ (3/25/3006): I put this back in because it had the logic for where the copy function required
269 // and not required which is required to match the other aspects of the copy mechanism code generation.
270 // Specifically it is a problem to declare the copy function everywhere because it is not implemented
271 // for the SgSymbol IR nodes. I'm not clear why it is not implemented for these IR nodes.
272 /* \brief Copies AST (whole subtree, depending on the SgCopyHelp class */
273 // virtual SgNode* copy ( const SgCopyHelp & help) const;
274
276 virtual std::string class_name() const override;
277
279 virtual VariantT variantT() const override; // MS: new variant used in tree traversal
280
282 // King84 (2010.08.16): Moved this to an enum to save space, since it's only used at compiler-time anyway.
283 // static const VariantT static_variant = V_SgAsmElfDynamicEntry;
284 enum { static_variant = V_SgAsmElfDynamicEntry };
285
286 /* the generated cast function */
288 ROSE_DLL_API friend SgAsmElfDynamicEntry* isSgAsmElfDynamicEntry( SgNode * s );
289
291 ROSE_DLL_API friend const SgAsmElfDynamicEntry* isSgAsmElfDynamicEntry( const SgNode * s );
292
293 // ******************************************
294 // * Memory Pool / New / Delete
295 // ******************************************
296
297 public:
299 static const unsigned pool_size; //
301 static std::vector<unsigned char *> pools; //
303 static SgAsmElfDynamicEntry * next_node; //
304
306 static unsigned long initializeStorageClassArray(SgAsmElfDynamicEntryStorageClass *); //
307
309 static void clearMemoryPool(); //
310 static void deleteMemoryPool(); //
311
313 static void extendMemoryPoolForFileIO(); //
314
316 static SgAsmElfDynamicEntry * getPointerFromGlobalIndex(unsigned long); //
318 static SgAsmElfDynamicEntry * getPointerFromGlobalIndex(AstSpecificDataManagingClass *, unsigned long); //
319
321 static unsigned long getNumberOfValidNodesAndSetGlobalIndexInFreepointer(unsigned long); //
323 static void resetValidFreepointers(); //
325 static unsigned long getNumberOfLastValidPointer(); //
326
327
328#if defined(INLINE_FUNCTIONS)
330 inline void *operator new (size_t size);
331#else
333 void *operator new (size_t size);
334#endif
336 void operator delete (void* pointer, size_t size);
337
338 // DQ (4/5/2007): This is not the correct operator that we want, but appears to be required to compile ROSE with ROSE.
339 void operator delete (void* pointer)
340 {
341 // This is the generated delete operator...
342 SgAsmElfDynamicEntry::operator delete (pointer,sizeof(SgAsmElfDynamicEntry));
343 }
344
346 static size_t numberOfNodes();
347
349 static size_t memoryUsage();
350
351 // End of scope which started in IR nodes specific code
352 /* */
353
354 /* name Internal Functions
355 \brief Internal functions ... incomplete-documentation
356
357 These functions have been made public as part of the design, but they are suggested for internal use
358 or by particularly knowledgeable users for specialized tools or applications.
359
360 \internal We could not make these private because they are required by user for special purposes. And
361 it would be unwieldy to have many of the internal classes in ROSE be explicitly defined as friends.
362
363 */
364
365 // MS: 02/12/02 container of pointers to AST successor nodes used in the traversal
366 // overridden in every class by *generated* implementation
368 virtual std::vector<SgNode*> get_traversalSuccessorContainer() override;
369 // MS: 06/28/02 container of names of variables or container indices
370 // used used in the traversal to access AST successor nodes
371 // overridden in every class by *generated* implementation
374 virtual std::vector<std::string> get_traversalSuccessorNamesContainer() override;
375
376 // GB (09/25/2007): Functions for index-based access to traversal successors; these are hopefully a lot faster
377 // than all the vector copies. The implementation for these functions is generated for each class.
379 virtual size_t get_numberOfTraversalSuccessors() override;
381 virtual SgNode *get_traversalSuccessorByIndex(size_t idx) override;
383 virtual size_t get_childIndex(SgNode *child) override;
384
385#ifndef ROSE_USE_INTERNAL_FRONTEND_DEVELOPMENT
386 // MS: 08/16/2002 method for generating RTI information
388 virtual RTIReturnType roseRTI() override;
389#endif
390 /* */
391
392
393
394 /* name Deprecated Functions
395 \brief Deprecated functions ... incomplete-documentation
396
397 These functions have been deprecated from use.
398 */
399 /* */
400
402 virtual const char* sage_class_name() const override ROSE_DEPRECATED_FUNCTION;
403
404 // JJW (10/16/2008): Changed to a single function in Node.code, and put
405 // getVariant() in #if 0 block to prevent confusing Doxygen
406#if 0
408 virtual int variant() const ROSE_DEPRECATED_FUNCTION;
410 // virtual int getVariant() const ROSE_DEPRECATED_FUNCTION;
411#endif
412 /* */
413
414
415
416
417 public:
418 /* name Traversal Support Functions
419 \brief Traversal support functions ... incomplete-documentation
420
421 These functions have been made public as part of the design, but they are suggested for internal use
422 or by particularly knowledgable users for specialized tools or applications.
423 */
424 /* */
425
426 // DQ (11/26/2005): Support for visitor pattern mechanims
427 // (inferior to ROSE traversal mechanism, experimental).
431
432 /* DXN (08/09/2010): support for the classic visitor pattern done in GoF */
434 virtual void accept (ROSE_VisitorPattern & visitor) override;
435
436 // DQ (12/26/2005): Support for traversal based on the memory pool
439 static void traverseMemoryPoolNodes(ROSE_VisitTraversal & visit);
440
444
445 // DQ (2/9/2006): Added to support traversal over single representative of each IR node
446 // This traversal helps support internal tools that call static member functions.
447 // note: this function operates on the memory pools.
450 static void visitRepresentativeNode (ROSE_VisitTraversal & visit);
451 /* */
452
453 public:
454 /* NodeId support functions */
456 static SgNode* getNodeByNodeId(VariantT variantT, size_t poolIdx, size_t itemIdx);
459 static SgAsmElfDynamicEntry* getNodeByNodeIdInternal(size_t poolIdx, size_t itemIdx);
462 static std::string getNodeIdString(SgAsmElfDynamicEntry* sgnode);
463 static std::string getNodeIdStringInternal(SgAsmElfDynamicEntry* sgnode);
464
465 public:
466 /* name Memory Allocation Functions
467 \brief Memory allocations functions ... incomplete-documentation
468
469 These functions have been made public as part of the design, but they are suggested for internal use
470 or by particularly knowledgable users for specialized tools or applications.
471 */
472 /* */
473
484 virtual bool isInMemoryPool() override;
485
496 virtual void checkDataMemberPointersIfInMemoryPool() override;
497
498 // DQ (4/30/2006): Modified to be a const function.
513 virtual std::vector<std::pair<SgNode*,std::string> > returnDataMemberPointers() const override;
514
525
537 virtual long getChildIndex( SgNode* childNode ) const override;
538
539 // DQ (9/2/2015): Since this function is generated by ROSETTA, we can't define the
540 // comment here (changed to be a C style comment and not be a doxygen comment).
541 /* \brief Constructor for use by AST File I/O Mechanism
542
543 This constructor permits the IR node to be rebuilt from the contiguously arranged data in memory
544 which obtained via fast binary file I/O from disk.
545 */
546 // SgAsmElfDynamicEntry( SgAsmElfDynamicEntryStorageClass& source );
547
548
549
550
551
552 // JH (10/24/2005): methods added to support the ast file IO
553 private:
554
555 /* name AST Memory Allocation Support Functions
556 \brief Memory allocations support....
557
558 These functions handle the low leve support of the memory allocation scheme which permits IR nodes to be allocated
559 in large contiguous blocks to reduce memory fragmentation, improve performance, support specialized access (AST traversals),
560 and support the AST File I/O Mechanism.
561 */
562 /* */
563
564 /* JH (10/24/2005): Two typedefs. The TestType notes the type every pointer is cast to before
565 we compare them. Since I had several problems with this, I decided to make a typdef to ensure
566 that I use the same type everywhere, if any changes are made. THe second one declares the type
567 (actually unsigned long) where teh pointer address gets converted to. On 64 bit platforms this
568 might got changed, but unfortunatly, the return types are still unsigned longs. There exists
569 a correspinding one in the AST_FILE_IO class!
570 */
571 // DQ (9/2/2015): This typedef is no longer used, we can't define the
572 // comment here (changed to be a C style comment and not be a doxygen comment).
573 /* \brief Typedef used for low level memory access.
574 */
575 // typedef unsigned char* TestType;
576
577 // DQ (9/2/2015): This typedef is no longer used, we can't define the
578 // comment here (changed to be a C style comment and not be a doxygen comment).
579 /* \brief Typedef used to hold memory addresses as values.
580 */
581 // typedef unsigned long AddressType;
582
583
584
585 // necessary, to have direct access to the p_freepointer and the private methods !
587 friend class AST_FILE_IO;
588
590 friend class SgAsmElfDynamicEntryStorageClass;
591
593 friend class AstSpecificDataManagingClass;
594
596 friend class AstSpecificDataManagingClassStorageClass;
597 public:
599 SgAsmElfDynamicEntry( const SgAsmElfDynamicEntryStorageClass& source );
600
601 // private: // JJW hack
602 /*
603 name AST Memory Allocation Support Variables
604 Memory allocations support variables
605
606 These variables handle the low level support of the memory allocation scheme which permits IR nodes to be allocated
607 in large contiguous blocks to reduce memory fragmentation, improve performance, support specialized access (AST traversals),
608 and support the AST File I/O Mechanism.
609 */
610 /* */
611
612 public:
613
614 // DQ (11/21/2009): Added function to add new Regular Expression attributes and return pointer
615 // to current node (so that it will work cleanly with build functions to specify patterns).
616 // virtual SgNode* addRegExpAttribute();
623
624#ifndef _MSC_VER
625// Rasmussen (04/17/2019): Support for ATerms has been deprecated as it is no longer needed
626// and likely never fully implemented nor tested. Files remain in the src tree but are no
627// longer built.
628#define BUILD_ATERM_SUPPORT 0
629 #if BUILD_ATERM_SUPPORT
630 #ifdef ROSE_USE_ROSE_ATERM_SUPPORT
631 // DQ (10/4/2014): Adding ATerm support to ROSE.
641 // Rasmussen (1/7/2019): Added override to kill warning messages of overridden virtual function
642 virtual ATerm generate_ATerm() override;
643
645 virtual void generate_ATerm_Annotation(ATerm & term) override;
646 #endif
647 #endif // BUILD_ATERM_SUPPORT
648#endif
649 // These can't be virtual functions since we don't yet know what IR node to build (until we have read the aterm).
650 // virtual generate_AST(ATerm & term);
651 // virtual void read_ATerm_Annotation(ATerm & term);
652
653// *** COMMON CODE SECTION ENDS HERE ***
654
655
656// End of memberFunctionString
657// Start of memberFunctionString
658/* #line 706 "/workspace/src/ROSETTA/Grammar/Node.code" */
659
660 // the generated cast function
661 // friend ROSE_DLL_API SgAsmElfDynamicEntry* isSgAsmElfDynamicEntry ( SgNode* s );
662
663 typedef SgAsmExecutableFileFormat base_node_type;
664
665
666// End of memberFunctionString
667
668
669
670
671
672 protected:
673// Start of memberFunctionString
674SgAsmElfDynamicEntry::EntryType p_d_tag;
675
676// End of memberFunctionString
677// Start of memberFunctionString
679
680// End of memberFunctionString
681// Start of memberFunctionString
682SgAsmGenericString* p_name;
683
684// End of memberFunctionString
685// Start of memberFunctionString
686SgUnsignedCharList p_extra;
687
688// End of memberFunctionString
689
692 friend struct Rose::Traits::generated::describe_field_t<SgAsmElfDynamicEntry, Rose::BinaryAnalysis::RelativeVirtualAddress,&SgAsmElfDynamicEntry::p_d_val>;
693 friend struct Rose::Traits::generated::describe_field_t<SgAsmElfDynamicEntry, SgAsmGenericString*,&SgAsmElfDynamicEntry::p_name>;
694 friend struct Rose::Traits::generated::describe_field_t<SgAsmElfDynamicEntry, SgUnsignedCharList,&SgAsmElfDynamicEntry::p_extra>;
695
696/* #line 21 "/workspace/src/ROSETTA/Grammar/grammarClassDeclarationMacros.macro" */
697
698
699 };
700#endif
701
702// postdeclarations for SgAsmElfDynamicEntry
703
704/* #line 705 "../../../src/frontend/SageIII//SgAsmElfDynamicEntry.h" */
705
706/* #line 27 "/workspace/src/ROSETTA/Grammar/grammarClassDeclarationMacros.macro after subst for $POSTDECLARATIONS" */
707
708/* #line 28 "/workspace/src/ROSETTA/Grammar/grammarClassDeclarationMacros.macro" */
709
710
711/* #line 712 "../../../src/frontend/SageIII//SgAsmElfDynamicEntry.h" */
712
713#endif // ROSE_SgAsmElfDynamicEntry_H
714
Class holding static data and functions supporting File I/O.
Definition AST_FILE_IO.h:19
Attribute containing a regex expression as a string.
Optionally bound relative virtual address.
One entry from the dynamic linking table.
ELF section containing dynamic linking information.
Base class for many binary analysis nodes.
void initializeProperties()
Initialize all properties that have explicit initial values.
Base class for strings related to binary specimens.
Supporting class from copy mechanism within ROSE.
Definition sageCopy.h:26
This class represents the base class for all IR nodes within Sage III.
virtual size_t get_numberOfTraversalSuccessors()
return number of children in the traversal successor list
virtual RTIReturnType roseRTI()
return C++ Runtime-Time-Information
virtual std::vector< std::string > get_traversalSuccessorNamesContainer()
container of names of variables or container indices used used in the traversal to access AST success...
virtual void debugSerializationEnd(const char *className)
Called by generated serializers.
static std::string getNodeIdString(SgNode *sgnode)
compute the NodeId for a particular SgNode*.
virtual bool isInMemoryPool()
FOR INTERNAL USE This is used in internal tests to verify that all IR nodes are allocated from the he...
int variant() const
Older version function returns enum value "NODE".
virtual void processDataMemberReferenceToPointers(ReferenceToPointerHandler *)
FOR INTERNAL USE Processes pairs of references to SgNode* and strings for use in AST tools
virtual VariantT variantT() const
returns new style SageIII enum values
virtual long getChildIndex(SgNode *childNode) const
FOR INTERNAL USE Returns a unique index value for the childNode in the list of children at this IR no...
virtual size_t get_childIndex(SgNode *child)
index-based access to traversal successors by child node
virtual void debugSerializationBegin(const char *className)
Called by generated serializers.
virtual std::vector< SgNode * > get_traversalSuccessorContainer()
container of pointers to AST successor nodes used in the traversal overridden in every class by gener...
virtual std::string class_name() const
returns a string representing the class name
static void visitRepresentativeNode(ROSE_VisitTraversal &visit)
FOR INTERNAL USE Support for type-based traversal.
virtual void checkDataMemberPointersIfInMemoryPool()
FOR INTERNAL USE This is used in internal tests to verify that all IR nodes are allocated from the he...
static size_t numberOfNodes()
Returns the total number of IR nodes of this type.
virtual void accept(ROSE_VisitorPattern &visitor)
support for the classic visitor pattern done in GoF
virtual SgNode * get_traversalSuccessorByIndex(size_t idx)
index-based access to traversal successors by index number
static void traverseMemoryPoolVisitorPattern(ROSE_VisitorPattern &visitor)
FOR INTERNAL USE Support for visitor pattern.
void executeVisitorMemberFunction(ROSE_VisitorPattern &visitor)
FOR INTERNAL USE Support for visitor pattern.
static SgNode * getNodeByNodeId(VariantT variantT, size_t poolIdx, size_t itemIdx)
Find a node by its variant type, pool index, and item index.
static size_t memoryUsage()
Returns the size in bytes of the total memory allocated for all IR nodes of this type.
static void traverseMemoryPoolNodes(ROSE_VisitTraversal &visit)
FOR INTERNAL USE Support for visitor pattern over all IR nodes by type of IR node.
virtual const char * sage_class_name() const
generates string representing the class name: (e.g. for SgNode returns "SgNode").
virtual std::vector< std::pair< SgNode *, std::string > > returnDataMemberPointers() const
FOR INTERNAL USE Returns STL vector of pairs of SgNode* and strings for use in AST tools
static SgNode * getNodeByNodeIdInternal(size_t poolIdx, size_t itemIdx)
FOR INTERNAL USE Find an SgNode from its memory pool and location therin.
SgNode * addRegExpAttribute(std::string s, AstRegExAttribute *a)
Support for AST matching using regular expression.
void parse(SgAsmGenericFile *)
Main function to parse DWARF information.
ROSE_UTIL_API std::string toString(const Path &)
Convert a path to a string.
void serialize(std::ostream &output, Graph &graph)
Serialize a graph into a stream of bytes.
ROSE_DLL_API int set_name(SgInitializedName *initializedNameNode, SgName new_name)
set_name of symbol in symbol table.
std::string get_name(const SgNode *node)
Generate a useful name to describe the SgNode.
void copy(const Word *src, const BitRange &srcRange, Word *dst, const BitRange &dstRange)
Copy some bits.
const char * EntryType(int64_t)
Convert Rose::BinaryAnalysis::Partitioner2::ModulesX86::SwitchSuccessors::EntryType enum constant to ...