[PATCH] D48683: [MachineOutliner] Define MachineOutliner support in TargetOptions

Jessica Paquette via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 27 16:35:19 PDT 2018


paquette created this revision.
paquette added a reviewer: efriedma.
Herald added a reviewer: javed.absar.

Targets should be able to define whether or not they support the outliner without the outliner being added to the pass pipeline. Before this, the outliner pass would be added, and ask the target whether or not it supports the outliner.

After this, it's possible to query the target in TargetPassConfig, before the outliner pass is created. This ensures that passing -enable-machine-outliner will not modify the pass pipeline of any target that does not support it.


https://reviews.llvm.org/D48683

Files:
  include/llvm/CodeGen/TargetInstrInfo.h
  include/llvm/Target/TargetMachine.h
  include/llvm/Target/TargetOptions.h
  lib/CodeGen/MachineOutliner.cpp
  lib/CodeGen/TargetPassConfig.cpp
  lib/Target/AArch64/AArch64InstrInfo.h
  lib/Target/AArch64/AArch64TargetMachine.cpp
  lib/Target/X86/X86InstrInfo.h
  lib/Target/X86/X86TargetMachine.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48683.153202.patch
Type: text/x-patch
Size: 5786 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180627/305ec8c6/attachment.bin>


More information about the llvm-commits mailing list