LLVM 20.0.0git
Public Member Functions | Public Attributes | List of all members
llvm::IntelExpr Struct Reference

#include "llvm/MC/MCParser/MCTargetAsmParser.h"

Public Member Functions

 IntelExpr ()=default
 
 IntelExpr (StringRef baseReg, StringRef indexReg, unsigned scale, StringRef offsetName, int64_t imm, bool needBracs)
 
bool hasBaseReg () const
 
bool hasIndexReg () const
 
bool hasRegs () const
 
bool hasOffset () const
 
bool emitImm () const
 
bool isValid () const
 

Public Attributes

bool NeedBracs = false
 
int64_t Imm = 0
 
StringRef BaseReg
 
StringRef IndexReg
 
StringRef OffsetName
 
unsigned Scale = 1
 

Detailed Description

Definition at line 65 of file MCTargetAsmParser.h.

Constructor & Destructor Documentation

◆ IntelExpr() [1/2]

llvm::IntelExpr::IntelExpr ( )
default

◆ IntelExpr() [2/2]

llvm::IntelExpr::IntelExpr ( StringRef  baseReg,
StringRef  indexReg,
unsigned  scale,
StringRef  offsetName,
int64_t  imm,
bool  needBracs 
)
inline

Definition at line 75 of file MCTargetAsmParser.h.

References Scale, and scale().

Member Function Documentation

◆ emitImm()

bool llvm::IntelExpr::emitImm ( ) const
inline

Definition at line 88 of file MCTargetAsmParser.h.

References hasOffset(), and hasRegs().

◆ hasBaseReg()

bool llvm::IntelExpr::hasBaseReg ( ) const
inline

Definition at line 82 of file MCTargetAsmParser.h.

References BaseReg, and llvm::StringRef::empty().

Referenced by hasRegs().

◆ hasIndexReg()

bool llvm::IntelExpr::hasIndexReg ( ) const
inline

Definition at line 83 of file MCTargetAsmParser.h.

References llvm::StringRef::empty(), and IndexReg.

Referenced by hasRegs(), and isValid().

◆ hasOffset()

bool llvm::IntelExpr::hasOffset ( ) const
inline

Definition at line 85 of file MCTargetAsmParser.h.

References llvm::StringRef::empty(), and OffsetName.

Referenced by emitImm().

◆ hasRegs()

bool llvm::IntelExpr::hasRegs ( ) const
inline

Definition at line 84 of file MCTargetAsmParser.h.

References hasBaseReg(), and hasIndexReg().

Referenced by emitImm().

◆ isValid()

bool llvm::IntelExpr::isValid ( ) const
inline

Definition at line 89 of file MCTargetAsmParser.h.

References hasIndexReg(), and Scale.

Member Data Documentation

◆ BaseReg

StringRef llvm::IntelExpr::BaseReg

Definition at line 68 of file MCTargetAsmParser.h.

Referenced by hasBaseReg().

◆ Imm

int64_t llvm::IntelExpr::Imm = 0

Definition at line 67 of file MCTargetAsmParser.h.

◆ IndexReg

StringRef llvm::IntelExpr::IndexReg

Definition at line 69 of file MCTargetAsmParser.h.

Referenced by hasIndexReg().

◆ NeedBracs

bool llvm::IntelExpr::NeedBracs = false

Definition at line 66 of file MCTargetAsmParser.h.

◆ OffsetName

StringRef llvm::IntelExpr::OffsetName

Definition at line 70 of file MCTargetAsmParser.h.

Referenced by hasOffset().

◆ Scale

unsigned llvm::IntelExpr::Scale = 1

Definition at line 71 of file MCTargetAsmParser.h.

Referenced by IntelExpr(), and isValid().


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