Skip to content
Snippets Groups Projects
Commit a57edd0c authored by kotsifa2's avatar kotsifa2
Browse files

Fixed i8* to DFNode map\nFixed makefile to support different source and build trees

parent f48c9b5e
No related branches found
No related tags found
No related merge requests found
......@@ -148,13 +148,19 @@ private:
Function* ArgMapFuncPointer; ///< Function that associates the input
///< arguments of destination with the outputs
///< of source dataflow node
// Functions
DFEdge(DFNode* _SrcDF, DFNode* _DestDF, Function* _DFMapFuncPointer,
Function* _ArgMapFuncPointer) : SrcDF(_SrcDF), DestDF(_DestDF),
DFMapFuncPointer(_DFMapFuncPointer),
ArgMapFuncPointer(_ArgMapFuncPointer) {}
public:
//FIXME: Write a matching constructor, then uncomment this function.
/*static DFEdge *Create(DFNode* SrcDF, DFNode* DestDF, Function* DFMapFuncPointer, Function* ArgMapFuncPointer) {
return new DFEdge(SrcDF, DestDF, DFMapFuncPointer, ArgMapFuncPointer);
}*/
static DFEdge *Create(DFNode* SrcDF, DFNode* DestDF, Function* DFMapFuncPtr,
Function* ArgMapFuncPtr) {
return new DFEdge(SrcDF, DestDF, DFMapFuncPtr, ArgMapFuncPtr);
}
};
} // End llvm namespace
......
......@@ -121,7 +121,7 @@ namespace {
}
}
void handleCreateEdge (DFNode* N, IntrinsicInst* II) {
void BuildDFG::handleCreateEdge (DFNode* N, IntrinsicInst* II) {
// The DFNode structures must be in the map before the edge is processed
HandleToDFNode::iterator DFI = HandleToDFNodeMap.find(II->getOperand(0));
assert(DFI != HandleToDFNodeMap.end());
......
......@@ -8,7 +8,8 @@
##===----------------------------------------------------------------------===##
LEVEL = ../..
PARALLEL_DIRS = Utils Instrumentation Scalar InstCombine IPO Vectorize Hello ObjCARC
PARALLEL_DIRS = Utils Instrumentation Scalar InstCombine IPO Vectorize Hello \
ObjCARC BuildDFG
include $(LEVEL)/Makefile.config
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment