LLVM 20.0.0git
Macros | Functions
SparcAsmPrinter.cpp File Reference
#include "MCTargetDesc/SparcInstPrinter.h"
#include "MCTargetDesc/SparcMCExpr.h"
#include "MCTargetDesc/SparcMCTargetDesc.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/MC/TargetRegistry.h"
#include "llvm/Support/raw_ostream.h"

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 EmitRDPC (MCStreamer &OutStreamer, MCOperand &RD, 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 37 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

◆ 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 153 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

Definition at line 105 of file SparcAsmPrinter.cpp.

References llvm::MCStreamer::emitInstruction().

◆ 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 166 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 147 of file SparcAsmPrinter.cpp.

References EmitBinary().

Referenced by EmitHiLo().

◆ EmitRDPC()

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

◆ 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 159 of file SparcAsmPrinter.cpp.

References EmitBinary().

◆ LLVMInitializeSparcAsmPrinter()

LLVM_EXTERNAL_VISIBILITY void LLVMInitializeSparcAsmPrinter ( )