Displaying 1 result from an estimated 1 matches for "getirfile".
2013 Jul 12
14
[LLVMdev] [Proposal] Parallelize post-IPO stage.
...IPOPartMgr
+//
+// /////////////////////////////////////////////////////////////////////////////
+//
+IPOPartition::IPOPartition(Module *M, const char *NameWoExt, IPOFileMgr &FM) :
+ Mod(0), Ctx(0), IRFile(0), ObjFile(0), FileNameWoExt(NameWoExt), FileMgr(FM) {
+}
+
+IPOFile &IPOPartition::getIRFile() const {
+ if (IRFile)
+ return *IRFile;
+ else {
+ std::string FN(FileNameWoExt + ".bc");
+ return *(IRFile = FileMgr.CreateIRFile(FN.c_str()));
+ }
+}
+
+IPOFile &IPOPartition::getObjFile() const {
+ if (ObjFile)
+ return *ObjFile;
+ else {
+ std::string FN(File...