ROSE 0.11.145.247
SgAsmPEImportDirectory.h
1
2#ifndef ROSE_SgAsmPEImportDirectory_H
3#define ROSE_SgAsmPEImportDirectory_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 SgAsmPEImportDirectory
23
24/* #line 25 "../../../src/frontend/SageIII//SgAsmPEImportDirectory.h" */
25/* #line 3385 "/workspace/src/ROSETTA/src/binaryInstruction.C" */
26
27#include <Rose/BinaryAnalysis/Address.h>
28#include <Rose/BinaryAnalysis/AddressIntervalSet.h>
29#include <Rose/BinaryAnalysis/RelativeVirtualAddress.h>
30#include <sageContainer.h>
31
32#ifdef ROSE_SgAsmPEImportDirectory_IMPL
33#include <SgAsmGenericString.h>
34#include <SgAsmPEImportItemList.h>
35#endif
36
37
38/* #line 13 "/workspace/src/ROSETTA/Grammar/grammarClassDeclarationMacros.macro after subst for $PREDECLARATIONS" */
39
40/* #line 14 "/workspace/src/ROSETTA/Grammar/grammarClassDeclarationMacros.macro" */
41
42#if !defined(DOCUMENTATION)
43// Class Definition for SgAsmPEImportDirectory
44class ROSE_DLL_API SgAsmPEImportDirectory : public SgAsmExecutableFileFormat
45 {
46 public:
47
48
49/* #line 50 "../../../src/frontend/SageIII//SgAsmPEImportDirectory.h" */
50
51 virtual SgNode* copy ( SgCopyHelp& help) const override;
52// Start of memberFunctionString
53/* #line 3466 "/workspace/src/ROSETTA/src/binaryInstruction.C" */
54
55
56 //----------------------- Boost serialization for SgAsmPEImportDirectory -----------------------
57#ifdef ROSE_ENABLE_BOOST_SERIALIZATION
58private:
59 friend class boost::serialization::access;
60
61 template<class S>
62 void serialize(S &s, const unsigned /*version*/) {
63 debugSerializationBegin("SgAsmPEImportDirectory");
64 s & BOOST_SERIALIZATION_BASE_OBJECT_NVP(SgAsmExecutableFileFormat);
65 s & BOOST_SERIALIZATION_NVP(p_dllName);
66 s & BOOST_SERIALIZATION_NVP(p_dllNameRva);
67 s & BOOST_SERIALIZATION_NVP(p_dll_name_nalloc);
68 s & BOOST_SERIALIZATION_NVP(p_time);
69 s & BOOST_SERIALIZATION_NVP(p_forwarder_chain);
70 s & BOOST_SERIALIZATION_NVP(p_ilt_rva);
71 s & BOOST_SERIALIZATION_NVP(p_ilt_nalloc);
72 s & BOOST_SERIALIZATION_NVP(p_iat_rva);
73 s & BOOST_SERIALIZATION_NVP(p_iat_nalloc);
74 s & BOOST_SERIALIZATION_NVP(p_imports);
75 debugSerializationEnd("SgAsmPEImportDirectory");
76 }
77#endif // ROSE_ENABLE_BOOST_SERIALIZATION
79 // Local types
81public:
82#ifdef _MSC_VER
83# pragma pack (1)
84#endif
85 struct PEImportDirectory_disk {
86 uint32_t ilt_rva; /* 0x00 Import Lookup Table RVA */
87 uint32_t time; /* 0x04 Zero until the image is bound, then time stamp of the DLL */
88 uint32_t forwarder_chain; /* 0x08 Index of the first forwarder chain */
89 uint32_t dll_name_rva; /* 0x0c address of NUL-terminated DLL name */
90 uint32_t iat_rva; /* 0x10 Import Address Table (Thunk Table) RVA */
91 } /* 0x14 */
92#if !defined(SWIG) && !defined(_MSC_VER)
93 __attribute__((packed))
94#endif
95 ;
96#ifdef _MSC_VER
97# pragma pack ()
98#endif
99
101 // Properties
103public:
104public:
110 SgAsmGenericString* const& get_dllName() const;
111 void set_dllName(SgAsmGenericString* const&);
114public:
120 Rose::BinaryAnalysis::RelativeVirtualAddress const& get_dllNameRva() const;
122 void set_dllNameRva(Rose::BinaryAnalysis::RelativeVirtualAddress const&);
125public:
131 size_t const& get_dll_name_nalloc() const;
132 void set_dll_name_nalloc(size_t const&);
135public:
141 time_t const& get_time() const;
142 void set_time(time_t const&);
145public:
151 unsigned const& get_forwarder_chain() const;
152 void set_forwarder_chain(unsigned const&);
155public:
161 Rose::BinaryAnalysis::RelativeVirtualAddress const& get_ilt_rva() const;
163 void set_ilt_rva(Rose::BinaryAnalysis::RelativeVirtualAddress const&);
166public:
172 size_t const& get_ilt_nalloc() const;
173 void set_ilt_nalloc(size_t const&);
176public:
182 Rose::BinaryAnalysis::RelativeVirtualAddress const& get_iat_rva() const;
184 void set_iat_rva(Rose::BinaryAnalysis::RelativeVirtualAddress const&);
187public:
193 size_t const& get_iat_nalloc() const;
194 void set_iat_nalloc(size_t const&);
197public:
203 SgAsmPEImportItemList* const& get_imports() const;
204 void set_imports(SgAsmPEImportItemList* const&);
207 // Functions
209public:
210 explicit SgAsmPEImportDirectory(SgAsmPEImportSection *isec, const std::string &dll_name="");
211
218
226 size_t reallocate(Rose::BinaryAnalysis::RelativeVirtualAddress starting_rva);
227
230 virtual void unparse(std::ostream&, const SgAsmPEImportSection*, size_t idx) const;
231 virtual void dump(FILE*, const char *prefix, ssize_t idx) const;
232
238 size_t iatRequiredSize() const;
239
244 int findImportItem(const SgAsmPEImportItem *item, int hint=0) const;
245
257 size_t hintNameTableExtent(Rose::BinaryAnalysis::AddressIntervalSet &extent/*in,out*/) const;
258
259private:
260 void parse_ilt_iat(const Rose::BinaryAnalysis::RelativeVirtualAddress &table_start, bool assume_bound);
261 void unparse_ilt_iat(std::ostream&,const Rose::BinaryAnalysis::RelativeVirtualAddress &table_start, bool assume_bound,
262 size_t nalloc) const;
263
265 // Deprecated 2023-11
267public:
268 SgAsmGenericString* get_dll_name() const ROSE_DEPRECATED("use get_dllName");
269 void set_dll_name(SgAsmGenericString*) ROSE_DEPRECATED("use set_dllName");
270 const Rose::BinaryAnalysis::RelativeVirtualAddress& get_dll_name_rva() const ROSE_DEPRECATED("use get_dllNameRva");
271 Rose::BinaryAnalysis::RelativeVirtualAddress& get_dll_name_rva() ROSE_DEPRECATED("use get_dllNameRva");
272 void set_dll_name_rva(const Rose::BinaryAnalysis::RelativeVirtualAddress&) ROSE_DEPRECATED("use set_dllNameRva");
273 size_t iat_required_size() const ROSE_DEPRECATED("use iatRequiredSize");
274 int find_import_item(const SgAsmPEImportItem*, int=0) const ROSE_DEPRECATED("use findImportItem");
275 size_t hintname_table_extent(Rose::BinaryAnalysis::AddressIntervalSet&) const ROSE_DEPRECATED("use hintNameTableExtent");
276public:
278 virtual ~SgAsmPEImportDirectory();
279
280public:
283
284protected:
291 void initializeProperties();
292
293
294// End of memberFunctionString
295// Start of memberFunctionString
296/* #line 1 "/workspace/src/ROSETTA/Grammar/Common.code" */
297
298// *** COMMON CODE SECTION BEGINS HERE ***
299
300 public:
301
302 // DQ (3/25/3006): I put this back in because it had the logic for where the copy function required
303 // and not required which is required to match the other aspects of the copy mechanism code generation.
304 // Specifically it is a problem to declare the copy function everywhere because it is not implemented
305 // for the SgSymbol IR nodes. I'm not clear why it is not implemented for these IR nodes.
306 /* \brief Copies AST (whole subtree, depending on the SgCopyHelp class */
307 // virtual SgNode* copy ( const SgCopyHelp & help) const;
308
310 virtual std::string class_name() const override;
311
313 virtual VariantT variantT() const override; // MS: new variant used in tree traversal
314
316 // King84 (2010.08.16): Moved this to an enum to save space, since it's only used at compiler-time anyway.
317 // static const VariantT static_variant = V_SgAsmPEImportDirectory;
318 enum { static_variant = V_SgAsmPEImportDirectory };
319
320 /* the generated cast function */
322 ROSE_DLL_API friend SgAsmPEImportDirectory* isSgAsmPEImportDirectory( SgNode * s );
323
325 ROSE_DLL_API friend const SgAsmPEImportDirectory* isSgAsmPEImportDirectory( const SgNode * s );
326
327 // ******************************************
328 // * Memory Pool / New / Delete
329 // ******************************************
330
331 public:
333 static const unsigned pool_size; //
335 static std::vector<unsigned char *> pools; //
337 static SgAsmPEImportDirectory * next_node; //
338
340 static unsigned long initializeStorageClassArray(SgAsmPEImportDirectoryStorageClass *); //
341
343 static void clearMemoryPool(); //
344 static void deleteMemoryPool(); //
345
347 static void extendMemoryPoolForFileIO(); //
348
350 static SgAsmPEImportDirectory * getPointerFromGlobalIndex(unsigned long); //
352 static SgAsmPEImportDirectory * getPointerFromGlobalIndex(AstSpecificDataManagingClass *, unsigned long); //
353
355 static unsigned long getNumberOfValidNodesAndSetGlobalIndexInFreepointer(unsigned long); //
357 static void resetValidFreepointers(); //
359 static unsigned long getNumberOfLastValidPointer(); //
360
361
362#if defined(INLINE_FUNCTIONS)
364 inline void *operator new (size_t size);
365#else
367 void *operator new (size_t size);
368#endif
370 void operator delete (void* pointer, size_t size);
371
372 // DQ (4/5/2007): This is not the correct operator that we want, but appears to be required to compile ROSE with ROSE.
373 void operator delete (void* pointer)
374 {
375 // This is the generated delete operator...
376 SgAsmPEImportDirectory::operator delete (pointer,sizeof(SgAsmPEImportDirectory));
377 }
378
380 static size_t numberOfNodes();
381
383 static size_t memoryUsage();
384
385 // End of scope which started in IR nodes specific code
386 /* */
387
388 /* name Internal Functions
389 \brief Internal functions ... incomplete-documentation
390
391 These functions have been made public as part of the design, but they are suggested for internal use
392 or by particularly knowledgeable users for specialized tools or applications.
393
394 \internal We could not make these private because they are required by user for special purposes. And
395 it would be unwieldy to have many of the internal classes in ROSE be explicitly defined as friends.
396
397 */
398
399 // MS: 02/12/02 container of pointers to AST successor nodes used in the traversal
400 // overridden in every class by *generated* implementation
402 virtual std::vector<SgNode*> get_traversalSuccessorContainer() const override;
403 // MS: 06/28/02 container of names of variables or container indices
404 // used used in the traversal to access AST successor nodes
405 // overridden in every class by *generated* implementation
408 virtual std::vector<std::string> get_traversalSuccessorNamesContainer() const override;
409
410 // GB (09/25/2007): Functions for index-based access to traversal successors; these are hopefully a lot faster
411 // than all the vector copies. The implementation for these functions is generated for each class.
413 virtual size_t get_numberOfTraversalSuccessors() const override;
415 virtual SgNode *get_traversalSuccessorByIndex(size_t idx) const override;
417 virtual size_t get_childIndex(SgNode *child) const override;
418
419#ifndef ROSE_USE_INTERNAL_FRONTEND_DEVELOPMENT
420 // MS: 08/16/2002 method for generating RTI information
422 virtual RTIReturnType roseRTI() override;
423#endif
424 /* */
425
426
427
428 /* name Deprecated Functions
429 \brief Deprecated functions ... incomplete-documentation
430
431 These functions have been deprecated from use.
432 */
433 /* */
434
436 virtual const char* sage_class_name() const override ROSE_DEPRECATED_FUNCTION;
437
438 // JJW (10/16/2008): Changed to a single function in Node.code, and put
439 // getVariant() in #if 0 block to prevent confusing Doxygen
440#if 0
442 virtual int variant() const ROSE_DEPRECATED_FUNCTION;
444 // virtual int getVariant() const ROSE_DEPRECATED_FUNCTION;
445#endif
446 /* */
447
448
449
450
451 public:
452 /* name Traversal Support Functions
453 \brief Traversal support functions ... incomplete-documentation
454
455 These functions have been made public as part of the design, but they are suggested for internal use
456 or by particularly knowledgable users for specialized tools or applications.
457 */
458 /* */
459
460 // DQ (11/26/2005): Support for visitor pattern mechanims
461 // (inferior to ROSE traversal mechanism, experimental).
465
466 /* DXN (08/09/2010): support for the classic visitor pattern done in GoF */
468 virtual void accept (ROSE_VisitorPattern & visitor) override;
469
470 // DQ (12/26/2005): Support for traversal based on the memory pool
473 static void traverseMemoryPoolNodes(ROSE_VisitTraversal & visit);
474
478
479 // DQ (2/9/2006): Added to support traversal over single representative of each IR node
480 // This traversal helps support internal tools that call static member functions.
481 // note: this function operates on the memory pools.
484 static void visitRepresentativeNode (ROSE_VisitTraversal & visit);
485 /* */
486
487 public:
488 /* NodeId support functions */
490 static SgNode* getNodeByNodeId(VariantT variantT, size_t poolIdx, size_t itemIdx);
493 static SgAsmPEImportDirectory* getNodeByNodeIdInternal(size_t poolIdx, size_t itemIdx);
496 static std::string getNodeIdString(SgAsmPEImportDirectory* sgnode);
497 static std::string getNodeIdStringInternal(SgAsmPEImportDirectory* sgnode);
498
499 public:
500 /* name Memory Allocation Functions
501 \brief Memory allocations functions ... incomplete-documentation
502
503 These functions have been made public as part of the design, but they are suggested for internal use
504 or by particularly knowledgable users for specialized tools or applications.
505 */
506 /* */
507
518 virtual bool isInMemoryPool() override;
519
530 virtual void checkDataMemberPointersIfInMemoryPool() override;
531
532 // DQ (4/30/2006): Modified to be a const function.
547 virtual std::vector<std::pair<SgNode*,std::string> > returnDataMemberPointers() const override;
548
559
571 virtual long getChildIndex( SgNode* childNode ) const override;
572
573 // DQ (9/2/2015): Since this function is generated by ROSETTA, we can't define the
574 // comment here (changed to be a C style comment and not be a doxygen comment).
575 /* \brief Constructor for use by AST File I/O Mechanism
576
577 This constructor permits the IR node to be rebuilt from the contiguously arranged data in memory
578 which obtained via fast binary file I/O from disk.
579 */
580 // SgAsmPEImportDirectory( SgAsmPEImportDirectoryStorageClass& source );
581
582
583
584
585
586 // JH (10/24/2005): methods added to support the ast file IO
587 private:
588
589 /* name AST Memory Allocation Support Functions
590 \brief Memory allocations support....
591
592 These functions handle the low leve support of the memory allocation scheme which permits IR nodes to be allocated
593 in large contiguous blocks to reduce memory fragmentation, improve performance, support specialized access (AST traversals),
594 and support the AST File I/O Mechanism.
595 */
596 /* */
597
598 /* JH (10/24/2005): Two typedefs. The TestType notes the type every pointer is cast to before
599 we compare them. Since I had several problems with this, I decided to make a typdef to ensure
600 that I use the same type everywhere, if any changes are made. THe second one declares the type
601 (actually unsigned long) where teh pointer address gets converted to. On 64 bit platforms this
602 might got changed, but unfortunatly, the return types are still unsigned longs. There exists
603 a correspinding one in the AST_FILE_IO class!
604 */
605 // DQ (9/2/2015): This typedef is no longer used, we can't define the
606 // comment here (changed to be a C style comment and not be a doxygen comment).
607 /* \brief Typedef used for low level memory access.
608 */
609 // typedef unsigned char* TestType;
610
611 // DQ (9/2/2015): This typedef is no longer used, we can't define the
612 // comment here (changed to be a C style comment and not be a doxygen comment).
613 /* \brief Typedef used to hold memory addresses as values.
614 */
615 // typedef unsigned long AddressType;
616
617
618
619 // necessary, to have direct access to the p_freepointer and the private methods !
621 friend class AST_FILE_IO;
622
624 friend class SgAsmPEImportDirectoryStorageClass;
625
627 friend class AstSpecificDataManagingClass;
628
630 friend class AstSpecificDataManagingClassStorageClass;
631 public:
633 SgAsmPEImportDirectory( const SgAsmPEImportDirectoryStorageClass& source );
634
635 // private: // JJW hack
636 /*
637 name AST Memory Allocation Support Variables
638 Memory allocations support variables
639
640 These variables handle the low level support of the memory allocation scheme which permits IR nodes to be allocated
641 in large contiguous blocks to reduce memory fragmentation, improve performance, support specialized access (AST traversals),
642 and support the AST File I/O Mechanism.
643 */
644 /* */
645
646 public:
647
648 // DQ (11/21/2009): Added function to add new Regular Expression attributes and return pointer
649 // to current node (so that it will work cleanly with build functions to specify patterns).
650 // virtual SgNode* addRegExpAttribute();
657
658#ifndef _MSC_VER
659// Rasmussen (04/17/2019): Support for ATerms has been deprecated as it is no longer needed
660// and likely never fully implemented nor tested. Files remain in the src tree but are no
661// longer built.
662#define BUILD_ATERM_SUPPORT 0
663 #if BUILD_ATERM_SUPPORT
664 #ifdef ROSE_USE_ROSE_ATERM_SUPPORT
665 // DQ (10/4/2014): Adding ATerm support to ROSE.
675 // Rasmussen (1/7/2019): Added override to kill warning messages of overridden virtual function
676 virtual ATerm generate_ATerm() override;
677
679 virtual void generate_ATerm_Annotation(ATerm & term) override;
680 #endif
681 #endif // BUILD_ATERM_SUPPORT
682#endif
683 // These can't be virtual functions since we don't yet know what IR node to build (until we have read the aterm).
684 // virtual generate_AST(ATerm & term);
685 // virtual void read_ATerm_Annotation(ATerm & term);
686
687// *** COMMON CODE SECTION ENDS HERE ***
688
689
690// End of memberFunctionString
691// Start of memberFunctionString
692/* #line 710 "/workspace/src/ROSETTA/Grammar/Node.code" */
693
694 // the generated cast function
695 // friend ROSE_DLL_API SgAsmPEImportDirectory* isSgAsmPEImportDirectory ( SgNode* s );
696
697 typedef SgAsmExecutableFileFormat base_node_type;
698
699
700// End of memberFunctionString
701
702
703
704
705
706
707
708
709
710
711
712 protected:
713// Start of memberFunctionString
714SgAsmGenericString* p_dllName;
715
716// End of memberFunctionString
717// Start of memberFunctionString
719
720// End of memberFunctionString
721// Start of memberFunctionString
722size_t p_dll_name_nalloc;
723
724// End of memberFunctionString
725// Start of memberFunctionString
726time_t p_time;
727
728// End of memberFunctionString
729// Start of memberFunctionString
730unsigned p_forwarder_chain;
731
732// End of memberFunctionString
733// Start of memberFunctionString
735
736// End of memberFunctionString
737// Start of memberFunctionString
738size_t p_ilt_nalloc;
739
740// End of memberFunctionString
741// Start of memberFunctionString
743
744// End of memberFunctionString
745// Start of memberFunctionString
746size_t p_iat_nalloc;
747
748// End of memberFunctionString
749// Start of memberFunctionString
750SgAsmPEImportItemList* p_imports;
751
752// End of memberFunctionString
753
755 friend struct Rose::Traits::generated::describe_field_t<SgAsmPEImportDirectory, SgAsmGenericString*,&SgAsmPEImportDirectory::p_dllName>;
756 friend struct Rose::Traits::generated::describe_field_t<SgAsmPEImportDirectory, Rose::BinaryAnalysis::RelativeVirtualAddress,&SgAsmPEImportDirectory::p_dllNameRva>;
757 friend struct Rose::Traits::generated::describe_field_t<SgAsmPEImportDirectory, size_t,&SgAsmPEImportDirectory::p_dll_name_nalloc>;
758 friend struct Rose::Traits::generated::describe_field_t<SgAsmPEImportDirectory, time_t,&SgAsmPEImportDirectory::p_time>;
759 friend struct Rose::Traits::generated::describe_field_t<SgAsmPEImportDirectory, unsigned,&SgAsmPEImportDirectory::p_forwarder_chain>;
760 friend struct Rose::Traits::generated::describe_field_t<SgAsmPEImportDirectory, Rose::BinaryAnalysis::RelativeVirtualAddress,&SgAsmPEImportDirectory::p_ilt_rva>;
761 friend struct Rose::Traits::generated::describe_field_t<SgAsmPEImportDirectory, size_t,&SgAsmPEImportDirectory::p_ilt_nalloc>;
762 friend struct Rose::Traits::generated::describe_field_t<SgAsmPEImportDirectory, Rose::BinaryAnalysis::RelativeVirtualAddress,&SgAsmPEImportDirectory::p_iat_rva>;
763 friend struct Rose::Traits::generated::describe_field_t<SgAsmPEImportDirectory, size_t,&SgAsmPEImportDirectory::p_iat_nalloc>;
764 friend struct Rose::Traits::generated::describe_field_t<SgAsmPEImportDirectory, SgAsmPEImportItemList*,&SgAsmPEImportDirectory::p_imports>;
765
766/* #line 21 "/workspace/src/ROSETTA/Grammar/grammarClassDeclarationMacros.macro" */
767
768
769 };
770#endif
771
772// postdeclarations for SgAsmPEImportDirectory
773
774/* #line 775 "../../../src/frontend/SageIII//SgAsmPEImportDirectory.h" */
775
776/* #line 27 "/workspace/src/ROSETTA/Grammar/grammarClassDeclarationMacros.macro after subst for $POSTDECLARATIONS" */
777
778/* #line 28 "/workspace/src/ROSETTA/Grammar/grammarClassDeclarationMacros.macro" */
779
780
781/* #line 782 "../../../src/frontend/SageIII//SgAsmPEImportDirectory.h" */
782
783#endif // ROSE_SgAsmPEImportDirectory_H
784
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.
Base class for many binary analysis nodes.
Base class for strings related to binary specimens.
One import directory per library.
A list of imported items.
A single imported object.
Portable Executable Import Section.
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 RTIReturnType roseRTI()
return C++ Runtime-Time-Information
virtual size_t get_numberOfTraversalSuccessors() const
return number of children in the traversal successor list
virtual std::vector< std::string > get_traversalSuccessorNamesContainer() const
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 size_t get_childIndex(SgNode *child) const
index-based access to traversal successors by child node
virtual std::vector< SgNode * > get_traversalSuccessorContainer() const
container of pointers to AST successor nodes used in the traversal overridden in every class by gener...
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 void debugSerializationBegin(const char *className)
Called by generated serializers.
virtual SgNode * get_traversalSuccessorByIndex(size_t idx) const
index-based access to traversal successors by index number
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
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.
std::uint64_t Address
Address.
Definition Address.h:11
void serialize(std::ostream &output, Graph &graph)
Serialize a graph into a stream of bytes.
The ROSE library.
void copy(const Word *src, const BitRange &srcRange, Word *dst, const BitRange &dstRange)
Copy some bits.