Path: blob/main/contrib/llvm-project/llvm/lib/Target/X86/MCTargetDesc/X86EncodingOptimization.h
35294 views
//===-- X86EncodingOptimization.h - X86 Encoding optimization ---*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//7//8// This file contains the declarations of the X86 encoding optimization9//10//===----------------------------------------------------------------------===//1112#ifndef LLVM_LIB_TARGET_X86_X86ENCODINGOPTIMIZATION_H13#define LLVM_LIB_TARGET_X86_X86ENCODINGOPTIMIZATION_H14namespace llvm {15class MCInst;16class MCInstrDesc;17namespace X86 {18bool optimizeInstFromVEX3ToVEX2(MCInst &MI, const MCInstrDesc &Desc);19bool optimizeShiftRotateWithImmediateOne(MCInst &MI);20bool optimizeVPCMPWithImmediateOneOrSix(MCInst &MI);21bool optimizeMOVSX(MCInst &MI);22bool optimizeINCDEC(MCInst &MI, bool In64BitMode);23bool optimizeMOV(MCInst &MI, bool In64BitMode);24bool optimizeToFixedRegisterOrShortImmediateForm(MCInst &MI);25unsigned getOpcodeForShortImmediateForm(unsigned Opcode);26unsigned getOpcodeForLongImmediateForm(unsigned Opcode);27} // namespace X8628} // namespace llvm29#endif303132