summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86InstrInfo.h
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2018-02-20 03:58:13 +0000
committerCraig Topper <craig.topper@intel.com>2018-02-20 03:58:13 +0000
commita05ed17316f326315587d09e3a782e215d686a23 (patch)
tree6887637caa16d366e5ad86f30b76cf86701974d9 /llvm/lib/Target/X86/X86InstrInfo.h
parent9b64bf54b97157bfe46987ce5638fcb78cca76b4 (diff)
downloadbcm5719-llvm-a05ed17316f326315587d09e3a782e215d686a23.tar.gz
bcm5719-llvm-a05ed17316f326315587d09e3a782e215d686a23.zip
[X86] Make XOP VPCOM instructions commutable to fold loads during isel.
llvm-svn: 325547
Diffstat (limited to 'llvm/lib/Target/X86/X86InstrInfo.h')
-rw-r--r--llvm/lib/Target/X86/X86InstrInfo.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86InstrInfo.h b/llvm/lib/Target/X86/X86InstrInfo.h
index 5a2e00152e8..8bb90eb4ffe 100644
--- a/llvm/lib/Target/X86/X86InstrInfo.h
+++ b/llvm/lib/Target/X86/X86InstrInfo.h
@@ -87,6 +87,9 @@ CondCode GetOppositeBranchCondition(CondCode CC);
/// \brief Get the VPCMP immediate if the opcodes are swapped.
unsigned getSwappedVPCMPImm(unsigned Imm);
+/// \brief Get the VPCOM immediate if the opcodes are swapped.
+unsigned getSwappedVPCOMImm(unsigned Imm);
+
} // namespace X86
/// isGlobalStubReference - Return true if the specified TargetFlag operand is
OpenPOWER on IntegriCloud