LLVM  3.7.0
Macros | Functions | Variables
AMDGPUAsmParser.cpp File Reference
#include "MCTargetDesc/AMDGPUMCTargetDesc.h"
#include "MCTargetDesc/AMDGPUTargetStreamer.h"
#include "Utils/AMDGPUBaseInfo.h"
#include "AMDKernelCodeT.h"
#include "SIDefines.h"
#include "llvm/ADT/APFloat.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/ADT/Twine.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCExpr.h"
#include "llvm/MC/MCInst.h"
#include "llvm/MC/MCInstrInfo.h"
#include "llvm/MC/MCParser/MCAsmLexer.h"
#include "llvm/MC/MCParser/MCAsmParser.h"
#include "llvm/MC/MCParser/MCParsedAsmOperand.h"
#include "llvm/MC/MCRegisterInfo.h"
#include "llvm/MC/MCStreamer.h"
#include "llvm/MC/MCSubtargetInfo.h"
#include "llvm/MC/MCTargetAsmParser.h"
#include "llvm/Support/SourceMgr.h"
#include "llvm/Support/TargetRegistry.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Support/Debug.h"
#include "AMDGPUGenAsmMatcher.inc"
Include dependency graph for AMDGPUAsmParser.cpp:

Go to the source code of this file.

Macros

#define GET_REGISTER_MATCHER
 
#define GET_MATCHER_IMPLEMENTATION
 
Auto-generated Match Functions

{

#define GET_ASSEMBLER_HEADER
 

Functions

static unsigned getRegClass (bool IsVgpr, unsigned RegWidth)
 
static unsigned getRegForName (const StringRef &RegName)
 
static bool operandsHaveModifiers (const OperandVector &Operands)
 
static bool operandsHasOptionalOp (const OperandVector &Operands, const OptionalOperand &OOp)
 
static bool ConvertOmodMul (int64_t &Mul)
 
static bool ConvertOmodDiv (int64_t &Div)
 
static bool isVOP3 (OperandVector &Operands)
 
void LLVMInitializeAMDGPUAsmParser ()
 Force static initialization. More...
 

Variables

static const OptionalOperand DSOptionalOps []
 
static const OptionalOperand DSOptionalOpsOff01 []
 
static const OptionalOperand FlatOptionalOps []
 
static const OptionalOperand FlatAtomicOptionalOps []
 
static const OptionalOperand MubufOptionalOps []
 
static const OptionalOperand VOP3OptionalOps []
 

Macro Definition Documentation

#define GET_ASSEMBLER_HEADER

Definition at line 315 of file AMDGPUAsmParser.cpp.

#define GET_MATCHER_IMPLEMENTATION

Definition at line 1690 of file AMDGPUAsmParser.cpp.

#define GET_REGISTER_MATCHER

Definition at line 1689 of file AMDGPUAsmParser.cpp.

Function Documentation

static bool ConvertOmodDiv ( int64_t &  Div)
static

Definition at line 1585 of file AMDGPUAsmParser.cpp.

static bool ConvertOmodMul ( int64_t &  Mul)
static

Definition at line 1577 of file AMDGPUAsmParser.cpp.

static unsigned getRegClass ( bool  IsVgpr,
unsigned  RegWidth 
)
static
static unsigned getRegForName ( const StringRef RegName)
static
static bool isVOP3 ( OperandVector Operands)
static
void LLVMInitializeAMDGPUAsmParser ( )

Force static initialization.

Definition at line 1684 of file AMDGPUAsmParser.cpp.

References llvm::ARM_PROC::A, llvm::TheAMDGPUTarget, and llvm::TheGCNTarget.

static bool operandsHasOptionalOp ( const OperandVector Operands,
const OptionalOperand &  OOp 
)
static
static bool operandsHaveModifiers ( const OperandVector Operands)
static

Definition at line 900 of file AMDGPUAsmParser.cpp.

References llvm::SmallVectorTemplateCommon< T, typename >::size().

Referenced by isVOP3().

Variable Documentation

const OptionalOperand DSOptionalOps[]
static
Initial value:
= {
{"offset", AMDGPUOperand::ImmTyOffset, false, 0, nullptr},
{"gds", AMDGPUOperand::ImmTyGDS, true, 0, nullptr}
}

Definition at line 1201 of file AMDGPUAsmParser.cpp.

const OptionalOperand DSOptionalOpsOff01[]
static
Initial value:
= {
{"offset0", AMDGPUOperand::ImmTyDSOffset0, false, 0, nullptr},
{"offset1", AMDGPUOperand::ImmTyDSOffset1, false, 0, nullptr},
{"gds", AMDGPUOperand::ImmTyGDS, true, 0, nullptr}
}

Definition at line 1206 of file AMDGPUAsmParser.cpp.

const OptionalOperand FlatAtomicOptionalOps[]
static
Initial value:
= {
{"slc", AMDGPUOperand::ImmTySLC, true, 0, nullptr},
{"tfe", AMDGPUOperand::ImmTyTFE, true, 0, nullptr}
}

Definition at line 1420 of file AMDGPUAsmParser.cpp.

const OptionalOperand FlatOptionalOps[]
static
Initial value:
= {
{"glc", AMDGPUOperand::ImmTyGLC, true, 0, nullptr},
{"slc", AMDGPUOperand::ImmTySLC, true, 0, nullptr},
{"tfe", AMDGPUOperand::ImmTyTFE, true, 0, nullptr}
}

Definition at line 1414 of file AMDGPUAsmParser.cpp.

const OptionalOperand MubufOptionalOps[]
static
Initial value:
= {
{"offset", AMDGPUOperand::ImmTyOffset, false, 0, nullptr},
{"glc", AMDGPUOperand::ImmTyGLC, true, 0, nullptr},
{"slc", AMDGPUOperand::ImmTySLC, true, 0, nullptr},
{"tfe", AMDGPUOperand::ImmTyTFE, true, 0, nullptr}
}

Definition at line 1475 of file AMDGPUAsmParser.cpp.

const OptionalOperand VOP3OptionalOps[]
static
Initial value:
= {
{"clamp", AMDGPUOperand::ImmTyClamp, true, 0, nullptr},
{"mul", AMDGPUOperand::ImmTyOMod, false, 1, ConvertOmodMul},
{"div", AMDGPUOperand::ImmTyOMod, false, 1, ConvertOmodDiv},
}
static bool ConvertOmodDiv(int64_t &Div)
static bool ConvertOmodMul(int64_t &Mul)

Definition at line 1599 of file AMDGPUAsmParser.cpp.