ROSE 2.1.0
Loading...
Searching...
No Matches
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 35387 "/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
95 using MethodFlags = std::uint16_t;
96
97 enum : MethodFlags {
98 FLG_MEMBERACCESS_MASK = 0x0007,
99 FLG_COMPILER_CONTROLLED = 0x0000,
100 FLG_PRIVATE = 0x0001,
101 FLG_FAM_AND_ASSEM = 0x0002,
102 FLG_ASSEM = 0x0003,
103 FLG_FAMILY = 0x0004,
104 FLG_FAM_OR_ASSEM = 0x0005,
105 FLG_PUBLIC = 0x0006,
106 FLG_STATIC = 0x0010,
107 FLG_FINAL = 0x0020,
108 FLG_VIRTUAL = 0x0040,
109 FLG_HIDEBYSIG = 0x0080,
110 FLG_VTABLE_LAYOUT_MASK = 0x0100,
111 FLG_REUSE_SLOT = 0x0000,
112 FLG_NEW_SLOT = 0x0100,
113 FLG_STRICT = 0x0200,
114 FLG_ABSTRACT = 0x0400,
115 FLG_SPECIAL_NAME = 0x0800,
116 // interop attributes
117 FLG_P_INVOKE_IMPL = 0x2000,
118 FLG_UNMANAGED_EXPORT = 0x0008,
119 // additional flags
120 FLG_RT_SPECIAL_NAME = 0x1000,
121 FLG_HAS_SECURITY = 0x4000,
122 FLG_REQUIRE_SEC_OBJECT = 0x8000,
123 };
124
125 private:
126public:
132 uint32_t const& get_RVA() const;
133 void set_RVA(uint32_t const&);
136public:
142 uint16_t const& get_ImplFlags() const;
143 void set_ImplFlags(uint16_t const&);
146public:
152 uint16_t const& get_Flags() const;
153 void set_Flags(uint16_t const&);
156public:
162 uint32_t const& get_Name() const;
163 void set_Name(uint32_t const&);
166public:
172 uint32_t const& get_Signature() const;
173 void set_Signature(uint32_t const&);
176public:
182 uint32_t const& get_ParamList() const;
183 void set_ParamList(uint32_t const&);
186public:
192 SgAsmBlock* const& get_body() const;
193 void set_body(SgAsmBlock* const&);
196public:
202 bool const& get_initLocals() const;
203 void set_initLocals(bool const&);
206public:
212 uint32_t const& get_stackSize() const;
213 void set_stackSize(uint32_t const&);
216public:
222 bool const& get_hasMoreSections() const;
223 void set_hasMoreSections(bool const&);
225 //
226 // additional fields
227public:
234 uint32_t const& get_localVarSigTok() const;
235 void set_localVarSigTok(uint32_t const&);
238public:
244 std::vector<SgAsmCilMethodData*> const& get_methodData() const;
245 std::vector<SgAsmCilMethodData*>& get_methodData();
248public:
255 int const& get_bodyState() const;
256 void set_bodyState(int const&);
258public:
259 void parse(const std::vector<uint8_t>& buf, size_t& index, uint64_t uses4byteIndexing);
260 void unparse(std::vector<uint8_t>& buf, size_t& index, uint64_t uses4byteIndexing) const;
261 void dump(std::ostream&) const;
262
263 const std::uint8_t* get_Name_string() const;
264 const std::uint8_t* get_Signature_blob() const;
265 const SgAsmCilMetadata* get_ParamList_object() const;
266public:
268 virtual ~SgAsmCilMethodDef();
269
270public:
273
274protected:
282
283
284// End of memberFunctionString
285// Start of memberFunctionString
286/* #line 1 "/workspace/src/ROSETTA/Grammar/Common.code" */
287
288// *** COMMON CODE SECTION BEGINS HERE ***
289
290 public:
291
292 // DQ (3/25/3006): I put this back in because it had the logic for where the copy function required
293 // and not required which is required to match the other aspects of the copy mechanism code generation.
294 // Specifically it is a problem to declare the copy function everywhere because it is not implemented
295 // for the SgSymbol IR nodes. I'm not clear why it is not implemented for these IR nodes.
296 /* \brief Copies AST (whole subtree, depending on the SgCopyHelp class */
297 // virtual SgNode* copy ( const SgCopyHelp & help) const;
298
300 virtual std::string class_name() const override;
301
303 virtual VariantT variantT() const override; // MS: new variant used in tree traversal
304
306 // King84 (2010.08.16): Moved this to an enum to save space, since it's only used at compiler-time anyway.
307 // static const VariantT static_variant = V_SgAsmCilMethodDef;
308 enum { static_variant = V_SgAsmCilMethodDef };
309
310 /* the generated cast function */
312 ROSE_DLL_API friend SgAsmCilMethodDef* isSgAsmCilMethodDef( SgNode * s );
313
315 ROSE_DLL_API friend const SgAsmCilMethodDef* isSgAsmCilMethodDef( const SgNode * s );
316
317 // ******************************************
318 // * Memory Pool / New / Delete
319 // ******************************************
320
321 public:
323 static const unsigned pool_size; //
325 static std::vector<unsigned char *> pools; //
327 static SgAsmCilMethodDef * next_node; //
328
330 static unsigned long initializeStorageClassArray(SgAsmCilMethodDefStorageClass *); //
331
333 static void clearMemoryPool(); //
334 static void deleteMemoryPool(); //
335
337 static void extendMemoryPoolForFileIO(); //
338
340 static SgAsmCilMethodDef * getPointerFromGlobalIndex(unsigned long); //
342 static SgAsmCilMethodDef * getPointerFromGlobalIndex(AstSpecificDataManagingClass *, unsigned long); //
343
345 static unsigned long getNumberOfValidNodesAndSetGlobalIndexInFreepointer(unsigned long); //
347 static void resetValidFreepointers(); //
349 static unsigned long getNumberOfLastValidPointer(); //
350
351
352#if defined(INLINE_FUNCTIONS)
354 inline void *operator new (size_t size);
355#else
357 void *operator new (size_t size);
358#endif
360 void operator delete (void* pointer, size_t size);
361
362 // DQ (4/5/2007): This is not the correct operator that we want, but appears to be required to compile ROSE with ROSE.
363 void operator delete (void* pointer)
364 {
365 // This is the generated delete operator...
366 SgAsmCilMethodDef::operator delete (pointer,sizeof(SgAsmCilMethodDef));
367 }
368
370 static size_t numberOfNodes();
371
373 static size_t memoryUsage();
374
375 // End of scope which started in IR nodes specific code
376 /* */
377
378 /* name Internal Functions
379 \brief Internal functions ... incomplete-documentation
380
381 These functions have been made public as part of the design, but they are suggested for internal use
382 or by particularly knowledgeable users for specialized tools or applications.
383
384 \internal We could not make these private because they are required by user for special purposes. And
385 it would be unwieldy to have many of the internal classes in ROSE be explicitly defined as friends.
386
387 */
388
389 // MS: 02/12/02 container of pointers to AST successor nodes used in the traversal
390 // overridden in every class by *generated* implementation
392 virtual std::vector<SgNode*> get_traversalSuccessorContainer() const override;
393 // MS: 06/28/02 container of names of variables or container indices
394 // used used in the traversal to access AST successor nodes
395 // overridden in every class by *generated* implementation
398 virtual std::vector<std::string> get_traversalSuccessorNamesContainer() const override;
399
400 // GB (09/25/2007): Functions for index-based access to traversal successors; these are hopefully a lot faster
401 // than all the vector copies. The implementation for these functions is generated for each class.
403 virtual size_t get_numberOfTraversalSuccessors() const override;
405 virtual SgNode *get_traversalSuccessorByIndex(size_t idx) const override;
407 virtual size_t get_childIndex(SgNode *child) const override;
408
409#ifndef ROSE_USE_INTERNAL_FRONTEND_DEVELOPMENT
410 // MS: 08/16/2002 method for generating RTI information
412 virtual RTIReturnType roseRTI() override;
413#endif
414 /* */
415
416
417
418 /* name Deprecated Functions
419 \brief Deprecated functions ... incomplete-documentation
420
421 These functions have been deprecated from use.
422 */
423 /* */
424
426 virtual const char* sage_class_name() const override ROSE_DEPRECATED_FUNCTION;
427
428 // JJW (10/16/2008): Changed to a single function in Node.code, and put
429 // getVariant() in #if 0 block to prevent confusing Doxygen
430#if 0
432 virtual int variant() const ROSE_DEPRECATED_FUNCTION;
434 // virtual int getVariant() const ROSE_DEPRECATED_FUNCTION;
435#endif
436 /* */
437
438
439
440
441 public:
442 /* name Traversal Support Functions
443 \brief Traversal support functions ... incomplete-documentation
444
445 These functions have been made public as part of the design, but they are suggested for internal use
446 or by particularly knowledgable users for specialized tools or applications.
447 */
448 /* */
449
450 // DQ (11/26/2005): Support for visitor pattern mechanims
451 // (inferior to ROSE traversal mechanism, experimental).
455
456 /* DXN (08/09/2010): support for the classic visitor pattern done in GoF */
458 virtual void accept (ROSE_VisitorPattern & visitor) override;
459
460 // DQ (12/26/2005): Support for traversal based on the memory pool
463 static void traverseMemoryPoolNodes(ROSE_VisitTraversal & visit);
464
468
469 // DQ (2/9/2006): Added to support traversal over single representative of each IR node
470 // This traversal helps support internal tools that call static member functions.
471 // note: this function operates on the memory pools.
474 static void visitRepresentativeNode (ROSE_VisitTraversal & visit);
475 /* */
476
477 public:
478 /* NodeId support functions */
480 static SgNode* getNodeByNodeId(VariantT variantT, size_t poolIdx, size_t itemIdx);
483 static SgAsmCilMethodDef* getNodeByNodeIdInternal(size_t poolIdx, size_t itemIdx);
486 static std::string getNodeIdString(SgAsmCilMethodDef* sgnode);
487 static std::string getNodeIdStringInternal(SgAsmCilMethodDef* sgnode);
488
489 public:
490 /* name Memory Allocation Functions
491 \brief Memory allocations functions ... incomplete-documentation
492
493 These functions have been made public as part of the design, but they are suggested for internal use
494 or by particularly knowledgable users for specialized tools or applications.
495 */
496 /* */
497
508 virtual bool isInMemoryPool() override;
509
520 virtual void checkDataMemberPointersIfInMemoryPool() override;
521
522 // DQ (4/30/2006): Modified to be a const function.
537 virtual std::vector<std::pair<SgNode*,std::string> > returnDataMemberPointers() const override;
538
549
561 virtual long getChildIndex( SgNode* childNode ) const override;
562
563 // DQ (9/2/2015): Since this function is generated by ROSETTA, we can't define the
564 // comment here (changed to be a C style comment and not be a doxygen comment).
565 /* \brief Constructor for use by AST File I/O Mechanism
566
567 This constructor permits the IR node to be rebuilt from the contiguously arranged data in memory
568 which obtained via fast binary file I/O from disk.
569 */
570 // SgAsmCilMethodDef( SgAsmCilMethodDefStorageClass& source );
571
572
573
574
575
576 // JH (10/24/2005): methods added to support the ast file IO
577 private:
578
579 /* name AST Memory Allocation Support Functions
580 \brief Memory allocations support....
581
582 These functions handle the low leve support of the memory allocation scheme which permits IR nodes to be allocated
583 in large contiguous blocks to reduce memory fragmentation, improve performance, support specialized access (AST traversals),
584 and support the AST File I/O Mechanism.
585 */
586 /* */
587
588 /* JH (10/24/2005): Two typedefs. The TestType notes the type every pointer is cast to before
589 we compare them. Since I had several problems with this, I decided to make a typdef to ensure
590 that I use the same type everywhere, if any changes are made. THe second one declares the type
591 (actually unsigned long) where teh pointer address gets converted to. On 64 bit platforms this
592 might got changed, but unfortunatly, the return types are still unsigned longs. There exists
593 a correspinding one in the AST_FILE_IO class!
594 */
595 // DQ (9/2/2015): This typedef is no longer used, we can't define the
596 // comment here (changed to be a C style comment and not be a doxygen comment).
597 /* \brief Typedef used for low level memory access.
598 */
599 // typedef unsigned char* TestType;
600
601 // DQ (9/2/2015): This typedef is no longer used, we can't define the
602 // comment here (changed to be a C style comment and not be a doxygen comment).
603 /* \brief Typedef used to hold memory addresses as values.
604 */
605 // typedef unsigned long AddressType;
606
607
608
609 // necessary, to have direct access to the p_freepointer and the private methods !
611 friend class AST_FILE_IO;
612
614 friend class SgAsmCilMethodDefStorageClass;
615
617 friend class AstSpecificDataManagingClass;
618
620 friend class AstSpecificDataManagingClassStorageClass;
621 public:
623 SgAsmCilMethodDef( const SgAsmCilMethodDefStorageClass& source );
624
625 // private: // JJW hack
626 /*
627 name AST Memory Allocation Support Variables
628 Memory allocations support variables
629
630 These variables handle the low level support of the memory allocation scheme which permits IR nodes to be allocated
631 in large contiguous blocks to reduce memory fragmentation, improve performance, support specialized access (AST traversals),
632 and support the AST File I/O Mechanism.
633 */
634 /* */
635
636 public:
637
638 // DQ (11/21/2009): Added function to add new Regular Expression attributes and return pointer
639 // to current node (so that it will work cleanly with build functions to specify patterns).
640 // virtual SgNode* addRegExpAttribute();
647
648#ifndef _MSC_VER
649// Rasmussen (04/17/2019): Support for ATerms has been deprecated as it is no longer needed
650// and likely never fully implemented nor tested. Files remain in the src tree but are no
651// longer built.
652#define BUILD_ATERM_SUPPORT 0
653 #if BUILD_ATERM_SUPPORT
654 #ifdef ROSE_USE_ROSE_ATERM_SUPPORT
655 // DQ (10/4/2014): Adding ATerm support to ROSE.
665 // Rasmussen (1/7/2019): Added override to kill warning messages of overridden virtual function
666 virtual ATerm generate_ATerm() override;
667
669 virtual void generate_ATerm_Annotation(ATerm & term) override;
670 #endif
671 #endif // BUILD_ATERM_SUPPORT
672#endif
673 // These can't be virtual functions since we don't yet know what IR node to build (until we have read the aterm).
674 // virtual generate_AST(ATerm & term);
675 // virtual void read_ATerm_Annotation(ATerm & term);
676
677// *** COMMON CODE SECTION ENDS HERE ***
678
679
680// End of memberFunctionString
681// Start of memberFunctionString
682/* #line 638 "/workspace/src/ROSETTA/Grammar/Node.code" */
683
684 // the generated cast function
685 // friend ROSE_DLL_API SgAsmCilMethodDef* isSgAsmCilMethodDef ( SgNode* s );
686
687 typedef SgAsmCilMetadata base_node_type;
688
689
690// End of memberFunctionString
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705 protected:
706// Start of memberFunctionString
707uint32_t p_RVA;
708
709// End of memberFunctionString
710// Start of memberFunctionString
711uint16_t p_ImplFlags;
712
713// End of memberFunctionString
714// Start of memberFunctionString
715uint16_t p_Flags;
716
717// End of memberFunctionString
718// Start of memberFunctionString
719uint32_t p_Name;
720
721// End of memberFunctionString
722// Start of memberFunctionString
723uint32_t p_Signature;
724
725// End of memberFunctionString
726// Start of memberFunctionString
727uint32_t p_ParamList;
728
729// End of memberFunctionString
730// Start of memberFunctionString
731SgAsmBlock* p_body;
732
733// End of memberFunctionString
734// Start of memberFunctionString
735bool p_initLocals;
736
737// End of memberFunctionString
738// Start of memberFunctionString
739uint32_t p_stackSize;
740
741// End of memberFunctionString
742// Start of memberFunctionString
743bool p_hasMoreSections;
744
745// End of memberFunctionString
746// Start of memberFunctionString
747uint32_t p_localVarSigTok;
748
749// End of memberFunctionString
750// Start of memberFunctionString
751std::vector<SgAsmCilMethodData*> p_methodData;
752
753// End of memberFunctionString
754// Start of memberFunctionString
755int p_bodyState;
756
757// End of memberFunctionString
758
760 friend struct Rose::Traits::generated::describe_field_t<SgAsmCilMethodDef, uint32_t,&SgAsmCilMethodDef::p_RVA>;
761 friend struct Rose::Traits::generated::describe_field_t<SgAsmCilMethodDef, uint16_t,&SgAsmCilMethodDef::p_ImplFlags>;
762 friend struct Rose::Traits::generated::describe_field_t<SgAsmCilMethodDef, uint16_t,&SgAsmCilMethodDef::p_Flags>;
763 friend struct Rose::Traits::generated::describe_field_t<SgAsmCilMethodDef, uint32_t,&SgAsmCilMethodDef::p_Name>;
764 friend struct Rose::Traits::generated::describe_field_t<SgAsmCilMethodDef, uint32_t,&SgAsmCilMethodDef::p_Signature>;
765 friend struct Rose::Traits::generated::describe_field_t<SgAsmCilMethodDef, uint32_t,&SgAsmCilMethodDef::p_ParamList>;
766 friend struct Rose::Traits::generated::describe_field_t<SgAsmCilMethodDef, SgAsmBlock*,&SgAsmCilMethodDef::p_body>;
767 friend struct Rose::Traits::generated::describe_field_t<SgAsmCilMethodDef, bool,&SgAsmCilMethodDef::p_initLocals>;
768 friend struct Rose::Traits::generated::describe_field_t<SgAsmCilMethodDef, uint32_t,&SgAsmCilMethodDef::p_stackSize>;
769 friend struct Rose::Traits::generated::describe_field_t<SgAsmCilMethodDef, bool,&SgAsmCilMethodDef::p_hasMoreSections>;
770 friend struct Rose::Traits::generated::describe_field_t<SgAsmCilMethodDef, uint32_t,&SgAsmCilMethodDef::p_localVarSigTok>;
771 friend struct Rose::Traits::generated::describe_field_t<SgAsmCilMethodDef, std::vector<SgAsmCilMethodData*>,&SgAsmCilMethodDef::p_methodData>;
772 friend struct Rose::Traits::generated::describe_field_t<SgAsmCilMethodDef, int,&SgAsmCilMethodDef::p_bodyState>;
773
774/* #line 21 "/workspace/src/ROSETTA/Grammar/grammarClassDeclarationMacros.macro" */
775
776
777 };
778#endif
779
780// postdeclarations for SgAsmCilMethodDef
781
782/* #line 783 "../../../src/frontend/SageIII//SgAsmCilMethodDef.h" */
783
784/* #line 27 "/workspace/src/ROSETTA/Grammar/grammarClassDeclarationMacros.macro after subst for $POSTDECLARATIONS" */
785
786/* #line 28 "/workspace/src/ROSETTA/Grammar/grammarClassDeclarationMacros.macro" */
787
788
789/* #line 790 "../../../src/frontend/SageIII//SgAsmCilMethodDef.h" */
790
791#endif // ROSE_SgAsmCilMethodDef_H
792
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.