LLVM  10.0.0svn
Public Types | Public Member Functions | List of all members
llvm::SrcOp Class Reference

#include "llvm/CodeGen/GlobalISel/MachineIRBuilder.h"

Collaboration diagram for llvm::SrcOp:
Collaboration graph
[legend]

Public Types

enum  SrcType { SrcType::Ty_Reg, SrcType::Ty_MIB, SrcType::Ty_Predicate, SrcType::Ty_Imm }
 

Public Member Functions

 SrcOp (Register R)
 
 SrcOp (const MachineOperand &Op)
 
 SrcOp (const MachineInstrBuilder &MIB)
 
 SrcOp (const CmpInst::Predicate P)
 
 SrcOp (unsigned)=delete
 Use of registers held in unsigned integer variables (or more rarely signed integers) is no longer permitted to avoid ambiguity with upcoming support for immediates. More...
 
 SrcOp (int)=delete
 
 SrcOp (uint64_t V)
 
 SrcOp (int64_t V)
 
void addSrcToMIB (MachineInstrBuilder &MIB) const
 
LLT getLLTTy (const MachineRegisterInfo &MRI) const
 
Register getReg () const
 
CmpInst::Predicate getPredicate () const
 
int64_t getImm () const
 
SrcType getSrcOpKind () const
 

Detailed Description

Definition at line 120 of file MachineIRBuilder.h.

Member Enumeration Documentation

◆ SrcType

enum llvm::SrcOp::SrcType
strong
Enumerator
Ty_Reg 
Ty_MIB 
Ty_Predicate 
Ty_Imm 

Definition at line 129 of file MachineIRBuilder.h.

Constructor & Destructor Documentation

◆ SrcOp() [1/8]

llvm::SrcOp::SrcOp ( Register  R)
inline

Definition at line 130 of file MachineIRBuilder.h.

◆ SrcOp() [2/8]

llvm::SrcOp::SrcOp ( const MachineOperand Op)
inline

Definition at line 131 of file MachineIRBuilder.h.

◆ SrcOp() [3/8]

llvm::SrcOp::SrcOp ( const MachineInstrBuilder MIB)
inline

Definition at line 132 of file MachineIRBuilder.h.

◆ SrcOp() [4/8]

llvm::SrcOp::SrcOp ( const CmpInst::Predicate  P)
inline

Definition at line 133 of file MachineIRBuilder.h.

◆ SrcOp() [5/8]

llvm::SrcOp::SrcOp ( unsigned  )
delete

Use of registers held in unsigned integer variables (or more rarely signed integers) is no longer permitted to avoid ambiguity with upcoming support for immediates.

◆ SrcOp() [6/8]

llvm::SrcOp::SrcOp ( int  )
delete

◆ SrcOp() [7/8]

llvm::SrcOp::SrcOp ( uint64_t  V)
inline

Definition at line 139 of file MachineIRBuilder.h.

◆ SrcOp() [8/8]

llvm::SrcOp::SrcOp ( int64_t  V)
inline

Definition at line 140 of file MachineIRBuilder.h.

Member Function Documentation

◆ addSrcToMIB()

void llvm::SrcOp::addSrcToMIB ( MachineInstrBuilder MIB) const
inline

◆ getImm()

int64_t llvm::SrcOp::getImm ( ) const
inline

◆ getLLTTy()

LLT llvm::SrcOp::getLLTTy ( const MachineRegisterInfo MRI) const
inline

◆ getPredicate()

CmpInst::Predicate llvm::SrcOp::getPredicate ( ) const
inline

Definition at line 185 of file MachineIRBuilder.h.

References llvm_unreachable.

◆ getReg()

Register llvm::SrcOp::getReg ( ) const
inline

◆ getSrcOpKind()

SrcType llvm::SrcOp::getSrcOpKind ( ) const
inline

Definition at line 203 of file MachineIRBuilder.h.

Member Data Documentation

◆ Imm

int64_t llvm::SrcOp::Imm

Definition at line 125 of file MachineIRBuilder.h.

◆ Pred

CmpInst::Predicate llvm::SrcOp::Pred

Definition at line 124 of file MachineIRBuilder.h.

◆ Reg

Register llvm::SrcOp::Reg

Definition at line 123 of file MachineIRBuilder.h.

◆ SrcMIB

MachineInstrBuilder llvm::SrcOp::SrcMIB

Definition at line 122 of file MachineIRBuilder.h.


The documentation for this class was generated from the following file: