Displaying 5 results from an estimated 5 matches for "mamproxy".
Did you mean:
imapproxy
2020 Aug 05
5
[RFC] Introduce Dump Accumulator
...ator. We add the
analysis pass right at the beginning of the pass pipeline. The new
analysis pass holds the dump messages throughout the pass pipeline.
If you would like to dump messages from some pass, you would obtain
the result of DumpAccumulator in the pass:
DumpAccumulator::Result *DAR = MAMProxy.getCachedResult<DumpAccumulator>(M);
Then dump messages:
if (DAR) {
DAR->Message += "Processing ";
DAR->Message += F.getName();
DAR->Message += "\n";
}
AsmPrinter
----------
We dump the messages from DumpAccumulator into a section called
"...
2019 Mar 13
1
RFC: Getting ProfileSummaryInfo and BlockFrequencyInfo from various types of passes under the new pass manager
...and always get
> ModuleAnalysisManager and PSI (see below.) This actually happens in my
> experiment.
>
> SomeLoopPass::run(Loop &L, LoopAnalysisManager &LAM, …) {
> auto &FAM = LAM.getResult<FunctionAnalysisManagerLoopProxy>(L,
> AR).getManager();
> auto *MAMProxy = FAM.getCachedResult<ModuleAnalysisManagerFunctionProxy>(
> L.getHeader()->getParent()); *// Can be null*
Oh... well...
> If (MAMProxy) {
> auto &MAM = MAMProxy->getManager();
> auto *PSI = MAM.getCachedResult<ProfileSummaryAnalysis>(*F.getParent());
> } e...
2020 Aug 05
3
[RFC] Introduce Dump Accumulator
...ass pipeline. The new
>> analysis pass holds the dump messages throughout the pass pipeline.
>>
>> If you would like to dump messages from some pass, you would obtain
>> the result of DumpAccumulator in the pass:
>>
>> DumpAccumulator::Result *DAR =
>> MAMProxy.getCachedResult<DumpAccumulator>(M);
>>
>> Then dump messages:
>>
>> if (DAR) {
>> DAR->Message += "Processing ";
>> DAR->Message += F.getName();
>> DAR->Message += "\n";
>> }
>>
>> A...
2019 Mar 13
2
RFC: Getting ProfileSummaryInfo and BlockFrequencyInfo from various types of passes under the new pass manager
Overall seems fine to me.
On 3/11/19 8:12 PM, Hiroshi Yamauchi wrote:
> Here's a revised approach based on the discussion:
>
> - Cache PSI right after the profile summary in the IR is written in
> the pass pipeline. This would avoid the need to insert
> RequireAnalysisPass for PSI before each non-module pass that needs it.
> PSI can be technically invalidated but unlikely
2020 Aug 05
3
[RFC] Introduce Dump Accumulator
...the pass pipeline. The new
>
> analysis pass holds the dump messages throughout the pass pipeline.
>
>
>
> If you would like to dump messages from some pass, you would obtain
>
> the result of DumpAccumulator in the pass:
>
>
>
> DumpAccumulator::Result *DAR = MAMProxy.getCachedResult<DumpAccumulator>(M);
>
>
>
> Then dump messages:
>
>
>
> if (DAR) {
>
> DAR->Message += "Processing ";
>
> DAR->Message += F.getName();
>
> DAR->Message += "\n";
>
> }
>
>
>
&...