Go to the documentation of this file.
27 for (
unsigned i = 0,
e =
MI->getNumOperands();
i !=
e; ++
i) {
48 if (
MI->getOpcode() == SPIRV::OpExtInst &&
i == 2) {
float convertToFloat() const
Converts this APFloat to host float value.
@ MO_Immediate
Immediate operand.
This is an optimization pass for GlobalISel generic memory operations.
const GlobalValue * getGlobal() const
static MCOperand createImm(int64_t Val)
Reg
All possible values of the reg field in the ModR/M byte.
Register getFuncReg(const Function *F)
const APFloat & getValueAPF() const
Instances of this class represent a single low-level machine instruction.
void lower(const MachineInstr *MI, MCInst &OutMI, SPIRV::ModuleAnalysisInfo *MAI) const
@ MO_Register
Register operand.
void setOpcode(unsigned Op)
@ MO_GlobalAddress
Address of a global value.
MachineOperand class - Representation of each machine instruction operand.
void addOperand(const MCOperand Op)
Representation of each machine instruction.
MachineOperandType getType() const
getType - Returns the MachineOperandType for this operand.
const ConstantFP * getFPImm() const
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
@ MO_FPImmediate
Floating-point immediate operand.
Register getReg() const
getReg - Returns the register number.
MachineBasicBlock * getMBB() const
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
static MCOperand createReg(unsigned Reg)
@ MO_MachineBasicBlock
MachineBasicBlock reference.
Register getRegisterAlias(const MachineFunction *MF, Register Reg)
Register getExtInstSetReg(unsigned SetNum)
static MCOperand createDFPImm(uint64_t Val)
Wrapper class representing virtual and physical registers.
Instances of this class represent operands of the MCInst class.
Register getOrCreateMBBRegister(const MachineBasicBlock &MBB)