LLVM 20.0.0git
X86EncodingOptimization.h
Go to the documentation of this file.
1//===-- X86EncodingOptimization.h - X86 Encoding optimization ---*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8//
9// This file contains the declarations of the X86 encoding optimization
10//
11//===----------------------------------------------------------------------===//
12
13#ifndef LLVM_LIB_TARGET_X86_X86ENCODINGOPTIMIZATION_H
14#define LLVM_LIB_TARGET_X86_X86ENCODINGOPTIMIZATION_H
15namespace llvm {
16class MCInst;
17class MCInstrDesc;
18namespace X86 {
19bool optimizeInstFromVEX3ToVEX2(MCInst &MI, const MCInstrDesc &Desc);
22bool optimizeMOVSX(MCInst &MI);
23bool optimizeINCDEC(MCInst &MI, bool In64BitMode);
24bool optimizeMOV(MCInst &MI, bool In64BitMode);
26unsigned getOpcodeForShortImmediateForm(unsigned Opcode);
27unsigned getOpcodeForLongImmediateForm(unsigned Opcode);
28} // namespace X86
29} // namespace llvm
30#endif
IRTranslator LLVM IR MI
@ X86
Windows x64, Windows Itanium (IA-64)
bool optimizeToFixedRegisterOrShortImmediateForm(MCInst &MI)
bool optimizeMOV(MCInst &MI, bool In64BitMode)
Simplify things like MOV32rm to MOV32o32a.
bool optimizeMOVSX(MCInst &MI)
bool optimizeVPCMPWithImmediateOneOrSix(MCInst &MI)
bool optimizeShiftRotateWithImmediateOne(MCInst &MI)
bool optimizeInstFromVEX3ToVEX2(MCInst &MI, const MCInstrDesc &Desc)
unsigned getOpcodeForLongImmediateForm(unsigned Opcode)
bool optimizeINCDEC(MCInst &MI, bool In64BitMode)
unsigned getOpcodeForShortImmediateForm(unsigned Opcode)
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
Op::Description Desc