[PATCH] D135488: [codegen] Add a remarks based Stack Layout Analysis pass

Paul Kirth via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 12 16:08:59 PST 2023


paulkirth added a comment.

In D135488#4048869 <https://reviews.llvm.org/D135488#4048869>, @thegameg wrote:

> In D135488#4048854 <https://reviews.llvm.org/D135488#4048854>, @paulkirth wrote:
>
>> In D135488#4048380 <https://reviews.llvm.org/D135488#4048380>, @nickdesaulniers wrote:
>>
>>> It would be really nice if we could limit this to a specific function somehow.
>>
>> I think you can do that, right ?
>> see: 
>> https://llvm.org/docs/Remarks.html#cmdoption-pass-remarks-filter
>
> This filters on the `Name` of the remark, so here it would be `stack-frame-layout`.
>
> I think a `-Rpass-func-filter=<regex>` would be a great addition.

That's right. I misremembered.  I think when this was a normal printing pass you could filter w/ `-filter-print-funcs=foo` but I don't think that works now


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D135488/new/

https://reviews.llvm.org/D135488



More information about the llvm-commits mailing list