ROSE 0.11.145.297
SgAsmCilMethodDef.h
1
2#ifndef ROSE_SgAsmCilMethodDef_H
3#define ROSE_SgAsmCilMethodDef_H
4#include <RoseFirst.h>
5#include <Cxx_GrammarDeclarations.h>
6#include <SgAsmCilMetadata.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 SgAsmCilMethodDef
23
24/* #line 25 "../../../src/frontend/SageIII//SgAsmCilMethodDef.h" */
25
26/* #line 13 "/workspace/src/ROSETTA/Grammar/grammarClassDeclarationMacros.macro after subst for $PREDECLARATIONS" */
27
28/* #line 14 "/workspace/src/ROSETTA/Grammar/grammarClassDeclarationMacros.macro" */
29
30#if !defined(DOCUMENTATION)
31// Class Definition for SgAsmCilMethodDef
32class ROSE_DLL_API SgAsmCilMethodDef : public SgAsmCilMetadata
33 {
34 public:
35
36
37/* #line 38 "../../../src/frontend/SageIII//SgAsmCilMethodDef.h" */
38
39 virtual SgNode* copy ( SgCopyHelp& help) const override;
40// Start of memberFunctionString
41/* #line 34555 "/workspace/src/ROSETTA/src/binaryInstruction.C" */
42
43
44 //----------------------- Boost serialization for SgAsmCilMethodDef -----------------------
45#ifdef ROSE_ENABLE_BOOST_SERIALIZATION
46private:
47 friend class boost::serialization::access;
48
49 template<class S>
50 void serialize(S &s, const unsigned /*version*/) {
51 debugSerializationBegin("SgAsmCilMethodDef");
52 s & BOOST_SERIALIZATION_BASE_OBJECT_NVP(SgAsmCilMetadata);
53 s & BOOST_SERIALIZATION_NVP(p_RVA);
54 s & BOOST_SERIALIZATION_NVP(p_ImplFlags);
55 s & BOOST_SERIALIZATION_NVP(p_Flags);
56 s & BOOST_SERIALIZATION_NVP(p_Name);
57 s & BOOST_SERIALIZATION_NVP(p_Signature);
58 s & BOOST_SERIALIZATION_NVP(p_ParamList);
59 s & BOOST_SERIALIZATION_NVP(p_body);
60 s & BOOST_SERIALIZATION_NVP(p_initLocals);
61 s & BOOST_SERIALIZATION_NVP(p_stackSize);
62 s & BOOST_SERIALIZATION_NVP(p_hasMoreSections);
63 s & BOOST_SERIALIZATION_NVP(p_localVarSigTok);
64 s & BOOST_SERIALIZATION_NVP(p_methodData);
65 s & BOOST_SERIALIZATION_NVP(p_bodyState);
66 debugSerializationEnd("SgAsmCilMethodDef");
67 }
68#endif // ROSE_ENABLE_BOOST_SERIALIZATION
69 public:
70 using BodyState = int;
71
72 enum : BodyState {
73 // good states > 0
74 BDY_NOT_AVAILABLE = 3,
75 BDY_FULLY_DECODED = 2,
76 BDY_RUNTIME_SUPPORTED = 1,
77
78 // default == 0
79 BDY_NOT_PROCESSED = 0,
80
81 // fail states < 0
82 BDY_INVALID_HEADER_BYTE = -1,
83 BDY_INVALID_HEADER_KIND = -2,
84 BDY_INVALID_HEADER_ALIGN = -3,
85 BDY_INVALID_CODE_LENGTH = -4,
86 BDY_INVALID_INSTRUCTION_LENGTH = -5,
87 BDY_INVALID_INSTRUCTION = -6,
88 BDY_INVALID_SECTION_ALIGN = -7,
89 BDY_INVALID_SECTION_HEADER = -8,
90 BDY_INVALID_CLAUSE_KIND = -9,
91 BDY_INVALID_CLAUSE_LENGTH = -10,
92 };
93
94 private:
95public:
101 uint32_t const& get_RVA() const;
102 void set_RVA(uint32_t const&);
105public:
111 uint16_t const& get_ImplFlags() const;
112 void set_ImplFlags(uint16_t const&);
115public:
121 uint16_t const& get_Flags() const;
122 void set_Flags(uint16_t const&);
125public:
131 uint32_t const& get_Name() const;
132 void set_Name(uint32_t const&);
135public:
141 uint32_t const& get_Signature() const;
142 void set_Signature(uint32_t const&);
145public:
151 uint32_t const& get_ParamList() const;
152 void set_ParamList(uint32_t const&);
155public:
161 SgAsmBlock* const& get_body() const;
162 void set_body(SgAsmBlock* const&);
165public:
171 bool const& get_initLocals() const;
172 void set_initLocals(bool const&);
175public:
181 uint32_t const& get_stackSize() const;
182 void set_stackSize(uint32_t const&);
185public:
191 bool const& get_hasMoreSections() const;
192 void set_hasMoreSections(bool const&);
194 //
195 // additional fields
196public:
203 uint32_t const& get_localVarSigTok() const;
204 void set_localVarSigTok(uint32_t const&);
207public:
213 std::vector<SgAsmCilMethodData*> const& get_methodData() const;
214 std::vector<SgAsmCilMethodData*>& get_methodData();
217public:
224 int const& get_bodyState() const;
225 void set_bodyState(int const&);
227public:
228 void parse(const std::vector<uint8_t>& buf, size_t& index, uint64_t uses4byteIndexing);
229 void unparse(std::vector<uint8_t>& buf, size_t& index, uint64_t uses4byteIndexing) const;
230 void dump(std::ostream&) const;
231
232 const std::uint8_t* get_Name_string() const;
233 const std::uint8_t* get_Signature_blob() const;
234 const SgAsmCilMetadata* get_ParamList_object() const;
235public:
237 virtual ~SgAsmCilMethodDef();
238
239public:
242
243protected:
251
252
253// End of memberFunctionString
254// Start of memberFunctionString
255/* #line 1 "/workspace/src/ROSETTA/Grammar/Common.code" */
256
257// *** COMMON CODE SECTION BEGINS HERE ***
258
259 public:
260
261 // DQ (3/25/3006): I put this back in because it had the logic for where the copy function required
262 // and not required which is required to match the other aspects of the copy mechanism code generation.
263 // Specifically it is a problem to declare the copy function everywhere because it is not implemented
264 // for the SgSymbol IR nodes. I'm not clear why it is not implemented for these IR nodes.
265 /* \brief Copies AST (whole subtree, depending on the SgCopyHelp class */
266 // virtual SgNode* copy ( const SgCopyHelp & help) const;
267
269 virtual std::string class_name() const override;
270
272 virtual VariantT variantT() const override; // MS: new variant used in tree traversal
273
275 // King84 (2010.08.16): Moved this to an enum to save space, since it's only used at compiler-time anyway.
276 // static const VariantT static_variant = V_SgAsmCilMethodDef;
277 enum { static_variant = V_SgAsmCilMethodDef };
278
279 /* the generated cast function */
281 ROSE_DLL_API friend SgAsmCilMethodDef* isSgAsmCilMethodDef( SgNode * s );
282
284 ROSE_DLL_API friend const SgAsmCilMethodDef* isSgAsmCilMethodDef( const SgNode * s );
285
286 // ******************************************
287 // * Memory Pool / New / Delete
288 // ******************************************
289
290 public:
292 static const unsigned pool_size; //
294 static std::vector<unsigned char *> pools; //
296 static SgAsmCilMethodDef * next_node; //
297
299 static unsigned long initializeStorageClassArray(SgAsmCilMethodDefStorageClass *); //
300
302 static void clearMemoryPool(); //
303 static void deleteMemoryPool(); //
304
306 static void extendMemoryPoolForFileIO(); //
307
309 static SgAsmCilMethodDef * getPointerFromGlobalIndex(unsigned long); //
311 static SgAsmCilMethodDef * getPointerFromGlobalIndex(AstSpecificDataManagingClass *, unsigned long); //
312
314 static unsigned long getNumberOfValidNodesAndSetGlobalIndexInFreepointer(unsigned long); //
316 static void resetValidFreepointers(); //
318 static unsigned long getNumberOfLastValidPointer(); //
319
320
321#if defined(INLINE_FUNCTIONS)
323 inline void *operator new (size_t size);
324#else
326 void *operator new (size_t size);
327#endif
329 void operator delete (void* pointer, size_t size);
330
331 // DQ (4/5/2007): This is not the correct operator that we want, but appears to be required to compile ROSE with ROSE.
332 void operator delete (void* pointer)
333 {
334 // This is the generated delete operator...
335 SgAsmCilMethodDef::operator delete (pointer,sizeof(SgAsmCilMethodDef));
336 }
337
339 static size_t numberOfNodes();
340
342 static size_t memoryUsage();
343
344 // End of scope which started in IR nodes specific code
345 /* */
346
347 /* name Internal Functions
348 \brief Internal functions ... incomplete-documentation
349
350 These functions have been made public as part of the design, but they are suggested for internal use
351 or by particularly knowledgeable users for specialized tools or applications.
352
353 \internal We could not make these private because they are required by user for special purposes. And
354 it would be unwieldy to have many of the internal classes in ROSE be explicitly defined as friends.
355
356 */
357
358 // MS: 02/12/02 container of pointers to AST successor nodes used in the traversal
359 // overridden in every class by *generated* implementation
361 virtual std::vector<SgNode*> get_traversalSuccessorContainer() const override;
362 // MS: 06/28/02 container of names of variables or container indices
363 // used used in the traversal to access AST successor nodes
364 // overridden in every class by *generated* implementation
367 virtual std::vector<std::string> get_traversalSuccessorNamesContainer() const override;
368
369 // GB (09/25/2007): Functions for index-based access to traversal successors; these are hopefully a lot faster
370 // than all the vector copies. The implementation for these functions is generated for each class.
372 virtual size_t get_numberOfTraversalSuccessors() const override;
374 virtual SgNode *get_traversalSuccessorByIndex(size_t idx) const override;
376 virtual size_t get_childIndex(SgNode *child) const override;
377
378#ifndef ROSE_USE_INTERNAL_FRONTEND_DEVELOPMENT
379 // MS: 08/16/2002 method for generating RTI information
381 virtual RTIReturnType roseRTI() override;
382#endif
383 /* */
384
385
386
387 /* name Deprecated Functions
388 \brief Deprecated functions ... incomplete-documentation
389
390 These functions have been deprecated from use.
391 */
392 /* */
393
395 virtual const char* sage_class_name() const override ROSE_DEPRECATED_FUNCTION;
396
397 // JJW (10/16/2008): Changed to a single function in Node.code, and put
398 // getVariant() in #if 0 block to prevent confusing Doxygen
399#if 0
401 virtual int variant() const ROSE_DEPRECATED_FUNCTION;
403 // virtual int getVariant() const ROSE_DEPRECATED_FUNCTION;
404#endif
405 /* */
406
407
408
409
410 public:
411 /* name Traversal Support Functions
412 \brief Traversal support functions ... incomplete-documentation
413
414 These functions have been made public as part of the design, but they are suggested for internal use
415 or by particularly knowledgable users for specialized tools or applications.
416 */
417 /* */
418
419 // DQ (11/26/2005): Support for visitor pattern mechanims
420 // (inferior to ROSE traversal mechanism, experimental).
424
425 /* DXN (08/09/2010): support for the classic visitor pattern done in GoF */
427 virtual void accept (ROSE_VisitorPattern & visitor) override;
428
429 // DQ (12/26/2005): Support for traversal based on the memory pool
432 static void traverseMemoryPoolNodes(ROSE_VisitTraversal & visit);
433
437
438 // DQ (2/9/2006): Added to support traversal over single representative of each IR node
439 // This traversal helps support internal tools that call static member functions.
440 // note: this function operates on the memory pools.
443 static void visitRepresentativeNode (ROSE_VisitTraversal & visit);
444 /* */
445
446 public:
447 /* NodeId support functions */
449 static SgNode* getNodeByNodeId(VariantT variantT, size_t poolIdx, size_t itemIdx);
452 static SgAsmCilMethodDef* getNodeByNodeIdInternal(size_t poolIdx, size_t itemIdx);
455 static std::string getNodeIdString(SgAsmCilMethodDef* sgnode);
456 static std::string getNodeIdStringInternal(SgAsmCilMethodDef* sgnode);
457
458 public:
459 /* name Memory Allocation Functions
460 \brief Memory allocations functions ... incomplete-documentation
461
462 These functions have been made public as part of the design, but they are suggested for internal use
463 or by particularly knowledgable users for specialized tools or applications.
464 */
465 /* */
466
477 virtual bool isInMemoryPool() override;
478
489 virtual void checkDataMemberPointersIfInMemoryPool() override;
490
491 // DQ (4/30/2006): Modified to be a const function.
506 virtual std::vector<std::pair<SgNode*,std::string> > returnDataMemberPointers() const override;
507
518
530 virtual long getChildIndex( SgNode* childNode ) const override;
531
532 // DQ (9/2/2015): Since this function is generated by ROSETTA, we can't define the
533 // comment here (changed to be a C style comment and not be a doxygen comment).
534 /* \brief Constructor for use by AST File I/O Mechanism
535
536 This constructor permits the IR node to be rebuilt from the contiguously arranged data in memory
537 which obtained via fast binary file I/O from disk.
538 */
539 // SgAsmCilMethodDef( SgAsmCilMethodDefStorageClass& source );
540
541
542
543
544
545 // JH (10/24/2005): methods added to support the ast file IO
546 private:
547
548 /* name AST Memory Allocation Support Functions
549 \brief Memory allocations support....
550
551 These functions handle the low leve support of the memory allocation scheme which permits IR nodes to be allocated
552 in large contiguous blocks to reduce memory fragmentation, improve performance, support specialized access (AST traversals),
553 and support the AST File I/O Mechanism.
554 */
555 /* */
556
557 /* JH (10/24/2005): Two typedefs. The TestType notes the type every pointer is cast to before
558 we compare them. Since I had several problems with this, I decided to make a typdef to ensure
559 that I use the same type everywhere, if any changes are made. THe second one declares the type
560 (actually unsigned long) where teh pointer address gets converted to. On 64 bit platforms this
561 might got changed, but unfortunatly, the return types are still unsigned longs. There exists
562 a correspinding one in the AST_FILE_IO class!
563 */
564 // DQ (9/2/2015): This typedef is no longer used, we can't define the
565 // comment here (changed to be a C style comment and not be a doxygen comment).
566 /* \brief Typedef used for low level memory access.
567 */
568 // typedef unsigned char* TestType;
569
570 // DQ (9/2/2015): This typedef is no longer used, we can't define the
571 // comment here (changed to be a C style comment and not be a doxygen comment).
572 /* \brief Typedef used to hold memory addresses as values.
573 */
574 // typedef unsigned long AddressType;
575
576
577
578 // necessary, to have direct access to the p_freepointer and the private methods !
580 friend class AST_FILE_IO;
581
583 friend class SgAsmCilMethodDefStorageClass;
584
586 friend class AstSpecificDataManagingClass;
587
589 friend class AstSpecificDataManagingClassStorageClass;
590 public:
592 SgAsmCilMethodDef( const SgAsmCilMethodDefStorageClass& source );
593
594 // private: // JJW hack
595 /*
596 name AST Memory Allocation Support Variables
597 Memory allocations support variables
598
599 These variables handle the low level support of the memory allocation scheme which permits IR nodes to be allocated
600 in large contiguous blocks to reduce memory fragmentation, improve performance, support specialized access (AST traversals),
601 and support the AST File I/O Mechanism.
602 */
603 /* */
604
605 public:
606
607 // DQ (11/21/2009): Added function to add new Regular Expression attributes and return pointer
608 // to current node (so that it will work cleanly with build functions to specify patterns).
609 // virtual SgNode* addRegExpAttribute();
616
617#ifndef _MSC_VER
618// Rasmussen (04/17/2019): Support for ATerms has been deprecated as it is no longer needed
619// and likely never fully implemented nor tested. Files remain in the src tree but are no
620// longer built.
621#define BUILD_ATERM_SUPPORT 0
622 #if BUILD_ATERM_SUPPORT
623 #ifdef ROSE_USE_ROSE_ATERM_SUPPORT
624 // DQ (10/4/2014): Adding ATerm support to ROSE.
634 // Rasmussen (1/7/2019): Added override to kill warning messages of overridden virtual function
635 virtual ATerm generate_ATerm() override;
636
638 virtual void generate_ATerm_Annotation(ATerm & term) override;
639 #endif
640 #endif // BUILD_ATERM_SUPPORT
641#endif
642 // These can't be virtual functions since we don't yet know what IR node to build (until we have read the aterm).
643 // virtual generate_AST(ATerm & term);
644 // virtual void read_ATerm_Annotation(ATerm & term);
645
646// *** COMMON CODE SECTION ENDS HERE ***
647
648
649// End of memberFunctionString
650// Start of memberFunctionString
651/* #line 710 "/workspace/src/ROSETTA/Grammar/Node.code" */
652
653 // the generated cast function
654 // friend ROSE_DLL_API SgAsmCilMethodDef* isSgAsmCilMethodDef ( SgNode* s );
655
656 typedef SgAsmCilMetadata base_node_type;
657
658
659// End of memberFunctionString
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674 protected:
675// Start of memberFunctionString
676uint32_t p_RVA;
677
678// End of memberFunctionString
679// Start of memberFunctionString
680uint16_t p_ImplFlags;
681
682// End of memberFunctionString
683// Start of memberFunctionString
684uint16_t p_Flags;
685
686// End of memberFunctionString
687// Start of memberFunctionString
688uint32_t p_Name;
689
690// End of memberFunctionString
691// Start of memberFunctionString
692uint32_t p_Signature;
693
694// End of memberFunctionString
695// Start of memberFunctionString
696uint32_t p_ParamList;
697
698// End of memberFunctionString
699// Start of memberFunctionString
700SgAsmBlock* p_body;
701
702// End of memberFunctionString
703// Start of memberFunctionString
704bool p_initLocals;
705
706// End of memberFunctionString
707// Start of memberFunctionString
708uint32_t p_stackSize;
709
710// End of memberFunctionString
711// Start of memberFunctionString
712bool p_hasMoreSections;
713
714// End of memberFunctionString
715// Start of memberFunctionString
716uint32_t p_localVarSigTok;
717
718// End of memberFunctionString
719// Start of memberFunctionString
720std::vector<SgAsmCilMethodData*> p_methodData;
721
722// End of memberFunctionString
723// Start of memberFunctionString
724int p_bodyState;
725
726// End of memberFunctionString
727
729 friend struct Rose::Traits::generated::describe_field_t<SgAsmCilMethodDef, uint32_t,&SgAsmCilMethodDef::p_RVA>;
730 friend struct Rose::Traits::generated::describe_field_t<SgAsmCilMethodDef, uint16_t,&SgAsmCilMethodDef::p_ImplFlags>;
731 friend struct Rose::Traits::generated::describe_field_t<SgAsmCilMethodDef, uint16_t,&SgAsmCilMethodDef::p_Flags>;
732 friend struct Rose::Traits::generated::describe_field_t<SgAsmCilMethodDef, uint32_t,&SgAsmCilMethodDef::p_Name>;
733 friend struct Rose::Traits::generated::describe_field_t<SgAsmCilMethodDef, uint32_t,&SgAsmCilMethodDef::p_Signature>;
734 friend struct Rose::Traits::generated::describe_field_t<SgAsmCilMethodDef, uint32_t,&SgAsmCilMethodDef::p_ParamList>;
735 friend struct Rose::Traits::generated::describe_field_t<SgAsmCilMethodDef, SgAsmBlock*,&SgAsmCilMethodDef::p_body>;
736 friend struct Rose::Traits::generated::describe_field_t<SgAsmCilMethodDef, bool,&SgAsmCilMethodDef::p_initLocals>;
737 friend struct Rose::Traits::generated::describe_field_t<SgAsmCilMethodDef, uint32_t,&SgAsmCilMethodDef::p_stackSize>;
738 friend struct Rose::Traits::generated::describe_field_t<SgAsmCilMethodDef, bool,&SgAsmCilMethodDef::p_hasMoreSections>;
739 friend struct Rose::Traits::generated::describe_field_t<SgAsmCilMethodDef, uint32_t,&SgAsmCilMethodDef::p_localVarSigTok>;
740 friend struct Rose::Traits::generated::describe_field_t<SgAsmCilMethodDef, std::vector<SgAsmCilMethodData*>,&SgAsmCilMethodDef::p_methodData>;
741 friend struct Rose::Traits::generated::describe_field_t<SgAsmCilMethodDef, int,&SgAsmCilMethodDef::p_bodyState>;
742
743/* #line 21 "/workspace/src/ROSETTA/Grammar/grammarClassDeclarationMacros.macro" */
744
745
746 };
747#endif
748
749// postdeclarations for SgAsmCilMethodDef
750
751/* #line 752 "../../../src/frontend/SageIII//SgAsmCilMethodDef.h" */
752
753/* #line 27 "/workspace/src/ROSETTA/Grammar/grammarClassDeclarationMacros.macro after subst for $POSTDECLARATIONS" */
754
755/* #line 28 "/workspace/src/ROSETTA/Grammar/grammarClassDeclarationMacros.macro" */
756
757
758/* #line 759 "../../../src/frontend/SageIII//SgAsmCilMethodDef.h" */
759
760#endif // ROSE_SgAsmCilMethodDef_H
761
Class holding static data and functions supporting File I/O.
Definition AST_FILE_IO.h:19
Attribute containing a regex expression as a string.
Instruction basic block.
Base class for CIL branch of binary analysis IR nodes.
void initializeProperties()
Initialize all properties that have explicit initial values.
CIL MethodDef node (II.22.26).
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.
void parse(SgAsmGenericFile *)
Main function to parse DWARF information.
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.