Skip to content

Commit

Permalink
Add parseAPI/src/ParseData.C
Browse files Browse the repository at this point in the history
  • Loading branch information
hainest committed Apr 3, 2024
1 parent d1f5fb8 commit f04bc32
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion docs/parseAPI/developer/ParseData.h.rst
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ ParseData.h
.. cpp:function:: virtual void setFrameStatus(CodeRegion*,Address,ParseFrame::Status) = 0
.. cpp:function:: virtual ParseFrame* createAndRecordFrame(Function*) = 0

0Atomically lookup whether there is a frame for a Function object.
Atomically lookup whether there is a frame for a Function object.
If there is no frame for the Function, create a new frame and record it.
Return NULL if a frame already exists;
Return the pointer to the new frame if a new frame is created
Expand Down
8 changes: 0 additions & 8 deletions parseAPI/src/ParseData.C
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ ParseWorkElem * ParseFrame::mkWork(
return ret;

}
/**** Standard [no overlapping regions] ParseData ****/

StandardParseData::StandardParseData(Parser *p) :
ParseData(p), _rdata{}
Expand Down Expand Up @@ -183,12 +182,6 @@ StandardParseData::setFrameStatus(CodeRegion * /* cr */, Address addr,
_rdata.setFrameStatus(addr, status);
}

// This function return NULL
// if a frame for input function f has exists,
// or is being created by another thread.
//
// Otherwise, the calling thread will create and
// register a new frame.
ParseFrame*
StandardParseData::createAndRecordFrame(Function* f)
{
Expand Down Expand Up @@ -259,7 +252,6 @@ StandardParseData::remove_extents(const std::vector<FuncExtent*> & extents)
}
}

/**** Overlapping region ParseData ****/
OverlappingParseData::OverlappingParseData(
Parser *p, vector<CodeRegion *> & regions) :
ParseData(p)
Expand Down

0 comments on commit f04bc32

Please sign in to comment.