LLVM  13.0.0git
Functions
X86WinAllocaExpander.cpp File Reference
#include "X86.h"
#include "X86InstrBuilder.h"
#include "X86InstrInfo.h"
#include "X86MachineFunctionInfo.h"
#include "X86Subtarget.h"
#include "llvm/ADT/MapVector.h"
#include "llvm/ADT/PostOrderIterator.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineInstrBuilder.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/CodeGen/Passes.h"
#include "llvm/CodeGen/TargetInstrInfo.h"
#include "llvm/IR/Function.h"
#include "llvm/Support/raw_ostream.h"
Include dependency graph for X86WinAllocaExpander.cpp:

Go to the source code of this file.

Functions

static int64_t getWinAllocaAmount (MachineInstr *MI, MachineRegisterInfo *MRI)
 Return the allocation amount for a WinAlloca instruction, or -1 if unknown. More...
 
static bool isPushPop (const MachineInstr &MI)
 
static unsigned getSubOpcode (bool Is64Bit, int64_t Amount)
 

Function Documentation

◆ getSubOpcode()

static unsigned getSubOpcode ( bool  Is64Bit,
int64_t  Amount 
)
static

Definition at line 192 of file X86WinAllocaExpander.cpp.

References llvm::isInt< 8 >().

◆ getWinAllocaAmount()

static int64_t getWinAllocaAmount ( MachineInstr MI,
MachineRegisterInfo MRI 
)
static

Return the allocation amount for a WinAlloca instruction, or -1 if unknown.

Definition at line 80 of file X86WinAllocaExpander.cpp.

References assert(), llvm::tgtok::Def, llvm::MachineRegisterInfo::getUniqueVRegDef(), MI, and MRI.

◆ isPushPop()

static bool isPushPop ( const MachineInstr MI)
static

Definition at line 111 of file X86WinAllocaExpander.cpp.

References MI.