[PATCH] D140438: [IR/MachineOutliner] Add a "nooutline" function attr and respect it

Jessica Paquette via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 20 15:24:28 PST 2022


paquette created this revision.
paquette added reviewers: AndrewLitteken, jroelofs.
Herald added subscribers: ormris, jdoerfert, hiraditya.
Herald added a project: All.
paquette requested review of this revision.
Herald added a project: LLVM.

Add `nooutline` + update LangRef to say it exists.

This makes it possible to say "don't outline from this function ever."

We want to be able to toggle whether or not a function should be in the search set regardless of default behaviour.

Add testcases for the IR + Machine outliners.


https://reviews.llvm.org/D140438

Files:
  llvm/docs/LangRef.rst
  llvm/lib/CodeGen/MachineOutliner.cpp
  llvm/lib/Transforms/IPO/IROutliner.cpp
  llvm/test/CodeGen/AArch64/machine-outliner-nooutline-attribute.mir
  llvm/test/Transforms/IROutliner/nooutline-attribute.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140438.484402.patch
Type: text/x-patch
Size: 5060 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221220/9b11f17b/attachment.bin>


More information about the llvm-commits mailing list