LLVM 18.0.0git
|
This file implements the targeting of the RegisterBankInfo class for RISC-V. More...
#include "RISCVRegisterBankInfo.h"
#include "MCTargetDesc/RISCVMCTargetDesc.h"
#include "RISCVSubtarget.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/CodeGen/RegisterBank.h"
#include "llvm/CodeGen/RegisterBankInfo.h"
#include "llvm/CodeGen/TargetRegisterInfo.h"
#include "RISCVGenRegisterBank.inc"
Go to the source code of this file.
Namespaces | |
namespace | llvm |
This is an optimization pass for GlobalISel generic memory operations. | |
namespace | llvm::RISCV |
Macros | |
#define | GET_TARGET_REGBANK_IMPL |
Enumerations | |
enum | llvm::RISCV::PartialMappingIdx { llvm::RISCV::PMI_GPRB32 = 0 , llvm::RISCV::PMI_GPRB64 = 1 , llvm::RISCV::PMI_FPRB32 = 2 , llvm::RISCV::PMI_FPRB64 = 3 } |
enum | llvm::RISCV::ValueMappingIdx { llvm::RISCV::InvalidIdx = 0 , llvm::RISCV::GPRB32Idx = 1 , llvm::RISCV::GPRB64Idx = 4 , llvm::RISCV::FPRB32Idx = 7 , llvm::RISCV::FPRB64Idx = 10 } |
Functions | |
static const RegisterBankInfo::ValueMapping * | getFPValueMapping (unsigned Size) |
static bool | isPreISelGenericFloatingPointOpcode (unsigned Opc) |
Returns whether opcode Opc is a pre-isel generic floating-point opcode, having only floating-point operands. | |
Variables | |
const RegisterBankInfo::PartialMapping | llvm::RISCV::PartMappings [] |
const RegisterBankInfo::ValueMapping | llvm::RISCV::ValueMappings [] |
This file implements the targeting of the RegisterBankInfo class for RISC-V.
Definition in file RISCVRegisterBankInfo.cpp.
#define GET_TARGET_REGBANK_IMPL |
Definition at line 21 of file RISCVRegisterBankInfo.cpp.
|
static |
Definition at line 120 of file RISCVRegisterBankInfo.cpp.
References assert(), llvm::RISCV::FPRB32Idx, llvm::RISCV::FPRB64Idx, Idx, Size, and llvm::RISCV::ValueMappings.
Referenced by llvm::RISCVRegisterBankInfo::getInstrMapping().
Returns whether opcode Opc
is a pre-isel generic floating-point opcode, having only floating-point operands.
FIXME: this is copied from target AArch64. Needs some code refactor here to put this function in GlobalISel/Utils.cpp.
Definition at line 130 of file RISCVRegisterBankInfo.cpp.