|
LLVM 22.0.0git
|
#include "X86.h"#include "X86InstrInfo.h"#include "X86Subtarget.h"#include "llvm/CodeGen/MachineFunctionPass.h"#include "llvm/CodeGen/MachineInstrBuilder.h"#include "llvm/IR/Analysis.h"#include "llvm/IR/PassManager.h"Go to the source code of this file.
Macros | |
| #define | AVOIDCALL_DESC "X86 avoid trailing call pass" |
| #define | AVOIDCALL_NAME "x86-avoid-trailing-call" |
| #define | DEBUG_TYPE AVOIDCALL_NAME |
Functions | |
| INITIALIZE_PASS (X86AvoidTrailingCallLegacyPass, AVOIDCALL_NAME, AVOIDCALL_DESC, false, false) static bool isCallOrRealInstruction(MachineInstr &MI) | |
| static bool | isCallInstruction (const MachineInstr &MI) |
| bool | UpdatedOnX86AvoidTrailingCallPass (MachineFunction &MF) |
| #define AVOIDCALL_DESC "X86 avoid trailing call pass" |
Definition at line 43 of file X86AvoidTrailingCall.cpp.
Referenced by INITIALIZE_PASS().
| #define AVOIDCALL_NAME "x86-avoid-trailing-call" |
Definition at line 44 of file X86AvoidTrailingCall.cpp.
Referenced by INITIALIZE_PASS().
| #define DEBUG_TYPE AVOIDCALL_NAME |
Definition at line 46 of file X86AvoidTrailingCall.cpp.
| INITIALIZE_PASS | ( | X86AvoidTrailingCallLegacyPass | , |
| AVOIDCALL_NAME | , | ||
| AVOIDCALL_DESC | , | ||
| false | , | ||
| false | ) & |
Definition at line 70 of file X86AvoidTrailingCall.cpp.
References AVOIDCALL_DESC, AVOIDCALL_NAME, and MI.
|
static |
Definition at line 81 of file X86AvoidTrailingCall.cpp.
References MI.
Referenced by UpdatedOnX86AvoidTrailingCallPass().
| bool UpdatedOnX86AvoidTrailingCallPass | ( | MachineFunction & | MF | ) |
Definition at line 85 of file X86AvoidTrailingCall.cpp.
References assert(), llvm::BuildMI(), Changed, llvm::dbgs(), DL, llvm::find_if(), llvm::X86Subtarget::getInstrInfo(), llvm::MachineFunction::getSubtarget(), llvm::MachineFunction::hasWinCFI(), isCallInstruction(), llvm::MachineBasicBlock::isEHFuncletEntry(), llvm::X86Subtarget::isTargetWin64(), LLVM_DEBUG, MBB, MBBI, llvm::reverse(), and TII.
Referenced by llvm::X86AvoidTrailingCallPass::run().