|
LLVM 24.0.0git
|
#include "llvm/CodeGen/CodeGenCommonISel.h"#include "llvm/ADT/SmallPtrSet.h"#include "llvm/Analysis/BranchProbabilityInfo.h"#include "llvm/CodeGen/MachineBasicBlock.h"#include "llvm/CodeGen/MachineFunction.h"#include "llvm/CodeGen/TargetInstrInfo.h"#include "llvm/CodeGen/TargetOpcodes.h"#include "llvm/IR/DebugInfoMetadata.h"#include "llvm/IR/Instruction.h"#include "llvm/Support/Casting.h"Go to the source code of this file.
Macros | |
| #define | DEBUG_TYPE "codegen-common" |
Functions | |
| static bool | MIIsInTerminatorSequence (const MachineInstr &MI) |
| Given that the input MI is before a partial terminator sequence TSeq, return true if M + TSeq also a partial terminator sequence. | |
| static MachineOperand * | getSalvageOpsForCopy (const MachineRegisterInfo &MRI, MachineInstr &Copy) |
| static MachineOperand * | getSalvageOpsForTrunc (const MachineRegisterInfo &MRI, MachineInstr &Trunc, SmallVectorImpl< uint64_t > &Ops) |
| static MachineOperand * | salvageDebugInfoImpl (const MachineRegisterInfo &MRI, MachineInstr &MI, SmallVectorImpl< uint64_t > &Ops) |
| static void | salvageBuildVector (const MachineRegisterInfo &MRI, MachineInstr &BuildVector, MachineInstr &DbgMI) |
Replace DbgMI, which describes the result of BuildVector, with one fragment debug value per vector element. | |
| #define DEBUG_TYPE "codegen-common" |
Definition at line 25 of file CodeGenCommonISel.cpp.
|
static |
Definition at line 221 of file CodeGenCommonISel.cpp.
Referenced by salvageDebugInfoImpl().
|
static |
Definition at line 230 of file CodeGenCommonISel.cpp.
References AbstractManglingParser< Derived, Alloc >::Ops, assert(), llvm::DIExpression::getExtOps(), MRI, and llvm::Trunc.
Referenced by salvageDebugInfoImpl().
|
static |
Given that the input MI is before a partial terminator sequence TSeq, return true if M + TSeq also a partial terminator sequence.
A Terminator sequence is a sequence of MachineInstrs which at this point in lowering copy vregs into physical registers, which are then passed into terminator instructors so we can satisfy ABI constraints. A partial terminator sequence is an improper subset of a terminator sequence (i.e. it may be the whole terminator sequence).
Definition at line 56 of file CodeGenCommonISel.cpp.
References assert(), llvm::MachineOperand::getReg(), llvm::MachineOperand::isDef(), llvm::Register::isPhysical(), llvm::MachineOperand::isReg(), and MI.
Referenced by llvm::findSplitPointForStackProtector().
|
static |
Replace DbgMI, which describes the result of BuildVector, with one fragment debug value per vector element.
Definition at line 265 of file CodeGenCommonISel.cpp.
References llvm::DIExpression::createFragmentExpression(), llvm::dbgs(), Fragment, llvm::MachineInstr::getDebugExpression(), llvm::MachineInstr::getDebugExpressionOp(), llvm::MachineInstr::getDebugOperand(), llvm::MachineInstr::getDebugVariable(), llvm::DIExpression::getFragmentInfo(), llvm::ilist_node_impl< OptionsT >::getIterator(), llvm::MachineInstr::getNumDebugOperands(), llvm::MachineInstr::getNumOperands(), llvm::MachineInstr::getOperand(), llvm::MachineInstr::getParent(), llvm::MachineOperand::getReg(), llvm::DIVariable::getSizeInBits(), I, llvm::DIExpression::isComplex(), llvm::DIExpression::isSingleLocationExpression(), LLVM_DEBUG, MBB, MRI, llvm::SmallVectorTemplateBase< T, bool >::push_back(), llvm::MachineOperand::setMetadata(), and llvm::MachineOperand::setReg().
Referenced by llvm::salvageDebugInfoForDbgValue().
|
static |
Definition at line 249 of file CodeGenCommonISel.cpp.
References AbstractManglingParser< Derived, Alloc >::Ops, getSalvageOpsForCopy(), getSalvageOpsForTrunc(), MI, and MRI.