|
LLVM
4.0.0
|
#include "AMDKernelCodeT.h"#include "MCTargetDesc/AMDGPUMCTargetDesc.h"#include "MCTargetDesc/AMDGPUTargetStreamer.h"#include "SIDefines.h"#include "Utils/AMDGPUBaseInfo.h"#include "Utils/AMDKernelCodeTUtils.h"#include "Utils/AMDGPUAsmUtils.h"#include "llvm/ADT/APFloat.h"#include "llvm/ADT/APInt.h"#include "llvm/ADT/SmallBitVector.h"#include "llvm/ADT/SmallString.h"#include "llvm/ADT/STLExtras.h"#include "llvm/ADT/StringRef.h"#include "llvm/ADT/StringSwitch.h"#include "llvm/ADT/Twine.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/Debug.h"#include "llvm/Support/ELF.h"#include "llvm/Support/ErrorHandling.h"#include "llvm/Support/MathExtras.h"#include "llvm/Support/raw_ostream.h"#include "llvm/Support/SMLoc.h"#include "llvm/Support/TargetRegistry.h"#include <algorithm>#include <cassert>#include <cstdint>#include <cstring>#include <iterator>#include <map>#include <memory>#include <string>#include <vector>#include "AMDGPUGenAsmMatcher.inc"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 |
Typedefs | |
| typedef std::map< enum AMDGPUOperand::ImmTy, unsigned > | OptionalImmIndexMap |
Enumerations | |
| enum | RegisterKind |
Functions | |
| static const fltSemantics * | getFltSemantics (unsigned Size) |
| static const fltSemantics * | getFltSemantics (MVT VT) |
| static bool | canLosslesslyConvertToFPType (APFloat &FPLiteral, MVT VT) |
| static int | getRegClass (RegisterKind Is, unsigned RegWidth) |
| static unsigned | getSpecialRegForName (StringRef RegName) |
| void | addOptionalImmOperand (MCInst &Inst, const OperandVector &Operands, OptionalImmIndexMap &OptionalIdx, enum AMDGPUOperand::ImmTy ImmT, int64_t Default=0) |
| 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 [] |
| #define GET_ASSEMBLER_HEADER |
Definition at line 749 of file AMDGPUAsmParser.cpp.
| #define GET_MATCHER_IMPLEMENTATION |
Definition at line 3625 of file AMDGPUAsmParser.cpp.
| #define GET_REGISTER_MATCHER |
Definition at line 3624 of file AMDGPUAsmParser.cpp.
| typedef std::map<enum AMDGPUOperand::ImmTy, unsigned> OptionalImmIndexMap |
Definition at line 2260 of file AMDGPUAsmParser.cpp.
| enum RegisterKind |
Definition at line 68 of file AMDGPUAsmParser.cpp.
| void addOptionalImmOperand | ( | MCInst & | Inst, |
| const OperandVector & | Operands, | ||
| OptionalImmIndexMap & | OptionalIdx, | ||
| enum AMDGPUOperand::ImmTy | ImmT, | ||
| int64_t | Default = 0 |
||
| ) |
Definition at line 2262 of file AMDGPUAsmParser.cpp.
References llvm::MCInst::addOperand(), llvm::MCOperand::createImm(), and i.
Definition at line 995 of file AMDGPUAsmParser.cpp.
References llvm::Literal.
|
static |
Definition at line 3132 of file AMDGPUAsmParser.cpp.
|
static |
Definition at line 3118 of file AMDGPUAsmParser.cpp.
|
static |
Definition at line 3110 of file AMDGPUAsmParser.cpp.
|
static |
Definition at line 974 of file AMDGPUAsmParser.cpp.
|
static |
Definition at line 987 of file AMDGPUAsmParser.cpp.
|
static |
Definition at line 1239 of file AMDGPUAsmParser.cpp.
Referenced by llvm::AArch64InstrInfo::foldMemoryOperandImpl(), llvm::X86InstrInfo::foldMemoryOperandImpl(), llvm::SIRegisterInfo::isSGPRClassID(), and llvm::X86InstrInfo::unfoldMemoryOperand().
Definition at line 1270 of file AMDGPUAsmParser.cpp.
References llvm::StringSwitch< T, R >::Case(), and llvm::StringSwitch< T, R >::Default().
|
static |
Definition at line 3233 of file AMDGPUAsmParser.cpp.
References llvm::MCInstrDesc::getOperandConstraint(), llvm::MCInstrDesc::NumOperands, llvm::AMDGPU::OPERAND_INPUT_MODS, llvm::MCOperandInfo::OperandType, llvm::MCInstrDesc::OpInfo, llvm::MCOperandInfo::RegClass, and llvm::MCOI::TIED_TO.
| void LLVMInitializeAMDGPUAsmParser | ( | ) |
Force static initialization.
Definition at line 3619 of file AMDGPUAsmParser.cpp.
References A, B, llvm::getTheAMDGPUTarget(), and llvm::getTheGCNTarget().
|
static |
Definition at line 3147 of file AMDGPUAsmParser.cpp.
1.8.6