LLVM 22.0.0git
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 66 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 76 of file MCTargetAsmParser.h.

References BaseReg, Imm, IndexReg, NeedBracs, OffsetName, Scale, and scale().

Member Function Documentation

◆ emitImm()

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

Definition at line 89 of file MCTargetAsmParser.h.

References hasOffset(), and hasRegs().

◆ hasBaseReg()

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

Definition at line 83 of file MCTargetAsmParser.h.

References BaseReg.

Referenced by hasRegs().

◆ hasIndexReg()

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

Definition at line 84 of file MCTargetAsmParser.h.

References IndexReg.

Referenced by hasRegs(), and isValid().

◆ hasOffset()

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

Definition at line 86 of file MCTargetAsmParser.h.

References OffsetName.

Referenced by emitImm().

◆ hasRegs()

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

Definition at line 85 of file MCTargetAsmParser.h.

References hasBaseReg(), and hasIndexReg().

Referenced by emitImm().

◆ isValid()

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

Definition at line 90 of file MCTargetAsmParser.h.

References hasIndexReg(), and Scale.

Member Data Documentation

◆ BaseReg

StringRef llvm::IntelExpr::BaseReg

Definition at line 69 of file MCTargetAsmParser.h.

Referenced by hasBaseReg(), and IntelExpr().

◆ Imm

int64_t llvm::IntelExpr::Imm = 0

Definition at line 68 of file MCTargetAsmParser.h.

Referenced by IntelExpr().

◆ IndexReg

StringRef llvm::IntelExpr::IndexReg

Definition at line 70 of file MCTargetAsmParser.h.

Referenced by hasIndexReg(), and IntelExpr().

◆ NeedBracs

bool llvm::IntelExpr::NeedBracs = false

Definition at line 67 of file MCTargetAsmParser.h.

Referenced by IntelExpr().

◆ OffsetName

StringRef llvm::IntelExpr::OffsetName

Definition at line 71 of file MCTargetAsmParser.h.

Referenced by hasOffset(), and IntelExpr().

◆ Scale

unsigned llvm::IntelExpr::Scale = 1

Definition at line 72 of file MCTargetAsmParser.h.

Referenced by IntelExpr(), and isValid().


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