LLVM  14.0.0git
Macros | Functions
X86InsertWait.cpp File Reference
#include "X86.h"
#include "X86InstrInfo.h"
#include "X86Subtarget.h"
#include "llvm/CodeGen/MachineBasicBlock.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/CodeGen/MachineInstrBuilder.h"
#include "llvm/CodeGen/MachineOperand.h"
#include "llvm/IR/DebugLoc.h"
#include "llvm/Support/Debug.h"
Include dependency graph for X86InsertWait.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "x86-insert-wait"
 

Functions

static bool isX87Reg (unsigned Reg)
 Return true if the Reg is X87 register. More...
 
static bool isX87Instruction (MachineInstr &MI)
 check if the instruction is X87 instruction More...
 
static bool isX87ControlInstruction (MachineInstr &MI)
 
static bool isX87NonWaitingControlInstruction (MachineInstr &MI)
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "x86-insert-wait"

Definition at line 35 of file X86InsertWait.cpp.

Function Documentation

◆ isX87ControlInstruction()

static bool isX87ControlInstruction ( MachineInstr MI)
static

Definition at line 75 of file X86InsertWait.cpp.

References llvm::X86ISD::FLDCW16m, llvm::X86ISD::FNSTCW16m, and MI.

◆ isX87Instruction()

static bool isX87Instruction ( MachineInstr MI)
static

check if the instruction is X87 instruction

Definition at line 65 of file X86InsertWait.cpp.

References isX87Reg(), and MI.

◆ isX87NonWaitingControlInstruction()

static bool isX87NonWaitingControlInstruction ( MachineInstr MI)
static

Definition at line 99 of file X86InsertWait.cpp.

References llvm::X86ISD::FNSTCW16m, and MI.

◆ isX87Reg()

static bool isX87Reg ( unsigned  Reg)
static

Return true if the Reg is X87 register.

Definition at line 59 of file X86InsertWait.cpp.

References Reg.

Referenced by isX87Instruction().