ROSE 0.11.145.247
SgAsmFunction.h
1
2#ifndef ROSE_SgAsmFunction_H
3#define ROSE_SgAsmFunction_H
4#include <RoseFirst.h>
5#include <Cxx_GrammarDeclarations.h>
6#include <SgAsmSynthesizedDeclaration.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 SgAsmFunction
23
24/* #line 25 "../../../src/frontend/SageIII//SgAsmFunction.h" */
25/* #line 16310 "/workspace/src/ROSETTA/src/binaryInstruction.C" */
26
27#include <Rose/BinaryAnalysis/Address.h>
28#include <Rose/BinaryAnalysis/AddressIntervalSet.h>
29#include <sageContainer.h>
30
31#ifdef ROSE_SgAsmFunction_IMPL
32#include <SgAsmInstruction.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 SgAsmFunction
42class ROSE_DLL_API SgAsmFunction : public SgAsmSynthesizedDeclaration
43 {
44 public:
45
46
47/* #line 48 "../../../src/frontend/SageIII//SgAsmFunction.h" */
48
49 virtual SgNode* copy ( SgCopyHelp& help) const override;
50// Start of memberFunctionString
51/* #line 16418 "/workspace/src/ROSETTA/src/binaryInstruction.C" */
52
53
54 //----------------------- Boost serialization for SgAsmFunction -----------------------
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("SgAsmFunction");
62 s & BOOST_SERIALIZATION_BASE_OBJECT_NVP(SgAsmSynthesizedDeclaration);
63 s & BOOST_SERIALIZATION_NVP(p_name);
64 s & BOOST_SERIALIZATION_NVP(p_reason);
65 s & BOOST_SERIALIZATION_NVP(p_reasonComment);
66 s & BOOST_SERIALIZATION_NVP(p_functionKind);
67 s & BOOST_SERIALIZATION_NVP(p_mayReturn);
68 s & BOOST_SERIALIZATION_NVP(p_nameMd5);
69 s & BOOST_SERIALIZATION_NVP(p_statementList);
70 s & BOOST_SERIALIZATION_NVP(p_dest);
71 s & BOOST_SERIALIZATION_NVP(p_entryVa);
72 s & BOOST_SERIALIZATION_NVP(p_cachedVertex);
73 s & BOOST_SERIALIZATION_NVP(p_stackDelta);
74 s & BOOST_SERIALIZATION_NVP(p_callingConvention);
75 debugSerializationEnd("SgAsmFunction");
76 }
77#endif // ROSE_ENABLE_BOOST_SERIALIZATION
79 // Local types
81public:
83 enum MayReturn {
84 RET_UNKNOWN,
85 RET_NEVER,
86 RET_SOMETIMES,
87 RET_ALWAYS
88 };
89
93 enum FunctionReason {
94 // NOTE: If you add more here, then fix Partitioner::parse_switches()
95 // Also fix SgAsmFunction::reason_key()
96 FUNC_NONE = 0x00000000,
97 FUNC_THUNK_TARGET= 0x00004000,
98 FUNC_EXCEPTION_HANDLER
99 = 0x00008000,
100 FUNC_ENTRY_POINT = 0x00010000,
101 FUNC_CALL_TARGET = 0x00020000,
104 FUNC_CALL_INSN = 0x00040000,
110 FUNC_EH_FRAME = 0x00080000,
111 FUNC_SYMBOL = 0x00100000,
112 FUNC_PATTERN = 0x00200000,
117 FUNC_GRAPH = 0x00400000,
121 FUNC_USERDEF = 0x00800000,
122 FUNC_PADDING = 0x01000000,
127 FUNC_DISCONT = 0x02000000,
130 FUNC_INSNHEAD = 0x04000000,
131 FUNC_IMPORT = 0x08000000,
134 FUNC_LEFTOVERS = 0x10000000,
138 FUNC_INTRABLOCK = 0x20000000,
146 FUNC_THUNK = 0x40000000,
155 FUNC_EXPORT = 0x80000000,
157 FUNC_DEFAULT = 0xefff80ff,
159 /*========= Miscellaneous Reasons ===========================================================================
160 * The first half of the range (1-127, inclusive) is used for algorithms defined by ROSE. The second half is
161 * availalble for users to use as they see fit. */
162 FUNC_MISCMASK = 0x000000ff,
168 FUNC_INTERPADFUNC = 1,
171 FUNC_PESCRAMBLER_DISPATCH = 2,
172 FUNC_CONFIGURED = 3,
173 FUNC_CMDLINE = 4,
174 FUNC_SCAN_RO_DATA = 5,
175 FUNC_INSN_RO_DATA = 6,
177 };
178
180 enum function_kind_enum {
181 e_unknown = 0,
182 e_standard = 1,
183 e_library = 2,
184 e_imported = 3,
185 e_thunk = 4,
186 e_last
187 };
188
190 // Properties
192public:
193public:
199 std::string const& get_name() const;
200 void set_name(std::string const&);
203public:
210 unsigned const& get_reason() const;
211 void set_reason(unsigned const&);
214public:
222 std::string const& get_reasonComment() const;
223 void set_reasonComment(std::string const&);
226public:
232 SgAsmFunction::function_kind_enum const& get_functionKind() const;
233 void set_functionKind(SgAsmFunction::function_kind_enum const&);
236public:
240 SgAsmFunction::MayReturn const& get_mayReturn() const;
241 void set_mayReturn(SgAsmFunction::MayReturn const&);
244public:
250 std::string const& get_nameMd5() const;
251 void set_nameMd5(std::string const&);
254public:
260 SgAsmStatementPtrList const& get_statementList() const;
261 SgAsmStatementPtrList& get_statementList();
262 void set_statementList(SgAsmStatementPtrList const&);
264 // FIXME[Robb P Matzke 2017-02-13]: unused?
265public:
266 SgAsmStatementPtrList const& get_dest() const;
267 void set_dest(SgAsmStatementPtrList const&);
268
269public:
276 Rose::BinaryAnalysis::Address const& get_entryVa() const;
277 void set_entryVa(Rose::BinaryAnalysis::Address const&);
280public:
287 SgSymbolTable* const& get_symbolTable() const;
288 void set_symbolTable(SgSymbolTable* const&);
290 // FIXME[Robb P Matzke 2017-02-13]: what is this?
291public:
292 size_t const& get_cachedVertex() const;
293 void set_cachedVertex(size_t const&);
294
295public:
305 int64_t const& get_stackDelta() const;
306 void set_stackDelta(int64_t const&);
309public:
318 std::string const& get_callingConvention() const;
319 void set_callingConvention(std::string const&);
322 // Functions
324public:
327
331 void removeStatement(SgAsmStatement* statement);
332
337 SgAsmBlock* get_entryBlock() const;
338
342 static std::string reasonKey(const std::string &prefix = "");
343
345 std::string reasonString(bool pad) const;
346
350 static std::string reasonString(bool pad, unsigned reason);
351
353 class NodeSelector {
354 public:
355 virtual ~NodeSelector() {}
356 virtual bool operator()(SgNode*) = 0;
357 };
358
398 size_t get_extent(Rose::BinaryAnalysis::AddressIntervalSet *emap=NULL, Rose::BinaryAnalysis::Address *lo_addr=NULL,
399 Rose::BinaryAnalysis::Address *hi_addr=NULL, NodeSelector *selector=NULL);
400
406 bool get_sha1(uint8_t digest[20]/*out*/, NodeSelector *selector=NULL);
407
409 // Deprecated 2023-11
411public:
412 function_kind_enum get_function_kind() const ROSE_DEPRECATED("use get_functionKind");
413 void set_function_kind(function_kind_enum) ROSE_DEPRECATED("use set_functionKind");
414 MayReturn get_may_return() const ROSE_DEPRECATED("use get_mayReturn");
415 void set_may_return(MayReturn) ROSE_DEPRECATED("use set_mayReturn");
416 const std::string& get_name_md5() const ROSE_DEPRECATED("use get_nameMd5");
417 void set_name_md5(const std::string&) ROSE_DEPRECATED("use set_nameMd5");
418 Rose::BinaryAnalysis::Address get_entry_va() const ROSE_DEPRECATED("use get_entryVa");
419 void set_entry_va(Rose::BinaryAnalysis::Address) ROSE_DEPRECATED("use set_entryVa");
420 SgSymbolTable* get_symbol_table() const ROSE_DEPRECATED("use get_symbolTable");
421 void set_symbol_table(SgSymbolTable*) ROSE_DEPRECATED("use set_symbolTable");
422 size_t get_cached_vertex() const ROSE_DEPRECATED("use get_cachedVertex");
423 void set_cached_vertex(size_t) ROSE_DEPRECATED("use set_cachedVertex");
424 void append_statement(SgAsmStatement*) ROSE_DEPRECATED("use appendStatement");
425 void remove_statement(SgAsmStatement* statement) ROSE_DEPRECATED("use removeStatement");
426 SgAsmBlock* get_entry_block() const ROSE_DEPRECATED("use get_entryBlock");
427 static std::string reason_key(const std::string &prefix="") ROSE_DEPRECATED("use reasonKey");
428 std::string reason_str(bool) const ROSE_DEPRECATED("use reasonString");
429 static std::string reason_str(bool, unsigned) ROSE_DEPRECATED("use reasonString");
430public:
432 virtual ~SgAsmFunction();
433
434public:
437
438public:
440 SgAsmFunction(Rose::BinaryAnalysis::Address const& address,
441 std::string const& name,
442 unsigned const& reason,
443 SgAsmFunction::function_kind_enum const& functionKind);
444
445protected:
452 void initializeProperties();
453
454
455// End of memberFunctionString
456// Start of memberFunctionString
457/* #line 1 "/workspace/src/ROSETTA/Grammar/Common.code" */
458
459// *** COMMON CODE SECTION BEGINS HERE ***
460
461 public:
462
463 // DQ (3/25/3006): I put this back in because it had the logic for where the copy function required
464 // and not required which is required to match the other aspects of the copy mechanism code generation.
465 // Specifically it is a problem to declare the copy function everywhere because it is not implemented
466 // for the SgSymbol IR nodes. I'm not clear why it is not implemented for these IR nodes.
467 /* \brief Copies AST (whole subtree, depending on the SgCopyHelp class */
468 // virtual SgNode* copy ( const SgCopyHelp & help) const;
469
471 virtual std::string class_name() const override;
472
474 virtual VariantT variantT() const override; // MS: new variant used in tree traversal
475
477 // King84 (2010.08.16): Moved this to an enum to save space, since it's only used at compiler-time anyway.
478 // static const VariantT static_variant = V_SgAsmFunction;
479 enum { static_variant = V_SgAsmFunction };
480
481 /* the generated cast function */
483 ROSE_DLL_API friend SgAsmFunction* isSgAsmFunction( SgNode * s );
484
486 ROSE_DLL_API friend const SgAsmFunction* isSgAsmFunction( const SgNode * s );
487
488 // ******************************************
489 // * Memory Pool / New / Delete
490 // ******************************************
491
492 public:
494 static const unsigned pool_size; //
496 static std::vector<unsigned char *> pools; //
498 static SgAsmFunction * next_node; //
499
501 static unsigned long initializeStorageClassArray(SgAsmFunctionStorageClass *); //
502
504 static void clearMemoryPool(); //
505 static void deleteMemoryPool(); //
506
508 static void extendMemoryPoolForFileIO(); //
509
511 static SgAsmFunction * getPointerFromGlobalIndex(unsigned long); //
513 static SgAsmFunction * getPointerFromGlobalIndex(AstSpecificDataManagingClass *, unsigned long); //
514
516 static unsigned long getNumberOfValidNodesAndSetGlobalIndexInFreepointer(unsigned long); //
518 static void resetValidFreepointers(); //
520 static unsigned long getNumberOfLastValidPointer(); //
521
522
523#if defined(INLINE_FUNCTIONS)
525 inline void *operator new (size_t size);
526#else
528 void *operator new (size_t size);
529#endif
531 void operator delete (void* pointer, size_t size);
532
533 // DQ (4/5/2007): This is not the correct operator that we want, but appears to be required to compile ROSE with ROSE.
534 void operator delete (void* pointer)
535 {
536 // This is the generated delete operator...
537 SgAsmFunction::operator delete (pointer,sizeof(SgAsmFunction));
538 }
539
541 static size_t numberOfNodes();
542
544 static size_t memoryUsage();
545
546 // End of scope which started in IR nodes specific code
547 /* */
548
549 /* name Internal Functions
550 \brief Internal functions ... incomplete-documentation
551
552 These functions have been made public as part of the design, but they are suggested for internal use
553 or by particularly knowledgeable users for specialized tools or applications.
554
555 \internal We could not make these private because they are required by user for special purposes. And
556 it would be unwieldy to have many of the internal classes in ROSE be explicitly defined as friends.
557
558 */
559
560 // MS: 02/12/02 container of pointers to AST successor nodes used in the traversal
561 // overridden in every class by *generated* implementation
563 virtual std::vector<SgNode*> get_traversalSuccessorContainer() const override;
564 // MS: 06/28/02 container of names of variables or container indices
565 // used used in the traversal to access AST successor nodes
566 // overridden in every class by *generated* implementation
569 virtual std::vector<std::string> get_traversalSuccessorNamesContainer() const override;
570
571 // GB (09/25/2007): Functions for index-based access to traversal successors; these are hopefully a lot faster
572 // than all the vector copies. The implementation for these functions is generated for each class.
574 virtual size_t get_numberOfTraversalSuccessors() const override;
576 virtual SgNode *get_traversalSuccessorByIndex(size_t idx) const override;
578 virtual size_t get_childIndex(SgNode *child) const override;
579
580#ifndef ROSE_USE_INTERNAL_FRONTEND_DEVELOPMENT
581 // MS: 08/16/2002 method for generating RTI information
583 virtual RTIReturnType roseRTI() override;
584#endif
585 /* */
586
587
588
589 /* name Deprecated Functions
590 \brief Deprecated functions ... incomplete-documentation
591
592 These functions have been deprecated from use.
593 */
594 /* */
595
597 virtual const char* sage_class_name() const override ROSE_DEPRECATED_FUNCTION;
598
599 // JJW (10/16/2008): Changed to a single function in Node.code, and put
600 // getVariant() in #if 0 block to prevent confusing Doxygen
601#if 0
603 virtual int variant() const ROSE_DEPRECATED_FUNCTION;
605 // virtual int getVariant() const ROSE_DEPRECATED_FUNCTION;
606#endif
607 /* */
608
609
610
611
612 public:
613 /* name Traversal Support Functions
614 \brief Traversal support functions ... incomplete-documentation
615
616 These functions have been made public as part of the design, but they are suggested for internal use
617 or by particularly knowledgable users for specialized tools or applications.
618 */
619 /* */
620
621 // DQ (11/26/2005): Support for visitor pattern mechanims
622 // (inferior to ROSE traversal mechanism, experimental).
626
627 /* DXN (08/09/2010): support for the classic visitor pattern done in GoF */
629 virtual void accept (ROSE_VisitorPattern & visitor) override;
630
631 // DQ (12/26/2005): Support for traversal based on the memory pool
634 static void traverseMemoryPoolNodes(ROSE_VisitTraversal & visit);
635
639
640 // DQ (2/9/2006): Added to support traversal over single representative of each IR node
641 // This traversal helps support internal tools that call static member functions.
642 // note: this function operates on the memory pools.
645 static void visitRepresentativeNode (ROSE_VisitTraversal & visit);
646 /* */
647
648 public:
649 /* NodeId support functions */
651 static SgNode* getNodeByNodeId(VariantT variantT, size_t poolIdx, size_t itemIdx);
654 static SgAsmFunction* getNodeByNodeIdInternal(size_t poolIdx, size_t itemIdx);
657 static std::string getNodeIdString(SgAsmFunction* sgnode);
658 static std::string getNodeIdStringInternal(SgAsmFunction* sgnode);
659
660 public:
661 /* name Memory Allocation Functions
662 \brief Memory allocations functions ... incomplete-documentation
663
664 These functions have been made public as part of the design, but they are suggested for internal use
665 or by particularly knowledgable users for specialized tools or applications.
666 */
667 /* */
668
679 virtual bool isInMemoryPool() override;
680
691 virtual void checkDataMemberPointersIfInMemoryPool() override;
692
693 // DQ (4/30/2006): Modified to be a const function.
708 virtual std::vector<std::pair<SgNode*,std::string> > returnDataMemberPointers() const override;
709
720
732 virtual long getChildIndex( SgNode* childNode ) const override;
733
734 // DQ (9/2/2015): Since this function is generated by ROSETTA, we can't define the
735 // comment here (changed to be a C style comment and not be a doxygen comment).
736 /* \brief Constructor for use by AST File I/O Mechanism
737
738 This constructor permits the IR node to be rebuilt from the contiguously arranged data in memory
739 which obtained via fast binary file I/O from disk.
740 */
741 // SgAsmFunction( SgAsmFunctionStorageClass& source );
742
743
744
745
746
747 // JH (10/24/2005): methods added to support the ast file IO
748 private:
749
750 /* name AST Memory Allocation Support Functions
751 \brief Memory allocations support....
752
753 These functions handle the low leve support of the memory allocation scheme which permits IR nodes to be allocated
754 in large contiguous blocks to reduce memory fragmentation, improve performance, support specialized access (AST traversals),
755 and support the AST File I/O Mechanism.
756 */
757 /* */
758
759 /* JH (10/24/2005): Two typedefs. The TestType notes the type every pointer is cast to before
760 we compare them. Since I had several problems with this, I decided to make a typdef to ensure
761 that I use the same type everywhere, if any changes are made. THe second one declares the type
762 (actually unsigned long) where teh pointer address gets converted to. On 64 bit platforms this
763 might got changed, but unfortunatly, the return types are still unsigned longs. There exists
764 a correspinding one in the AST_FILE_IO class!
765 */
766 // DQ (9/2/2015): This typedef is no longer used, we can't define the
767 // comment here (changed to be a C style comment and not be a doxygen comment).
768 /* \brief Typedef used for low level memory access.
769 */
770 // typedef unsigned char* TestType;
771
772 // DQ (9/2/2015): This typedef is no longer used, we can't define the
773 // comment here (changed to be a C style comment and not be a doxygen comment).
774 /* \brief Typedef used to hold memory addresses as values.
775 */
776 // typedef unsigned long AddressType;
777
778
779
780 // necessary, to have direct access to the p_freepointer and the private methods !
782 friend class AST_FILE_IO;
783
785 friend class SgAsmFunctionStorageClass;
786
788 friend class AstSpecificDataManagingClass;
789
791 friend class AstSpecificDataManagingClassStorageClass;
792 public:
794 SgAsmFunction( const SgAsmFunctionStorageClass& source );
795
796 // private: // JJW hack
797 /*
798 name AST Memory Allocation Support Variables
799 Memory allocations support variables
800
801 These variables handle the low level support of the memory allocation scheme which permits IR nodes to be allocated
802 in large contiguous blocks to reduce memory fragmentation, improve performance, support specialized access (AST traversals),
803 and support the AST File I/O Mechanism.
804 */
805 /* */
806
807 public:
808
809 // DQ (11/21/2009): Added function to add new Regular Expression attributes and return pointer
810 // to current node (so that it will work cleanly with build functions to specify patterns).
811 // virtual SgNode* addRegExpAttribute();
818
819#ifndef _MSC_VER
820// Rasmussen (04/17/2019): Support for ATerms has been deprecated as it is no longer needed
821// and likely never fully implemented nor tested. Files remain in the src tree but are no
822// longer built.
823#define BUILD_ATERM_SUPPORT 0
824 #if BUILD_ATERM_SUPPORT
825 #ifdef ROSE_USE_ROSE_ATERM_SUPPORT
826 // DQ (10/4/2014): Adding ATerm support to ROSE.
836 // Rasmussen (1/7/2019): Added override to kill warning messages of overridden virtual function
837 virtual ATerm generate_ATerm() override;
838
840 virtual void generate_ATerm_Annotation(ATerm & term) override;
841 #endif
842 #endif // BUILD_ATERM_SUPPORT
843#endif
844 // These can't be virtual functions since we don't yet know what IR node to build (until we have read the aterm).
845 // virtual generate_AST(ATerm & term);
846 // virtual void read_ATerm_Annotation(ATerm & term);
847
848// *** COMMON CODE SECTION ENDS HERE ***
849
850
851// End of memberFunctionString
852// Start of memberFunctionString
853/* #line 710 "/workspace/src/ROSETTA/Grammar/Node.code" */
854
855 // the generated cast function
856 // friend ROSE_DLL_API SgAsmFunction* isSgAsmFunction ( SgNode* s );
857
858 typedef SgAsmSynthesizedDeclaration base_node_type;
859
860
861// End of memberFunctionString
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876 protected:
877// Start of memberFunctionString
878std::string p_name;
879
880// End of memberFunctionString
881// Start of memberFunctionString
882unsigned p_reason;
883
884// End of memberFunctionString
885// Start of memberFunctionString
886std::string p_reasonComment;
887
888// End of memberFunctionString
889// Start of memberFunctionString
891
892// End of memberFunctionString
893// Start of memberFunctionString
894SgAsmFunction::MayReturn p_mayReturn;
895
896// End of memberFunctionString
897// Start of memberFunctionString
898std::string p_nameMd5;
899
900// End of memberFunctionString
901// Start of memberFunctionString
902SgAsmStatementPtrList p_statementList;
903
904// End of memberFunctionString
905// Start of memberFunctionString
906SgAsmStatementPtrList p_dest;
907
908// End of memberFunctionString
909// Start of memberFunctionString
911
912// End of memberFunctionString
913// Start of memberFunctionString
914SgSymbolTable* p_symbolTable;
915
916// End of memberFunctionString
917// Start of memberFunctionString
918size_t p_cachedVertex;
919
920// End of memberFunctionString
921// Start of memberFunctionString
922int64_t p_stackDelta;
923
924// End of memberFunctionString
925// Start of memberFunctionString
926std::string p_callingConvention;
927
928// End of memberFunctionString
929
931 friend struct Rose::Traits::generated::describe_field_t<SgAsmFunction, std::string,&SgAsmFunction::p_name>;
932 friend struct Rose::Traits::generated::describe_field_t<SgAsmFunction, unsigned,&SgAsmFunction::p_reason>;
933 friend struct Rose::Traits::generated::describe_field_t<SgAsmFunction, std::string,&SgAsmFunction::p_reasonComment>;
934 friend struct Rose::Traits::generated::describe_field_t<SgAsmFunction, SgAsmFunction::function_kind_enum,&SgAsmFunction::p_functionKind>;
935 friend struct Rose::Traits::generated::describe_field_t<SgAsmFunction, SgAsmFunction::MayReturn,&SgAsmFunction::p_mayReturn>;
936 friend struct Rose::Traits::generated::describe_field_t<SgAsmFunction, std::string,&SgAsmFunction::p_nameMd5>;
937 friend struct Rose::Traits::generated::describe_field_t<SgAsmFunction, SgAsmStatementPtrList,&SgAsmFunction::p_statementList>;
938 friend struct Rose::Traits::generated::describe_field_t<SgAsmFunction, SgAsmStatementPtrList,&SgAsmFunction::p_dest>;
939 friend struct Rose::Traits::generated::describe_field_t<SgAsmFunction, Rose::BinaryAnalysis::Address,&SgAsmFunction::p_entryVa>;
940 friend struct Rose::Traits::generated::describe_field_t<SgAsmFunction, SgSymbolTable*,&SgAsmFunction::p_symbolTable>;
941 friend struct Rose::Traits::generated::describe_field_t<SgAsmFunction, size_t,&SgAsmFunction::p_cachedVertex>;
942 friend struct Rose::Traits::generated::describe_field_t<SgAsmFunction, int64_t,&SgAsmFunction::p_stackDelta>;
943 friend struct Rose::Traits::generated::describe_field_t<SgAsmFunction, std::string,&SgAsmFunction::p_callingConvention>;
944
945/* #line 21 "/workspace/src/ROSETTA/Grammar/grammarClassDeclarationMacros.macro" */
946
947
948 };
949#endif
950
951// postdeclarations for SgAsmFunction
952
953/* #line 954 "../../../src/frontend/SageIII//SgAsmFunction.h" */
954
955/* #line 27 "/workspace/src/ROSETTA/Grammar/grammarClassDeclarationMacros.macro after subst for $POSTDECLARATIONS" */
956
957/* #line 28 "/workspace/src/ROSETTA/Grammar/grammarClassDeclarationMacros.macro" */
958
959
960/* #line 961 "../../../src/frontend/SageIII//SgAsmFunction.h" */
961
962#endif // ROSE_SgAsmFunction_H
963
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.
Represents a synthesized function.
function_kind_enum
Constants for the "function_kind" property.
MayReturn
Whether a function returns.
Base class for statement-like subclasses.
Base class for synthesized declarations.
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.
This class represents the symbol tables used in both SgScopeStatement and the SgFunctionTypeSymbolTab...
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.
ROSE_DLL_API int set_name(SgInitializedName *initializedNameNode, SgName new_name)
set_name of symbol in symbol table.
ROSE_DLL_API void appendStatement(SgStatement *stmt, SgScopeStatement *scope=NULL)
Append a statement to the end of the current scope, handle side effect of appending statements,...
std::string get_name(const SgNode *node)
Generate a useful name to describe the SgNode.
ROSE_DLL_API void removeStatement(SgStatement *stmt, bool autoRelocatePreprocessingInfo=true)
Remove a statement from its attach point of the AST. Automatically keep its associated preprocessing ...
void copy(const Word *src, const BitRange &srcRange, Word *dst, const BitRange &dstRange)
Copy some bits.
const char * FunctionReason(int64_t)
Convert SgAsmFunction::FunctionReason enum constant to a string.
const char * MayReturn(int64_t)
Convert SgAsmFunction::MayReturn enum constant to a string.
const char * function_kind_enum(int64_t)
Convert SgAsmFunction::function_kind_enum enum constant to a string.