search for: hasglobalvaluesummary

Displaying 8 results from an estimated 8 matches for "hasglobalvaluesummary".

2016 Oct 28
2
RFC: APIs for bitcode files containing multiple modules
...iter.h > >> would have a member function on BitcodeReader. We would also have a > next() > >> member function which would move to the next module in the file. For > >> example: > >> > >> BitcodeReader R(MBRef); > >> Expected<bool> B = R.hasGlobalValueSummary(); > > What's this used for? This would be the equivalent to the existing llvm::hasGlobalValueSummary() function, which currently controls whether we compile a module with regular LTO or with ThinLTO. Would there be a "readGlobalValueSummary()" > similar to function summar...
2016 Oct 28
0
RFC: APIs for bitcode files containing multiple modules
...member function on BitcodeReader. We would also have a >> >> next() >> >> member function which would move to the next module in the file. For >> >> example: >> >> >> >> BitcodeReader R(MBRef); >> >> Expected<bool> B = R.hasGlobalValueSummary(); >> >> What's this used for? > > > This would be the equivalent to the existing llvm::hasGlobalValueSummary() > function, which currently controls whether we compile a module with regular > LTO or with ThinLTO. > >> Would there be a "readGlobalValueSum...
2016 Oct 26
2
RFC: APIs for bitcode files containing multiple modules
...eader class. Each of the functional reader APIs in ReaderWriter.h > would have a member function on BitcodeReader. We would also have a next() > member function which would move to the next module in the file. For > example: > > BitcodeReader R(MBRef); > Expected<bool> B = R.hasGlobalValueSummary(); > std::unique_ptr<Module> M1 = R.getLazyModule(Ctx); // lazily load the > first module > R.next(); > std::unique_ptr<Module> M2 = R.parseBitcodeFile(Ctx); // eagerly load the > second module > > > > That makes the API quite stateful, you may have good imple...
2016 Oct 28
2
RFC: APIs for bitcode files containing multiple modules
...BitcodeReader. We would also have a >>>>> next() >>>>> member function which would move to the next module in the file. For >>>>> example: >>>>> >>>>> BitcodeReader R(MBRef); >>>>> Expected<bool> B = R.hasGlobalValueSummary(); >>> >>> What's this used for? >> >> >> This would be the equivalent to the existing llvm::hasGlobalValueSummary() >> function, which currently controls whether we compile a module with regular >> LTO or with ThinLTO. >> >>> W...
2016 Oct 28
0
RFC: APIs for bitcode files containing multiple modules
...functional reader APIs in ReaderWriter.h >> would have a member function on BitcodeReader. We would also have a next() >> member function which would move to the next module in the file. For >> example: >> >> BitcodeReader R(MBRef); >> Expected<bool> B = R.hasGlobalValueSummary(); What's this used for? Would there be a "readGlobalValueSummary()" similar to function summaries? >> std::unique_ptr<Module> M1 = R.getLazyModule(Ctx); // lazily load the >> first module >> R.next(); >> std::unique_ptr<Module> M2 = R.parseBitcod...
2016 Oct 26
2
RFC: APIs for bitcode files containing multiple modules
...be supported with a BitcodeReader class. Each of the functional reader APIs in ReaderWriter.h would have a member function on BitcodeReader. We would also have a next() member function which would move to the next module in the file. For example: BitcodeReader R(MBRef); Expected<bool> B = R.hasGlobalValueSummary(); std::unique_ptr<Module> M1 = R.getLazyModule(Ctx); // lazily load the first module R.next(); std::unique_ptr<Module> M2 = R.parseBitcodeFile(Ctx); // eagerly load the second module We'd continue to support the existing functional APIs in ReaderWriter.h for convenience in the com...
2016 Oct 28
0
RFC: APIs for bitcode files containing multiple modules
...also have a >>>>>> next() >>>>>> member function which would move to the next module in the file. For >>>>>> example: >>>>>> >>>>>> BitcodeReader R(MBRef); >>>>>> Expected<bool> B = R.hasGlobalValueSummary(); >>>> >>>> What's this used for? >>> >>> >>> This would be the equivalent to the existing llvm::hasGlobalValueSummary() >>> function, which currently controls whether we compile a module with regular >>> LTO or with ThinL...
2016 Oct 26
0
RFC: APIs for bitcode files containing multiple modules
...ith a BitcodeReader class. Each of the functional reader APIs in ReaderWriter.h would have a member function on BitcodeReader. We would also have a next() member function which would move to the next module in the file. For example: > > BitcodeReader R(MBRef); > Expected<bool> B = R.hasGlobalValueSummary(); > std::unique_ptr<Module> M1 = R.getLazyModule(Ctx); // lazily load the first module > R.next(); > std::unique_ptr<Module> M2 = R.parseBitcodeFile(Ctx); // eagerly load the second module That makes the API quite stateful, you may have good implementation reason for this, b...