LLVM  4.0.0
Macros
X86EvexToVex.cpp File Reference

This file defines the pass that goes over all AVX-512 instructions which are encoded using the EVEX prefix and if possible replaces them by their corresponding VEX encoding which is usually shorter by 2 bytes. More...

#include "InstPrinter/X86InstComments.h"
#include "X86.h"
#include "X86InstrBuilder.h"
#include "X86InstrInfo.h"
#include "X86InstrTablesInfo.h"
#include "X86MachineFunctionInfo.h"
#include "X86Subtarget.h"
#include "X86TargetMachine.h"
Include dependency graph for X86EvexToVex.cpp:

Go to the source code of this file.

Macros

#define EVEX2VEX_DESC   "Compressing EVEX instrs to VEX encoding when possible"
 
#define EVEX2VEX_NAME   "x86-evex-to-vex-compress"
 
#define DEBUG_TYPE   EVEX2VEX_NAME
 

Detailed Description

This file defines the pass that goes over all AVX-512 instructions which are encoded using the EVEX prefix and if possible replaces them by their corresponding VEX encoding which is usually shorter by 2 bytes.

EVEX instructions may be encoded via the VEX prefix when the AVX-512 instruction has a corresponding AVX/AVX2 opcode and when it does not use the xmm or the mask registers or xmm/ymm registers wuith indexes higher than 15. The pass applies code reduction on the generated code for AVX-512 instrs.

Definition in file X86EvexToVex.cpp.

Macro Definition Documentation

#define DEBUG_TYPE   EVEX2VEX_NAME

Definition at line 36 of file X86EvexToVex.cpp.

#define EVEX2VEX_DESC   "Compressing EVEX instrs to VEX encoding when possible"

Definition at line 33 of file X86EvexToVex.cpp.

#define EVEX2VEX_NAME   "x86-evex-to-vex-compress"

Definition at line 34 of file X86EvexToVex.cpp.