LLVM  14.0.0git
Functions
X86DynAllocaExpander.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 X86DynAllocaExpander.cpp:

Go to the source code of this file.

Functions

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

Function Documentation

◆ getDynAllocaAmount()

static int64_t getDynAllocaAmount ( MachineInstr MI,
MachineRegisterInfo MRI 
)
static

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

Definition at line 80 of file X86DynAllocaExpander.cpp.

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

◆ getSubOpcode()

static unsigned getSubOpcode ( bool  Is64Bit,
int64_t  Amount 
)
static

Definition at line 192 of file X86DynAllocaExpander.cpp.

References llvm::isInt< 8 >().

◆ isPushPop()

static bool isPushPop ( const MachineInstr MI)
static

Definition at line 111 of file X86DynAllocaExpander.cpp.

References MI.