LLVM  8.0.1
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 }
 

Public Member Functions

 SrcOp (unsigned R)
 
 SrcOp (const MachineInstrBuilder &MIB)
 
 SrcOp (const CmpInst::Predicate P)
 
void addSrcToMIB (MachineInstrBuilder &MIB) const
 
LLT getLLTTy (const MachineRegisterInfo &MRI) const
 
unsigned getReg () const
 
CmpInst::Predicate getPredicate () const
 
SrcType getSrcOpKind () const
 

Detailed Description

Definition at line 119 of file MachineIRBuilder.h.

Member Enumeration Documentation

◆ SrcType

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

Definition at line 127 of file MachineIRBuilder.h.

Constructor & Destructor Documentation

◆ SrcOp() [1/3]

llvm::SrcOp::SrcOp ( unsigned  R)
inline

Definition at line 128 of file MachineIRBuilder.h.

◆ SrcOp() [2/3]

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

Definition at line 129 of file MachineIRBuilder.h.

◆ SrcOp() [3/3]

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

Definition at line 130 of file MachineIRBuilder.h.

Member Function Documentation

◆ addSrcToMIB()

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

◆ getLLTTy()

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

◆ getPredicate()

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

Definition at line 170 of file MachineIRBuilder.h.

References llvm_unreachable.

◆ getReg()

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

Definition at line 158 of file MachineIRBuilder.h.

References llvm_unreachable, and Reg.

Referenced by llvm::ConstantFoldingMIRBuilder::buildInstr().

◆ getSrcOpKind()

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

Definition at line 179 of file MachineIRBuilder.h.

Member Data Documentation

◆ Pred

CmpInst::Predicate llvm::SrcOp::Pred

Definition at line 123 of file MachineIRBuilder.h.

◆ Reg

unsigned llvm::SrcOp::Reg

Definition at line 122 of file MachineIRBuilder.h.

◆ SrcMIB

MachineInstrBuilder llvm::SrcOp::SrcMIB

Definition at line 121 of file MachineIRBuilder.h.


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