original) (raw)
LLVM: lib/Target/PowerPC/MCTargetDesc/PPCMCCodeEmitter.cpp File Reference (#include "[PPCMCCodeEmitter.h](PPCMCCodeEmitter%5F8h%5Fsource.html)"
#include "[MCTargetDesc/PPCFixupKinds.h](PPCFixupKinds%5F8h%5Fsource.html)"
#include "[PPCMCAsmInfo.h](PPCMCAsmInfo%5F8h%5Fsource.html)"
#include "[PPCMCTargetDesc.h](PPCMCTargetDesc%5F8h%5Fsource.html)"
#include "[llvm/ADT/SmallVector.h](SmallVector%5F8h%5Fsource.html)"
#include "[llvm/ADT/Statistic.h](Statistic%5F8h%5Fsource.html)"
#include "[llvm/MC/MCExpr.h](MCExpr%5F8h%5Fsource.html)"
#include "[llvm/MC/MCFixup.h](MCFixup%5F8h%5Fsource.html)"
#include "[llvm/MC/MCInstrDesc.h](MCInstrDesc%5F8h%5Fsource.html)"
#include "[llvm/MC/MCRegisterInfo.h](MCRegisterInfo%5F8h%5Fsource.html)"
#include "[llvm/Support/Casting.h](Casting%5F8h%5Fsource.html)"
#include "[llvm/Support/EndianStream.h](EndianStream%5F8h%5Fsource.html)"
#include "[llvm/Support/ErrorHandling.h](llvm%5F2Support%5F2ErrorHandling%5F8h%5Fsource.html)"
#include "[llvm/Support/MathExtras.h](MathExtras%5F8h%5Fsource.html)"
#include "[llvm/TargetParser/Triple.h](Triple%5F8h%5Fsource.html)"
#include <cassert>
#include <cstdint>
#include "PPCGenMCCodeEmitter.inc"
Go to the source code of this file.
Macros | |
---|---|
#define | DEBUG_TYPE "mccodeemitter" |
Functions | |
---|---|
STATISTIC (MCNumEmitted, "Number of MC instructions emitted") | |
static void | addFixup (SmallVectorImpl< MCFixup > &Fixups, uint32_t Offset, const MCExpr *Value, uint16_t Kind) |
static unsigned | getOpIdxForMO (const MCInst &MI, const MCOperand &MO) |
Macro Definition Documentation
◆ DEBUG_TYPE
#define DEBUG_TYPE "mccodeemitter"
Definition at line 33 of file PPCMCCodeEmitter.cpp.
Function Documentation
◆ addFixup()
void addFixup ( SmallVectorImpl< MCFixup > & Fixups, uint32_t Offset, const MCExpr * Value, uint16_t Kind ) | static |
---|
Definition at line 42 of file PPCMCCodeEmitter.cpp.
References llvm::MCFixup::create(), llvm::PPC::fixup_ppc_br24, llvm::PPC::fixup_ppc_br24_notoc, llvm::PPC::fixup_ppc_brcond14, llvm::PPC::fixup_ppc_pcrel34, and llvm::Offset.
◆ getOpIdxForMO()
unsigned getOpIdxForMO ( const MCInst & MI, const MCOperand & MO ) | static |
---|
Definition at line 467 of file PPCMCCodeEmitter.cpp.
References llvm_unreachable, and MI.
Referenced by llvm::PPCMCCodeEmitter::getMachineOpValue().
◆ STATISTIC()
STATISTIC | ( | MCNumEmitted | , |
---|---|---|---|
"Number of MC instructions emitted" | ) |