LLVM  5.0.0
Macros | Enumerations | Functions | Variables
AMDGPUAsmParser.cpp File Reference
#include "AMDKernelCodeT.h"
#include "MCTargetDesc/AMDGPUMCTargetDesc.h"
#include "MCTargetDesc/AMDGPUTargetStreamer.h"
#include "SIDefines.h"
#include "Utils/AMDGPUAsmUtils.h"
#include "Utils/AMDGPUBaseInfo.h"
#include "Utils/AMDKernelCodeTUtils.h"
#include "llvm/ADT/APFloat.h"
#include "llvm/ADT/APInt.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallBitVector.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/ADT/Twine.h"
#include "llvm/BinaryFormat/ELF.h"
#include "llvm/CodeGen/MachineValueType.h"
#include "llvm/MC/MCAsmInfo.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCExpr.h"
#include "llvm/MC/MCInst.h"
#include "llvm/MC/MCInstrDesc.h"
#include "llvm/MC/MCInstrInfo.h"
#include "llvm/MC/MCParser/MCAsmLexer.h"
#include "llvm/MC/MCParser/MCAsmParser.h"
#include "llvm/MC/MCParser/MCAsmParserExtension.h"
#include "llvm/MC/MCParser/MCParsedAsmOperand.h"
#include "llvm/MC/MCParser/MCTargetAsmParser.h"
#include "llvm/MC/MCRegisterInfo.h"
#include "llvm/MC/MCStreamer.h"
#include "llvm/MC/MCSubtargetInfo.h"
#include "llvm/MC/MCSymbol.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/SMLoc.h"
#include "llvm/Support/TargetRegistry.h"
#include "llvm/Support/raw_ostream.h"
#include <algorithm>
#include <cassert>
#include <cstdint>
#include <cstring>
#include <iterator>
#include <map>
#include <memory>
#include <string>
#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
 

Enumerations

enum  RegisterKind
 

Functions

static const fltSemantics * getFltSemantics (unsigned Size)
 
static const fltSemantics * getFltSemantics (MVT VT)
 
static const fltSemantics * getOpFltSemantics (uint8_t OperandType)
 
static bool canLosslesslyConvertToFPType (APFloat &FPLiteral, MVT VT)
 
static int getRegClass (RegisterKind Is, unsigned RegWidth)
 
static unsigned getSpecialRegForName (StringRef RegName)
 
static void addOptionalImmOperand (MCInst &Inst, const OperandVector &Operands, AMDGPUAsmParser::OptionalImmIndexMap &OptionalIdx, AMDGPUOperand::ImmTy ImmT, int64_t Default=0)
 
static bool encodeCnt (const AMDGPU::IsaInfo::IsaVersion ISA, int64_t &IntVal, int64_t CntVal, bool Saturate, unsigned(*encode)(const IsaInfo::IsaVersion &Version, unsigned, unsigned), unsigned(*decode)(const IsaInfo::IsaVersion &Version, unsigned))
 
static LLVM_READNONE unsigned encodeBitmaskPerm (const unsigned AndMask, const unsigned OrMask, const unsigned XorMask)
 
static bool ConvertOmodMul (int64_t &Mul)
 
static bool ConvertOmodDiv (int64_t &Div)
 
static bool ConvertBoundCtrl (int64_t &BoundCtrl)
 
static bool isRegOrImmWithInputMods (const MCInstrDesc &Desc, unsigned OpNum)
 
void LLVMInitializeAMDGPUAsmParser ()
 Force static initialization. More...
 

Variables

static const OptionalOperand AMDGPUOptionalOperandTable []
 

Macro Definition Documentation

#define GET_ASSEMBLER_HEADER

Definition at line 815 of file AMDGPUAsmParser.cpp.

#define GET_MATCHER_IMPLEMENTATION

Definition at line 4597 of file AMDGPUAsmParser.cpp.

#define GET_REGISTER_MATCHER

Definition at line 4596 of file AMDGPUAsmParser.cpp.

Enumeration Type Documentation

Definition at line 65 of file AMDGPUAsmParser.cpp.

Function Documentation

static void addOptionalImmOperand ( MCInst &  Inst,
const OperandVector &  Operands,
AMDGPUAsmParser::OptionalImmIndexMap &  OptionalIdx,
AMDGPUOperand::ImmTy  ImmT,
int64_t  Default = 0 
)
static
static bool canLosslesslyConvertToFPType ( APFloat &  FPLiteral,
MVT  VT 
)
static

Definition at line 1142 of file AMDGPUAsmParser.cpp.

References llvm::Literal.

static bool ConvertBoundCtrl ( int64_t &  BoundCtrl)
static

Definition at line 3996 of file AMDGPUAsmParser.cpp.

static bool ConvertOmodDiv ( int64_t &  Div)
static

Definition at line 3982 of file AMDGPUAsmParser.cpp.

static bool ConvertOmodMul ( int64_t &  Mul)
static

Definition at line 3974 of file AMDGPUAsmParser.cpp.

static LLVM_READNONE unsigned encodeBitmaskPerm ( const unsigned  AndMask,
const unsigned  OrMask,
const unsigned  XorMask 
)
static
static bool encodeCnt ( const AMDGPU::IsaInfo::IsaVersion  ISA,
int64_t &  IntVal,
int64_t  CntVal,
bool  Saturate,
unsigned(*)(const IsaInfo::IsaVersion &Version, unsigned, unsigned)  encode,
unsigned(*)(const IsaInfo::IsaVersion &Version, unsigned)  decode 
)
static

Definition at line 2917 of file AMDGPUAsmParser.cpp.

References decode().

static const fltSemantics* getFltSemantics ( unsigned  Size)
static

Definition at line 1097 of file AMDGPUAsmParser.cpp.

static const fltSemantics* getFltSemantics ( MVT  VT)
static

Definition at line 1110 of file AMDGPUAsmParser.cpp.

static const fltSemantics* getOpFltSemantics ( uint8_t  OperandType)
static

Definition at line 1114 of file AMDGPUAsmParser.cpp.

static int getRegClass ( RegisterKind  Is,
unsigned  RegWidth 
)
static
static unsigned getSpecialRegForName ( StringRef  RegName)
static
static bool isRegOrImmWithInputMods ( const MCInstrDesc &  Desc,
unsigned  OpNum 
)
static
void LLVMInitializeAMDGPUAsmParser ( )

Force static initialization.

Definition at line 4591 of file AMDGPUAsmParser.cpp.

References A, B, llvm::getTheAMDGPUTarget(), and llvm::getTheGCNTarget().

Variable Documentation

const OptionalOperand AMDGPUOptionalOperandTable[]
static

Definition at line 4011 of file AMDGPUAsmParser.cpp.