LLVM API Documentation

Public Types | Public Member Functions | Static Public Member Functions
llvm::NVPTXFloatMCExpr Class Reference

#include <NVPTXMCExpr.h>

Inheritance diagram for llvm::NVPTXFloatMCExpr:
Inheritance graph
[legend]
Collaboration diagram for llvm::NVPTXFloatMCExpr:
Collaboration graph
[legend]

List of all members.

Public Types

enum  VariantKind { VK_NVPTX_None, VK_NVPTX_SINGLE_PREC_FLOAT, VK_NVPTX_DOUBLE_PREC_FLOAT }

Public Member Functions

VariantKind getKind () const
 getOpcode - Get the kind of this expression.
APFloat getAPFloat () const
 getSubExpr - Get the child of this expression.
void PrintImpl (raw_ostream &OS) const override
bool EvaluateAsRelocatableImpl (MCValue &Res, const MCAsmLayout *Layout, const MCFixup *Fixup) const override
void visitUsedExpr (MCStreamer &Streamer) const override
const MCSectionFindAssociatedSection () const override
void fixELFSymbolsInTLSFixups (MCAssembler &Asm) const override

Static Public Member Functions

static bool classof (const MCExpr *E)
Construction
static const NVPTXFloatMCExprCreate (VariantKind Kind, APFloat Flt, MCContext &Ctx)
static const NVPTXFloatMCExprCreateConstantFPSingle (APFloat Flt, MCContext &Ctx)
static const NVPTXFloatMCExprCreateConstantFPDouble (APFloat Flt, MCContext &Ctx)

Detailed Description

Definition at line 20 of file NVPTXMCExpr.h.


Member Enumeration Documentation

Enumerator:
VK_NVPTX_None 
VK_NVPTX_SINGLE_PREC_FLOAT 
VK_NVPTX_DOUBLE_PREC_FLOAT 

Definition at line 22 of file NVPTXMCExpr.h.


Member Function Documentation

static bool llvm::NVPTXFloatMCExpr::classof ( const MCExpr E) [inline, static]

Reimplemented from llvm::MCTargetExpr.

Definition at line 76 of file NVPTXMCExpr.h.

Definition at line 19 of file NVPTXMCExpr.cpp.

Referenced by CreateConstantFPDouble(), and CreateConstantFPSingle().

Definition at line 47 of file NVPTXMCExpr.h.

References Create(), and VK_NVPTX_DOUBLE_PREC_FLOAT.

Definition at line 42 of file NVPTXMCExpr.h.

References Create(), and VK_NVPTX_SINGLE_PREC_FLOAT.

bool llvm::NVPTXFloatMCExpr::EvaluateAsRelocatableImpl ( MCValue Res,
const MCAsmLayout Layout,
const MCFixup Fixup 
) const [inline, override, virtual]

Implements llvm::MCTargetExpr.

Definition at line 63 of file NVPTXMCExpr.h.

const MCSection* llvm::NVPTXFloatMCExpr::FindAssociatedSection ( ) const [inline, override, virtual]

FindAssociatedSection - Find the "associated section" for this expression, which is currently defined as the absolute section for constants, or otherwise the section associated with the first defined symbol in the expression.

Implements llvm::MCTargetExpr.

Definition at line 69 of file NVPTXMCExpr.h.

void llvm::NVPTXFloatMCExpr::fixELFSymbolsInTLSFixups ( MCAssembler Asm) const [inline, override, virtual]

Implements llvm::MCTargetExpr.

Definition at line 74 of file NVPTXMCExpr.h.

getSubExpr - Get the child of this expression.

Definition at line 58 of file NVPTXMCExpr.h.

Referenced by PrintImpl().

getOpcode - Get the kind of this expression.

Reimplemented from llvm::MCExpr.

Definition at line 55 of file NVPTXMCExpr.h.

void NVPTXFloatMCExpr::PrintImpl ( raw_ostream OS) const [override, virtual]
void llvm::NVPTXFloatMCExpr::visitUsedExpr ( MCStreamer Streamer) const [inline, override, virtual]

Implements llvm::MCTargetExpr.

Definition at line 68 of file NVPTXMCExpr.h.


The documentation for this class was generated from the following files: