LLVM 20.0.0git
Functions
X86DynAllocaExpander.cpp File Reference
#include "X86.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"

Go to the source code of this file.

Functions

 INITIALIZE_PASS (X86DynAllocaExpander, "x86-dyn-alloca-expander", "X86 DynAlloca Expander", false, false) FunctionPass *llvm
 
static int64_t getDynAllocaAmount (MachineInstr *MI, MachineRegisterInfo *MRI)
 Return the allocation amount for a DynAlloca instruction, or -1 if unknown.
 
static bool isPushPop (const MachineInstr &MI)
 
static unsigned getSubOpcode (bool Is64Bit)
 

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 83 of file X86DynAllocaExpander.cpp.

References assert(), MI, and MRI.

◆ getSubOpcode()

static unsigned getSubOpcode ( bool  Is64Bit)
static

Definition at line 193 of file X86DynAllocaExpander.cpp.

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( X86DynAllocaExpander  ,
"x86-dyn-alloca-expander"  ,
"X86 DynAlloca Expander"  ,
false  ,
false   
)

Definition at line 75 of file X86DynAllocaExpander.cpp.

◆ isPushPop()

static bool isPushPop ( const MachineInstr MI)
static

Definition at line 114 of file X86DynAllocaExpander.cpp.

References MI.