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:11 +0000
committerCraig Topper <craig.topper@intel.com>2018-02-20 03:58:11 +0000
commit9b64bf54b97157bfe46987ce5638fcb78cca76b4 (patch)
tree2c0cb59edf703544d510c4987fa49bf1129796ae /llvm/lib/Target/X86/X86InstrInfo.h
parent0848210b745638d297546508f4070ffbe535ab9c (diff)
downloadbcm5719-llvm-9b64bf54b97157bfe46987ce5638fcb78cca76b4.tar.gz
bcm5719-llvm-9b64bf54b97157bfe46987ce5638fcb78cca76b4.zip
[X86] Make a helper function for commuting AVX512 VPCMP immediates since we do it in two places.
llvm-svn: 325546
Diffstat (limited to 'llvm/lib/Target/X86/X86InstrInfo.h')
-rw-r--r--llvm/lib/Target/X86/X86InstrInfo.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86InstrInfo.h b/llvm/lib/Target/X86/X86InstrInfo.h
index b1b5a4a421d..5a2e00152e8 100644
--- a/llvm/lib/Target/X86/X86InstrInfo.h
+++ b/llvm/lib/Target/X86/X86InstrInfo.h
@@ -83,6 +83,10 @@ CondCode getCondFromCMovOpc(unsigned Opc);
/// GetOppositeBranchCondition - Return the inverse of the specified cond,
/// e.g. turning COND_E to COND_NE.
CondCode GetOppositeBranchCondition(CondCode CC);
+
+/// \brief Get the VPCMP immediate if the opcodes are swapped.
+unsigned getSwappedVPCMPImm(unsigned Imm);
+
} // namespace X86
/// isGlobalStubReference - Return true if the specified TargetFlag operand is
OpenPOWER on IntegriCloud