ROSE 0.11.145.247
SgAsmElfEHFrameEntryCI.h
1
2#ifndef ROSE_SgAsmElfEHFrameEntryCI_H
3#define ROSE_SgAsmElfEHFrameEntryCI_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 SgAsmElfEHFrameEntryCI
23
24/* #line 25 "../../../src/frontend/SageIII//SgAsmElfEHFrameEntryCI.h" */
25/* #line 22554 "/workspace/src/ROSETTA/src/binaryInstruction.C" */
26
27#include <Rose/BinaryAnalysis/Address.h>
28
29#include <sageContainer.h>
30
31#ifdef ROSE_SgAsmElfEHFrameEntryCI_IMPL
32#include <SgAsmElfEHFrameEntryFDList.h>
33#endif
34
35
36/* #line 13 "/workspace/src/ROSETTA/Grammar/grammarClassDeclarationMacros.macro after subst for $PREDECLARATIONS" */
37
38/* #line 14 "/workspace/src/ROSETTA/Grammar/grammarClassDeclarationMacros.macro" */
39
40#if !defined(DOCUMENTATION)
41// Class Definition for SgAsmElfEHFrameEntryCI
42class ROSE_DLL_API SgAsmElfEHFrameEntryCI : public SgAsmExecutableFileFormat
43 {
44 public:
45
46
47/* #line 48 "../../../src/frontend/SageIII//SgAsmElfEHFrameEntryCI.h" */
48
49 virtual SgNode* copy ( SgCopyHelp& help) const override;
50// Start of memberFunctionString
51/* #line 22656 "/workspace/src/ROSETTA/src/binaryInstruction.C" */
52
53
54 //----------------------- Boost serialization for SgAsmElfEHFrameEntryCI -----------------------
55#ifdef ROSE_ENABLE_BOOST_SERIALIZATION
56private:
57 friend class boost::serialization::access;
58
59 template<class S>
60 void serialize(S &s, const unsigned /*version*/) {
61 debugSerializationBegin("SgAsmElfEHFrameEntryCI");
62 s & BOOST_SERIALIZATION_BASE_OBJECT_NVP(SgAsmExecutableFileFormat);
63 s & BOOST_SERIALIZATION_NVP(p_version);
64 s & BOOST_SERIALIZATION_NVP(p_augmentation_string);
65 s & BOOST_SERIALIZATION_NVP(p_eh_data);
66 s & BOOST_SERIALIZATION_NVP(p_code_alignment_factor);
67 s & BOOST_SERIALIZATION_NVP(p_data_alignment_factor);
68 s & BOOST_SERIALIZATION_NVP(p_augmentation_data_length);
69 s & BOOST_SERIALIZATION_NVP(p_lsda_encoding);
70 s & BOOST_SERIALIZATION_NVP(p_prh_encoding);
71 s & BOOST_SERIALIZATION_NVP(p_prh_arg);
72 s & BOOST_SERIALIZATION_NVP(p_prh_addr);
73 s & BOOST_SERIALIZATION_NVP(p_addr_encoding);
74 s & BOOST_SERIALIZATION_NVP(p_sig_frame);
75 s & BOOST_SERIALIZATION_NVP(p_instructions);
76 s & BOOST_SERIALIZATION_NVP(p_fd_entries);
77 debugSerializationEnd("SgAsmElfEHFrameEntryCI");
78 }
79#endif // ROSE_ENABLE_BOOST_SERIALIZATION
80public:
81public:
87 int const& get_version() const;
88 void set_version(int const&);
91public:
97 std::string const& get_augmentation_string() const;
98 void set_augmentation_string(std::string const&);
101public:
107 uint64_t const& get_eh_data() const;
108 void set_eh_data(uint64_t const&);
111public:
117 uint64_t const& get_code_alignment_factor() const;
118 void set_code_alignment_factor(uint64_t const&);
121public:
127 int64_t const& get_data_alignment_factor() const;
128 void set_data_alignment_factor(int64_t const&);
131public:
137 uint64_t const& get_augmentation_data_length() const;
138 void set_augmentation_data_length(uint64_t const&);
141public:
147 int const& get_lsda_encoding() const;
148 void set_lsda_encoding(int const&);
151public:
157 int const& get_prh_encoding() const;
158 void set_prh_encoding(int const&);
161public:
167 unsigned const& get_prh_arg() const;
168 void set_prh_arg(unsigned const&);
171public:
177 Rose::BinaryAnalysis::Address const& get_prh_addr() const;
178 void set_prh_addr(Rose::BinaryAnalysis::Address const&);
181public:
187 int const& get_addr_encoding() const;
188 void set_addr_encoding(int const&);
191public:
197 bool const& get_sig_frame() const;
198 void set_sig_frame(bool const&);
201public:
207 SgUnsignedCharList const& get_instructions() const;
208 SgUnsignedCharList& get_instructions();
209 void set_instructions(SgUnsignedCharList const&);
212public:
219 SgAsmElfEHFrameEntryFDList* const& get_fd_entries() const;
220 void set_fd_entries(SgAsmElfEHFrameEntryFDList* const&);
222public:
225
227 virtual void dump(FILE*, const char *prefix, ssize_t idx) const;
228
233 std::string unparse(const SgAsmElfEHFrameSection*) const;
234public:
236 virtual ~SgAsmElfEHFrameEntryCI();
237
238public:
241
242protected:
250
251
252// End of memberFunctionString
253// Start of memberFunctionString
254/* #line 1 "/workspace/src/ROSETTA/Grammar/Common.code" */
255
256// *** COMMON CODE SECTION BEGINS HERE ***
257
258 public:
259
260 // DQ (3/25/3006): I put this back in because it had the logic for where the copy function required
261 // and not required which is required to match the other aspects of the copy mechanism code generation.
262 // Specifically it is a problem to declare the copy function everywhere because it is not implemented
263 // for the SgSymbol IR nodes. I'm not clear why it is not implemented for these IR nodes.
264 /* \brief Copies AST (whole subtree, depending on the SgCopyHelp class */
265 // virtual SgNode* copy ( const SgCopyHelp & help) const;
266
268 virtual std::string class_name() const override;
269
271 virtual VariantT variantT() const override; // MS: new variant used in tree traversal
272
274 // King84 (2010.08.16): Moved this to an enum to save space, since it's only used at compiler-time anyway.
275 // static const VariantT static_variant = V_SgAsmElfEHFrameEntryCI;
276 enum { static_variant = V_SgAsmElfEHFrameEntryCI };
277
278 /* the generated cast function */
280 ROSE_DLL_API friend SgAsmElfEHFrameEntryCI* isSgAsmElfEHFrameEntryCI( SgNode * s );
281
283 ROSE_DLL_API friend const SgAsmElfEHFrameEntryCI* isSgAsmElfEHFrameEntryCI( const SgNode * s );
284
285 // ******************************************
286 // * Memory Pool / New / Delete
287 // ******************************************
288
289 public:
291 static const unsigned pool_size; //
293 static std::vector<unsigned char *> pools; //
295 static SgAsmElfEHFrameEntryCI * next_node; //
296
298 static unsigned long initializeStorageClassArray(SgAsmElfEHFrameEntryCIStorageClass *); //
299
301 static void clearMemoryPool(); //
302 static void deleteMemoryPool(); //
303
305 static void extendMemoryPoolForFileIO(); //
306
308 static SgAsmElfEHFrameEntryCI * getPointerFromGlobalIndex(unsigned long); //
310 static SgAsmElfEHFrameEntryCI * getPointerFromGlobalIndex(AstSpecificDataManagingClass *, unsigned long); //
311
313 static unsigned long getNumberOfValidNodesAndSetGlobalIndexInFreepointer(unsigned long); //
315 static void resetValidFreepointers(); //
317 static unsigned long getNumberOfLastValidPointer(); //
318
319
320#if defined(INLINE_FUNCTIONS)
322 inline void *operator new (size_t size);
323#else
325 void *operator new (size_t size);
326#endif
328 void operator delete (void* pointer, size_t size);
329
330 // DQ (4/5/2007): This is not the correct operator that we want, but appears to be required to compile ROSE with ROSE.
331 void operator delete (void* pointer)
332 {
333 // This is the generated delete operator...
334 SgAsmElfEHFrameEntryCI::operator delete (pointer,sizeof(SgAsmElfEHFrameEntryCI));
335 }
336
338 static size_t numberOfNodes();
339
341 static size_t memoryUsage();
342
343 // End of scope which started in IR nodes specific code
344 /* */
345
346 /* name Internal Functions
347 \brief Internal functions ... incomplete-documentation
348
349 These functions have been made public as part of the design, but they are suggested for internal use
350 or by particularly knowledgeable users for specialized tools or applications.
351
352 \internal We could not make these private because they are required by user for special purposes. And
353 it would be unwieldy to have many of the internal classes in ROSE be explicitly defined as friends.
354
355 */
356
357 // MS: 02/12/02 container of pointers to AST successor nodes used in the traversal
358 // overridden in every class by *generated* implementation
360 virtual std::vector<SgNode*> get_traversalSuccessorContainer() const override;
361 // MS: 06/28/02 container of names of variables or container indices
362 // used used in the traversal to access AST successor nodes
363 // overridden in every class by *generated* implementation
366 virtual std::vector<std::string> get_traversalSuccessorNamesContainer() const override;
367
368 // GB (09/25/2007): Functions for index-based access to traversal successors; these are hopefully a lot faster
369 // than all the vector copies. The implementation for these functions is generated for each class.
371 virtual size_t get_numberOfTraversalSuccessors() const override;
373 virtual SgNode *get_traversalSuccessorByIndex(size_t idx) const override;
375 virtual size_t get_childIndex(SgNode *child) const override;
376
377#ifndef ROSE_USE_INTERNAL_FRONTEND_DEVELOPMENT
378 // MS: 08/16/2002 method for generating RTI information
380 virtual RTIReturnType roseRTI() override;
381#endif
382 /* */
383
384
385
386 /* name Deprecated Functions
387 \brief Deprecated functions ... incomplete-documentation
388
389 These functions have been deprecated from use.
390 */
391 /* */
392
394 virtual const char* sage_class_name() const override ROSE_DEPRECATED_FUNCTION;
395
396 // JJW (10/16/2008): Changed to a single function in Node.code, and put
397 // getVariant() in #if 0 block to prevent confusing Doxygen
398#if 0
400 virtual int variant() const ROSE_DEPRECATED_FUNCTION;
402 // virtual int getVariant() const ROSE_DEPRECATED_FUNCTION;
403#endif
404 /* */
405
406
407
408
409 public:
410 /* name Traversal Support Functions
411 \brief Traversal support functions ... incomplete-documentation
412
413 These functions have been made public as part of the design, but they are suggested for internal use
414 or by particularly knowledgable users for specialized tools or applications.
415 */
416 /* */
417
418 // DQ (11/26/2005): Support for visitor pattern mechanims
419 // (inferior to ROSE traversal mechanism, experimental).
423
424 /* DXN (08/09/2010): support for the classic visitor pattern done in GoF */
426 virtual void accept (ROSE_VisitorPattern & visitor) override;
427
428 // DQ (12/26/2005): Support for traversal based on the memory pool
431 static void traverseMemoryPoolNodes(ROSE_VisitTraversal & visit);
432
436
437 // DQ (2/9/2006): Added to support traversal over single representative of each IR node
438 // This traversal helps support internal tools that call static member functions.
439 // note: this function operates on the memory pools.
442 static void visitRepresentativeNode (ROSE_VisitTraversal & visit);
443 /* */
444
445 public:
446 /* NodeId support functions */
448 static SgNode* getNodeByNodeId(VariantT variantT, size_t poolIdx, size_t itemIdx);
451 static SgAsmElfEHFrameEntryCI* getNodeByNodeIdInternal(size_t poolIdx, size_t itemIdx);
454 static std::string getNodeIdString(SgAsmElfEHFrameEntryCI* sgnode);
455 static std::string getNodeIdStringInternal(SgAsmElfEHFrameEntryCI* sgnode);
456
457 public:
458 /* name Memory Allocation Functions
459 \brief Memory allocations functions ... incomplete-documentation
460
461 These functions have been made public as part of the design, but they are suggested for internal use
462 or by particularly knowledgable users for specialized tools or applications.
463 */
464 /* */
465
476 virtual bool isInMemoryPool() override;
477
488 virtual void checkDataMemberPointersIfInMemoryPool() override;
489
490 // DQ (4/30/2006): Modified to be a const function.
505 virtual std::vector<std::pair<SgNode*,std::string> > returnDataMemberPointers() const override;
506
517
529 virtual long getChildIndex( SgNode* childNode ) const override;
530
531 // DQ (9/2/2015): Since this function is generated by ROSETTA, we can't define the
532 // comment here (changed to be a C style comment and not be a doxygen comment).
533 /* \brief Constructor for use by AST File I/O Mechanism
534
535 This constructor permits the IR node to be rebuilt from the contiguously arranged data in memory
536 which obtained via fast binary file I/O from disk.
537 */
538 // SgAsmElfEHFrameEntryCI( SgAsmElfEHFrameEntryCIStorageClass& source );
539
540
541
542
543
544 // JH (10/24/2005): methods added to support the ast file IO
545 private:
546
547 /* name AST Memory Allocation Support Functions
548 \brief Memory allocations support....
549
550 These functions handle the low leve support of the memory allocation scheme which permits IR nodes to be allocated
551 in large contiguous blocks to reduce memory fragmentation, improve performance, support specialized access (AST traversals),
552 and support the AST File I/O Mechanism.
553 */
554 /* */
555
556 /* JH (10/24/2005): Two typedefs. The TestType notes the type every pointer is cast to before
557 we compare them. Since I had several problems with this, I decided to make a typdef to ensure
558 that I use the same type everywhere, if any changes are made. THe second one declares the type
559 (actually unsigned long) where teh pointer address gets converted to. On 64 bit platforms this
560 might got changed, but unfortunatly, the return types are still unsigned longs. There exists
561 a correspinding one in the AST_FILE_IO class!
562 */
563 // DQ (9/2/2015): This typedef is no longer used, we can't define the
564 // comment here (changed to be a C style comment and not be a doxygen comment).
565 /* \brief Typedef used for low level memory access.
566 */
567 // typedef unsigned char* TestType;
568
569 // DQ (9/2/2015): This typedef is no longer used, we can't define the
570 // comment here (changed to be a C style comment and not be a doxygen comment).
571 /* \brief Typedef used to hold memory addresses as values.
572 */
573 // typedef unsigned long AddressType;
574
575
576
577 // necessary, to have direct access to the p_freepointer and the private methods !
579 friend class AST_FILE_IO;
580
582 friend class SgAsmElfEHFrameEntryCIStorageClass;
583
585 friend class AstSpecificDataManagingClass;
586
588 friend class AstSpecificDataManagingClassStorageClass;
589 public:
591 SgAsmElfEHFrameEntryCI( const SgAsmElfEHFrameEntryCIStorageClass& source );
592
593 // private: // JJW hack
594 /*
595 name AST Memory Allocation Support Variables
596 Memory allocations support variables
597
598 These variables handle the low level support of the memory allocation scheme which permits IR nodes to be allocated
599 in large contiguous blocks to reduce memory fragmentation, improve performance, support specialized access (AST traversals),
600 and support the AST File I/O Mechanism.
601 */
602 /* */
603
604 public:
605
606 // DQ (11/21/2009): Added function to add new Regular Expression attributes and return pointer
607 // to current node (so that it will work cleanly with build functions to specify patterns).
608 // virtual SgNode* addRegExpAttribute();
615
616#ifndef _MSC_VER
617// Rasmussen (04/17/2019): Support for ATerms has been deprecated as it is no longer needed
618// and likely never fully implemented nor tested. Files remain in the src tree but are no
619// longer built.
620#define BUILD_ATERM_SUPPORT 0
621 #if BUILD_ATERM_SUPPORT
622 #ifdef ROSE_USE_ROSE_ATERM_SUPPORT
623 // DQ (10/4/2014): Adding ATerm support to ROSE.
633 // Rasmussen (1/7/2019): Added override to kill warning messages of overridden virtual function
634 virtual ATerm generate_ATerm() override;
635
637 virtual void generate_ATerm_Annotation(ATerm & term) override;
638 #endif
639 #endif // BUILD_ATERM_SUPPORT
640#endif
641 // These can't be virtual functions since we don't yet know what IR node to build (until we have read the aterm).
642 // virtual generate_AST(ATerm & term);
643 // virtual void read_ATerm_Annotation(ATerm & term);
644
645// *** COMMON CODE SECTION ENDS HERE ***
646
647
648// End of memberFunctionString
649// Start of memberFunctionString
650/* #line 710 "/workspace/src/ROSETTA/Grammar/Node.code" */
651
652 // the generated cast function
653 // friend ROSE_DLL_API SgAsmElfEHFrameEntryCI* isSgAsmElfEHFrameEntryCI ( SgNode* s );
654
655 typedef SgAsmExecutableFileFormat base_node_type;
656
657
658// End of memberFunctionString
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674 protected:
675// Start of memberFunctionString
676int p_version;
677
678// End of memberFunctionString
679// Start of memberFunctionString
680std::string p_augmentation_string;
681
682// End of memberFunctionString
683// Start of memberFunctionString
684uint64_t p_eh_data;
685
686// End of memberFunctionString
687// Start of memberFunctionString
688uint64_t p_code_alignment_factor;
689
690// End of memberFunctionString
691// Start of memberFunctionString
692int64_t p_data_alignment_factor;
693
694// End of memberFunctionString
695// Start of memberFunctionString
696uint64_t p_augmentation_data_length;
697
698// End of memberFunctionString
699// Start of memberFunctionString
700int p_lsda_encoding;
701
702// End of memberFunctionString
703// Start of memberFunctionString
704int p_prh_encoding;
705
706// End of memberFunctionString
707// Start of memberFunctionString
708unsigned p_prh_arg;
709
710// End of memberFunctionString
711// Start of memberFunctionString
713
714// End of memberFunctionString
715// Start of memberFunctionString
716int p_addr_encoding;
717
718// End of memberFunctionString
719// Start of memberFunctionString
720bool p_sig_frame;
721
722// End of memberFunctionString
723// Start of memberFunctionString
724SgUnsignedCharList p_instructions;
725
726// End of memberFunctionString
727// Start of memberFunctionString
728SgAsmElfEHFrameEntryFDList* p_fd_entries;
729
730// End of memberFunctionString
731
733 friend struct Rose::Traits::generated::describe_field_t<SgAsmElfEHFrameEntryCI, int,&SgAsmElfEHFrameEntryCI::p_version>;
734 friend struct Rose::Traits::generated::describe_field_t<SgAsmElfEHFrameEntryCI, std::string,&SgAsmElfEHFrameEntryCI::p_augmentation_string>;
735 friend struct Rose::Traits::generated::describe_field_t<SgAsmElfEHFrameEntryCI, uint64_t,&SgAsmElfEHFrameEntryCI::p_eh_data>;
736 friend struct Rose::Traits::generated::describe_field_t<SgAsmElfEHFrameEntryCI, uint64_t,&SgAsmElfEHFrameEntryCI::p_code_alignment_factor>;
737 friend struct Rose::Traits::generated::describe_field_t<SgAsmElfEHFrameEntryCI, int64_t,&SgAsmElfEHFrameEntryCI::p_data_alignment_factor>;
738 friend struct Rose::Traits::generated::describe_field_t<SgAsmElfEHFrameEntryCI, uint64_t,&SgAsmElfEHFrameEntryCI::p_augmentation_data_length>;
739 friend struct Rose::Traits::generated::describe_field_t<SgAsmElfEHFrameEntryCI, int,&SgAsmElfEHFrameEntryCI::p_lsda_encoding>;
740 friend struct Rose::Traits::generated::describe_field_t<SgAsmElfEHFrameEntryCI, int,&SgAsmElfEHFrameEntryCI::p_prh_encoding>;
741 friend struct Rose::Traits::generated::describe_field_t<SgAsmElfEHFrameEntryCI, unsigned,&SgAsmElfEHFrameEntryCI::p_prh_arg>;
742 friend struct Rose::Traits::generated::describe_field_t<SgAsmElfEHFrameEntryCI, Rose::BinaryAnalysis::Address,&SgAsmElfEHFrameEntryCI::p_prh_addr>;
743 friend struct Rose::Traits::generated::describe_field_t<SgAsmElfEHFrameEntryCI, int,&SgAsmElfEHFrameEntryCI::p_addr_encoding>;
744 friend struct Rose::Traits::generated::describe_field_t<SgAsmElfEHFrameEntryCI, bool,&SgAsmElfEHFrameEntryCI::p_sig_frame>;
745 friend struct Rose::Traits::generated::describe_field_t<SgAsmElfEHFrameEntryCI, SgUnsignedCharList,&SgAsmElfEHFrameEntryCI::p_instructions>;
746 friend struct Rose::Traits::generated::describe_field_t<SgAsmElfEHFrameEntryCI, SgAsmElfEHFrameEntryFDList*,&SgAsmElfEHFrameEntryCI::p_fd_entries>;
747
748/* #line 21 "/workspace/src/ROSETTA/Grammar/grammarClassDeclarationMacros.macro" */
749
750
751 };
752#endif
753
754// postdeclarations for SgAsmElfEHFrameEntryCI
755
756/* #line 757 "../../../src/frontend/SageIII//SgAsmElfEHFrameEntryCI.h" */
757
758/* #line 27 "/workspace/src/ROSETTA/Grammar/grammarClassDeclarationMacros.macro after subst for $POSTDECLARATIONS" */
759
760/* #line 28 "/workspace/src/ROSETTA/Grammar/grammarClassDeclarationMacros.macro" */
761
762
763/* #line 764 "../../../src/frontend/SageIII//SgAsmElfEHFrameEntryCI.h" */
764
765#endif // ROSE_SgAsmElfEHFrameEntryCI_H
766
Class holding static data and functions supporting File I/O.
Definition AST_FILE_IO.h:19
Attribute containing a regex expression as a string.
ELF error handling frame entry, common information entry.
List of ELF error handling frame descriptor entries.
Represents an ELF EH frame section.
Base class for many binary analysis nodes.
void initializeProperties()
Initialize all properties that have explicit initial values.
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 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 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
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
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.
std::uint64_t Address
Address.
Definition Address.h:11
void serialize(std::ostream &output, Graph &graph)
Serialize a graph into a stream of bytes.
void copy(const Word *src, const BitRange &srcRange, Word *dst, const BitRange &dstRange)
Copy some bits.