diff options
author | Florian Hahn <florian.hahn@arm.com> | 2017-06-19 12:53:31 +0000 |
---|---|---|
committer | Florian Hahn <florian.hahn@arm.com> | 2017-06-19 12:53:31 +0000 |
commit | 5f746c8e2704d311cc01c8edb5460a0cb19c74e2 (patch) | |
tree | 24e5dd6a3c8bec3b553f26267d227e992ebc32c4 /llvm/lib/Target/X86/X86MacroFusion.h | |
parent | 3508fc8cc518f2f62d38c351c90f7815f835c3e4 (diff) | |
download | bcm5719-llvm-5f746c8e2704d311cc01c8edb5460a0cb19c74e2.tar.gz bcm5719-llvm-5f746c8e2704d311cc01c8edb5460a0cb19c74e2.zip |
Recommit rL305677: [CodeGen] Add generic MacroFusion pass
Use llvm::make_unique to avoid ambiguity with MSVC.
This patch adds a generic MacroFusion pass, that is used on X86 and
AArch64, which both define target-specific shouldScheduleAdjacent
functions. This generic pass should make it easier for other targets to
implement macro fusion and I intend to add macro fusion for ARM shortly.
Differential Revision: https://reviews.llvm.org/D34144
llvm-svn: 305690
Diffstat (limited to 'llvm/lib/Target/X86/X86MacroFusion.h')
-rw-r--r-- | llvm/lib/Target/X86/X86MacroFusion.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/llvm/lib/Target/X86/X86MacroFusion.h b/llvm/lib/Target/X86/X86MacroFusion.h index e630f802e8e..13fa2d78a01 100644 --- a/llvm/lib/Target/X86/X86MacroFusion.h +++ b/llvm/lib/Target/X86/X86MacroFusion.h @@ -2,23 +2,18 @@ // // The LLVM Compiler Infrastructure // -// \file This file is distributed under the University of Illinois Open Source +// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // -// This file contains the X86 definition of the DAG scheduling mutation to pair -// instructions back to back. +/// \file This file contains the X86 definition of the DAG scheduling mutation +/// to pair instructions back to back. // //===----------------------------------------------------------------------===// -#include "X86InstrInfo.h" #include "llvm/CodeGen/MachineScheduler.h" -//===----------------------------------------------------------------------===// -// X86MacroFusion - DAG post-processing to encourage fusion of macro ops. -//===----------------------------------------------------------------------===// - namespace llvm { /// Note that you have to add: |