LLVM  14.0.0git
Macros | Functions
SparcAsmPrinter.cpp File Reference
#include "MCTargetDesc/SparcInstPrinter.h"
#include "MCTargetDesc/SparcMCExpr.h"
#include "MCTargetDesc/SparcTargetStreamer.h"
#include "Sparc.h"
#include "SparcInstrInfo.h"
#include "SparcTargetMachine.h"
#include "TargetInfo/SparcTargetInfo.h"
#include "llvm/CodeGen/AsmPrinter.h"
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/CodeGen/MachineModuleInfoImpls.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
#include "llvm/IR/Mangler.h"
#include "llvm/MC/MCAsmInfo.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCInst.h"
#include "llvm/MC/MCStreamer.h"
#include "llvm/MC/MCSymbol.h"
#include "llvm/Support/TargetRegistry.h"
#include "llvm/Support/raw_ostream.h"
Include dependency graph for SparcAsmPrinter.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "asm-printer"
 

Functions

static MCOperand createSparcMCOperand (SparcMCExpr::VariantKind Kind, MCSymbol *Sym, MCContext &OutContext)
 
static MCOperand createPCXCallOP (MCSymbol *Label, MCContext &OutContext)
 
static MCOperand createPCXRelExprOp (SparcMCExpr::VariantKind Kind, MCSymbol *GOTLabel, MCSymbol *StartLabel, MCSymbol *CurLabel, MCContext &OutContext)
 
static void EmitCall (MCStreamer &OutStreamer, MCOperand &Callee, const MCSubtargetInfo &STI)
 
static void EmitSETHI (MCStreamer &OutStreamer, MCOperand &Imm, MCOperand &RD, const MCSubtargetInfo &STI)
 
static void EmitBinary (MCStreamer &OutStreamer, unsigned Opcode, MCOperand &RS1, MCOperand &Src2, MCOperand &RD, const MCSubtargetInfo &STI)
 
static void EmitOR (MCStreamer &OutStreamer, MCOperand &RS1, MCOperand &Imm, MCOperand &RD, const MCSubtargetInfo &STI)
 
static void EmitADD (MCStreamer &OutStreamer, MCOperand &RS1, MCOperand &RS2, MCOperand &RD, const MCSubtargetInfo &STI)
 
static void EmitSHL (MCStreamer &OutStreamer, MCOperand &RS1, MCOperand &Imm, MCOperand &RD, const MCSubtargetInfo &STI)
 
static void EmitHiLo (MCStreamer &OutStreamer, MCSymbol *GOTSym, SparcMCExpr::VariantKind HiKind, SparcMCExpr::VariantKind LoKind, MCOperand &RD, MCContext &OutContext, const MCSubtargetInfo &STI)
 
LLVM_EXTERNAL_VISIBILITY void LLVMInitializeSparcAsmPrinter ()
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "asm-printer"

Definition at line 36 of file SparcAsmPrinter.cpp.

Function Documentation

◆ createPCXCallOP()

static MCOperand createPCXCallOP ( MCSymbol Label,
MCContext OutContext 
)
static

◆ createPCXRelExprOp()

static MCOperand createPCXRelExprOp ( SparcMCExpr::VariantKind  Kind,
MCSymbol GOTLabel,
MCSymbol StartLabel,
MCSymbol CurLabel,
MCContext OutContext 
)
static

Definition at line 86 of file SparcAsmPrinter.cpp.

References llvm::MCSymbolRefExpr::create().

◆ createSparcMCOperand()

static MCOperand createSparcMCOperand ( SparcMCExpr::VariantKind  Kind,
MCSymbol Sym,
MCContext OutContext 
)
static

◆ EmitADD()

static void EmitADD ( MCStreamer OutStreamer,
MCOperand RS1,
MCOperand RS2,
MCOperand RD,
const MCSubtargetInfo STI 
)
static

Definition at line 143 of file SparcAsmPrinter.cpp.

References EmitBinary().

◆ EmitBinary()

static void EmitBinary ( MCStreamer OutStreamer,
unsigned  Opcode,
MCOperand RS1,
MCOperand Src2,
MCOperand RD,
const MCSubtargetInfo STI 
)
static

◆ EmitCall()

static void EmitCall ( MCStreamer OutStreamer,
MCOperand Callee,
const MCSubtargetInfo STI 
)
static

◆ EmitHiLo()

static void EmitHiLo ( MCStreamer OutStreamer,
MCSymbol GOTSym,
SparcMCExpr::VariantKind  HiKind,
SparcMCExpr::VariantKind  LoKind,
MCOperand RD,
MCContext OutContext,
const MCSubtargetInfo STI 
)
static

Definition at line 156 of file SparcAsmPrinter.cpp.

References createSparcMCOperand(), EmitOR(), and EmitSETHI().

◆ EmitOR()

static void EmitOR ( MCStreamer OutStreamer,
MCOperand RS1,
MCOperand Imm,
MCOperand RD,
const MCSubtargetInfo STI 
)
static

Definition at line 137 of file SparcAsmPrinter.cpp.

References EmitBinary().

Referenced by EmitHiLo().

◆ EmitSETHI()

static void EmitSETHI ( MCStreamer OutStreamer,
MCOperand Imm,
MCOperand RD,
const MCSubtargetInfo STI 
)
static

◆ EmitSHL()

static void EmitSHL ( MCStreamer OutStreamer,
MCOperand RS1,
MCOperand Imm,
MCOperand RD,
const MCSubtargetInfo STI 
)
static

Definition at line 149 of file SparcAsmPrinter.cpp.

References EmitBinary().

◆ LLVMInitializeSparcAsmPrinter()

LLVM_EXTERNAL_VISIBILITY void LLVMInitializeSparcAsmPrinter ( )